@mui/codemod 9.0.0-alpha.4 → 9.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +147 -4
  2. package/README.md +399 -147
  3. package/deprecations/all/deprecations-all.js +6 -0
  4. package/deprecations/checkbox-props/checkbox-props.js +33 -0
  5. package/deprecations/checkbox-props/index.js +13 -0
  6. package/deprecations/checkbox-props/test-cases/actual.js +45 -0
  7. package/deprecations/checkbox-props/test-cases/expected.js +61 -0
  8. package/deprecations/checkbox-props/test-cases/package.actual.js +34 -0
  9. package/deprecations/checkbox-props/test-cases/package.expected.js +50 -0
  10. package/deprecations/checkbox-props/test-cases/theme.actual.js +28 -0
  11. package/deprecations/checkbox-props/test-cases/theme.expected.js +36 -0
  12. package/deprecations/dialog-props/dialog-props.js +14 -0
  13. package/deprecations/dialog-props/test-cases/actual.js +4 -0
  14. package/deprecations/dialog-props/test-cases/expected.js +4 -0
  15. package/deprecations/drawer-props/drawer-props.js +14 -0
  16. package/deprecations/drawer-props/test-cases/actual.js +10 -2
  17. package/deprecations/drawer-props/test-cases/expected.js +14 -2
  18. package/deprecations/radio-props/index.js +13 -0
  19. package/deprecations/radio-props/radio-props.js +33 -0
  20. package/deprecations/radio-props/test-cases/actual.js +45 -0
  21. package/deprecations/radio-props/test-cases/expected.js +61 -0
  22. package/deprecations/radio-props/test-cases/package.actual.js +34 -0
  23. package/deprecations/radio-props/test-cases/package.expected.js +50 -0
  24. package/deprecations/radio-props/test-cases/theme.actual.js +28 -0
  25. package/deprecations/radio-props/test-cases/theme.expected.js +36 -0
  26. package/deprecations/switch-props/index.js +13 -0
  27. package/deprecations/switch-props/switch-props.js +33 -0
  28. package/deprecations/switch-props/test-cases/actual.js +45 -0
  29. package/deprecations/switch-props/test-cases/expected.js +61 -0
  30. package/deprecations/switch-props/test-cases/package.actual.js +34 -0
  31. package/deprecations/switch-props/test-cases/package.expected.js +50 -0
  32. package/deprecations/switch-props/test-cases/theme.actual.js +28 -0
  33. package/deprecations/switch-props/test-cases/theme.expected.js +36 -0
  34. package/package.json +3 -3
  35. package/v5.0.0/theme-spacing.test/large-actual.js +1 -1
  36. package/v5.0.0/theme-spacing.test/large-expected.js +1 -1
  37. package/v9.0.0/system-props/index.js +13 -0
  38. package/v9.0.0/system-props/removeSystemProps.js +243 -0
  39. package/v9.0.0/system-props/test-cases/system-props.actual.js +144 -0
  40. package/v9.0.0/system-props/test-cases/system-props.expected.js +175 -0
package/README.md CHANGED
@@ -14,7 +14,7 @@ Some of the codemods also run [postcss](https://github.com/postcss/postcss) plug
14
14
  <!-- #npm-tag-reference -->
15
15
 
16
16
  ```bash
17
- npx @mui/codemod@next <codemod> <paths...>
17
+ npx @mui/codemod@latest <codemod> <paths...>
18
18
 
19
19
  Applies a `@mui/codemod` to the specified paths
20
20
 
@@ -34,10 +34,10 @@ Options:
34
34
  --jscodeshift [string] [default: false]
35
35
 
36
36
  Examples:
37
- npx @mui/codemod@next v4.0.0/theme-spacing-api src
38
- npx @mui/codemod@next v5.0.0/component-rename-prop src --
37
+ npx @mui/codemod@latest v4.0.0/theme-spacing-api src
38
+ npx @mui/codemod@latest v5.0.0/component-rename-prop src --
39
39
  --component=Grid --from=prop --to=newProp
40
- npx @mui/codemod@next v5.0.0/preset-safe src --parser=flow
40
+ npx @mui/codemod@latest v5.0.0/preset-safe src --parser=flow
41
41
  ```
42
42
 
43
43
  ### package name
@@ -45,7 +45,7 @@ Examples:
45
45
  Use this flag if you have a custom package name that reexports Material UI components. For example:
46
46
 
47
47
  ```bash
48
- npx @mui/codemod@next --packageName="@org/ui"
48
+ npx @mui/codemod@latest --packageName="@org/ui"
49
49
  ```
50
50
 
51
51
  The snippet above will look for `@org/ui` instead of `@mui/material` in the codemod.
@@ -55,7 +55,7 @@ The snippet above will look for `@org/ui` instead of `@mui/material` in the code
55
55
  To pass more options directly to jscodeshift, use `--jscodeshift="..."`. For example:
56
56
 
57
57
  ```bash
58
- npx @mui/codemod@next --jscodeshift="--run-in-band --verbose=2"
58
+ npx @mui/codemod@latest --jscodeshift="--run-in-band --verbose=2"
59
59
  ```
60
60
 
61
61
  See all available options [here](https://github.com/facebook/jscodeshift#usage-cli).
@@ -66,7 +66,7 @@ Options to [recast](https://github.com/benjamn/recast)'s printer can be provided
66
66
  through jscodeshift's `printOptions` command line argument
67
67
 
68
68
  ```bash
69
- npx @mui/codemod@next <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"double\"}'"
69
+ npx @mui/codemod@latest <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"double\"}'"
70
70
  ```
71
71
 
72
72
  ## Included scripts
@@ -82,7 +82,7 @@ npx @mui/codemod@next <transform> <path> --jscodeshift="--printOptions='{\"quote
82
82
  ### Deprecations
83
83
 
84
84
  ```bash
85
- npx @mui/codemod@next deprecations/all <path>
85
+ npx @mui/codemod@latest deprecations/all <path>
86
86
  ```
87
87
 
88
88
  #### `all`
@@ -101,7 +101,7 @@ A combination of all deprecations.
101
101
  ```
102
102
 
103
103
  ```bash
104
- npx @mui/codemod@next deprecations/accordion-props <path>
104
+ npx @mui/codemod@latest deprecations/accordion-props <path>
105
105
  ```
106
106
 
107
107
  #### `accordion-summary-classes`
@@ -144,7 +144,7 @@ CSS transforms:
144
144
  ```
145
145
 
146
146
  ```bash
147
- npx @mui/codemod@next deprecations/accordion-summary-classes <path>
147
+ npx @mui/codemod@latest deprecations/accordion-summary-classes <path>
148
148
  ```
149
149
 
150
150
  #### `alert-classes`
@@ -240,7 +240,7 @@ CSS transforms:
240
240
  ```
241
241
 
242
242
  ```bash
243
- npx @mui/codemod@next deprecations/alert-classes <path>
243
+ npx @mui/codemod@latest deprecations/alert-classes <path>
244
244
  ```
245
245
 
246
246
  #### `alert-props`
@@ -266,7 +266,7 @@ npx @mui/codemod@next deprecations/alert-classes <path>
266
266
  ```
267
267
 
268
268
  ```bash
269
- npx @mui/codemod@next deprecations/alert-props <path>
269
+ npx @mui/codemod@latest deprecations/alert-props <path>
270
270
  ```
271
271
 
272
272
  #### `autocomplete-props`
@@ -392,7 +392,7 @@ npx @mui/codemod@next deprecations/alert-props <path>
392
392
  ```
393
393
 
394
394
  ```bash
395
- npx @mui/codemod@next deprecations/autocomplete-props <path>
395
+ npx @mui/codemod@latest deprecations/autocomplete-props <path>
396
396
  ```
397
397
 
398
398
  #### `avatar-group-props`
@@ -440,7 +440,7 @@ npx @mui/codemod@next deprecations/autocomplete-props <path>
440
440
  ```
441
441
 
442
442
  ```bash
443
- npx @mui/codemod@next deprecations/avatar-group-props <path>
443
+ npx @mui/codemod@latest deprecations/avatar-group-props <path>
444
444
  ```
445
445
 
446
446
  #### `avatar-props`
@@ -460,7 +460,7 @@ npx @mui/codemod@next deprecations/avatar-group-props <path>
460
460
  ```
461
461
 
462
462
  ```bash
463
- npx @mui/codemod@next deprecations/avatar-props <path>
463
+ npx @mui/codemod@latest deprecations/avatar-props <path>
464
464
  ```
465
465
 
466
466
  #### `backdrop-props`
@@ -493,7 +493,7 @@ npx @mui/codemod@next deprecations/avatar-props <path>
493
493
  ```
494
494
 
495
495
  ```bash
496
- npx @mui/codemod@next deprecations/backdrop-props <path>
496
+ npx @mui/codemod@latest deprecations/backdrop-props <path>
497
497
  ```
498
498
 
499
499
  #### `badge-props`
@@ -519,7 +519,7 @@ npx @mui/codemod@next deprecations/backdrop-props <path>
519
519
  ```
520
520
 
521
521
  ```bash
522
- npx @mui/codemod@next deprecations/badge-props <path>
522
+ npx @mui/codemod@latest deprecations/badge-props <path>
523
523
  ```
524
524
 
525
525
  #### `button-classes`
@@ -741,7 +741,7 @@ CSS transforms:
741
741
  ```
742
742
 
743
743
  ```bash
744
- npx @mui/codemod@next deprecations/button-classes <path>
744
+ npx @mui/codemod@latest deprecations/button-classes <path>
745
745
  ```
746
746
 
747
747
  #### `button-group-classes`
@@ -867,7 +867,7 @@ CSS transforms:
867
867
  ```
868
868
 
869
869
  ```bash
870
- npx @mui/codemod@next deprecations/button-group-classes <path>
870
+ npx @mui/codemod@latest deprecations/button-group-classes <path>
871
871
  ```
872
872
 
873
873
  #### `card-header-props`
@@ -897,7 +897,21 @@ npx @mui/codemod@next deprecations/button-group-classes <path>
897
897
  ```
898
898
 
899
899
  ```bash
900
- npx @mui/codemod@next deprecations/card-header-props <path>
900
+ npx @mui/codemod@latest deprecations/card-header-props <path>
901
+ ```
902
+
903
+ #### `checkbox-props`
904
+
905
+ ```diff
906
+ <Checkbox
907
+ - inputProps={{ 'aria-label': 'Checkbox' }}
908
+ - inputRef={ref}
909
+ + slotProps={{ input: { 'aria-label': 'Checkbox', ref } }}
910
+ />
911
+ ```
912
+
913
+ ```bash
914
+ npx @mui/codemod@latest deprecations/checkbox-props <path>
901
915
  ```
902
916
 
903
917
  #### `chip-classes`
@@ -1078,7 +1092,7 @@ CSS transforms:
1078
1092
  ```
1079
1093
 
1080
1094
  ```bash
1081
- npx @mui/codemod@next deprecations/chip-classes <path>
1095
+ npx @mui/codemod@latest deprecations/chip-classes <path>
1082
1096
  ```
1083
1097
 
1084
1098
  #### `circular-progress-classes`
@@ -1117,7 +1131,7 @@ CSS transforms:
1117
1131
  ```
1118
1132
 
1119
1133
  ```bash
1120
- npx @mui/codemod@next deprecations/circular-progress-classes <path>
1134
+ npx @mui/codemod@latest deprecations/circular-progress-classes <path>
1121
1135
  ```
1122
1136
 
1123
1137
  #### `divider-props`
@@ -1130,7 +1144,7 @@ npx @mui/codemod@next deprecations/circular-progress-classes <path>
1130
1144
  ```
1131
1145
 
1132
1146
  ```bash
1133
- npx @mui/codemod@next deprecations/divider-props <path>
1147
+ npx @mui/codemod@latest deprecations/divider-props <path>
1134
1148
  ```
1135
1149
 
1136
1150
  #### `dialog-classes`
@@ -1166,7 +1180,7 @@ CSS transforms:
1166
1180
  ```
1167
1181
 
1168
1182
  ```bash
1169
- npx @mui/codemod@next deprecations/dialog-classes <path>
1183
+ npx @mui/codemod@latest deprecations/dialog-classes <path>
1170
1184
  ```
1171
1185
 
1172
1186
  #### `dialog-props`
@@ -1188,7 +1202,7 @@ JS transforms:
1188
1202
  ```
1189
1203
 
1190
1204
  ```bash
1191
- npx @mui/codemod@next deprecations/dialog-props <path>
1205
+ npx @mui/codemod@latest deprecations/dialog-props <path>
1192
1206
  ```
1193
1207
 
1194
1208
  #### `drawer-classes`
@@ -1260,7 +1274,47 @@ CSS transforms:
1260
1274
  ```
1261
1275
 
1262
1276
  ```bash
1263
- npx @mui/codemod@next deprecations/drawer-classes <path>
1277
+ npx @mui/codemod@latest deprecations/drawer-classes <path>
1278
+ ```
1279
+
1280
+ #### `drawer-props`
1281
+
1282
+ ```diff
1283
+ <Drawer
1284
+ - BackdropComponent={CustomBackdrop}
1285
+ - BackdropProps={{ transitionDuration: 300 }}
1286
+ - PaperProps={{ elevation: 20 }}
1287
+ - SlideProps={{ direction: 'right' }}
1288
+ + slots={{ backdrop: CustomBackdrop }}
1289
+ + slotProps={{
1290
+ + backdrop: { transitionDuration: 300 },
1291
+ + paper: { elevation: 20 },
1292
+ + transition: { direction: 'right' },
1293
+ + }}
1294
+ />
1295
+ ```
1296
+
1297
+ The same applies to `SwipeableDrawer`.
1298
+
1299
+ ```diff
1300
+ MuiDrawer: {
1301
+ defaultProps: {
1302
+ - BackdropComponent: CustomBackdrop,
1303
+ - BackdropProps: { transitionDuration: 300 },
1304
+ - PaperProps: { elevation: 20 },
1305
+ - SlideProps: { direction: 'right' },
1306
+ + slots: { backdrop: CustomBackdrop },
1307
+ + slotProps: {
1308
+ + backdrop: { transitionDuration: 300 },
1309
+ + paper: { elevation: 20 },
1310
+ + transition: { direction: 'right' },
1311
+ + },
1312
+ },
1313
+ },
1314
+ ```
1315
+
1316
+ ```bash
1317
+ npx @mui/codemod@latest deprecations/drawer-props <path>
1264
1318
  ```
1265
1319
 
1266
1320
  #### `filled-input-props`
@@ -1286,7 +1340,7 @@ npx @mui/codemod@next deprecations/drawer-classes <path>
1286
1340
  ```
1287
1341
 
1288
1342
  ```bash
1289
- npx @mui/codemod@next deprecations/filled-input-props <path>
1343
+ npx @mui/codemod@latest deprecations/filled-input-props <path>
1290
1344
  ```
1291
1345
 
1292
1346
  #### `form-control-label-props`
@@ -1308,7 +1362,7 @@ npx @mui/codemod@next deprecations/filled-input-props <path>
1308
1362
  ```
1309
1363
 
1310
1364
  ```bash
1311
- npx @mui/codemod@next deprecations/form-control-label-props <path>
1365
+ npx @mui/codemod@latest deprecations/form-control-label-props <path>
1312
1366
 
1313
1367
  ```
1314
1368
 
@@ -1335,7 +1389,7 @@ npx @mui/codemod@next deprecations/form-control-label-props <path>
1335
1389
  ```
1336
1390
 
1337
1391
  ```bash
1338
- npx @mui/codemod@next deprecations/list-item-props <path>
1392
+ npx @mui/codemod@latest deprecations/list-item-props <path>
1339
1393
  ```
1340
1394
 
1341
1395
  #### `list-item-text-props`
@@ -1361,7 +1415,7 @@ npx @mui/codemod@next deprecations/list-item-props <path>
1361
1415
  ```
1362
1416
 
1363
1417
  ```bash
1364
- npx @mui/codemod@next deprecations/list-item-text-props <path>
1418
+ npx @mui/codemod@latest deprecations/list-item-text-props <path>
1365
1419
  ```
1366
1420
 
1367
1421
  #### `image-list-item-bar-classes`
@@ -1418,7 +1472,7 @@ CSS transforms:
1418
1472
  ```
1419
1473
 
1420
1474
  ```bash
1421
- npx @mui/codemod@next deprecations/image-list-item-bar-classes <path>
1475
+ npx @mui/codemod@latest deprecations/image-list-item-bar-classes <path>
1422
1476
  ```
1423
1477
 
1424
1478
  #### `input-base-props`
@@ -1444,7 +1498,7 @@ npx @mui/codemod@next deprecations/image-list-item-bar-classes <path>
1444
1498
  ```
1445
1499
 
1446
1500
  ```bash
1447
- npx @mui/codemod@next deprecations/input-base-props <path>
1501
+ npx @mui/codemod@latest deprecations/input-base-props <path>
1448
1502
  ```
1449
1503
 
1450
1504
  #### `input-base-classes`
@@ -1498,7 +1552,7 @@ CSS transforms:
1498
1552
  ```
1499
1553
 
1500
1554
  ```bash
1501
- npx @mui/codemod@next deprecations/input-base-classes <path>
1555
+ npx @mui/codemod@latest deprecations/input-base-classes <path>
1502
1556
  ```
1503
1557
 
1504
1558
  #### `input-props`
@@ -1524,7 +1578,7 @@ npx @mui/codemod@next deprecations/input-base-classes <path>
1524
1578
  ```
1525
1579
 
1526
1580
  ```bash
1527
- npx @mui/codemod@next deprecations/input-props <path>
1581
+ npx @mui/codemod@latest deprecations/input-props <path>
1528
1582
  ```
1529
1583
 
1530
1584
  #### `linear-progress-classes`
@@ -1584,7 +1638,7 @@ CSS transforms:
1584
1638
  ```
1585
1639
 
1586
1640
  ```bash
1587
- npx @mui/codemod@next deprecations/linear-progress-classes <path>
1641
+ npx @mui/codemod@latest deprecations/linear-progress-classes <path>
1588
1642
  ```
1589
1643
 
1590
1644
  #### `modal-props`
@@ -1610,7 +1664,7 @@ npx @mui/codemod@next deprecations/linear-progress-classes <path>
1610
1664
  ```
1611
1665
 
1612
1666
  ```bash
1613
- npx @mui/codemod@next deprecations/modal-props <path>
1667
+ npx @mui/codemod@latest deprecations/modal-props <path>
1614
1668
  ```
1615
1669
 
1616
1670
  #### `mobile-stepper-props`
@@ -1623,7 +1677,41 @@ npx @mui/codemod@next deprecations/modal-props <path>
1623
1677
  ```
1624
1678
 
1625
1679
  ```bash
1626
- npx @mui/codemod@next deprecations/mobile-stepper-props <path>
1680
+ npx @mui/codemod@latest deprecations/mobile-stepper-props <path>
1681
+ ```
1682
+
1683
+ #### `menu-props`
1684
+
1685
+ ```diff
1686
+ <Menu
1687
+ - TransitionComponent={CustomTransition}
1688
+ - MenuListProps={{ disablePadding: true }}
1689
+ - TransitionProps={{ timeout: 200 }}
1690
+ + slots={{ transition: CustomTransition }}
1691
+ + slotProps={{
1692
+ + list: { disablePadding: true },
1693
+ + transition: { timeout: 200 },
1694
+ + }}
1695
+ />
1696
+ ```
1697
+
1698
+ ```diff
1699
+ MuiMenu: {
1700
+ defaultProps: {
1701
+ - TransitionComponent: CustomTransition,
1702
+ - MenuListProps: { disablePadding: true },
1703
+ - TransitionProps: { timeout: 200 },
1704
+ + slots: { transition: CustomTransition },
1705
+ + slotProps: {
1706
+ + list: { disablePadding: true },
1707
+ + transition: { timeout: 200 },
1708
+ + },
1709
+ },
1710
+ },
1711
+ ```
1712
+
1713
+ ```bash
1714
+ npx @mui/codemod@latest deprecations/menu-props <path>
1627
1715
  ```
1628
1716
 
1629
1717
  #### `pagination-item-classes`
@@ -1687,7 +1775,7 @@ CSS transforms:
1687
1775
  ```
1688
1776
 
1689
1777
  ```bash
1690
- npx @mui/codemod@next deprecations/pagination-item-classes <path>
1778
+ npx @mui/codemod@latest deprecations/pagination-item-classes <path>
1691
1779
  ```
1692
1780
 
1693
1781
  #### `pagination-item-props`
@@ -1709,7 +1797,47 @@ npx @mui/codemod@next deprecations/pagination-item-classes <path>
1709
1797
  ```
1710
1798
 
1711
1799
  ```bash
1712
- npx @mui/codemod@next deprecations/pagination-item-props <path>
1800
+ npx @mui/codemod@latest deprecations/pagination-item-props <path>
1801
+ ```
1802
+
1803
+ #### `popover-props`
1804
+
1805
+ ```diff
1806
+ <Popover
1807
+ - BackdropComponent={CustomBackdrop}
1808
+ - BackdropProps={{ timeout: 200 }}
1809
+ - PaperProps={{ elevation: 4 }}
1810
+ - TransitionComponent={CustomTransition}
1811
+ - TransitionProps={{ timeout: 200 }}
1812
+ + slots={{ backdrop: CustomBackdrop, transition: CustomTransition }}
1813
+ + slotProps={{
1814
+ + backdrop: { timeout: 200 },
1815
+ + paper: { elevation: 4 },
1816
+ + transition: { timeout: 200 },
1817
+ + }}
1818
+ />
1819
+ ```
1820
+
1821
+ ```diff
1822
+ MuiPopover: {
1823
+ defaultProps: {
1824
+ - BackdropComponent: 'div',
1825
+ - BackdropProps: { timeout: 200 },
1826
+ - PaperProps: { elevation: 8 },
1827
+ - TransitionComponent: 'em',
1828
+ - TransitionProps: { timeout: 200 },
1829
+ + slots: { backdrop: 'div', transition: 'em' },
1830
+ + slotProps: {
1831
+ + backdrop: { timeout: 200 },
1832
+ + paper: { elevation: 8 },
1833
+ + transition: { timeout: 200 },
1834
+ + },
1835
+ },
1836
+ },
1837
+ ```
1838
+
1839
+ ```bash
1840
+ npx @mui/codemod@latest deprecations/popover-props <path>
1713
1841
  ```
1714
1842
 
1715
1843
  #### `popper-props`
@@ -1735,7 +1863,7 @@ npx @mui/codemod@next deprecations/pagination-item-props <path>
1735
1863
  ```
1736
1864
 
1737
1865
  ```bash
1738
- npx @mui/codemod@next deprecations/popper-props <path>
1866
+ npx @mui/codemod@latest deprecations/popper-props <path>
1739
1867
  ```
1740
1868
 
1741
1869
  #### `outlined-input-props`
@@ -1761,7 +1889,7 @@ npx @mui/codemod@next deprecations/popper-props <path>
1761
1889
  ```
1762
1890
 
1763
1891
  ```bash
1764
- npx @mui/codemod@next deprecations/outlined-input-props <path>
1892
+ npx @mui/codemod@latest deprecations/outlined-input-props <path>
1765
1893
  ```
1766
1894
 
1767
1895
  #### `rating-props`
@@ -1778,7 +1906,21 @@ npx @mui/codemod@next deprecations/outlined-input-props <path>
1778
1906
  <!-- #npm-tag-reference -->
1779
1907
 
1780
1908
  ```bash
1781
- npx @mui/codemod@next deprecations/rating-props <path>
1909
+ npx @mui/codemod@latest deprecations/rating-props <path>
1910
+ ```
1911
+
1912
+ #### `radio-props`
1913
+
1914
+ ```diff
1915
+ <Radio
1916
+ - inputProps={{ 'aria-label': 'Radio' }}
1917
+ - inputRef={ref}
1918
+ + slotProps={{ input: { 'aria-label': 'Radio', ref } }}
1919
+ />
1920
+ ```
1921
+
1922
+ ```bash
1923
+ npx @mui/codemod@latest deprecations/radio-props <path>
1782
1924
  ```
1783
1925
 
1784
1926
  #### `select-classes`
@@ -1826,7 +1968,7 @@ CSS transforms:
1826
1968
  ```
1827
1969
 
1828
1970
  ```bash
1829
- npx @mui/codemod@next deprecations/select-classes <path>
1971
+ npx @mui/codemod@latest deprecations/select-classes <path>
1830
1972
  ```
1831
1973
 
1832
1974
  #### `slider-props`
@@ -1852,7 +1994,7 @@ npx @mui/codemod@next deprecations/select-classes <path>
1852
1994
  ```
1853
1995
 
1854
1996
  ```bash
1855
- npx @mui/codemod@next deprecations/slider-props <path>
1997
+ npx @mui/codemod@latest deprecations/slider-props <path>
1856
1998
  ```
1857
1999
 
1858
2000
  #### `snackbar-props`
@@ -1875,7 +2017,79 @@ npx @mui/codemod@next deprecations/slider-props <path>
1875
2017
  <!-- #npm-tag-reference -->
1876
2018
 
1877
2019
  ```bash
1878
- npx @mui/codemod@next deprecations/snackbar-props <path>
2020
+ npx @mui/codemod@latest deprecations/snackbar-props <path>
2021
+ ```
2022
+
2023
+ #### `speed-dial-props`
2024
+
2025
+ ```diff
2026
+ <SpeedDial
2027
+ - TransitionComponent={CustomTransition}
2028
+ - TransitionProps={CustomTransitionProps}
2029
+ + slots={{ transition: CustomTransition }}
2030
+ + slotProps={{ transition: CustomTransitionProps }}
2031
+ />
2032
+ ```
2033
+
2034
+ ```diff
2035
+ MuiSpeedDial: {
2036
+ defaultProps: {
2037
+ - TransitionComponent: CustomTransition,
2038
+ - TransitionProps: CustomTransitionProps,
2039
+ + slots: { transition: CustomTransition },
2040
+ + slotProps: { transition: CustomTransitionProps },
2041
+ },
2042
+ },
2043
+ ```
2044
+
2045
+ ```bash
2046
+ npx @mui/codemod@latest deprecations/speed-dial-props <path>
2047
+ ```
2048
+
2049
+ #### `speed-dial-action-props`
2050
+
2051
+ ```diff
2052
+ <SpeedDialAction
2053
+ - FabProps={FabProps}
2054
+ - TooltipClasses={TooltipClasses}
2055
+ - tooltipOpen={true}
2056
+ - tooltipPlacement="top"
2057
+ - tooltipTitle="test"
2058
+ + slotProps={{
2059
+ + fab: FabProps,
2060
+ + tooltip: {
2061
+ + classes: TooltipClasses,
2062
+ + open: true,
2063
+ + placement: 'top',
2064
+ + title: 'test',
2065
+ + },
2066
+ + }}
2067
+ />
2068
+ ```
2069
+
2070
+ ```diff
2071
+ MuiSpeedDialAction: {
2072
+ defaultProps: {
2073
+ - FabProps: { id: 'test' },
2074
+ - TooltipClasses: classes,
2075
+ - tooltipOpen: true,
2076
+ - tooltipPlacement: 'top',
2077
+ - tooltipTitle: 'test',
2078
+ + slotProps: {
2079
+ + fab: { id: 'test' },
2080
+ + tooltip: {
2081
+ + classes: classes,
2082
+ + open: true,
2083
+ + placement: 'top',
2084
+ + title: 'test',
2085
+ + },
2086
+ + },
2087
+ },
2088
+ },
2089
+ ```
2090
+
2091
+ ```bash
2092
+ npx @mui/codemod@latest deprecations/speed-dial-action-props <path>
1879
2093
  ```
1880
2094
 
1881
2095
  #### `slider-classes`
@@ -1947,7 +2161,7 @@ CSS transforms:
1947
2161
  ```
1948
2162
 
1949
2163
  ```bash
1950
- npx @mui/codemod@next deprecations/slider-classes <path>
2164
+ npx @mui/codemod@latest deprecations/slider-classes <path>
1951
2165
  ```
1952
2166
 
1953
2167
  #### `tabs-props`
@@ -1990,7 +2204,7 @@ npx @mui/codemod@next deprecations/slider-classes <path>
1990
2204
  ```
1991
2205
 
1992
2206
  ```bash
1993
- npx @mui/codemod@next deprecations/tabs-props <path>
2207
+ npx @mui/codemod@latest deprecations/tabs-props <path>
1994
2208
  ```
1995
2209
 
1996
2210
  #### `tooltip-props`
@@ -2044,7 +2258,7 @@ npx @mui/codemod@next deprecations/tabs-props <path>
2044
2258
  ```
2045
2259
 
2046
2260
  ```bash
2047
- npx @mui/codemod@next deprecations/tooltip-props <path>
2261
+ npx @mui/codemod@latest deprecations/tooltip-props <path>
2048
2262
  ```
2049
2263
 
2050
2264
  #### `step-connector-classes`
@@ -2085,7 +2299,7 @@ CSS transforms:
2085
2299
  <!-- #npm-tag-reference -->
2086
2300
 
2087
2301
  ```bash
2088
- npx @mui/codemod@next deprecations/step-connector-classes <path>
2302
+ npx @mui/codemod@latest deprecations/step-connector-classes <path>
2089
2303
  ```
2090
2304
 
2091
2305
  #### `step-content-props`
@@ -2100,7 +2314,7 @@ npx @mui/codemod@next deprecations/step-connector-classes <path>
2100
2314
  ```
2101
2315
 
2102
2316
  ```bash
2103
- npx @mui/codemod@next deprecations/step-content-props <path>
2317
+ npx @mui/codemod@latest deprecations/step-content-props <path>
2104
2318
  ```
2105
2319
 
2106
2320
  #### `step-label-props`
@@ -2130,7 +2344,21 @@ npx @mui/codemod@next deprecations/step-content-props <path>
2130
2344
  ```
2131
2345
 
2132
2346
  ```bash
2133
- npx @mui/codemod@next deprecations/step-label-props <path>
2347
+ npx @mui/codemod@latest deprecations/step-label-props <path>
2348
+ ```
2349
+
2350
+ #### `switch-props`
2351
+
2352
+ ```diff
2353
+ <Switch
2354
+ - inputProps={{ 'aria-label': 'Switch' }}
2355
+ - inputRef={ref}
2356
+ + slotProps={{ input: { 'aria-label': 'Switch', ref } }}
2357
+ />
2358
+ ```
2359
+
2360
+ ```bash
2361
+ npx @mui/codemod@latest deprecations/switch-props <path>
2134
2362
  ```
2135
2363
 
2136
2364
  #### `text-field-props`
@@ -2153,7 +2381,7 @@ npx @mui/codemod@next deprecations/step-label-props <path>
2153
2381
  ```
2154
2382
 
2155
2383
  ```bash
2156
- npx @mui/codemod@next deprecations/text-field-props <path>
2384
+ npx @mui/codemod@latest deprecations/text-field-props <path>
2157
2385
  ```
2158
2386
 
2159
2387
  #### `toggle-button-group-classes`
@@ -2192,7 +2420,7 @@ CSS transforms:
2192
2420
  ```
2193
2421
 
2194
2422
  ```bash
2195
- npx @mui/codemod@next deprecations/toggle-button-group-classes <path>
2423
+ npx @mui/codemod@latest deprecations/toggle-button-group-classes <path>
2196
2424
  ```
2197
2425
 
2198
2426
  #### `tab-classes`
@@ -2222,7 +2450,7 @@ CSS transforms:
2222
2450
  ```
2223
2451
 
2224
2452
  ```bash
2225
- npx @mui/codemod@next deprecations/tab-classes <path>
2453
+ npx @mui/codemod@latest deprecations/tab-classes <path>
2226
2454
  ```
2227
2455
 
2228
2456
  #### `table-sort-label-classes`
@@ -2261,7 +2489,7 @@ CSS transforms:
2261
2489
  ```
2262
2490
 
2263
2491
  ```bash
2264
- npx @mui/codemod@next deprecations/table-sort-label-classes <path>
2492
+ npx @mui/codemod@latest deprecations/table-sort-label-classes <path>
2265
2493
  ```
2266
2494
 
2267
2495
  #### `typography-props`
@@ -2290,7 +2518,31 @@ npx @mui/codemod@next deprecations/table-sort-label-classes <path>
2290
2518
  ```
2291
2519
 
2292
2520
  ```bash
2293
- npx @mui/codemod@next deprecations/typography-props <path>
2521
+ npx @mui/codemod@latest deprecations/typography-props <path>
2522
+ ```
2523
+
2524
+ ### v9.0.0
2525
+
2526
+ #### `system-props`
2527
+
2528
+ ```bash
2529
+ npx @mui/codemod@latest v9.0.0/system-props <path>
2530
+ ```
2531
+
2532
+ Remove system props from Box, Stack, Typography, Link, Grid, DialogContentText, TimelineContent, and TimelineOppositeContent components and move them to the `sx` prop.
2533
+
2534
+ Compared to the v6 codemod, the v9 version also handles:
2535
+
2536
+ - `color="inherit"` on Typography (moved to `sx`)
2537
+ - `color="text.secondary"` on Link (moved to `sx`, while keeping named colors like `"primary"` and `"inherit"` as component props)
2538
+ - DialogContentText, TimelineContent, and TimelineOppositeContent components
2539
+
2540
+ ```diff
2541
+ -<Typography color="inherit" />
2542
+ +<Typography sx={{ color: "inherit" }} />
2543
+
2544
+ -<Link color="text.secondary" href="#" />
2545
+ +<Link href="#" sx={{ color: "text.secondary" }} />
2294
2546
  ```
2295
2547
 
2296
2548
  ### v7.0.0
@@ -2298,7 +2550,7 @@ npx @mui/codemod@next deprecations/typography-props <path>
2298
2550
  #### `theme-color-functions`
2299
2551
 
2300
2552
  ```bash
2301
- npx @mui/codemod@next v7.0.0/theme-color-functions <path>
2553
+ npx @mui/codemod@latest v7.0.0/theme-color-functions <path>
2302
2554
  ```
2303
2555
 
2304
2556
  Replace the usage of the `alpha()`, `lighten()`, and `darken()` functions from `@mui/system/colorManipulator` to use the `theme` object instead.
@@ -2321,7 +2573,7 @@ Replace the usage of the `alpha()`, `lighten()`, and `darken()` functions from `
2321
2573
  <!-- #npm-tag-reference -->
2322
2574
 
2323
2575
  ```bash
2324
- npx @mui/codemod@next v7.0.0/grid-props <path>
2576
+ npx @mui/codemod@latest v7.0.0/grid-props <path>
2325
2577
  ```
2326
2578
 
2327
2579
  Updates the usage of the `@mui/material/Grid`, `@mui/system/Grid`, and `@mui/joy/Grid` components to their updated APIs.
@@ -2342,7 +2594,7 @@ You can provide the theme breakpoints via options, for example, `--jscodeshift='
2342
2594
  <!-- #npm-tag-reference -->
2343
2595
 
2344
2596
  ```bash
2345
- npx @mui/codemod@next v7.0.0/grid-props <path> --jscodeshift='--muiBreakpoints=mobile,desktop'
2597
+ npx @mui/codemod@latest v7.0.0/grid-props <path> --jscodeshift='--muiBreakpoints=mobile,desktop'
2346
2598
  ```
2347
2599
 
2348
2600
  ```diff
@@ -2355,7 +2607,7 @@ npx @mui/codemod@next v7.0.0/grid-props <path> --jscodeshift='--muiBreakpoints=m
2355
2607
  <!-- #npm-tag-reference -->
2356
2608
 
2357
2609
  ```bash
2358
- npx @mui/codemod@next v7.0.0/lab-removed-components <path>
2610
+ npx @mui/codemod@latest v7.0.0/lab-removed-components <path>
2359
2611
  ```
2360
2612
 
2361
2613
  Update the import of the following components and hook moved from `@mui/lab` to `@mui/material`:
@@ -2401,19 +2653,19 @@ Updates the `InputLabel`'s `size` value from `normal` to `medium`.
2401
2653
  <!-- #npm-tag-reference -->
2402
2654
 
2403
2655
  ```bash
2404
- npx @mui/codemod@next v7.0.0/input-label-size-normal-medium <path>
2656
+ npx @mui/codemod@latest v7.0.0/input-label-size-normal-medium <path>
2405
2657
  ```
2406
2658
 
2407
2659
  <!-- #host-reference -->
2408
2660
 
2409
- You can find more details about this breaking change in [the migration guide](https://next.mui.com/material-ui/migration/upgrade-to-v7/#inputlabel).
2661
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/upgrade-to-v7/#inputlabel).
2410
2662
 
2411
2663
  ### v6.0.0
2412
2664
 
2413
2665
  #### `sx-prop`
2414
2666
 
2415
2667
  ```bash
2416
- npx @mui/codemod@next v6.0.0/sx-prop <path>
2668
+ npx @mui/codemod@latest v6.0.0/sx-prop <path>
2417
2669
  ```
2418
2670
 
2419
2671
  Update the usage of the `sx` prop to be compatible with `@pigment-css/react`.
@@ -2436,7 +2688,7 @@ Update the usage of the `sx` prop to be compatible with `@pigment-css/react`.
2436
2688
  #### `system-props`
2437
2689
 
2438
2690
  ```bash
2439
- npx @mui/codemod@next v6.0.0/system-props <path>
2691
+ npx @mui/codemod@latest v6.0.0/system-props <path>
2440
2692
  ```
2441
2693
 
2442
2694
  Remove system props and add them to the `sx` prop.
@@ -2449,7 +2701,7 @@ Remove system props and add them to the `sx` prop.
2449
2701
  #### `theme-v6`
2450
2702
 
2451
2703
  ```bash
2452
- npx @mui/codemod@next v6.0.0/theme-v6 <path>
2704
+ npx @mui/codemod@latest v6.0.0/theme-v6 <path>
2453
2705
  ```
2454
2706
 
2455
2707
  Update the theme creation from `@mui/system@v5` to be compatible with `@pigment-css/react`.
@@ -2511,7 +2763,7 @@ Update the theme creation from `@mui/system@v5` to be compatible with `@pigment-
2511
2763
  #### `styled`
2512
2764
 
2513
2765
  ```bash
2514
- npx @mui/codemod@next v6.0.0/styled <path>
2766
+ npx @mui/codemod@latest v6.0.0/styled <path>
2515
2767
  ```
2516
2768
 
2517
2769
  Updates the usage of `styled` from `@mui/system@v5` to be compatible with `@pigment-css/react`.
@@ -2585,7 +2837,7 @@ However, it has some **limitations**:
2585
2837
  #### `grid-v2-props`
2586
2838
 
2587
2839
  ```bash
2588
- npx @mui/codemod@next v6.0.0/grid-v2-props <path>
2840
+ npx @mui/codemod@latest v6.0.0/grid-v2-props <path>
2589
2841
  ```
2590
2842
 
2591
2843
  Updates the usage of the `@mui/material/Grid2`, `@mui/system/Grid`, and `@mui/joy/Grid` components to their updated APIs.
@@ -2604,7 +2856,7 @@ Updates the usage of the `@mui/material/Grid2`, `@mui/system/Grid`, and `@mui/jo
2604
2856
  You can provide the theme breakpoints via options, for example, `--jscodeshift='--muiBreakpoints=mobile,desktop'`, to use your custom breakpoints in the transformation.
2605
2857
 
2606
2858
  ```bash
2607
- npx @mui/codemod@next v6.0.0/grid-v2-props <path> --jscodeshift='--muiBreakpoints=mobile,desktop'
2859
+ npx @mui/codemod@latest v6.0.0/grid-v2-props <path> --jscodeshift='--muiBreakpoints=mobile,desktop'
2608
2860
  ```
2609
2861
 
2610
2862
  ```diff
@@ -2630,7 +2882,7 @@ This codemod updates the import and re-export statements.
2630
2882
  ```
2631
2883
 
2632
2884
  ```bash
2633
- npx @mui/codemod@next v5.0.0/base-use-named-exports <path>
2885
+ npx @mui/codemod@latest v5.0.0/base-use-named-exports <path>
2634
2886
  ```
2635
2887
 
2636
2888
  #### `base-remove-unstyled-suffix`
@@ -2643,7 +2895,7 @@ The `Unstyled` suffix has been removed from all Base UI component names, includ
2643
2895
  ```
2644
2896
 
2645
2897
  ```bash
2646
- npx @mui/codemod@next v5.0.0/base-remove-unstyled-suffix <path>
2898
+ npx @mui/codemod@latest v5.0.0/base-remove-unstyled-suffix <path>
2647
2899
  ```
2648
2900
 
2649
2901
  #### `base-remove-component-prop`
@@ -2658,7 +2910,7 @@ This change only affects Base UI components.
2658
2910
  ```
2659
2911
 
2660
2912
  ```bash
2661
- npx @mui/codemod@next v5.0.0/base-remove-component-prop <path>
2913
+ npx @mui/codemod@latest v5.0.0/base-remove-component-prop <path>
2662
2914
  ```
2663
2915
 
2664
2916
  #### `rename-css-variables`
@@ -2673,7 +2925,7 @@ Updates the names of the CSS variables of the Joy UI components to adapt to the
2673
2925
  ```
2674
2926
 
2675
2927
  ```bash
2676
- npx @mui/codemod@next v5.0.0/rename-css-variables <path>
2928
+ npx @mui/codemod@latest v5.0.0/rename-css-variables <path>
2677
2929
  ```
2678
2930
 
2679
2931
  #### `base-hook-imports`
@@ -2686,7 +2938,7 @@ Updates the sources of the imports of the Base UI hooks to adapt to the new dir
2686
2938
  ```
2687
2939
 
2688
2940
  ```bash
2689
- npx @mui/codemod@next v5.0.0/base-hook-imports <path>
2941
+ npx @mui/codemod@latest v5.0.0/base-hook-imports <path>
2690
2942
  ```
2691
2943
 
2692
2944
  #### `joy-rename-classname-prefix`
@@ -2701,7 +2953,7 @@ Renames the classname prefix from `'Joy'` to `'Mui'` for Joy UI components.
2701
2953
  ```
2702
2954
 
2703
2955
  ```bash
2704
- npx @mui/codemod@next v5.0.0/joy-rename-classname-prefix <path>
2956
+ npx @mui/codemod@latest v5.0.0/joy-rename-classname-prefix <path>
2705
2957
  ```
2706
2958
 
2707
2959
  #### `joy-rename-row-prop`
@@ -2716,7 +2968,7 @@ Transforms `row` prop to `orientation` prop across `Card`, `List` and `RadioGrou
2716
2968
  ```
2717
2969
 
2718
2970
  ```bash
2719
- npx @mui/codemod@next v5.0.0/joy-rename-row-prop <path>
2971
+ npx @mui/codemod@latest v5.0.0/joy-rename-row-prop <path>
2720
2972
  ```
2721
2973
 
2722
2974
  #### `joy-avatar-remove-imgProps`
@@ -2734,7 +2986,7 @@ This change only affects Joy UI Avatar component.
2734
2986
  ```
2735
2987
 
2736
2988
  ```bash
2737
- npx @mui/codemod@next v5.0.0/joy-avatar-remove-imgProps <path>
2989
+ npx @mui/codemod@latest v5.0.0/joy-avatar-remove-imgProps <path>
2738
2990
  ```
2739
2991
 
2740
2992
  #### `joy-text-field-to-input`
@@ -2792,7 +3044,7 @@ This change only affects Joy UI components.
2792
3044
  ```
2793
3045
 
2794
3046
  ```bash
2795
- npx @mui/codemod@next v5.0.0/joy-text-field-to-input <path>
3047
+ npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>
2796
3048
  ```
2797
3049
 
2798
3050
  #### `joy-rename-components-to-slots`
@@ -2811,7 +3063,7 @@ This change only affects Joy UI components.
2811
3063
  ```
2812
3064
 
2813
3065
  ```bash
2814
- npx @mui/codemod@next v5.0.0/joy-rename-components-to-slots <path>
3066
+ npx @mui/codemod@latest v5.0.0/joy-rename-components-to-slots <path>
2815
3067
  ```
2816
3068
 
2817
3069
  The associated breaking change was done in [#34997](https://github.com/mui/material-ui/pull/34997).
@@ -2821,7 +3073,7 @@ The associated breaking change was done in [#34997](https://github.com/mui/mater
2821
3073
  Rename the imports of Date and Time Pickers from `@mui/lab` to `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
2822
3074
 
2823
3075
  ```bash
2824
- npx @mui/codemod@next v5.0.0/date-pickers-moved-to-x <path>
3076
+ npx @mui/codemod@latest v5.0.0/date-pickers-moved-to-x <path>
2825
3077
  ```
2826
3078
 
2827
3079
  #### `tree-view-moved-to-x`
@@ -2829,7 +3081,7 @@ npx @mui/codemod@next v5.0.0/date-pickers-moved-to-x <path>
2829
3081
  Rename the imports of Tree View from `@mui/lab` to `@mui/x-tree-view`.
2830
3082
 
2831
3083
  ```bash
2832
- npx @mui/codemod@next v5.0.0/tree-view-moved-to-x <path>
3084
+ npx @mui/codemod@latest v5.0.0/tree-view-moved-to-x <path>
2833
3085
  ```
2834
3086
 
2835
3087
  #### 🚀 `preset-safe`
@@ -2837,7 +3089,7 @@ npx @mui/codemod@next v5.0.0/tree-view-moved-to-x <path>
2837
3089
  A combination of all important transformers for migrating v4 to v5. ⚠️ This codemod should be run only once.
2838
3090
 
2839
3091
  ```bash
2840
- npx @mui/codemod@next v5.0.0/preset-safe <path|folder>
3092
+ npx @mui/codemod@latest v5.0.0/preset-safe <path|folder>
2841
3093
  ```
2842
3094
 
2843
3095
  The list includes these transformers
@@ -2904,7 +3156,7 @@ Imports and inserts `adaptV4Theme` into `createTheme()` (or `createMuiTheme`)
2904
3156
  ```
2905
3157
 
2906
3158
  ```bash
2907
- npx @mui/codemod@next v5.0.0/adapter-v4 <path>
3159
+ npx @mui/codemod@latest v5.0.0/adapter-v4 <path>
2908
3160
  ```
2909
3161
 
2910
3162
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -2921,7 +3173,7 @@ Renames `Autocomplete`'s `closeIcon` prop to `clearIcon`.
2921
3173
  <!-- #npm-tag-reference -->
2922
3174
 
2923
3175
  ```bash
2924
- npx @mui/codemod@next v5.0.0/autocomplete-rename-closeicon <path>
3176
+ npx @mui/codemod@latest v5.0.0/autocomplete-rename-closeicon <path>
2925
3177
  ```
2926
3178
 
2927
3179
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
@@ -2940,7 +3192,7 @@ Renames `Autocomplete`'s `getOptionSelected` to `isOptionEqualToValue`.
2940
3192
  <!-- #npm-tag-reference -->
2941
3193
 
2942
3194
  ```bash
2943
- npx @mui/codemod@next v5.0.0/autocomplete-rename-option <path>
3195
+ npx @mui/codemod@latest v5.0.0/autocomplete-rename-option <path>
2944
3196
  ```
2945
3197
 
2946
3198
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
@@ -2959,7 +3211,7 @@ Updates the `Avatar`'s `variant` value and `classes` key from 'circle' to 'circu
2959
3211
  <!-- #npm-tag-reference -->
2960
3212
 
2961
3213
  ```bash
2962
- npx @mui/codemod@next v5.0.0/avatar-circle-circular <path>
3214
+ npx @mui/codemod@latest v5.0.0/avatar-circle-circular <path>
2963
3215
  ```
2964
3216
 
2965
3217
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#avatar).
@@ -2994,7 +3246,7 @@ Renames the badge's props.
2994
3246
  <!-- #npm-tag-reference -->
2995
3247
 
2996
3248
  ```bash
2997
- npx @mui/codemod@next v5.0.0/badge-overlap-value <path>
3249
+ npx @mui/codemod@latest v5.0.0/badge-overlap-value <path>
2998
3250
  ```
2999
3251
 
3000
3252
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#badge).
@@ -3018,7 +3270,7 @@ This change only affects Base UI components.
3018
3270
  <!-- #npm-tag-reference -->
3019
3271
 
3020
3272
  ```bash
3021
- npx @mui/codemod@next v5.0.0/base-rename-components-to-slots <path>
3273
+ npx @mui/codemod@latest v5.0.0/base-rename-components-to-slots <path>
3022
3274
  ```
3023
3275
 
3024
3276
  The associated breaking change was done in [#34693](https://github.com/mui/material-ui/pull/34693).
@@ -3037,7 +3289,7 @@ Updates the Box API from separate system props to `sx`.
3037
3289
  <!-- #npm-tag-reference -->
3038
3290
 
3039
3291
  ```bash
3040
- npx @mui/codemod@next v5.0.0/box-borderradius-values <path>
3292
+ npx @mui/codemod@latest v5.0.0/box-borderradius-values <path>
3041
3293
  ```
3042
3294
 
3043
3295
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -3052,7 +3304,7 @@ Renames the Box `css` prop to `sx`
3052
3304
  ```
3053
3305
 
3054
3306
  ```bash
3055
- npx @mui/codemod@next v5.0.0/box-rename-css <path>
3307
+ npx @mui/codemod@latest v5.0.0/box-rename-css <path>
3056
3308
  ```
3057
3309
 
3058
3310
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -3073,7 +3325,7 @@ Renames the Box `grid*Gap` props.
3073
3325
  <!-- #npm-tag-reference -->
3074
3326
 
3075
3327
  ```bash
3076
- npx @mui/codemod@next v5.0.0/box-rename-gap <path>
3328
+ npx @mui/codemod@latest v5.0.0/box-rename-gap <path>
3077
3329
  ```
3078
3330
 
3079
3331
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -3090,7 +3342,7 @@ Removes the outdated `color` prop values.
3090
3342
  <!-- #npm-tag-reference -->
3091
3343
 
3092
3344
  ```bash
3093
- npx @mui/codemod@next v5.0.0/button-color-prop <path>
3345
+ npx @mui/codemod@latest v5.0.0/button-color-prop <path>
3094
3346
  ```
3095
3347
 
3096
3348
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#button).
@@ -3107,7 +3359,7 @@ Removes the Chip `variant` prop if the value is `"default"`.
3107
3359
  <!-- #npm-tag-reference -->
3108
3360
 
3109
3361
  ```bash
3110
- npx @mui/codemod@next v5.0.0/chip-variant-prop <path>
3362
+ npx @mui/codemod@latest v5.0.0/chip-variant-prop <path>
3111
3363
  ```
3112
3364
 
3113
3365
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#chip).
@@ -3124,7 +3376,7 @@ Renames the CircularProgress `static` variant to `determinate`.
3124
3376
  <!-- #npm-tag-reference -->
3125
3377
 
3126
3378
  ```bash
3127
- npx @mui/codemod@next v5.0.0/circularprogress-variant <path>
3379
+ npx @mui/codemod@latest v5.0.0/circularprogress-variant <path>
3128
3380
  ```
3129
3381
 
3130
3382
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#circularprogress).
@@ -3143,7 +3395,7 @@ Renames `Collapse`'s `collapsedHeight` prop to `collapsedSize`.
3143
3395
  <!-- #npm-tag-reference -->
3144
3396
 
3145
3397
  ```bash
3146
- npx @mui/codemod@next v5.0.0/collapse-rename-collapsedheight <path>
3398
+ npx @mui/codemod@latest v5.0.0/collapse-rename-collapsedheight <path>
3147
3399
  ```
3148
3400
 
3149
3401
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#collapse).
@@ -3162,7 +3414,7 @@ A generic codemod to rename any component prop.
3162
3414
  <!-- #npm-tag-reference -->
3163
3415
 
3164
3416
  ```bash
3165
- npx @mui/codemod@next v5.0.0/component-rename-prop <path> -- --component=Grid --from=prop --to=newProp
3417
+ npx @mui/codemod@latest v5.0.0/component-rename-prop <path> -- --component=Grid --from=prop --to=newProp
3166
3418
  ```
3167
3419
 
3168
3420
  #### `core-styles-import`
@@ -3175,7 +3427,7 @@ Renames private import from `core/styles/*` to `core/styles`
3175
3427
  ```
3176
3428
 
3177
3429
  ```bash
3178
- npx @mui/codemod@next v5.0.0/core-styles-import <path>
3430
+ npx @mui/codemod@latest v5.0.0/core-styles-import <path>
3179
3431
  ```
3180
3432
 
3181
3433
  #### `create-theme`
@@ -3188,7 +3440,7 @@ Renames the function `createMuiTheme()` to `createTheme()`
3188
3440
  ```
3189
3441
 
3190
3442
  ```bash
3191
- npx @mui/codemod@next v5.0.0/create-theme <path>
3443
+ npx @mui/codemod@latest v5.0.0/create-theme <path>
3192
3444
  ```
3193
3445
 
3194
3446
  #### `dialog-props`
@@ -3201,7 +3453,7 @@ Remove `disableBackdropClick` prop from `<Dialog>`
3201
3453
  ```
3202
3454
 
3203
3455
  ```bash
3204
- npx @mui/codemod@next v5.0.0/dialog-props <path>
3456
+ npx @mui/codemod@latest v5.0.0/dialog-props <path>
3205
3457
  ```
3206
3458
 
3207
3459
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -3216,7 +3468,7 @@ Remove `disableTypography` prop from `<DialogTitle>`
3216
3468
  ```
3217
3469
 
3218
3470
  ```bash
3219
- npx @mui/codemod@next v5.0.0/dialog-title-props <path>
3471
+ npx @mui/codemod@latest v5.0.0/dialog-title-props <path>
3220
3472
  ```
3221
3473
 
3222
3474
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -3233,7 +3485,7 @@ Adds `prepend: true` to Emotion `createCache`
3233
3485
  ```
3234
3486
 
3235
3487
  ```bash
3236
- npx @mui/codemod@next v5.0.0/create-theme <path>
3488
+ npx @mui/codemod@latest v5.0.0/create-theme <path>
3237
3489
  ```
3238
3490
 
3239
3491
  #### `expansion-panel-component`
@@ -3241,7 +3493,7 @@ npx @mui/codemod@next v5.0.0/create-theme <path>
3241
3493
  Renames `ExpansionPanel*` to `Accordion*`
3242
3494
 
3243
3495
  ```bash
3244
- npx @mui/codemod@next v5.0.0/expansion-panel-component <path>
3496
+ npx @mui/codemod@latest v5.0.0/expansion-panel-component <path>
3245
3497
  ```
3246
3498
 
3247
3499
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#expansionpanel).
@@ -3254,7 +3506,7 @@ You can find more details about this breaking change in [the migration guide](ht
3254
3506
  ```
3255
3507
 
3256
3508
  ```bash
3257
- npx @mui/codemod@next v5.0.0/fab-variant <path>
3509
+ npx @mui/codemod@latest v5.0.0/fab-variant <path>
3258
3510
  ```
3259
3511
 
3260
3512
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#fab).
@@ -3274,7 +3526,7 @@ Renames the `fade` style utility import and calls to `alpha()`.
3274
3526
  <!-- #npm-tag-reference -->
3275
3527
 
3276
3528
  ```bash
3277
- npx @mui/codemod@next v5.0.0/fade-rename-alpha <path>
3529
+ npx @mui/codemod@latest v5.0.0/fade-rename-alpha <path>
3278
3530
  ```
3279
3531
 
3280
3532
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#styles).
@@ -3291,7 +3543,7 @@ Renames `Grid`'s `justify` prop to `justifyContent`.
3291
3543
  <!-- #npm-tag-reference -->
3292
3544
 
3293
3545
  ```bash
3294
- npx @mui/codemod@next v5.0.0/grid-justify-justifycontent <path>
3546
+ npx @mui/codemod@latest v5.0.0/grid-justify-justifycontent <path>
3295
3547
  ```
3296
3548
 
3297
3549
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#grid).
@@ -3301,7 +3553,7 @@ You can find more details about this breaking change in [the migration guide](ht
3301
3553
  Renames `GridList*` to `ImageList*`
3302
3554
 
3303
3555
  ```bash
3304
- npx @mui/codemod@next v5.0.0/grid-list-component <path>
3556
+ npx @mui/codemod@latest v5.0.0/grid-list-component <path>
3305
3557
  ```
3306
3558
 
3307
3559
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#gridlist).
@@ -3318,7 +3570,7 @@ Adds `size="large"` if `size` is not defined to get the same appearance as v4.
3318
3570
  ```
3319
3571
 
3320
3572
  ```bash
3321
- npx @mui/codemod@next v5.0.0/icon-button-size <path>
3573
+ npx @mui/codemod@latest v5.0.0/icon-button-size <path>
3322
3574
  ```
3323
3575
 
3324
3576
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#iconbutton).
@@ -3383,7 +3635,7 @@ Replace JSS styling with `makeStyles` or `withStyles` to `styled` API.
3383
3635
  ```
3384
3636
 
3385
3637
  ```bash
3386
- npx @mui/codemod@next v5.0.0/jss-to-styled <path>
3638
+ npx @mui/codemod@latest v5.0.0/jss-to-styled <path>
3387
3639
  ```
3388
3640
 
3389
3641
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#1-use-styled-or-sx-api).
@@ -3455,7 +3707,7 @@ Migrate JSS styling with `makeStyles` or `withStyles` to the corresponding `tss-
3455
3707
  ```
3456
3708
 
3457
3709
  ```bash
3458
- npx @mui/codemod@next v5.0.0/jss-to-tss-react <path>
3710
+ npx @mui/codemod@latest v5.0.0/jss-to-tss-react <path>
3459
3711
  ```
3460
3712
 
3461
3713
  The following scenarios are not currently handled by this codemod and will be marked with a
@@ -3483,7 +3735,7 @@ Apply `underline="hover"` to `<Link />` that does not define `underline` prop (t
3483
3735
  ```
3484
3736
 
3485
3737
  ```bash
3486
- npx @mui/codemod@next v5.0.0/link-underline-hover <path>
3738
+ npx @mui/codemod@latest v5.0.0/link-underline-hover <path>
3487
3739
  ```
3488
3740
 
3489
3741
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#link).
@@ -3521,7 +3773,7 @@ Moves JSS imports to `@material-ui/styles`
3521
3773
  ```
3522
3774
 
3523
3775
  ```bash
3524
- npx @mui/codemod@next v5.0.0/material-ui-styles <path>
3776
+ npx @mui/codemod@latest v5.0.0/material-ui-styles <path>
3525
3777
  ```
3526
3778
 
3527
3779
  #### `material-ui-types`
@@ -3534,7 +3786,7 @@ Renames `Omit` import from `@material-ui/types` to `DistributiveOmit`
3534
3786
  ```
3535
3787
 
3536
3788
  ```bash
3537
- npx @mui/codemod@next v5.0.0/material-ui-types <path>
3789
+ npx @mui/codemod@latest v5.0.0/material-ui-types <path>
3538
3790
  ```
3539
3791
 
3540
3792
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#material-ui-types).
@@ -3551,7 +3803,7 @@ Removes `disableBackdropClick` and `onEscapeKeyDown` from `<Modal>`
3551
3803
  ```
3552
3804
 
3553
3805
  ```bash
3554
- npx @mui/codemod@next v5.0.0/modal-props <path>
3806
+ npx @mui/codemod@latest v5.0.0/modal-props <path>
3555
3807
  ```
3556
3808
 
3557
3809
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#modal).
@@ -3575,7 +3827,7 @@ or
3575
3827
  <!-- #npm-tag-reference -->
3576
3828
 
3577
3829
  ```bash
3578
- npx @mui/codemod@next v5.0.0/moved-lab-modules <path>
3830
+ npx @mui/codemod@latest v5.0.0/moved-lab-modules <path>
3579
3831
  ```
3580
3832
 
3581
3833
  You can find more details about this breaking change in the migration guide.
@@ -3600,7 +3852,7 @@ Renames `Pagination*`'s `shape` values from 'round' to 'circular'.
3600
3852
  ```
3601
3853
 
3602
3854
  ```bash
3603
- npx @mui/codemod@next v5.0.0/pagination-round-circular <path>
3855
+ npx @mui/codemod@latest v5.0.0/pagination-round-circular <path>
3604
3856
  ```
3605
3857
 
3606
3858
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#pagination).
@@ -3620,7 +3872,7 @@ Converts all `@mui/material` & `@mui/icons-material` top-level imports to path i
3620
3872
  ```
3621
3873
 
3622
3874
  ```bash
3623
- npx @mui/codemod@next v5.0.0/path-imports <path>
3875
+ npx @mui/codemod@latest v5.0.0/path-imports <path>
3624
3876
  ```
3625
3877
 
3626
3878
  Head to https://mui.com/material-ui/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -3639,7 +3891,7 @@ Fix private import paths.
3639
3891
  <!-- #npm-tag-reference -->
3640
3892
 
3641
3893
  ```bash
3642
- npx @mui/codemod@next v5.0.0/optimal-imports <path>
3894
+ npx @mui/codemod@latest v5.0.0/optimal-imports <path>
3643
3895
  ```
3644
3896
 
3645
3897
  #### `root-ref`
@@ -3647,7 +3899,7 @@ npx @mui/codemod@next v5.0.0/optimal-imports <path>
3647
3899
  Removes `RootRef` from the codebase.
3648
3900
 
3649
3901
  ```bash
3650
- npx @mui/codemod@next v5.0.0/root-ref <path>
3902
+ npx @mui/codemod@latest v5.0.0/root-ref <path>
3651
3903
  ```
3652
3904
 
3653
3905
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#rootref).
@@ -3662,7 +3914,7 @@ You can find more details about this breaking change in [the migration guide](ht
3662
3914
  ```
3663
3915
 
3664
3916
  ```bash
3665
- npx @mui/codemod@next v5.0.0/skeleton-variant <path>
3917
+ npx @mui/codemod@latest v5.0.0/skeleton-variant <path>
3666
3918
  ```
3667
3919
 
3668
3920
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#skeleton).
@@ -3672,7 +3924,7 @@ You can find more details about this breaking change in [the migration guide](ht
3672
3924
  Applies `StyledEngineProvider` to the files that contains `ThemeProvider`.
3673
3925
 
3674
3926
  ```bash
3675
- npx @mui/codemod@next v5.0.0/styled-engine-provider <path>
3927
+ npx @mui/codemod@latest v5.0.0/styled-engine-provider <path>
3676
3928
  ```
3677
3929
 
3678
3930
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-style-changes/#style-library).
@@ -3698,7 +3950,7 @@ Renames props in `Table*` components.
3698
3950
  ```
3699
3951
 
3700
3952
  ```bash
3701
- npx @mui/codemod@next v5.0.0/table-props <path>
3953
+ npx @mui/codemod@latest v5.0.0/table-props <path>
3702
3954
  ```
3703
3955
 
3704
3956
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#table).
@@ -3717,7 +3969,7 @@ Renames the `Tabs`'s `scrollButtons` prop values.
3717
3969
  ```
3718
3970
 
3719
3971
  ```bash
3720
- npx @mui/codemod@next v5.0.0/tabs-scroll-buttons <path>
3972
+ npx @mui/codemod@latest v5.0.0/tabs-scroll-buttons <path>
3721
3973
  ```
3722
3974
 
3723
3975
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#tabs).
@@ -3736,7 +3988,7 @@ Renames `TextField`'s rows props.
3736
3988
  ```
3737
3989
 
3738
3990
  ```bash
3739
- npx @mui/codemod@next v5.0.0/textarea-minmax-rows <path>
3991
+ npx @mui/codemod@latest v5.0.0/textarea-minmax-rows <path>
3740
3992
  ```
3741
3993
 
3742
3994
  You can find more details about this breaking change in the migration guide.
@@ -3749,7 +4001,7 @@ You can find more details about this breaking change in the migration guide.
3749
4001
  Adds `DefaultTheme` module augmentation to TypeScript projects.
3750
4002
 
3751
4003
  ```bash
3752
- npx @mui/codemod@next v5.0.0/theme-augment <path>
4004
+ npx @mui/codemod@latest v5.0.0/theme-augment <path>
3753
4005
  ```
3754
4006
 
3755
4007
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#material-ui-styles).
@@ -3768,7 +4020,7 @@ Updates breakpoint values to match new logic. ⚠️ This mod is not idempotent,
3768
4020
  <!-- #npm-tag-reference -->
3769
4021
 
3770
4022
  ```bash
3771
- npx @mui/codemod@next v5.0.0/theme-breakpoints <path>
4023
+ npx @mui/codemod@latest v5.0.0/theme-breakpoints <path>
3772
4024
  ```
3773
4025
 
3774
4026
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -3778,7 +4030,7 @@ You can find more details about this breaking change in [the migration guide](ht
3778
4030
  Renames `theme.breakpoints.width('md')` to `theme.breakpoints.values.md`.
3779
4031
 
3780
4032
  ```bash
3781
- npx @mui/codemod@next v5.0.0/theme-breakpoints-width <path>
4033
+ npx @mui/codemod@latest v5.0.0/theme-breakpoints-width <path>
3782
4034
  ```
3783
4035
 
3784
4036
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -3791,7 +4043,7 @@ You can find more details about this breaking change in [the migration guide](ht
3791
4043
  ```
3792
4044
 
3793
4045
  ```bash
3794
- npx @mui/codemod@next v5.0.0/theme-options <path>
4046
+ npx @mui/codemod@latest v5.0.0/theme-options <path>
3795
4047
  ```
3796
4048
 
3797
4049
  #### `theme-palette-mode`
@@ -3813,7 +4065,7 @@ Renames `type` to `mode`.
3813
4065
  ```
3814
4066
 
3815
4067
  ```bash
3816
- npx @mui/codemod@next v5.0.0/theme-palette-mode <path>
4068
+ npx @mui/codemod@latest v5.0.0/theme-palette-mode <path>
3817
4069
  ```
3818
4070
 
3819
4071
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -3823,7 +4075,7 @@ You can find more details about this breaking change in [the migration guide](ht
3823
4075
  Renames `MuiThemeProvider` to `ThemeProvider`.
3824
4076
 
3825
4077
  ```bash
3826
- npx @mui/codemod@next v5.0.0/theme-provider <path>
4078
+ npx @mui/codemod@latest v5.0.0/theme-provider <path>
3827
4079
  ```
3828
4080
 
3829
4081
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#material-ui-core-styles).
@@ -3842,7 +4094,7 @@ Removes the 'px' suffix from some template strings.
3842
4094
  <!-- #npm-tag-reference -->
3843
4095
 
3844
4096
  ```bash
3845
- npx @mui/codemod@next v5.0.0/theme-spacing <path>
4097
+ npx @mui/codemod@latest v5.0.0/theme-spacing <path>
3846
4098
  ```
3847
4099
 
3848
4100
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -3857,7 +4109,7 @@ Renames `theme.typography.round($number)` to `Math.round($number * 1e5) / 1e5`.
3857
4109
  ```
3858
4110
 
3859
4111
  ```bash
3860
- npx @mui/codemod@next v5.0.0/theme-typography-round <path>
4112
+ npx @mui/codemod@latest v5.0.0/theme-typography-round <path>
3861
4113
  ```
3862
4114
 
3863
4115
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -3875,7 +4127,7 @@ Converts all `@mui/material` submodule imports to the root module:
3875
4127
  <!-- #npm-tag-reference -->
3876
4128
 
3877
4129
  ```bash
3878
- npx @mui/codemod@next v5.0.0/top-level-imports <path>
4130
+ npx @mui/codemod@latest v5.0.0/top-level-imports <path>
3879
4131
  ```
3880
4132
 
3881
4133
  Head to https://mui.com/material-ui/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -3885,7 +4137,7 @@ Head to https://mui.com/material-ui/guides/minimizing-bundle-size/ to understand
3885
4137
  Renames import `transitions` to `createTransitions`
3886
4138
 
3887
4139
  ```bash
3888
- npx @mui/codemod@next v5.0.0/transitions <path>
4140
+ npx @mui/codemod@latest v5.0.0/transitions <path>
3889
4141
  ```
3890
4142
 
3891
4143
  #### `use-autocomplete`
@@ -3898,7 +4150,7 @@ Renames `useAutocomplete` related import from lab to core
3898
4150
  ```
3899
4151
 
3900
4152
  ```bash
3901
- npx @mui/codemod@next v5.0.0/use-autocomplete <path>
4153
+ npx @mui/codemod@latest v5.0.0/use-autocomplete <path>
3902
4154
  ```
3903
4155
 
3904
4156
  #### `use-transitionprops`
@@ -3927,7 +4179,7 @@ Updates Dialog, Menu, Popover, and Snackbar to use the `TransitionProps` prop to
3927
4179
  <!-- #npm-tag-reference -->
3928
4180
 
3929
4181
  ```bash
3930
- npx @mui/codemod@next v5.0.0/use-transitionprops <path>
4182
+ npx @mui/codemod@latest v5.0.0/use-transitionprops <path>
3931
4183
  ```
3932
4184
 
3933
4185
  You can find more details about this breaking change in [the migration guide](/material-ui/migration/v5-component-changes/#dialog).
@@ -3957,7 +4209,7 @@ The diff should look like this:
3957
4209
  <!-- #npm-tag-reference -->
3958
4210
 
3959
4211
  ```bash
3960
- npx @mui/codemod@next v5.0.0/variant-prop <path>
4212
+ npx @mui/codemod@latest v5.0.0/variant-prop <path>
3961
4213
  ```
3962
4214
 
3963
4215
  #### `with-mobile-dialog`
@@ -3971,7 +4223,7 @@ Removes imported `withMobileDialog`, and inserts hardcoded version to prevent ap
3971
4223
  ```
3972
4224
 
3973
4225
  ```bash
3974
- npx @mui/codemod@next v5.0.0/with-mobile-dialog <path>
4226
+ npx @mui/codemod@latest v5.0.0/with-mobile-dialog <path>
3975
4227
  ```
3976
4228
 
3977
4229
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -3987,7 +4239,7 @@ Removes `withWidth` import, and inserts hardcoded version to prevent application
3987
4239
  ```
3988
4240
 
3989
4241
  ```bash
3990
- npx @mui/codemod@next v5.0.0/with-width <path>
4242
+ npx @mui/codemod@latest v5.0.0/with-width <path>
3991
4243
  ```
3992
4244
 
3993
4245
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-style-changes/#material-ui-core-styles).
@@ -4048,7 +4300,7 @@ Replace every occurrence of `material-ui` related package with the new package n
4048
4300
  ```
4049
4301
 
4050
4302
  ```bash
4051
- npx @mui/codemod@next v5.0.0/mui-replace <path>
4303
+ npx @mui/codemod@latest v5.0.0/mui-replace <path>
4052
4304
  ```
4053
4305
 
4054
4306
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/migration-v4/#update-material-ui-version).
@@ -4068,7 +4320,7 @@ The diff should look like this:
4068
4320
  <!-- #npm-tag-reference -->
4069
4321
 
4070
4322
  ```bash
4071
- npx @mui/codemod@next v4.0.0/theme-spacing-api <path>
4323
+ npx @mui/codemod@latest v4.0.0/theme-spacing-api <path>
4072
4324
  ```
4073
4325
 
4074
4326
  This codemod tries to perform a basic expression simplification which can be improved for expressions that use more than one operation.
@@ -4095,7 +4347,7 @@ Converts all `@material-ui/core` imports more than 1 level deep to the optimal f
4095
4347
  <!-- #npm-tag-reference -->
4096
4348
 
4097
4349
  ```bash
4098
- npx @mui/codemod@next v4.0.0/optimal-imports <path>
4350
+ npx @mui/codemod@latest v4.0.0/optimal-imports <path>
4099
4351
  ```
4100
4352
 
4101
4353
  Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -4113,7 +4365,7 @@ Converts all `@material-ui/core` submodule imports to the root module:
4113
4365
  <!-- #npm-tag-reference -->
4114
4366
 
4115
4367
  ```bash
4116
- npx @mui/codemod@next v4.0.0/top-level-imports <path>
4368
+ npx @mui/codemod@latest v4.0.0/top-level-imports <path>
4117
4369
  ```
4118
4370
 
4119
4371
  Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -4134,7 +4386,7 @@ The diff should look like this:
4134
4386
  <!-- #npm-tag-reference -->
4135
4387
 
4136
4388
  ```bash
4137
- npx @mui/codemod@next v1.0.0/import-path <path>
4389
+ npx @mui/codemod@latest v1.0.0/import-path <path>
4138
4390
  ```
4139
4391
 
4140
4392
  **Notice**: if you are migrating from pre-v1.0, and your imports use `material-ui`, you will need to manually find and replace all references to `material-ui` in your code to `@material-ui/core`. E.g.:
@@ -4161,7 +4413,7 @@ The diff should look like this:
4161
4413
  <!-- #npm-tag-reference -->
4162
4414
 
4163
4415
  ```bash
4164
- npx @mui/codemod@next v1.0.0/color-imports <path>
4416
+ npx @mui/codemod@latest v1.0.0/color-imports <path>
4165
4417
  ```
4166
4418
 
4167
4419
  **additional options**
@@ -4169,7 +4421,7 @@ npx @mui/codemod@next v1.0.0/color-imports <path>
4169
4421
  <!-- #npm-tag-reference -->
4170
4422
 
4171
4423
  ```bash
4172
- npx @mui/codemod@next v1.0.0/color-imports <path> -- --importPath='mui/styles/colors' --targetPath='mui/colors'
4424
+ npx @mui/codemod@latest v1.0.0/color-imports <path> -- --importPath='mui/styles/colors' --targetPath='mui/colors'
4173
4425
  ```
4174
4426
 
4175
4427
  #### `svg-icon-imports`
@@ -4187,7 +4439,7 @@ The diff should look like this:
4187
4439
  <!-- #npm-tag-reference -->
4188
4440
 
4189
4441
  ```bash
4190
- npx @mui/codemod@next v1.0.0/svg-icon-imports <path>
4442
+ npx @mui/codemod@latest v1.0.0/svg-icon-imports <path>
4191
4443
  ```
4192
4444
 
4193
4445
  #### `menu-item-primary-text`
@@ -4205,7 +4457,7 @@ The diff should look like this:
4205
4457
  <!-- #npm-tag-reference -->
4206
4458
 
4207
4459
  ```bash
4208
- npx @mui/codemod@next v1.0.0/menu-item-primary-text <path>
4460
+ npx @mui/codemod@latest v1.0.0/menu-item-primary-text <path>
4209
4461
  ```
4210
4462
 
4211
4463
  ### v0.15.0
@@ -4229,5 +4481,5 @@ The diff should look like this:
4229
4481
  <!-- #npm-tag-reference -->
4230
4482
 
4231
4483
  ```bash
4232
- npx @mui/codemod@next v0.15.0/import-path <path>
4484
+ npx @mui/codemod@latest v0.15.0/import-path <path>
4233
4485
  ```