@mui/codemod 5.7.0 → 5.8.3

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 (23) hide show
  1. package/README.md +135 -53
  2. package/node/v5.0.0/jss-to-tss-react.js +460 -0
  3. package/node/v5.0.0/jss-to-tss-react.test/actual-from-material-ui-core-styles.js +52 -0
  4. package/node/v5.0.0/jss-to-tss-react.test/actual-from-material-ui-core.js +75 -0
  5. package/node/v5.0.0/jss-to-tss-react.test/actual-from-mui-styles.js +53 -0
  6. package/node/v5.0.0/jss-to-tss-react.test/actual-mixins-pattern.js +51 -0
  7. package/node/v5.0.0/jss-to-tss-react.test/actual-todo-comments.js +82 -0
  8. package/node/v5.0.0/jss-to-tss-react.test/actual-typescript-docs-example-params.js +59 -0
  9. package/node/v5.0.0/jss-to-tss-react.test/actual-typescript-docs-example.js +55 -0
  10. package/node/v5.0.0/jss-to-tss-react.test/actual-typescript.js +73 -0
  11. package/node/v5.0.0/jss-to-tss-react.test/actual-withStyles.js +123 -0
  12. package/node/v5.0.0/jss-to-tss-react.test/expected-from-material-ui-core-styles.js +56 -0
  13. package/node/v5.0.0/jss-to-tss-react.test/expected-from-material-ui-core.js +80 -0
  14. package/node/v5.0.0/jss-to-tss-react.test/expected-from-mui-styles.js +57 -0
  15. package/node/v5.0.0/jss-to-tss-react.test/expected-mixins-pattern.js +54 -0
  16. package/node/v5.0.0/jss-to-tss-react.test/expected-todo-comments.js +96 -0
  17. package/node/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example-params.js +61 -0
  18. package/node/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.js +54 -0
  19. package/node/v5.0.0/jss-to-tss-react.test/expected-typescript.js +79 -0
  20. package/node/v5.0.0/jss-to-tss-react.test/expected-withStyles.js +124 -0
  21. package/node/v5.0.0/modal-props.js +1 -1
  22. package/node/v5.0.0/modal-props.test/expected.js +1 -1
  23. package/package.json +1 -1
package/README.md CHANGED
@@ -145,7 +145,7 @@ Imports and inserts `adaptV4Theme` into `createTheme` (or `createMuiTheme`)
145
145
  npx @mui/codemod v5.0.0/adapter-v4 <path>
146
146
  ```
147
147
 
148
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
148
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
149
149
 
150
150
  #### `autocomplete-rename-closeicon`
151
151
 
@@ -162,7 +162,7 @@ Renames `Autocomplete`'s `closeIcon` prop to `clearIcon`.
162
162
  npx @mui/codemod v5.0.0/autocomplete-rename-closeicon <path>
163
163
  ```
164
164
 
165
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#autocomplete).
165
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
166
166
 
167
167
  #### `autocomplete-rename-option`
168
168
 
@@ -181,7 +181,7 @@ Renames `Autocomplete`'s `getOptionSelected` to `isOptionEqualToValue`.
181
181
  npx @mui/codemod v5.0.0/autocomplete-rename-option <path>
182
182
  ```
183
183
 
184
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#autocomplete).
184
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete).
185
185
 
186
186
  #### `avatar-circle-circular`
187
187
 
@@ -200,7 +200,7 @@ Updates the `Avatar`'s `variant` value and `classes` key from 'circle' to 'circu
200
200
  npx @mui/codemod v5.0.0/avatar-circle-circular <path>
201
201
  ```
202
202
 
203
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#avatar).
203
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#avatar).
204
204
 
205
205
  #### `badge-overlap-value`
206
206
 
@@ -235,7 +235,7 @@ Renames the badge's props.
235
235
  npx @mui/codemod v5.0.0/badge-overlap-value <path>
236
236
  ```
237
237
 
238
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#badge).
238
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#badge).
239
239
 
240
240
  #### `box-borderradius-values`
241
241
 
@@ -254,7 +254,7 @@ Updates the Box API from separate system props to `sx`.
254
254
  npx @mui/codemod v5.0.0/box-borderradius-values <path>
255
255
  ```
256
256
 
257
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#box).
257
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
258
258
 
259
259
  #### `box-rename-css`
260
260
 
@@ -269,7 +269,7 @@ Renames the Box `css` prop to `sx`
269
269
  npx @mui/codemod v5.0.0/box-rename-css <path>
270
270
  ```
271
271
 
272
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#box).
272
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
273
273
 
274
274
  #### `box-rename-gap`
275
275
 
@@ -290,7 +290,7 @@ Renames the Box `grid*Gap` props.
290
290
  npx @mui/codemod v5.0.0/box-rename-gap <path>
291
291
  ```
292
292
 
293
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#box).
293
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#box).
294
294
 
295
295
  #### `button-color-prop`
296
296
 
@@ -307,7 +307,7 @@ Removes the outdated `color` prop values.
307
307
  npx @mui/codemod v5.0.0/button-color-prop <path>
308
308
  ```
309
309
 
310
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#button).
310
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#button).
311
311
 
312
312
  #### `chip-variant-prop`
313
313
 
@@ -324,7 +324,7 @@ Removes the Chip `variant` prop if the value is `"default"`.
324
324
  npx @mui/codemod v5.0.0/chip-variant-prop <path>
325
325
  ```
326
326
 
327
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#chip).
327
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#chip).
328
328
 
329
329
  #### `circularprogress-variant`
330
330
 
@@ -341,7 +341,7 @@ Renames the CircularProgress `static` variant to `determinate`.
341
341
  npx @mui/codemod v5.0.0/circularprogress-variant <path>
342
342
  ```
343
343
 
344
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#circularprogress).
344
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#circularprogress).
345
345
 
346
346
  #### `collapse-rename-collapsedheight`
347
347
 
@@ -360,7 +360,7 @@ Renames `Collapse`'s `collapsedHeight` prop to `collapsedSize`.
360
360
  npx @mui/codemod v5.0.0/collapse-rename-collapsedheight <path>
361
361
  ```
362
362
 
363
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#collapse).
363
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#collapse).
364
364
 
365
365
  #### `component-rename-prop`
366
366
 
@@ -418,7 +418,7 @@ Remove `disableBackdropClick` prop from `<Dialog>`
418
418
  npx @mui/codemod v5.0.0/dialog-props <path>
419
419
  ```
420
420
 
421
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#dialog).
421
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
422
422
 
423
423
  #### `dialog-title-props`
424
424
 
@@ -433,7 +433,7 @@ Remove `disableTypography` prop from `<DialogTitle>`
433
433
  npx @mui/codemod v5.0.0/dialog-title-props <path>
434
434
  ```
435
435
 
436
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#dialog).
436
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
437
437
 
438
438
  #### `emotion-prepend-cache`
439
439
 
@@ -458,7 +458,7 @@ Renames `ExpansionPanel*` to `Accordion*`
458
458
  npx @mui/codemod v5.0.0/expansion-panel-component <path>
459
459
  ```
460
460
 
461
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#expansionpanel).
461
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#expansionpanel).
462
462
 
463
463
  #### `fab-variant`
464
464
 
@@ -471,7 +471,7 @@ You can find more details about this breaking change in [the migration guide](ht
471
471
  npx @mui/codemod v5.0.0/fab-variant <path>
472
472
  ```
473
473
 
474
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#fab).
474
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#fab).
475
475
 
476
476
  #### `fade-rename-alpha`
477
477
 
@@ -491,7 +491,7 @@ Renames the `fade` style utility import and calls to `alpha`.
491
491
  npx @mui/codemod v5.0.0/fade-rename-alpha <path>
492
492
  ```
493
493
 
494
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#styles).
494
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#styles).
495
495
 
496
496
  #### `grid-justify-justifycontent`
497
497
 
@@ -508,7 +508,7 @@ Renames `Grid`'s `justify` prop to `justifyContent`.
508
508
  npx @mui/codemod v5.0.0/grid-justify-justifycontent <path>
509
509
  ```
510
510
 
511
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#grid).
511
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#grid).
512
512
 
513
513
  #### `grid-list-component`
514
514
 
@@ -518,7 +518,7 @@ Renames `GridList*` to `ImageList*`
518
518
  npx @mui/codemod v5.0.0/grid-list-component <path>
519
519
  ```
520
520
 
521
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#gridlist).
521
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#gridlist).
522
522
 
523
523
  #### `icon-button-size`
524
524
 
@@ -535,7 +535,7 @@ Adds `size="large"` if `size` is not defined to get the same appearance as v4.
535
535
  npx @mui/codemod v5.0.0/icon-button-size <path>
536
536
  ```
537
537
 
538
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#iconbutton).
538
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#iconbutton).
539
539
 
540
540
  #### `jss-to-styled`
541
541
 
@@ -600,10 +600,92 @@ export const MyCard = () => {
600
600
  npx @mui/codemod v5.0.0/jss-to-styled <path>
601
601
  ```
602
602
 
603
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#1-use-styled-or-sx-api).
603
+ 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).
604
604
 
605
605
  > **Note:** This approach converts the first element in the return statement into styled component but also increases CSS specificity to override nested children.
606
- > This codemod should be adopted after handling all breaking changes, [check out the migration documentation](https://mui.com/material-ui/guides/migration-v4/)
606
+ > This codemod should be adopted after handling all breaking changes, [check out the migration documentation](https://mui.com/material-ui/migration/migration-v4/).
607
+
608
+ #### `jss-to-tss-react`
609
+
610
+ Migrate JSS styling with `makeStyles` or `withStyles` to the corresponding `tss-react` API.
611
+
612
+ ```diff
613
+ -import clsx from 'clsx';
614
+ -import {makeStyles, createStyles} from '@material-ui/core/styles';
615
+ +import { makeStyles } from 'tss-react/mui';
616
+
617
+ -const useStyles = makeStyles((theme) => createStyles<
618
+ - 'root' | 'small' | 'child', {color: 'primary' | 'secondary', padding: number}
619
+ ->
620
+ -({
621
+ - root: ({color, padding}) => ({
622
+ +const useStyles = makeStyles<{color: 'primary' | 'secondary', padding: number}, 'child' | 'small'>({name: 'App'})((theme, { color, padding }, classes) => ({
623
+ + root: {
624
+ padding: padding,
625
+ - '&:hover $child': {
626
+ + [`&:hover .${classes.child}`]: {
627
+ backgroundColor: theme.palette[color].main,
628
+ }
629
+ - }),
630
+ + },
631
+ small: {},
632
+ child: {
633
+ border: '1px solid black',
634
+ height: 50,
635
+ - '&$small': {
636
+ + [`&.${classes.small}`]: {
637
+ height: 30
638
+ }
639
+ }
640
+ -}), {name: 'App'});
641
+ +}));
642
+
643
+ function App({classes: classesProp}: {classes?: any}) {
644
+ - const classes = useStyles({color: 'primary', padding: 30, classes: classesProp});
645
+ + const { classes, cx } = useStyles({
646
+ + color: 'primary',
647
+ + padding: 30
648
+ + }, {
649
+ + props: {
650
+ + classes: classesProp
651
+ + }
652
+ + });
653
+
654
+ return (
655
+ <div className={classes.root}>
656
+ <div className={classes.child}>
657
+ The Background take the primary theme color when the mouse hovers the parent.
658
+ </div>
659
+ - <div className={clsx(classes.child, classes.small)}>
660
+ + <div className={cx(classes.child, classes.small)}>
661
+ The Background take the primary theme color when the mouse hovers the parent.
662
+ I am smaller than the other child.
663
+ </div>
664
+ </div>
665
+ );
666
+ }
667
+
668
+ export default App;
669
+ ```
670
+
671
+ ```sh
672
+ npx @mui/codemod v5.0.0/jss-to-tss-react <path>
673
+ ```
674
+
675
+ The following scenarios are not currently handled by this codemod and will be marked with a
676
+ "TODO jss-to-tss-react codemod" comment:
677
+
678
+ - If the hook returned by `makeStyles` (e.g. `useStyles`) is exported and used in another file,
679
+ the usages in other files will not be converted.
680
+ - Arrow functions as the value for a CSS prop will not be converted. Arrow functions **are**
681
+ supported at the rule level, though with some caveats listed below.
682
+ - In order for arrow functions at the rule level to be converted, the parameter must use object
683
+ destructuring (e.g. `root: ({color, padding}) => (...)`). If the parameter is not destructured
684
+ (e.g. `root: (props) => (...)`), it will not be converted.
685
+ - If an arrow function at the rule level contains a code block (i.e. contains an explicit `return`
686
+ statement) rather than just an object expression, it will not be converted.
687
+
688
+ You can find more details about migrating from JSS to tss-react in [the migration guide](https://mui.com/migration/migrating-from-jss/#2-use-tss-react).
607
689
 
608
690
  #### `link-underline-hover`
609
691
 
@@ -615,10 +697,10 @@ Apply `underline="hover"` to `<Link />` that does not define `underline` prop (t
615
697
  ```
616
698
 
617
699
  ```sh
618
- npx @mui/codemod v5.0.0/icon-button-size <path>
700
+ npx @mui/codemod v5.0.0/link-underline-hover <path>
619
701
  ```
620
702
 
621
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#link).
703
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#link).
622
704
 
623
705
  #### `material-ui-styles`
624
706
 
@@ -669,7 +751,7 @@ Renames `Omit` import from `@material-ui/types` to `DistributiveOmit`
669
751
  npx @mui/codemod v5.0.0/material-ui-types <path>
670
752
  ```
671
753
 
672
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#material-ui-types).
754
+ 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).
673
755
 
674
756
  #### `modal-props`
675
757
 
@@ -686,7 +768,7 @@ Removes `disableBackdropClick` and `onEscapeKeyDown` from `<Modal>`
686
768
  npx @mui/codemod v5.0.0/modal-props <path>
687
769
  ```
688
770
 
689
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#modal).
771
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#modal).
690
772
 
691
773
  #### `moved-lab-modules`
692
774
 
@@ -712,13 +794,13 @@ npx @mui/codemod v5.0.0/moved-lab-modules <path>
712
794
 
713
795
  You can find more details about this breaking change in the migration guide.
714
796
 
715
- - [Alert](https://mui.com/material-ui/guides/migration-v4/#alert)
716
- - [Autocomplete](https://mui.com/material-ui/guides/migration-v4/#autocomplete)
717
- - [AvatarGroup](https://mui.com/material-ui/guides/migration-v4/#avatar)
718
- - [Pagination](https://mui.com/material-ui/guides/migration-v4/#pagination)
719
- - [Skeleton](https://mui.com/material-ui/guides/migration-v4/#skeleton)
720
- - [SpeedDial](https://mui.com/material-ui/guides/migration-v4/#speeddial)
721
- - [ToggleButton](https://mui.com/material-ui/guides/migration-v4/#togglebutton)
797
+ - [Alert](https://mui.com/material-ui/migration/v5-component-changes/#alert)
798
+ - [Autocomplete](https://mui.com/material-ui/migration/v5-component-changes/#autocomplete)
799
+ - [AvatarGroup](https://mui.com/material-ui/migration/v5-component-changes/#avatar)
800
+ - [Pagination](https://mui.com/material-ui/migration/v5-component-changes/#pagination)
801
+ - [Skeleton](https://mui.com/material-ui/migration/v5-component-changes/#skeleton)
802
+ - [SpeedDial](https://mui.com/material-ui/migration/v5-component-changes/#speeddial)
803
+ - [ToggleButton](https://mui.com/material-ui/migration/v5-component-changes/#togglebutton)
722
804
 
723
805
  #### `pagination-round-circular`
724
806
 
@@ -735,7 +817,7 @@ Renames `Pagination*`'s `shape` values from 'round' to 'circular'.
735
817
  npx @mui/codemod v5.0.0/pagination-round-circular <path>
736
818
  ```
737
819
 
738
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#pagination).
820
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#pagination).
739
821
 
740
822
  #### `optimal-imports`
741
823
 
@@ -762,7 +844,7 @@ Removes `RootRef` from the codebase.
762
844
  npx @mui/codemod v5.0.0/root-ref <path>
763
845
  ```
764
846
 
765
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#rootref).
847
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#rootref).
766
848
 
767
849
  #### `skeleton-variant`
768
850
 
@@ -777,7 +859,7 @@ You can find more details about this breaking change in [the migration guide](ht
777
859
  npx @mui/codemod v5.0.0/skeleton-variant <path>
778
860
  ```
779
861
 
780
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#skeleton).
862
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#skeleton).
781
863
 
782
864
  #### `styled-engine-provider`
783
865
 
@@ -787,7 +869,7 @@ Applies `StyledEngineProvider` to the files that contains `ThemeProvider`.
787
869
  npx @mui/codemod v5.0.0/styled-engine-provider <path>
788
870
  ```
789
871
 
790
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#style-library).
872
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-style-changes/#style-library).
791
873
 
792
874
  #### `table-props`
793
875
 
@@ -813,7 +895,7 @@ Renames props in `Table*` components.
813
895
  npx @mui/codemod v5.0.0/table-props <path>
814
896
  ```
815
897
 
816
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#table).
898
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#table).
817
899
 
818
900
  #### `tabs-scroll-buttons`
819
901
 
@@ -832,7 +914,7 @@ Renames the `Tabs`'s `scrollButtons` prop values.
832
914
  npx @mui/codemod v5.0.0/tabs-scroll-buttons <path>
833
915
  ```
834
916
 
835
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#tabs).
917
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#tabs).
836
918
 
837
919
  #### `textarea-minmax-rows`
838
920
 
@@ -853,8 +935,8 @@ npx @mui/codemod v5.0.0/textarea-minmax-rows <path>
853
935
 
854
936
  You can find more details about this breaking change in the migration guide.
855
937
 
856
- - [TextareaAutosize](https://mui.com/material-ui/guides/migration-v4/#textareaautoresize)
857
- - [TextField](https://mui.com/material-ui/guides/migration-v4/#textfield)
938
+ - [TextareaAutosize](https://mui.com/material-ui/migration/v5-component-changes/#textareaautoresize)
939
+ - [TextField](https://mui.com/material-ui/migration/v5-component-changes/#textfield)
858
940
 
859
941
  #### `theme-augment`
860
942
 
@@ -864,7 +946,7 @@ Adds `DefaultTheme` module augmentation to typescript projects.
864
946
  npx @mui/codemod v5.0.0/theme-augment <path>
865
947
  ```
866
948
 
867
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#material-ui-styles).
949
+ 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).
868
950
 
869
951
  #### `theme-breakpoints`
870
952
 
@@ -883,7 +965,7 @@ Updates breakpoint values to match new logic. ⚠️ This mod is not idempotent,
883
965
  npx @mui/codemod v5.0.0/theme-breakpoints <path>
884
966
  ```
885
967
 
886
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
968
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
887
969
 
888
970
  #### `theme-breakpoints-width`
889
971
 
@@ -893,7 +975,7 @@ Renames `theme.breakpoints.width('md')` to `theme.breakpoints.values.md`.
893
975
  npx @mui/codemod v5.0.0/theme-breakpoints-width <path>
894
976
  ```
895
977
 
896
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
978
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
897
979
 
898
980
  #### `theme-options`
899
981
 
@@ -921,7 +1003,7 @@ Renames `type` to `mode`.
921
1003
  npx @mui/codemod v5.0.0/theme-palette-mode <path>
922
1004
  ```
923
1005
 
924
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
1006
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
925
1007
 
926
1008
  #### `theme-provider`
927
1009
 
@@ -931,7 +1013,7 @@ Renames `MuiThemeProvider` to `ThemeProvider`.
931
1013
  npx @mui/codemod v5.0.0/theme-provider <path>
932
1014
  ```
933
1015
 
934
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#material-ui-core-styles).
1016
+ 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).
935
1017
 
936
1018
  #### `theme-spacing`
937
1019
 
@@ -950,7 +1032,7 @@ Removes the 'px' suffix from some template strings.
950
1032
  npx @mui/codemod v5.0.0/theme-spacing <path>
951
1033
  ```
952
1034
 
953
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
1035
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
954
1036
 
955
1037
  #### `theme-typography-round`
956
1038
 
@@ -965,7 +1047,7 @@ Renames `theme.typography.round($number)` to `Math.round($number * 1e5) / 1e5`.
965
1047
  npx @mui/codemod v5.0.0/theme-typography-round <path>
966
1048
  ```
967
1049
 
968
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#theme).
1050
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#theme).
969
1051
 
970
1052
  #### `top-level-imports`
971
1053
 
@@ -1035,7 +1117,7 @@ Updates Dialog, Menu, Popover, and Snackbar to use the `TransitionProps` prop to
1035
1117
  npx @mui/codemod v5.0.0/use-transitionprops <path>
1036
1118
  ```
1037
1119
 
1038
- You can find more details about this breaking change in [the migration guide](/material-ui/guides/migration-v4/#dialog).
1120
+ You can find more details about this breaking change in [the migration guide](/material-ui/migration/v5-component-changes/#dialog).
1039
1121
 
1040
1122
  #### `variant-prop`
1041
1123
 
@@ -1071,7 +1153,7 @@ Removes imported `withMobileDialog`, and inserts hardcoded version to prevent ap
1071
1153
 
1072
1154
  ```diff
1073
1155
  - import withMobileDialog from '@material-ui/core/withMobileDialog';
1074
- + // FIXME checkout https://mui.com/guides/migration-v4/#dialog
1156
+ + // FIXME checkout https://mui.com/material-ui/migration/v5-component-changes/#dialog
1075
1157
  + const withMobileDialog = () => (WrappedComponent) => (props) => <WrappedComponent {...props} width="lg" fullScreen={false} />;
1076
1158
  ```
1077
1159
 
@@ -1079,7 +1161,7 @@ Removes imported `withMobileDialog`, and inserts hardcoded version to prevent ap
1079
1161
  npx @mui/codemod v5.0.0/with-mobile-dialog <path>
1080
1162
  ```
1081
1163
 
1082
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#dialog).
1164
+ You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/migration/v5-component-changes/#dialog).
1083
1165
 
1084
1166
  #### `with-width`
1085
1167
 
@@ -1095,7 +1177,7 @@ Removes `withWidth` import, and inserts hardcoded version to prevent application
1095
1177
  npx @mui/codemod v5.0.0/with-width <path>
1096
1178
  ```
1097
1179
 
1098
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#material-ui-core-styles).
1180
+ 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).
1099
1181
 
1100
1182
  #### `mui-replace`
1101
1183
 
@@ -1156,7 +1238,7 @@ Replace every occurrence of `material-ui` related package with the new package n
1156
1238
  npx @mui/codemod v5.0.0/mui-replace <path>
1157
1239
  ```
1158
1240
 
1159
- You can find more details about this breaking change in [the migration guide](https://mui.com/material-ui/guides/migration-v4/#update-material-ui-version).
1241
+ 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).
1160
1242
 
1161
1243
  ### v4.0.0
1162
1244