@mui/codemod 5.15.14 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +285 -95
  2. package/node/deprecations/all/deprecations-all.js +6 -0
  3. package/node/deprecations/all/postcss.config.js +4 -1
  4. package/node/deprecations/backdrop-props/backdrop-props.js +80 -0
  5. package/node/deprecations/backdrop-props/index.js +13 -0
  6. package/node/deprecations/backdrop-props/test-cases/actual.js +33 -0
  7. package/node/deprecations/backdrop-props/test-cases/expected.js +38 -0
  8. package/node/deprecations/backdrop-props/test-cases/theme.actual.js +19 -0
  9. package/node/deprecations/backdrop-props/test-cases/theme.expected.js +21 -0
  10. package/node/deprecations/badge-props/badge-props.js +22 -0
  11. package/node/deprecations/badge-props/index.js +13 -0
  12. package/node/deprecations/badge-props/test-cases/actual.js +59 -0
  13. package/node/deprecations/badge-props/test-cases/expected.js +44 -0
  14. package/node/deprecations/badge-props/test-cases/theme.actual.js +73 -0
  15. package/node/deprecations/badge-props/test-cases/theme.expected.js +58 -0
  16. package/node/deprecations/button-group-classes/button-group-classes.js +77 -0
  17. package/node/deprecations/button-group-classes/index.js +13 -0
  18. package/node/deprecations/button-group-classes/postcss-plugin.js +78 -0
  19. package/node/deprecations/button-group-classes/postcss.config.js +8 -0
  20. package/node/deprecations/button-group-classes/test-cases/actual.js +37 -0
  21. package/node/deprecations/button-group-classes/test-cases/expected.js +37 -0
  22. package/node/deprecations/step-label-props/index.js +13 -0
  23. package/node/deprecations/step-label-props/step-label-props.js +22 -0
  24. package/node/deprecations/step-label-props/test-cases/actual.js +21 -0
  25. package/node/deprecations/step-label-props/test-cases/expected.js +19 -0
  26. package/node/deprecations/step-label-props/test-cases/theme.actual.js +23 -0
  27. package/node/deprecations/step-label-props/test-cases/theme.expected.js +22 -0
  28. package/node/v1.0.0/color-imports.test/actual.js +1 -1
  29. package/node/v1.0.0/color-imports.test/expected.js +1 -1
  30. package/node/v1.0.0/import-path.test/actual.js +1 -1
  31. package/node/v1.0.0/import-path.test/expected.js +1 -1
  32. package/node/v4.0.0/optimal-imports.test/actual.js +1 -1
  33. package/node/v4.0.0/optimal-imports.test/expected.js +1 -1
  34. package/node/v4.0.0/top-level-imports.test/actual.js +1 -1
  35. package/node/v4.0.0/top-level-imports.test/expected.js +1 -1
  36. package/node/v5.0.0/base-hook-imports.test/actual.js +1 -1
  37. package/node/v5.0.0/base-hook-imports.test/expected.js +1 -1
  38. package/node/v5.0.0/base-remove-unstyled-suffix.test/actual.js +1 -1
  39. package/node/v5.0.0/base-remove-unstyled-suffix.test/expected.js +1 -1
  40. package/node/v5.0.0/base-use-named-exports.test/actual-with-warning.js +1 -1
  41. package/node/v5.0.0/base-use-named-exports.test/actual.js +1 -1
  42. package/node/v5.0.0/box-sx-prop.test/actual.js +1 -1
  43. package/node/v5.0.0/box-sx-prop.test/alias-actual.js +1 -1
  44. package/node/v5.0.0/box-sx-prop.test/alias-expected.js +1 -1
  45. package/node/v5.0.0/box-sx-prop.test/expected.js +1 -1
  46. package/node/v5.0.0/date-pickers-moved-to-x.test/actual-sub-module.js +1 -1
  47. package/node/v5.0.0/jss-to-styled.test/Anonymous.actual.js +1 -1
  48. package/node/v5.0.0/jss-to-styled.test/Anonymous.expected.js +1 -1
  49. package/node/v5.0.0/jss-to-styled.test/eighth.actual.js +1 -1
  50. package/node/v5.0.0/jss-to-styled.test/eighth.expected.js +1 -1
  51. package/node/v5.0.0/jss-to-styled.test/eleventh.actual.js +1 -1
  52. package/node/v5.0.0/jss-to-styled.test/eleventh.expected.js +1 -1
  53. package/node/v5.0.0/jss-to-styled.test/exportClass.actual.js +1 -1
  54. package/node/v5.0.0/jss-to-styled.test/exportClass.expected.js +1 -1
  55. package/node/v5.0.0/jss-to-styled.test/exportFunction.actual.js +1 -1
  56. package/node/v5.0.0/jss-to-styled.test/exportFunction.expected.js +1 -1
  57. package/node/v5.0.0/jss-to-styled.test/fifth.actual.js +1 -1
  58. package/node/v5.0.0/jss-to-styled.test/fifth.expected.js +1 -1
  59. package/node/v5.0.0/jss-to-styled.test/first.actual.js +1 -1
  60. package/node/v5.0.0/jss-to-styled.test/first.expected.js +1 -1
  61. package/node/v5.0.0/jss-to-styled.test/fourth.actual.js +1 -1
  62. package/node/v5.0.0/jss-to-styled.test/fourth.expected.js +1 -1
  63. package/node/v5.0.0/jss-to-styled.test/multipleWithStyles.actual.js +1 -1
  64. package/node/v5.0.0/jss-to-styled.test/multipleWithStyles.expected.js +1 -1
  65. package/node/v5.0.0/jss-to-styled.test/nineth.actual.js +1 -1
  66. package/node/v5.0.0/jss-to-styled.test/nineth.expected.js +1 -1
  67. package/node/v5.0.0/jss-to-styled.test/second.actual.js +1 -1
  68. package/node/v5.0.0/jss-to-styled.test/second.expected.js +1 -1
  69. package/node/v5.0.0/jss-to-styled.test/seventh.actual.js +1 -1
  70. package/node/v5.0.0/jss-to-styled.test/seventh.expected.js +1 -1
  71. package/node/v5.0.0/jss-to-styled.test/sixth.actual.js +1 -1
  72. package/node/v5.0.0/jss-to-styled.test/sixth.expected.js +1 -1
  73. package/node/v5.0.0/jss-to-styled.test/tenth.actual.js +1 -1
  74. package/node/v5.0.0/jss-to-styled.test/tenth.expected.js +1 -1
  75. package/node/v5.0.0/jss-to-styled.test/third.actual.js +1 -1
  76. package/node/v5.0.0/jss-to-styled.test/third.expected.js +1 -1
  77. package/node/v5.0.0/jss-to-styled.test/twelfth.actual.js +1 -1
  78. package/node/v5.0.0/jss-to-styled.test/withCreateStyles.actual.js +1 -1
  79. package/node/v5.0.0/jss-to-styled.test/withCreateStyles.expected.js +1 -1
  80. package/node/v5.0.0/jss-to-styled.test/withCreateStyles1.actual.js +1 -1
  81. package/node/v5.0.0/jss-to-styled.test/withCreateStyles1.expected.js +1 -1
  82. package/node/v5.0.0/jss-to-styled.test/withCreateStyles2.actual.js +1 -1
  83. package/node/v5.0.0/jss-to-styled.test/withCreateStyles2.expected.js +1 -1
  84. package/node/v5.0.0/jss-to-styled.test/withCreateStyles3.actual.js +1 -1
  85. package/node/v5.0.0/jss-to-styled.test/withCreateStyles3.expected.js +1 -1
  86. package/node/v5.0.0/jss-to-tss-react.test/actual-todo-comments.js +1 -1
  87. package/node/v5.0.0/jss-to-tss-react.test/actual-typescript-docs-example.js +1 -1
  88. package/node/v5.0.0/jss-to-tss-react.test/actual-typescript.js +1 -1
  89. package/node/v5.0.0/jss-to-tss-react.test/expected-todo-comments.js +1 -1
  90. package/node/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.js +1 -1
  91. package/node/v5.0.0/jss-to-tss-react.test/expected-typescript.js +1 -1
  92. package/node/v5.0.0/preset-safe.test/actual.js +1 -1
  93. package/node/v5.0.0/preset-safe.test/expected.js +1 -1
  94. package/node/v5.0.0/styled-engine-provider.test/mui-theme-provider.actual.js +1 -1
  95. package/node/v5.0.0/styled-engine-provider.test/mui-theme-provider.expected.js +1 -1
  96. package/node/v5.0.0/styled-engine-provider.test/theme-provider.actual.js +1 -1
  97. package/node/v5.0.0/styled-engine-provider.test/theme-provider.expected.js +1 -1
  98. package/node/v5.0.0/theme-spacing.test/large-actual.js +1 -1
  99. package/node/v5.0.0/theme-spacing.test/large-expected.js +1 -1
  100. package/node/v5.0.0/top-level-imports.test/actual.js +1 -1
  101. package/node/v5.0.0/top-level-imports.test/expected.js +1 -1
  102. package/node/v5.0.0/transitions.test/actual.js +1 -1
  103. package/node/v5.0.0/transitions.test/expected.js +1 -1
  104. package/node/v5.0.0/tree-view-moved-to-x.test/actual-sub-module.js +1 -1
  105. package/node/v5.0.0/use-autocomplete.test/expected.js +1 -1
  106. package/node/v5.0.0/variant-prop.test/actual.js +1 -1
  107. package/node/v5.0.0/variant-prop.test/expected.js +1 -1
  108. package/node/v6.0.0/all/index.js +13 -0
  109. package/node/v6.0.0/all/postcss.config.js +9 -0
  110. package/node/v6.0.0/all/v6-all.js +17 -0
  111. package/package.json +6 -6
package/README.md CHANGED
@@ -14,7 +14,7 @@ Some of the codemods also run [postcss](https://github.com/postcss/postcss) plug
14
14
  <!-- #default-branch-switch -->
15
15
 
16
16
  ```bash
17
- npx @mui/codemod@latest <codemod> <paths...>
17
+ npx @mui/codemod@next <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@latest v4.0.0/theme-spacing-api src
38
- npx @mui/codemod@latest v5.0.0/component-rename-prop src --
37
+ npx @mui/codemod@next v4.0.0/theme-spacing-api src
38
+ npx @mui/codemod@next v5.0.0/component-rename-prop src --
39
39
  --component=Grid --from=prop --to=newProp
40
- npx @mui/codemod@latest v5.0.0/preset-safe src --parser=flow
40
+ npx @mui/codemod@next v5.0.0/preset-safe src --parser=flow
41
41
  ```
42
42
 
43
43
  ### jscodeshift options
@@ -45,7 +45,7 @@ Examples:
45
45
  To pass more options directly to jscodeshift, use `--jscodeshift="..."`. For example:
46
46
 
47
47
  ```bash
48
- npx @mui/codemod@latest --jscodeshift="--run-in-band --verbose=2"
48
+ npx @mui/codemod@next --jscodeshift="--run-in-band --verbose=2"
49
49
  ```
50
50
 
51
51
  See all available options [here](https://github.com/facebook/jscodeshift#usage-cli).
@@ -56,12 +56,13 @@ Options to [recast](https://github.com/benjamn/recast)'s printer can be provided
56
56
  through jscodeshift's `printOptions` command line argument
57
57
 
58
58
  ```bash
59
- npx @mui/codemod@latest <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"double\"}'"
59
+ npx @mui/codemod@next <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"double\"}'"
60
60
  ```
61
61
 
62
62
  ## Included scripts
63
63
 
64
64
  - [Deprecation](#deprecations)
65
+ - [v6](#v600)
65
66
  - [v5](#v500)
66
67
  - [v4](#v400)
67
68
  - [v1](#v100)
@@ -70,7 +71,7 @@ npx @mui/codemod@latest <transform> <path> --jscodeshift="--printOptions='{\"quo
70
71
  ### Deprecations
71
72
 
72
73
  ```bash
73
- npx @mui/codemod@latest deprecations/all <path>
74
+ npx @mui/codemod@next deprecations/all <path>
74
75
  ```
75
76
 
76
77
  #### `all`
@@ -89,7 +90,7 @@ A combination of all deprecations.
89
90
  ```
90
91
 
91
92
  ```bash
92
- npx @mui/codemod@latest deprecations/accordion-props <path>
93
+ npx @mui/codemod@next deprecations/accordion-props <path>
93
94
  ```
94
95
 
95
96
  #### `accordion-summary-classes`
@@ -133,7 +134,7 @@ CSS transforms:
133
134
  ```
134
135
 
135
136
  ```bash
136
- npx @mui/codemod@latest deprecations/accordion-summary-classes <path>
137
+ npx @mui/codemod@next deprecations/accordion-summary-classes <path>
137
138
  ```
138
139
 
139
140
  #### `alert-classes`
@@ -229,7 +230,7 @@ CSS transforms:
229
230
  ```
230
231
 
231
232
  ```bash
232
- npx @mui/codemod@latest deprecations/alert-classes <path>
233
+ npx @mui/codemod@next deprecations/alert-classes <path>
233
234
  ```
234
235
 
235
236
  #### `alert-props`
@@ -255,7 +256,7 @@ npx @mui/codemod@latest deprecations/alert-classes <path>
255
256
  ```
256
257
 
257
258
  ```bash
258
- npx @mui/codemod@latest deprecations/alert-props <path>
259
+ npx @mui/codemod@next deprecations/alert-props <path>
259
260
  ```
260
261
 
261
262
  #### `avatar-props`
@@ -274,6 +275,45 @@ npx @mui/codemod@latest deprecations/alert-props <path>
274
275
  />;
275
276
  ```
276
277
 
278
+ #### `backdrop-props`
279
+
280
+ ```diff
281
+ <Backdrop
282
+ - TransitionComponent={CustomTransition}
283
+ + slots={{ transition: CustomTransition }}
284
+ />
285
+ ```
286
+
287
+ ```bash
288
+ npx @mui/codemod@next deprecations/backdrop-props <path>
289
+ ```
290
+
291
+ #### `badge-props`
292
+
293
+ ```diff
294
+ <Badge
295
+ - components={{ Root: CustomRoot }}
296
+ + slots={{ root: CustomRoot }}
297
+ - componentsProps={{ root: { testid: 'test-id' } }}
298
+ + slotProps={{ root: { testid: 'test-id' } }}
299
+ />
300
+ ```
301
+
302
+ ```diff
303
+ MuiBadge: {
304
+ defaultProps: {
305
+ - components: { Root: CustomRoot }
306
+ + slots: { root: CustomRoot },
307
+ - componentsProps: { root: { testid: 'test-id' }}
308
+ + slotProps: { root: { testid: 'test-id' } },
309
+ },
310
+ },
311
+ ```
312
+
313
+ ```bash
314
+ npx @mui/codemod@next deprecations/badge-props <path>
315
+ ```
316
+
277
317
  #### `button-classes`
278
318
 
279
319
  JS transforms:
@@ -494,7 +534,133 @@ CSS transforms:
494
534
  ```
495
535
 
496
536
  ```bash
497
- npx @mui/codemod@latest deprecations/button-classes <path>
537
+ npx @mui/codemod@next deprecations/button-classes <path>
538
+ ```
539
+
540
+ #### `button-group-classes`
541
+
542
+ JS transforms:
543
+
544
+ ```diff
545
+ import { buttonGroupClasses } from '@mui/material/ButtonGroup';
546
+
547
+ MuiButtonGroup: {
548
+ styleOverrides: {
549
+ root: {
550
+ - [`& .${buttonGroupClasses.groupedHorizontal}`]: {
551
+ + [`&.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
552
+ color: 'red',
553
+ },
554
+ - [`& .${buttonGroupClasses.groupedVertical}`]: {
555
+ + [`&.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
556
+ color: 'red',
557
+ },
558
+ - [`& .${buttonGroupClasses.groupedText}`]: {
559
+ + [`&.${buttonGroupClasses.text} > .${buttonGroupClasses.grouped}`]: {
560
+ color: 'red',
561
+ },
562
+ - [`& .${buttonGroupClasses.groupedTextHorizontal}`]: {
563
+ + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
564
+ color: 'red',
565
+ },
566
+ - [`& .${buttonGroupClasses.groupedTextVertical}`]: {
567
+ + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
568
+ color: 'red',
569
+ },
570
+ - [`& .${buttonGroupClasses.groupedTextPrimary}`]: {
571
+ + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
572
+ color: 'red',
573
+ },
574
+ - [`& .${buttonGroupClasses.groupedTextSecondary}`]: {
575
+ + [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
576
+ color: 'red',
577
+ },
578
+ - [`& .${buttonGroupClasses.groupedOutlined}`]: {
579
+ + [`&.${buttonGroupClasses.outlined} > .${buttonGroupClasses.grouped}`]: {
580
+ color: 'red',
581
+ },
582
+ - [`& .${buttonGroupClasses.groupedOutlinedHorizontal}`]: {
583
+ + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
584
+ color: 'red',
585
+ },
586
+ - [`& .${buttonGroupClasses.groupedOutlinedVertical}`]: {
587
+ + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
588
+ color: 'red',
589
+ },
590
+ - [`& .${buttonGroupClasses.groupedOutlinedPrimary}`]: {
591
+ + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
592
+ color: 'red',
593
+ },
594
+ - [`& .${buttonGroupClasses.groupedOutlinedSecondary}`]: {
595
+ + [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
596
+ color: 'red',
597
+ },
598
+ - [`& .${buttonGroupClasses.groupedContained}`]: {
599
+ + [`&.${buttonGroupClasses.contained} > .${buttonGroupClasses.grouped}`]: {
600
+ color: 'red',
601
+ },
602
+ - [`& .${buttonGroupClasses.groupedContainedHorizontal}`]: {
603
+ + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
604
+ color: 'red',
605
+ },
606
+ - [`& .${buttonGroupClasses.groupedContainedVertical}`]: {
607
+ + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
608
+ color: 'red',
609
+ },
610
+ - [`& .${buttonGroupClasses.groupedContainedPrimary}`]: {
611
+ + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
612
+ color: 'red',
613
+ },
614
+ - [`& .${buttonGroupClasses.groupedContainedSecondary}`]: {
615
+ + [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
616
+ color: 'red',
617
+ },
618
+ },
619
+ },
620
+ },
621
+ ```
622
+
623
+ CSS transforms:
624
+
625
+ ```diff
626
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedHorizontal
627
+ +.MuiButtonGroup-root.MuiButtonGroup-horizontal > .MuiButtonGroup-grouped
628
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedVertical
629
+ +.MuiButtonGroup-root.MuiButtonGroup-vertical > .MuiButtonGroup-grouped
630
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedText
631
+ +.MuiButtonGroup-root.MuiButtonGroup-text > .MuiButtonGroup-grouped
632
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedTextHorizontal
633
+ +.MuiButtonGroup-root.MuiButtonGroup-text.MuiButtonGroup-horizontal > .MuiButtonGroup-grouped
634
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedTextVertical
635
+ +.MuiButtonGroup-root.MuiButtonGroup-text.MuiButtonGroup-vertical > .MuiButtonGroup-grouped
636
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedTextPrimary
637
+ +.MuiButtonGroup-root.MuiButtonGroup-text.MuiButtonGroup-colorPrimary > .MuiButtonGroup-grouped
638
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedTextSecondary
639
+ +.MuiButtonGroup-root.MuiButtonGroup-text.MuiButtonGroup-colorSecondary > .MuiButtonGroup-grouped
640
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedOutlined
641
+ +.MuiButtonGroup-root.MuiButtonGroup-outlined > .MuiButtonGroup-grouped
642
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedOutlinedHorizontal
643
+ +.MuiButtonGroup-root.MuiButtonGroup-outlined.MuiButtonGroup-horizontal > .MuiButtonGroup-grouped
644
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedOutlinedVertical
645
+ +.MuiButtonGroup-root.MuiButtonGroup-outlined.MuiButtonGroup-vertical > .MuiButtonGroup-grouped
646
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedOutlinedPrimary
647
+ +.MuiButtonGroup-root.MuiButtonGroup-outlined.MuiButtonGroup-colorPrimary > .MuiButtonGroup-grouped
648
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedOutlinedSecondary
649
+ +.MuiButtonGroup-root.MuiButtonGroup-outlined.MuiButtonGroup-colorSecondary > .MuiButtonGroup-grouped
650
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedContained
651
+ +.MuiButtonGroup-root.MuiButtonGroup-contained > .MuiButtonGroup-grouped
652
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedContainedHorizontal
653
+ +.MuiButtonGroup-root.MuiButtonGroup-contained.MuiButtonGroup-horizontal > .MuiButtonGroup-grouped
654
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedContainedVertical
655
+ +.MuiButtonGroup-root.MuiButtonGroup-contained.MuiButtonGroup-vertical > .MuiButtonGroup-grouped
656
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedContainedPrimary
657
+ +.MuiButtonGroup-root.MuiButtonGroup-contained.MuiButtonGroup-colorPrimary > .MuiButtonGroup-grouped
658
+ -.MuiButtonGroup-root .MuiButtonGroup-groupedContainedSecondary
659
+ +.MuiButtonGroup-root.MuiButtonGroup-contained.MuiButtonGroup-colorSecondary > .MuiButtonGroup-grouped
660
+ ```
661
+
662
+ ```bash
663
+ npx @mui/codemod@latest deprecations/button-group-classes <path>
498
664
  ```
499
665
 
500
666
  #### `chip-classes`
@@ -676,7 +842,7 @@ CSS transforms:
676
842
  ```
677
843
 
678
844
  ```bash
679
- npx @mui/codemod@latest deprecations/chip-classes <path>
845
+ npx @mui/codemod@next deprecations/chip-classes <path>
680
846
  ```
681
847
 
682
848
  #### `divider-props`
@@ -689,7 +855,7 @@ npx @mui/codemod@latest deprecations/chip-classes <path>
689
855
  ```
690
856
 
691
857
  ```bash
692
- npx @mui/codemod@latest deprecations/divider-props <path>
858
+ npx @mui/codemod@next deprecations/divider-props <path>
693
859
  ```
694
860
 
695
861
  #### `pagination-item-classes`
@@ -750,11 +916,10 @@ CSS transforms:
750
916
  +.MuiPaginationItem-outlined.MuiPaginationItem-primary
751
917
  -.MuiPaginationItem-outlinedSecondary
752
918
  +.MuiPaginationItem-outlined.MuiPaginationItem-secondary
753
- />
754
919
  ```
755
920
 
756
921
  ```bash
757
- npx @mui/codemod@latest deprecations/pagination-item-classes <path>
922
+ npx @mui/codemod@next deprecations/pagination-item-classes <path>
758
923
  ```
759
924
 
760
925
  #### `slider-props`
@@ -780,9 +945,34 @@ npx @mui/codemod@latest deprecations/pagination-item-classes <path>
780
945
  ```
781
946
 
782
947
  ```bash
783
- npx @mui/codemod@latest deprecations/slider-props <path>
948
+ npx @mui/codemod@next deprecations/slider-props <path>
949
+ ```
950
+
951
+ #### `step-label-props`
952
+
953
+ ```diff
954
+ <StepLabel
955
+ - componentsProps={{ label: labelProps }}
956
+ + slotProps={{ label: labelProps }}
957
+ />
958
+ ```
959
+
960
+ ```diff
961
+ MuiStepLabel: {
962
+ defaultProps: {
963
+ - componentsProps={{ label: labelProps }}
964
+ + slotProps={{ label: labelProps }}
965
+ },
966
+ },
967
+ ```
968
+
969
+ ```bash
970
+ npx @mui/codemod@latest deprecations/step-label-props <path>
971
+
784
972
  ```
785
973
 
974
+ ### v6.0.0
975
+
786
976
  ### v5.0.0
787
977
 
788
978
  #### `base-use-named-exports`
@@ -801,7 +991,7 @@ This codemod updates the import and re-export statements.
801
991
  ```
802
992
 
803
993
  ```bash
804
- npx @mui/codemod@latest v5.0.0/base-use-named-exports <path>
994
+ npx @mui/codemod@next v5.0.0/base-use-named-exports <path>
805
995
  ```
806
996
 
807
997
  #### `base-remove-unstyled-suffix`
@@ -814,7 +1004,7 @@ The `Unstyled` suffix has been removed from all Base UI component names, includ
814
1004
  ```
815
1005
 
816
1006
  ```bash
817
- npx @mui/codemod@latest v5.0.0/base-remove-unstyled-suffix <path>
1007
+ npx @mui/codemod@next v5.0.0/base-remove-unstyled-suffix <path>
818
1008
  ```
819
1009
 
820
1010
  #### `base-remove-component-prop`
@@ -829,7 +1019,7 @@ This change only affects Base UI components.
829
1019
  ```
830
1020
 
831
1021
  ```bash
832
- npx @mui/codemod@latest v5.0.0/base-remove-component-prop <path>
1022
+ npx @mui/codemod@next v5.0.0/base-remove-component-prop <path>
833
1023
  ```
834
1024
 
835
1025
  #### `rename-css-variables`
@@ -844,7 +1034,7 @@ Updates the names of the CSS variables of the Joy UI components to adapt to the
844
1034
  ```
845
1035
 
846
1036
  ```bash
847
- npx @mui/codemod@latest v5.0.0/rename-css-variables <path>
1037
+ npx @mui/codemod@next v5.0.0/rename-css-variables <path>
848
1038
  ```
849
1039
 
850
1040
  #### `base-hook-imports`
@@ -857,7 +1047,7 @@ Updates the sources of the imports of the Base UI hooks to adapt to the new dir
857
1047
  ```
858
1048
 
859
1049
  ```bash
860
- npx @mui/codemod@latest v5.0.0/base-hook-imports <path>
1050
+ npx @mui/codemod@next v5.0.0/base-hook-imports <path>
861
1051
  ```
862
1052
 
863
1053
  #### `joy-rename-classname-prefix`
@@ -872,7 +1062,7 @@ Renames the classname prefix from `'Joy'` to `'Mui'` for Joy UI components.
872
1062
  ```
873
1063
 
874
1064
  ```bash
875
- npx @mui/codemod@latest v5.0.0/joy-rename-classname-prefix <path>
1065
+ npx @mui/codemod@next v5.0.0/joy-rename-classname-prefix <path>
876
1066
  ```
877
1067
 
878
1068
  #### `joy-rename-row-prop`
@@ -887,7 +1077,7 @@ Transforms `row` prop to `orientation` prop across `Card`, `List` and `RadioGrou
887
1077
  ```
888
1078
 
889
1079
  ```bash
890
- npx @mui/codemod@latest v5.0.0/joy-rename-row-prop <path>
1080
+ npx @mui/codemod@next v5.0.0/joy-rename-row-prop <path>
891
1081
  ```
892
1082
 
893
1083
  #### `joy-avatar-remove-imgProps`
@@ -905,7 +1095,7 @@ This change only affects Joy UI Avatar component.
905
1095
  ```
906
1096
 
907
1097
  ```bash
908
- npx @mui/codemod@latest v5.0.0/joy-avatar-remove-imgProps <path>
1098
+ npx @mui/codemod@next v5.0.0/joy-avatar-remove-imgProps <path>
909
1099
  ```
910
1100
 
911
1101
  #### `joy-text-field-to-input`
@@ -963,7 +1153,7 @@ This change only affects Joy UI components.
963
1153
  ```
964
1154
 
965
1155
  ```bash
966
- npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>
1156
+ npx @mui/codemod@next v5.0.0/joy-text-field-to-input <path>
967
1157
  ```
968
1158
 
969
1159
  #### `joy-rename-components-to-slots`
@@ -982,7 +1172,7 @@ This change only affects Joy UI components.
982
1172
  ```
983
1173
 
984
1174
  ```bash
985
- npx @mui/codemod@latest v5.0.0/joy-rename-components-to-slots <path>
1175
+ npx @mui/codemod@next v5.0.0/joy-rename-components-to-slots <path>
986
1176
  ```
987
1177
 
988
1178
  The associated breaking change was done in [#34997](https://github.com/mui/material-ui/pull/34997).
@@ -992,7 +1182,7 @@ The associated breaking change was done in [#34997](https://github.com/mui/mater
992
1182
  Rename the imports of Date and Time Pickers from `@mui/lab` to `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
993
1183
 
994
1184
  ```bash
995
- npx @mui/codemod@latest v5.0.0/date-pickers-moved-to-x <path>
1185
+ npx @mui/codemod@next v5.0.0/date-pickers-moved-to-x <path>
996
1186
  ```
997
1187
 
998
1188
  #### `tree-view-moved-to-x`
@@ -1000,7 +1190,7 @@ npx @mui/codemod@latest v5.0.0/date-pickers-moved-to-x <path>
1000
1190
  Rename the imports of Tree View from `@mui/lab` to `@mui/x-tree-view`.
1001
1191
 
1002
1192
  ```bash
1003
- npx @mui/codemod@latest v5.0.0/tree-view-moved-to-x <path>
1193
+ npx @mui/codemod@next v5.0.0/tree-view-moved-to-x <path>
1004
1194
  ```
1005
1195
 
1006
1196
  #### 🚀 `preset-safe`
@@ -1008,7 +1198,7 @@ npx @mui/codemod@latest v5.0.0/tree-view-moved-to-x <path>
1008
1198
  A combination of all important transformers for migrating v4 to v5. ⚠️ This codemod should be run only once.
1009
1199
 
1010
1200
  ```bash
1011
- npx @mui/codemod@latest v5.0.0/preset-safe <path|folder>
1201
+ npx @mui/codemod@next v5.0.0/preset-safe <path|folder>
1012
1202
  ```
1013
1203
 
1014
1204
  The list includes these transformers
@@ -1075,7 +1265,7 @@ Imports and inserts `adaptV4Theme` into `createTheme` (or `createMuiTheme`)
1075
1265
  ```
1076
1266
 
1077
1267
  ```bash
1078
- npx @mui/codemod@latest v5.0.0/adapter-v4 <path>
1268
+ npx @mui/codemod@next v5.0.0/adapter-v4 <path>
1079
1269
  ```
1080
1270
 
1081
1271
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -1092,7 +1282,7 @@ Renames `Autocomplete`'s `closeIcon` prop to `clearIcon`.
1092
1282
  <!-- #default-branch-switch -->
1093
1283
 
1094
1284
  ```bash
1095
- npx @mui/codemod@latest v5.0.0/autocomplete-rename-closeicon <path>
1285
+ npx @mui/codemod@next v5.0.0/autocomplete-rename-closeicon <path>
1096
1286
  ```
1097
1287
 
1098
1288
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
@@ -1111,7 +1301,7 @@ Renames `Autocomplete`'s `getOptionSelected` to `isOptionEqualToValue`.
1111
1301
  <!-- #default-branch-switch -->
1112
1302
 
1113
1303
  ```bash
1114
- npx @mui/codemod@latest v5.0.0/autocomplete-rename-option <path>
1304
+ npx @mui/codemod@next v5.0.0/autocomplete-rename-option <path>
1115
1305
  ```
1116
1306
 
1117
1307
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
@@ -1130,7 +1320,7 @@ Updates the `Avatar`'s `variant` value and `classes` key from 'circle' to 'circu
1130
1320
  <!-- #default-branch-switch -->
1131
1321
 
1132
1322
  ```bash
1133
- npx @mui/codemod@latest v5.0.0/avatar-circle-circular <path>
1323
+ npx @mui/codemod@next v5.0.0/avatar-circle-circular <path>
1134
1324
  ```
1135
1325
 
1136
1326
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#avatar).
@@ -1165,7 +1355,7 @@ Renames the badge's props.
1165
1355
  <!-- #default-branch-switch -->
1166
1356
 
1167
1357
  ```bash
1168
- npx @mui/codemod@latest v5.0.0/badge-overlap-value <path>
1358
+ npx @mui/codemod@next v5.0.0/badge-overlap-value <path>
1169
1359
  ```
1170
1360
 
1171
1361
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#badge).
@@ -1189,7 +1379,7 @@ This change only affects Base UI components.
1189
1379
  <!-- #default-branch-switch -->
1190
1380
 
1191
1381
  ```bash
1192
- npx @mui/codemod@latest v5.0.0/base-rename-components-to-slots <path>
1382
+ npx @mui/codemod@next v5.0.0/base-rename-components-to-slots <path>
1193
1383
  ```
1194
1384
 
1195
1385
  The associated breaking change was done in [#34693](https://github.com/mui/material-ui/pull/34693).
@@ -1208,7 +1398,7 @@ Updates the Box API from separate system props to `sx`.
1208
1398
  <!-- #default-branch-switch -->
1209
1399
 
1210
1400
  ```bash
1211
- npx @mui/codemod@latest v5.0.0/box-borderradius-values <path>
1401
+ npx @mui/codemod@next v5.0.0/box-borderradius-values <path>
1212
1402
  ```
1213
1403
 
1214
1404
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -1223,7 +1413,7 @@ Renames the Box `css` prop to `sx`
1223
1413
  ```
1224
1414
 
1225
1415
  ```bash
1226
- npx @mui/codemod@latest v5.0.0/box-rename-css <path>
1416
+ npx @mui/codemod@next v5.0.0/box-rename-css <path>
1227
1417
  ```
1228
1418
 
1229
1419
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -1244,7 +1434,7 @@ Renames the Box `grid*Gap` props.
1244
1434
  <!-- #default-branch-switch -->
1245
1435
 
1246
1436
  ```bash
1247
- npx @mui/codemod@latest v5.0.0/box-rename-gap <path>
1437
+ npx @mui/codemod@next v5.0.0/box-rename-gap <path>
1248
1438
  ```
1249
1439
 
1250
1440
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
@@ -1261,7 +1451,7 @@ Removes the outdated `color` prop values.
1261
1451
  <!-- #default-branch-switch -->
1262
1452
 
1263
1453
  ```bash
1264
- npx @mui/codemod@latest v5.0.0/button-color-prop <path>
1454
+ npx @mui/codemod@next v5.0.0/button-color-prop <path>
1265
1455
  ```
1266
1456
 
1267
1457
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#button).
@@ -1278,7 +1468,7 @@ Removes the Chip `variant` prop if the value is `"default"`.
1278
1468
  <!-- #default-branch-switch -->
1279
1469
 
1280
1470
  ```bash
1281
- npx @mui/codemod@latest v5.0.0/chip-variant-prop <path>
1471
+ npx @mui/codemod@next v5.0.0/chip-variant-prop <path>
1282
1472
  ```
1283
1473
 
1284
1474
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#chip).
@@ -1295,7 +1485,7 @@ Renames the CircularProgress `static` variant to `determinate`.
1295
1485
  <!-- #default-branch-switch -->
1296
1486
 
1297
1487
  ```bash
1298
- npx @mui/codemod@latest v5.0.0/circularprogress-variant <path>
1488
+ npx @mui/codemod@next v5.0.0/circularprogress-variant <path>
1299
1489
  ```
1300
1490
 
1301
1491
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#circularprogress).
@@ -1314,7 +1504,7 @@ Renames `Collapse`'s `collapsedHeight` prop to `collapsedSize`.
1314
1504
  <!-- #default-branch-switch -->
1315
1505
 
1316
1506
  ```bash
1317
- npx @mui/codemod@latest v5.0.0/collapse-rename-collapsedheight <path>
1507
+ npx @mui/codemod@next v5.0.0/collapse-rename-collapsedheight <path>
1318
1508
  ```
1319
1509
 
1320
1510
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#collapse).
@@ -1333,7 +1523,7 @@ A generic codemod to rename any component prop.
1333
1523
  <!-- #default-branch-switch -->
1334
1524
 
1335
1525
  ```bash
1336
- npx @mui/codemod@latest v5.0.0/component-rename-prop <path> -- --component=Grid --from=prop --to=newProp
1526
+ npx @mui/codemod@next v5.0.0/component-rename-prop <path> -- --component=Grid --from=prop --to=newProp
1337
1527
  ```
1338
1528
 
1339
1529
  #### `core-styles-import`
@@ -1346,7 +1536,7 @@ Renames private import from `core/styles/*` to `core/styles`
1346
1536
  ```
1347
1537
 
1348
1538
  ```bash
1349
- npx @mui/codemod@latest v5.0.0/core-styles-import <path>
1539
+ npx @mui/codemod@next v5.0.0/core-styles-import <path>
1350
1540
  ```
1351
1541
 
1352
1542
  #### `create-theme`
@@ -1359,7 +1549,7 @@ Renames the function `createMuiTheme` to `createTheme`
1359
1549
  ```
1360
1550
 
1361
1551
  ```bash
1362
- npx @mui/codemod@latest v5.0.0/create-theme <path>
1552
+ npx @mui/codemod@next v5.0.0/create-theme <path>
1363
1553
  ```
1364
1554
 
1365
1555
  #### `dialog-props`
@@ -1372,7 +1562,7 @@ Remove `disableBackdropClick` prop from `<Dialog>`
1372
1562
  ```
1373
1563
 
1374
1564
  ```bash
1375
- npx @mui/codemod@latest v5.0.0/dialog-props <path>
1565
+ npx @mui/codemod@next v5.0.0/dialog-props <path>
1376
1566
  ```
1377
1567
 
1378
1568
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -1387,7 +1577,7 @@ Remove `disableTypography` prop from `<DialogTitle>`
1387
1577
  ```
1388
1578
 
1389
1579
  ```bash
1390
- npx @mui/codemod@latest v5.0.0/dialog-title-props <path>
1580
+ npx @mui/codemod@next v5.0.0/dialog-title-props <path>
1391
1581
  ```
1392
1582
 
1393
1583
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -1404,7 +1594,7 @@ Adds `prepend: true` to Emotion `createCache`
1404
1594
  ```
1405
1595
 
1406
1596
  ```bash
1407
- npx @mui/codemod@latest v5.0.0/create-theme <path>
1597
+ npx @mui/codemod@next v5.0.0/create-theme <path>
1408
1598
  ```
1409
1599
 
1410
1600
  #### `expansion-panel-component`
@@ -1412,7 +1602,7 @@ npx @mui/codemod@latest v5.0.0/create-theme <path>
1412
1602
  Renames `ExpansionPanel*` to `Accordion*`
1413
1603
 
1414
1604
  ```bash
1415
- npx @mui/codemod@latest v5.0.0/expansion-panel-component <path>
1605
+ npx @mui/codemod@next v5.0.0/expansion-panel-component <path>
1416
1606
  ```
1417
1607
 
1418
1608
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#expansionpanel).
@@ -1425,7 +1615,7 @@ You can find more details about this breaking change in [the migration guide](ht
1425
1615
  ```
1426
1616
 
1427
1617
  ```bash
1428
- npx @mui/codemod@latest v5.0.0/fab-variant <path>
1618
+ npx @mui/codemod@next v5.0.0/fab-variant <path>
1429
1619
  ```
1430
1620
 
1431
1621
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#fab).
@@ -1445,7 +1635,7 @@ Renames the `fade` style utility import and calls to `alpha`.
1445
1635
  <!-- #default-branch-switch -->
1446
1636
 
1447
1637
  ```bash
1448
- npx @mui/codemod@latest v5.0.0/fade-rename-alpha <path>
1638
+ npx @mui/codemod@next v5.0.0/fade-rename-alpha <path>
1449
1639
  ```
1450
1640
 
1451
1641
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#styles).
@@ -1462,7 +1652,7 @@ Renames `Grid`'s `justify` prop to `justifyContent`.
1462
1652
  <!-- #default-branch-switch -->
1463
1653
 
1464
1654
  ```bash
1465
- npx @mui/codemod@latest v5.0.0/grid-justify-justifycontent <path>
1655
+ npx @mui/codemod@next v5.0.0/grid-justify-justifycontent <path>
1466
1656
  ```
1467
1657
 
1468
1658
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#grid).
@@ -1472,7 +1662,7 @@ You can find more details about this breaking change in [the migration guide](ht
1472
1662
  Renames `GridList*` to `ImageList*`
1473
1663
 
1474
1664
  ```bash
1475
- npx @mui/codemod@latest v5.0.0/grid-list-component <path>
1665
+ npx @mui/codemod@next v5.0.0/grid-list-component <path>
1476
1666
  ```
1477
1667
 
1478
1668
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#gridlist).
@@ -1489,7 +1679,7 @@ Adds `size="large"` if `size` is not defined to get the same appearance as v4.
1489
1679
  ```
1490
1680
 
1491
1681
  ```bash
1492
- npx @mui/codemod@latest v5.0.0/icon-button-size <path>
1682
+ npx @mui/codemod@next v5.0.0/icon-button-size <path>
1493
1683
  ```
1494
1684
 
1495
1685
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#iconbutton).
@@ -1554,7 +1744,7 @@ Replace JSS styling with `makeStyles` or `withStyles` to `styled` API.
1554
1744
  ```
1555
1745
 
1556
1746
  ```bash
1557
- npx @mui/codemod@latest v5.0.0/jss-to-styled <path>
1747
+ npx @mui/codemod@next v5.0.0/jss-to-styled <path>
1558
1748
  ```
1559
1749
 
1560
1750
  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).
@@ -1626,7 +1816,7 @@ Migrate JSS styling with `makeStyles` or `withStyles` to the corresponding `tss-
1626
1816
  ```
1627
1817
 
1628
1818
  ```bash
1629
- npx @mui/codemod@latest v5.0.0/jss-to-tss-react <path>
1819
+ npx @mui/codemod@next v5.0.0/jss-to-tss-react <path>
1630
1820
  ```
1631
1821
 
1632
1822
  The following scenarios are not currently handled by this codemod and will be marked with a
@@ -1654,7 +1844,7 @@ Apply `underline="hover"` to `<Link />` that does not define `underline` prop (t
1654
1844
  ```
1655
1845
 
1656
1846
  ```bash
1657
- npx @mui/codemod@latest v5.0.0/link-underline-hover <path>
1847
+ npx @mui/codemod@next v5.0.0/link-underline-hover <path>
1658
1848
  ```
1659
1849
 
1660
1850
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#link).
@@ -1692,7 +1882,7 @@ Moves JSS imports to `@material-ui/styles`
1692
1882
  ```
1693
1883
 
1694
1884
  ```bash
1695
- npx @mui/codemod@latest v5.0.0/material-ui-styles <path>
1885
+ npx @mui/codemod@next v5.0.0/material-ui-styles <path>
1696
1886
  ```
1697
1887
 
1698
1888
  #### `material-ui-types`
@@ -1705,7 +1895,7 @@ Renames `Omit` import from `@material-ui/types` to `DistributiveOmit`
1705
1895
  ```
1706
1896
 
1707
1897
  ```bash
1708
- npx @mui/codemod@latest v5.0.0/material-ui-types <path>
1898
+ npx @mui/codemod@next v5.0.0/material-ui-types <path>
1709
1899
  ```
1710
1900
 
1711
1901
  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).
@@ -1722,7 +1912,7 @@ Removes `disableBackdropClick` and `onEscapeKeyDown` from `<Modal>`
1722
1912
  ```
1723
1913
 
1724
1914
  ```bash
1725
- npx @mui/codemod@latest v5.0.0/modal-props <path>
1915
+ npx @mui/codemod@next v5.0.0/modal-props <path>
1726
1916
  ```
1727
1917
 
1728
1918
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#modal).
@@ -1746,7 +1936,7 @@ or
1746
1936
  <!-- #default-branch-switch -->
1747
1937
 
1748
1938
  ```bash
1749
- npx @mui/codemod@latest v5.0.0/moved-lab-modules <path>
1939
+ npx @mui/codemod@next v5.0.0/moved-lab-modules <path>
1750
1940
  ```
1751
1941
 
1752
1942
  You can find more details about this breaking change in the migration guide.
@@ -1771,7 +1961,7 @@ Renames `Pagination*`'s `shape` values from 'round' to 'circular'.
1771
1961
  ```
1772
1962
 
1773
1963
  ```bash
1774
- npx @mui/codemod@latest v5.0.0/pagination-round-circular <path>
1964
+ npx @mui/codemod@next v5.0.0/pagination-round-circular <path>
1775
1965
  ```
1776
1966
 
1777
1967
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#pagination).
@@ -1790,7 +1980,7 @@ Fix private import paths.
1790
1980
  <!-- #default-branch-switch -->
1791
1981
 
1792
1982
  ```bash
1793
- npx @mui/codemod@latest v5.0.0/optimal-imports <path>
1983
+ npx @mui/codemod@next v5.0.0/optimal-imports <path>
1794
1984
  ```
1795
1985
 
1796
1986
  #### `root-ref`
@@ -1798,7 +1988,7 @@ npx @mui/codemod@latest v5.0.0/optimal-imports <path>
1798
1988
  Removes `RootRef` from the codebase.
1799
1989
 
1800
1990
  ```bash
1801
- npx @mui/codemod@latest v5.0.0/root-ref <path>
1991
+ npx @mui/codemod@next v5.0.0/root-ref <path>
1802
1992
  ```
1803
1993
 
1804
1994
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#rootref).
@@ -1813,7 +2003,7 @@ You can find more details about this breaking change in [the migration guide](ht
1813
2003
  ```
1814
2004
 
1815
2005
  ```bash
1816
- npx @mui/codemod@latest v5.0.0/skeleton-variant <path>
2006
+ npx @mui/codemod@next v5.0.0/skeleton-variant <path>
1817
2007
  ```
1818
2008
 
1819
2009
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#skeleton).
@@ -1823,7 +2013,7 @@ You can find more details about this breaking change in [the migration guide](ht
1823
2013
  Applies `StyledEngineProvider` to the files that contains `ThemeProvider`.
1824
2014
 
1825
2015
  ```bash
1826
- npx @mui/codemod@latest v5.0.0/styled-engine-provider <path>
2016
+ npx @mui/codemod@next v5.0.0/styled-engine-provider <path>
1827
2017
  ```
1828
2018
 
1829
2019
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-style-changes/#style-library).
@@ -1849,7 +2039,7 @@ Renames props in `Table*` components.
1849
2039
  ```
1850
2040
 
1851
2041
  ```bash
1852
- npx @mui/codemod@latest v5.0.0/table-props <path>
2042
+ npx @mui/codemod@next v5.0.0/table-props <path>
1853
2043
  ```
1854
2044
 
1855
2045
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#table).
@@ -1868,7 +2058,7 @@ Renames the `Tabs`'s `scrollButtons` prop values.
1868
2058
  ```
1869
2059
 
1870
2060
  ```bash
1871
- npx @mui/codemod@latest v5.0.0/tabs-scroll-buttons <path>
2061
+ npx @mui/codemod@next v5.0.0/tabs-scroll-buttons <path>
1872
2062
  ```
1873
2063
 
1874
2064
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#tabs).
@@ -1887,7 +2077,7 @@ Renames `TextField`'s rows props.
1887
2077
  ```
1888
2078
 
1889
2079
  ```bash
1890
- npx @mui/codemod@latest v5.0.0/textarea-minmax-rows <path>
2080
+ npx @mui/codemod@next v5.0.0/textarea-minmax-rows <path>
1891
2081
  ```
1892
2082
 
1893
2083
  You can find more details about this breaking change in the migration guide.
@@ -1900,7 +2090,7 @@ You can find more details about this breaking change in the migration guide.
1900
2090
  Adds `DefaultTheme` module augmentation to TypeScript projects.
1901
2091
 
1902
2092
  ```bash
1903
- npx @mui/codemod@latest v5.0.0/theme-augment <path>
2093
+ npx @mui/codemod@next v5.0.0/theme-augment <path>
1904
2094
  ```
1905
2095
 
1906
2096
  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).
@@ -1919,7 +2109,7 @@ Updates breakpoint values to match new logic. ⚠️ This mod is not idempotent,
1919
2109
  <!-- #default-branch-switch -->
1920
2110
 
1921
2111
  ```bash
1922
- npx @mui/codemod@latest v5.0.0/theme-breakpoints <path>
2112
+ npx @mui/codemod@next v5.0.0/theme-breakpoints <path>
1923
2113
  ```
1924
2114
 
1925
2115
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -1929,7 +2119,7 @@ You can find more details about this breaking change in [the migration guide](ht
1929
2119
  Renames `theme.breakpoints.width('md')` to `theme.breakpoints.values.md`.
1930
2120
 
1931
2121
  ```bash
1932
- npx @mui/codemod@latest v5.0.0/theme-breakpoints-width <path>
2122
+ npx @mui/codemod@next v5.0.0/theme-breakpoints-width <path>
1933
2123
  ```
1934
2124
 
1935
2125
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -1942,7 +2132,7 @@ You can find more details about this breaking change in [the migration guide](ht
1942
2132
  ```
1943
2133
 
1944
2134
  ```bash
1945
- npx @mui/codemod@latest v5.0.0/theme-options <path>
2135
+ npx @mui/codemod@next v5.0.0/theme-options <path>
1946
2136
  ```
1947
2137
 
1948
2138
  #### `theme-palette-mode`
@@ -1964,7 +2154,7 @@ Renames `type` to `mode`.
1964
2154
  ```
1965
2155
 
1966
2156
  ```bash
1967
- npx @mui/codemod@latest v5.0.0/theme-palette-mode <path>
2157
+ npx @mui/codemod@next v5.0.0/theme-palette-mode <path>
1968
2158
  ```
1969
2159
 
1970
2160
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -1974,7 +2164,7 @@ You can find more details about this breaking change in [the migration guide](ht
1974
2164
  Renames `MuiThemeProvider` to `ThemeProvider`.
1975
2165
 
1976
2166
  ```bash
1977
- npx @mui/codemod@latest v5.0.0/theme-provider <path>
2167
+ npx @mui/codemod@next v5.0.0/theme-provider <path>
1978
2168
  ```
1979
2169
 
1980
2170
  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).
@@ -1993,7 +2183,7 @@ Removes the 'px' suffix from some template strings.
1993
2183
  <!-- #default-branch-switch -->
1994
2184
 
1995
2185
  ```bash
1996
- npx @mui/codemod@latest v5.0.0/theme-spacing <path>
2186
+ npx @mui/codemod@next v5.0.0/theme-spacing <path>
1997
2187
  ```
1998
2188
 
1999
2189
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -2008,7 +2198,7 @@ Renames `theme.typography.round($number)` to `Math.round($number * 1e5) / 1e5`.
2008
2198
  ```
2009
2199
 
2010
2200
  ```bash
2011
- npx @mui/codemod@latest v5.0.0/theme-typography-round <path>
2201
+ npx @mui/codemod@next v5.0.0/theme-typography-round <path>
2012
2202
  ```
2013
2203
 
2014
2204
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
@@ -2026,7 +2216,7 @@ Converts all `@mui/material` submodule imports to the root module:
2026
2216
  <!-- #default-branch-switch -->
2027
2217
 
2028
2218
  ```bash
2029
- npx @mui/codemod@latest v5.0.0/top-level-imports <path>
2219
+ npx @mui/codemod@next v5.0.0/top-level-imports <path>
2030
2220
  ```
2031
2221
 
2032
2222
  Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -2036,7 +2226,7 @@ Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's u
2036
2226
  Renames import `transitions` to `createTransitions`
2037
2227
 
2038
2228
  ```bash
2039
- npx @mui/codemod@latest v5.0.0/transitions <path>
2229
+ npx @mui/codemod@next v5.0.0/transitions <path>
2040
2230
  ```
2041
2231
 
2042
2232
  #### `use-autocomplete`
@@ -2049,7 +2239,7 @@ Renames `useAutocomplete` related import from lab to core
2049
2239
  ```
2050
2240
 
2051
2241
  ```bash
2052
- npx @mui/codemod@latest v5.0.0/use-autocomplete <path>
2242
+ npx @mui/codemod@next v5.0.0/use-autocomplete <path>
2053
2243
  ```
2054
2244
 
2055
2245
  #### `use-transitionprops`
@@ -2078,7 +2268,7 @@ Updates Dialog, Menu, Popover, and Snackbar to use the `TransitionProps` prop to
2078
2268
  <!-- #default-branch-switch -->
2079
2269
 
2080
2270
  ```bash
2081
- npx @mui/codemod@latest v5.0.0/use-transitionprops <path>
2271
+ npx @mui/codemod@next v5.0.0/use-transitionprops <path>
2082
2272
  ```
2083
2273
 
2084
2274
  You can find more details about this breaking change in [the migration guide](/material-ui/migration/v5-component-changes/#dialog).
@@ -2108,7 +2298,7 @@ The diff should look like this:
2108
2298
  <!-- #default-branch-switch -->
2109
2299
 
2110
2300
  ```bash
2111
- npx @mui/codemod@latest v5.0.0/variant-prop <path>
2301
+ npx @mui/codemod@next v5.0.0/variant-prop <path>
2112
2302
  ```
2113
2303
 
2114
2304
  #### `with-mobile-dialog`
@@ -2122,7 +2312,7 @@ Removes imported `withMobileDialog`, and inserts hardcoded version to prevent ap
2122
2312
  ```
2123
2313
 
2124
2314
  ```bash
2125
- npx @mui/codemod@latest v5.0.0/with-mobile-dialog <path>
2315
+ npx @mui/codemod@next v5.0.0/with-mobile-dialog <path>
2126
2316
  ```
2127
2317
 
2128
2318
  You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
@@ -2138,7 +2328,7 @@ Removes `withWidth` import, and inserts hardcoded version to prevent application
2138
2328
  ```
2139
2329
 
2140
2330
  ```bash
2141
- npx @mui/codemod@latest v5.0.0/with-width <path>
2331
+ npx @mui/codemod@next v5.0.0/with-width <path>
2142
2332
  ```
2143
2333
 
2144
2334
  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).
@@ -2199,7 +2389,7 @@ Replace every occurrence of `material-ui` related package with the new package n
2199
2389
  ```
2200
2390
 
2201
2391
  ```bash
2202
- npx @mui/codemod@latest v5.0.0/mui-replace <path>
2392
+ npx @mui/codemod@next v5.0.0/mui-replace <path>
2203
2393
  ```
2204
2394
 
2205
2395
  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).
@@ -2219,7 +2409,7 @@ The diff should look like this:
2219
2409
  <!-- #default-branch-switch -->
2220
2410
 
2221
2411
  ```bash
2222
- npx @mui/codemod@latest v4.0.0/theme-spacing-api <path>
2412
+ npx @mui/codemod@next v4.0.0/theme-spacing-api <path>
2223
2413
  ```
2224
2414
 
2225
2415
  This codemod tries to perform a basic expression simplification which can be improved for expressions that use more than one operation.
@@ -2246,7 +2436,7 @@ Converts all `@material-ui/core` imports more than 1 level deep to the optimal f
2246
2436
  <!-- #default-branch-switch -->
2247
2437
 
2248
2438
  ```bash
2249
- npx @mui/codemod@latest v4.0.0/optimal-imports <path>
2439
+ npx @mui/codemod@next v4.0.0/optimal-imports <path>
2250
2440
  ```
2251
2441
 
2252
2442
  Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -2264,7 +2454,7 @@ Converts all `@material-ui/core` submodule imports to the root module:
2264
2454
  <!-- #default-branch-switch -->
2265
2455
 
2266
2456
  ```bash
2267
- npx @mui/codemod@latest v4.0.0/top-level-imports <path>
2457
+ npx @mui/codemod@next v4.0.0/top-level-imports <path>
2268
2458
  ```
2269
2459
 
2270
2460
  Head to https://mui.com/guides/minimizing-bundle-size/ to understand when it's useful.
@@ -2285,7 +2475,7 @@ The diff should look like this:
2285
2475
  <!-- #default-branch-switch -->
2286
2476
 
2287
2477
  ```bash
2288
- npx @mui/codemod@latest v1.0.0/import-path <path>
2478
+ npx @mui/codemod@next v1.0.0/import-path <path>
2289
2479
  ```
2290
2480
 
2291
2481
  **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.:
@@ -2312,7 +2502,7 @@ The diff should look like this:
2312
2502
  <!-- #default-branch-switch -->
2313
2503
 
2314
2504
  ```bash
2315
- npx @mui/codemod@latest v1.0.0/color-imports <path>
2505
+ npx @mui/codemod@next v1.0.0/color-imports <path>
2316
2506
  ```
2317
2507
 
2318
2508
  **additional options**
@@ -2320,7 +2510,7 @@ npx @mui/codemod@latest v1.0.0/color-imports <path>
2320
2510
  <!-- #default-branch-switch -->
2321
2511
 
2322
2512
  ```bash
2323
- npx @mui/codemod@latest v1.0.0/color-imports <path> -- --importPath='mui/styles/colors' --targetPath='mui/colors'
2513
+ npx @mui/codemod@next v1.0.0/color-imports <path> -- --importPath='mui/styles/colors' --targetPath='mui/colors'
2324
2514
  ```
2325
2515
 
2326
2516
  #### `svg-icon-imports`
@@ -2338,7 +2528,7 @@ The diff should look like this:
2338
2528
  <!-- #default-branch-switch -->
2339
2529
 
2340
2530
  ```bash
2341
- npx @mui/codemod@latest v1.0.0/svg-icon-imports <path>
2531
+ npx @mui/codemod@next v1.0.0/svg-icon-imports <path>
2342
2532
  ```
2343
2533
 
2344
2534
  #### `menu-item-primary-text`
@@ -2356,7 +2546,7 @@ The diff should look like this:
2356
2546
  <!-- #default-branch-switch -->
2357
2547
 
2358
2548
  ```bash
2359
- npx @mui/codemod@latest v1.0.0/menu-item-primary-text <path>
2549
+ npx @mui/codemod@next v1.0.0/menu-item-primary-text <path>
2360
2550
  ```
2361
2551
 
2362
2552
  ### v0.15.0
@@ -2380,5 +2570,5 @@ The diff should look like this:
2380
2570
  <!-- #default-branch-switch -->
2381
2571
 
2382
2572
  ```bash
2383
- npx @mui/codemod@latest v0.15.0/import-path <path>
2573
+ npx @mui/codemod@next v0.15.0/import-path <path>
2384
2574
  ```