@mui/codemod 6.0.0-alpha.11 → 6.0.0-alpha.12
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.
- package/README.md +255 -180
- package/node/deprecations/all/deprecations-all.js +4 -0
- package/node/deprecations/all/postcss.config.js +7 -1
- package/node/deprecations/tab-classes/index.js +13 -0
- package/node/deprecations/tab-classes/postcss-plugin.js +30 -0
- package/node/deprecations/tab-classes/postcss.config.js +8 -0
- package/node/deprecations/tab-classes/tab-classes.js +53 -0
- package/node/deprecations/tab-classes/test-cases/actual.js +5 -0
- package/node/deprecations/tab-classes/test-cases/expected.js +5 -0
- package/node/deprecations/table-sort-label-classes/index.js +13 -0
- package/node/deprecations/table-sort-label-classes/postcss-plugin.js +33 -0
- package/node/deprecations/table-sort-label-classes/postcss.config.js +8 -0
- package/node/deprecations/table-sort-label-classes/table-sort-label-classes.js +77 -0
- package/node/deprecations/table-sort-label-classes/test-cases/actual.js +7 -0
- package/node/deprecations/table-sort-label-classes/test-cases/expected.js +7 -0
- package/node/util/migrateToVariants.js +47 -36
- package/node/v6.0.0/styled/test-cases/ConditionalStyled.expected.js +9 -22
- package/node/v6.0.0/styled/test-cases/DynamicPropsStyled.actual.js +39 -0
- package/node/v6.0.0/styled/test-cases/DynamicPropsStyled.expected.js +65 -0
- package/node/v6.0.0/styled/test-cases/NestedSpread.expected.js +11 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ JS transforms:
|
|
|
106
106
|
- [`& .${accordionSummaryClasses.contentGutters}`]: {
|
|
107
107
|
+ [`&.${accordionSummaryClasses.gutters} .${accordionSummaryClasses.content}`]: {
|
|
108
108
|
color: 'red',
|
|
109
|
-
|
|
109
|
+
},
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
112
|
},
|
|
@@ -119,7 +119,7 @@ JS transforms:
|
|
|
119
119
|
- '& .MuiAccordionSummary-contentGutters': {
|
|
120
120
|
+ '&.MuiAccordionSummary-gutters .MuiAccordionSummary-content': {
|
|
121
121
|
color: 'red',
|
|
122
|
-
|
|
122
|
+
},
|
|
123
123
|
},
|
|
124
124
|
},
|
|
125
125
|
},
|
|
@@ -130,7 +130,6 @@ CSS transforms:
|
|
|
130
130
|
```diff
|
|
131
131
|
-.MuiAccordionSummary-root .MuiAccordionSummary-contentGutters
|
|
132
132
|
+.MuiAccordionSummary-root.MuiAccordionSummary-gutters .MuiAccordionSummary-content
|
|
133
|
-
/>
|
|
134
133
|
```
|
|
135
134
|
|
|
136
135
|
```bash
|
|
@@ -150,51 +149,51 @@ JS transforms:
|
|
|
150
149
|
- [`&.${alertClasses.standardSuccess}`]: {
|
|
151
150
|
+ [`&.${alertClasses.standard}.${alertClasses.colorSuccess}`]: {
|
|
152
151
|
color: 'red',
|
|
153
|
-
|
|
152
|
+
},
|
|
154
153
|
- [`&.${alertClasses.standardInfo}`]: {
|
|
155
154
|
+ [`&.${alertClasses.standard}.${alertClasses.colorInfo}`]: {
|
|
156
155
|
color: 'red',
|
|
157
|
-
|
|
156
|
+
},
|
|
158
157
|
- [`&.${alertClasses.standardWarning}`]: {
|
|
159
158
|
+ [`&.${alertClasses.standard}.${alertClasses.colorWarning}`]: {
|
|
160
159
|
color: 'red',
|
|
161
|
-
|
|
160
|
+
},
|
|
162
161
|
- [`&.${alertClasses.standardError}`]: {
|
|
163
162
|
+ [`&.${alertClasses.standard}.${alertClasses.colorError}`]: {
|
|
164
163
|
color: 'red',
|
|
165
|
-
|
|
164
|
+
},
|
|
166
165
|
- [`&.${alertClasses.outlinedSuccess}`]: {
|
|
167
166
|
+ [`&.${alertClasses.outlined}.${alertClasses.colorSuccess}`]: {
|
|
168
167
|
color: 'red',
|
|
169
|
-
|
|
168
|
+
},
|
|
170
169
|
- [`&.${alertClasses.outlinedInfo}`]: {
|
|
171
170
|
+ [`&.${alertClasses.outlined}.${alertClasses.colorInfo}`]: {
|
|
172
171
|
color: 'red',
|
|
173
|
-
|
|
172
|
+
},
|
|
174
173
|
- [`&.${alertClasses.outlinedWarning}`]: {
|
|
175
174
|
+ [`&.${alertClasses.outlined}.${alertClasses.colorWarning}`]: {
|
|
176
175
|
color: 'red',
|
|
177
|
-
|
|
176
|
+
},
|
|
178
177
|
- [`&.${alertClasses.outlinedError}`]: {
|
|
179
178
|
+ [`&.${alertClasses.outlined}.${alertClasses.colorError}`]: {
|
|
180
179
|
color: 'red',
|
|
181
|
-
|
|
180
|
+
},
|
|
182
181
|
- [`&.${alertClasses.filledSuccess}`]: {
|
|
183
182
|
+ [`&.${alertClasses.filled}.${alertClasses.colorSuccess}`]: {
|
|
184
183
|
color: 'red',
|
|
185
|
-
|
|
184
|
+
},
|
|
186
185
|
- [`&.${alertClasses.filledInfo}`]: {
|
|
187
186
|
+ [`&.${alertClasses.filled}.${alertClasses.colorInfo}`]: {
|
|
188
187
|
color: 'red',
|
|
189
|
-
|
|
188
|
+
},
|
|
190
189
|
- [`&.${alertClasses.filledWarning}`]: {
|
|
191
190
|
+ [`&.${alertClasses.filled}.${alertClasses.colorWarning}`]: {
|
|
192
191
|
color: 'red',
|
|
193
|
-
|
|
192
|
+
},
|
|
194
193
|
- [`&.${alertClasses.filledError}`]: {
|
|
195
194
|
+ [`&.${alertClasses.filled}.${alertClasses.colorError}`]: {
|
|
196
195
|
color: 'red',
|
|
197
|
-
|
|
196
|
+
},
|
|
198
197
|
},
|
|
199
198
|
},
|
|
200
199
|
},
|
|
@@ -238,8 +237,8 @@ npx @mui/codemod@next deprecations/alert-classes <path>
|
|
|
238
237
|
```diff
|
|
239
238
|
<Alert
|
|
240
239
|
- components={{ CloseButton: CustomButton }}
|
|
241
|
-
+ slots={{ closeButton: CustomButton }}
|
|
242
240
|
- componentsProps={{ closeButton: { testid: 'test-id' } }}
|
|
241
|
+
+ slots={{ closeButton: CustomButton }}
|
|
243
242
|
+ slotProps={{ closeButton: { testid: 'test-id' } }}
|
|
244
243
|
/>
|
|
245
244
|
```
|
|
@@ -248,10 +247,10 @@ npx @mui/codemod@next deprecations/alert-classes <path>
|
|
|
248
247
|
MuiAlert: {
|
|
249
248
|
defaultProps: {
|
|
250
249
|
- components: { CloseButton: CustomButton }
|
|
251
|
-
+ slots: { closeButton: CustomButton },
|
|
252
250
|
- componentsProps: { closeButton: { testid: 'test-id' }}
|
|
251
|
+
+ slots: { closeButton: CustomButton },
|
|
253
252
|
+ slotProps: { closeButton: { testid: 'test-id' } },
|
|
254
|
-
|
|
253
|
+
},
|
|
255
254
|
},
|
|
256
255
|
```
|
|
257
256
|
|
|
@@ -330,29 +329,29 @@ npx @mui/codemod@next deprecations/autocomplete-props <path>
|
|
|
330
329
|
```diff
|
|
331
330
|
<AvatarGroup
|
|
332
331
|
- componentsProps={{
|
|
333
|
-
- additionalAvatar: {color:
|
|
332
|
+
- additionalAvatar: { color: 'red' },
|
|
334
333
|
+ slotProps={{
|
|
335
|
-
+ surplus: {color:
|
|
334
|
+
+ surplus: { color: 'red' },
|
|
336
335
|
}}
|
|
337
|
-
|
|
336
|
+
/>
|
|
338
337
|
```
|
|
339
338
|
|
|
340
339
|
```diff
|
|
341
340
|
<AvatarGroup
|
|
342
341
|
slotProps={{
|
|
343
|
-
- additionalAvatar: {color:
|
|
344
|
-
+ surplus: {color:
|
|
342
|
+
- additionalAvatar: { color: 'red' },
|
|
343
|
+
+ surplus: { color: 'red' },
|
|
345
344
|
}}
|
|
346
|
-
|
|
345
|
+
/>
|
|
347
346
|
```
|
|
348
347
|
|
|
349
348
|
```diff
|
|
350
349
|
MuiAvatarGroup: {
|
|
351
350
|
defaultProps: {
|
|
352
351
|
- componentsProps: {
|
|
353
|
-
- additionalAvatar: {color:
|
|
352
|
+
- additionalAvatar: { color: 'red' },
|
|
354
353
|
+ slotProps: {
|
|
355
|
-
+ surplus: {color:
|
|
354
|
+
+ surplus: { color: 'red' },
|
|
356
355
|
},
|
|
357
356
|
},
|
|
358
357
|
},
|
|
@@ -362,8 +361,8 @@ npx @mui/codemod@next deprecations/autocomplete-props <path>
|
|
|
362
361
|
MuiAvatarGroup: {
|
|
363
362
|
defaultProps: {
|
|
364
363
|
slotProps: {
|
|
365
|
-
- additionalAvatar: {color:
|
|
366
|
-
+ surplus: {color:
|
|
364
|
+
- additionalAvatar: { color: 'red' },
|
|
365
|
+
+ surplus: { color: 'red' },
|
|
367
366
|
},
|
|
368
367
|
},
|
|
369
368
|
},
|
|
@@ -384,9 +383,9 @@ npx @mui/codemod@next deprecations/avatar-group-props <path>
|
|
|
384
383
|
+ img: {
|
|
385
384
|
+ onError: () => {},
|
|
386
385
|
+ onLoad: () => {},
|
|
387
|
-
+ }
|
|
386
|
+
+ },
|
|
388
387
|
}}
|
|
389
|
-
|
|
388
|
+
/>
|
|
390
389
|
```
|
|
391
390
|
|
|
392
391
|
#### `backdrop-props`
|
|
@@ -394,8 +393,8 @@ npx @mui/codemod@next deprecations/avatar-group-props <path>
|
|
|
394
393
|
```diff
|
|
395
394
|
<Backdrop
|
|
396
395
|
- components={{ Root: CustomRoot }}
|
|
397
|
-
+ slots={{ root: CustomRoot }}
|
|
398
396
|
- componentsProps={{ root: { testid: 'test-id' } }}
|
|
397
|
+
+ slots={{ root: CustomRoot }}
|
|
399
398
|
+ slotProps={{ root: { testid: 'test-id' } }}
|
|
400
399
|
/>
|
|
401
400
|
```
|
|
@@ -404,8 +403,8 @@ npx @mui/codemod@next deprecations/avatar-group-props <path>
|
|
|
404
403
|
MuiBackdrop: {
|
|
405
404
|
defaultProps: {
|
|
406
405
|
- components: { Root: CustomRoot }
|
|
407
|
-
+ slots: { root: CustomRoot },
|
|
408
406
|
- componentsProps: { root: { testid: 'root-id' } }
|
|
407
|
+
+ slots: { root: CustomRoot },
|
|
409
408
|
+ slotProps: { root: { testid: 'root-id' } },
|
|
410
409
|
},
|
|
411
410
|
},
|
|
@@ -413,8 +412,8 @@ npx @mui/codemod@next deprecations/avatar-group-props <path>
|
|
|
413
412
|
|
|
414
413
|
```diff
|
|
415
414
|
<Backdrop
|
|
416
|
-
-
|
|
417
|
-
+
|
|
415
|
+
- TransitionComponent={CustomTransition}
|
|
416
|
+
+ slots={{ transition: CustomTransition }}
|
|
418
417
|
/>
|
|
419
418
|
```
|
|
420
419
|
|
|
@@ -427,8 +426,8 @@ npx @mui/codemod@next deprecations/backdrop-props <path>
|
|
|
427
426
|
```diff
|
|
428
427
|
<Badge
|
|
429
428
|
- components={{ Root: CustomRoot }}
|
|
430
|
-
+ slots={{ root: CustomRoot }}
|
|
431
429
|
- componentsProps={{ root: { testid: 'test-id' } }}
|
|
430
|
+
+ slots={{ root: CustomRoot }}
|
|
432
431
|
+ slotProps={{ root: { testid: 'test-id' } }}
|
|
433
432
|
/>
|
|
434
433
|
```
|
|
@@ -437,8 +436,8 @@ npx @mui/codemod@next deprecations/backdrop-props <path>
|
|
|
437
436
|
MuiBadge: {
|
|
438
437
|
defaultProps: {
|
|
439
438
|
- components: { Root: CustomRoot }
|
|
440
|
-
+ slots: { root: CustomRoot },
|
|
441
439
|
- componentsProps: { root: { testid: 'test-id' }}
|
|
440
|
+
+ slots: { root: CustomRoot },
|
|
442
441
|
+ slotProps: { root: { testid: 'test-id' } },
|
|
443
442
|
},
|
|
444
443
|
},
|
|
@@ -461,135 +460,135 @@ JS transforms:
|
|
|
461
460
|
- [`&.${buttonClasses.textInherit}`]: {
|
|
462
461
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorInherit}`]: {
|
|
463
462
|
color: 'red',
|
|
464
|
-
|
|
463
|
+
},
|
|
465
464
|
- [`&.${buttonClasses.textPrimary}`]: {
|
|
466
465
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorPrimary}`]: {
|
|
467
466
|
color: 'red',
|
|
468
|
-
|
|
467
|
+
},
|
|
469
468
|
- [`&.${buttonClasses.textSecondary}`]: {
|
|
470
469
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorSecondary}`]: {
|
|
471
470
|
color: 'red',
|
|
472
|
-
|
|
471
|
+
},
|
|
473
472
|
- [`&.${buttonClasses.textSuccess}`]: {
|
|
474
473
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorSuccess}`]: {
|
|
475
474
|
color: 'red',
|
|
476
|
-
|
|
475
|
+
},
|
|
477
476
|
- [`&.${buttonClasses.textError}`]: {
|
|
478
477
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorError}`]: {
|
|
479
478
|
color: 'red',
|
|
480
|
-
|
|
479
|
+
},
|
|
481
480
|
- [`&.${buttonClasses.textInfo}`]: {
|
|
482
481
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorInfo}`]: {
|
|
483
482
|
color: 'red',
|
|
484
|
-
|
|
483
|
+
},
|
|
485
484
|
- [`&.${buttonClasses.textWarning}`]: {
|
|
486
485
|
+ [`&.${buttonClasses.text}.${buttonClasses.colorWarning}`]: {
|
|
487
486
|
color: 'red',
|
|
488
|
-
|
|
487
|
+
},
|
|
489
488
|
- [`&.${buttonClasses.outlinedInherit}`]: {
|
|
490
489
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorInherit}`]: {
|
|
491
490
|
color: 'red',
|
|
492
|
-
|
|
491
|
+
},
|
|
493
492
|
- [`&.${buttonClasses.outlinedPrimary}`]: {
|
|
494
493
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorPrimary}`]: {
|
|
495
494
|
color: 'red',
|
|
496
|
-
|
|
495
|
+
},
|
|
497
496
|
- [`&.${buttonClasses.outlinedSecondary}`]: {
|
|
498
497
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorSecondary}`]: {
|
|
499
498
|
color: 'red',
|
|
500
|
-
|
|
499
|
+
},
|
|
501
500
|
- [`&.${buttonClasses.outlinedSuccess}`]: {
|
|
502
501
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorSuccess}`]: {
|
|
503
502
|
color: 'red',
|
|
504
|
-
|
|
503
|
+
},
|
|
505
504
|
- [`&.${buttonClasses.outlinedError}`]: {
|
|
506
505
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorError}`]: {
|
|
507
506
|
color: 'red',
|
|
508
|
-
|
|
507
|
+
},
|
|
509
508
|
- [`&.${buttonClasses.outlinedInfo}`]: {
|
|
510
509
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorInfo}`]: {
|
|
511
510
|
color: 'red',
|
|
512
|
-
|
|
511
|
+
},
|
|
513
512
|
- [`&.${buttonClasses.outlinedWarning}`]: {
|
|
514
513
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.colorWarning}`]: {
|
|
515
514
|
color: 'red',
|
|
516
|
-
|
|
515
|
+
},
|
|
517
516
|
- [`&.${buttonClasses.containedInherit}`]: {
|
|
518
517
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorInherit}`]: {
|
|
519
518
|
color: 'red',
|
|
520
|
-
|
|
519
|
+
},
|
|
521
520
|
- [`&.${buttonClasses.containedPrimary}`]: {
|
|
522
521
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorPrimary}`]: {
|
|
523
522
|
color: 'red',
|
|
524
|
-
|
|
523
|
+
},
|
|
525
524
|
- [`&.${buttonClasses.containedSecondary}`]: {
|
|
526
525
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorSecondary}`]: {
|
|
527
526
|
color: 'red',
|
|
528
|
-
|
|
527
|
+
},
|
|
529
528
|
- [`&.${buttonClasses.containedSuccess}`]: {
|
|
530
529
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorSuccess}`]: {
|
|
531
530
|
color: 'red',
|
|
532
|
-
|
|
531
|
+
},
|
|
533
532
|
- [`&.${buttonClasses.containedError}`]: {
|
|
534
533
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorError}`]: {
|
|
535
534
|
color: 'red',
|
|
536
|
-
|
|
535
|
+
},
|
|
537
536
|
- [`&.${buttonClasses.containedInfo}`]: {
|
|
538
537
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorInfo}`]: {
|
|
539
538
|
color: 'red',
|
|
540
|
-
|
|
539
|
+
},
|
|
541
540
|
- [`&.${buttonClasses.containedWarning}`]: {
|
|
542
541
|
+ [`&.${buttonClasses.contained}.${buttonClasses.colorWarning}`]: {
|
|
543
542
|
color: 'red',
|
|
544
|
-
|
|
543
|
+
},
|
|
545
544
|
- [`&.${buttonClasses.containedSizeSmall}`]: {
|
|
546
545
|
+ [`&.${buttonClasses.contained}.${buttonClasses.sizeSmall}`]: {
|
|
547
546
|
color: 'red',
|
|
548
|
-
|
|
547
|
+
},
|
|
549
548
|
- [`&.${buttonClasses.containedSizeMedium}`]: {
|
|
550
549
|
+ [`&.${buttonClasses.contained}.${buttonClasses.sizeMedium}`]: {
|
|
551
550
|
color: 'red',
|
|
552
|
-
|
|
551
|
+
},
|
|
553
552
|
- [`&.${buttonClasses.containedSizeLarge}`]: {
|
|
554
553
|
+ [`&.${buttonClasses.contained}.${buttonClasses.sizeLarge}`]: {
|
|
555
554
|
color: 'red',
|
|
556
|
-
|
|
555
|
+
},
|
|
557
556
|
- [`&.${buttonClasses.textSizeSmall}`]: {
|
|
558
557
|
+ [`&.${buttonClasses.text}.${buttonClasses.sizeSmall}`]: {
|
|
559
558
|
color: 'red',
|
|
560
|
-
|
|
559
|
+
},
|
|
561
560
|
- [`&.${buttonClasses.textSizeMedium}`]: {
|
|
562
561
|
+ [`&.${buttonClasses.text}.${buttonClasses.sizeMedium}`]: {
|
|
563
562
|
color: 'red',
|
|
564
|
-
|
|
563
|
+
},
|
|
565
564
|
- [`&.${buttonClasses.textSizeLarge}`]: {
|
|
566
565
|
+ [`&.${buttonClasses.text}.${buttonClasses.sizeLarge}`]: {
|
|
567
566
|
color: 'red',
|
|
568
|
-
|
|
567
|
+
},
|
|
569
568
|
- [`&.${buttonClasses.outlinedSizeSmall}`]: {
|
|
570
569
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.sizeSmall}`]: {
|
|
571
570
|
color: 'red',
|
|
572
|
-
|
|
571
|
+
},
|
|
573
572
|
- [`&.${buttonClasses.outlinedSizeMedium}`]: {
|
|
574
573
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.sizeMedium}`]: {
|
|
575
574
|
color: 'red',
|
|
576
|
-
|
|
575
|
+
},
|
|
577
576
|
- [`&.${buttonClasses.outlinedSizeLarge}`]: {
|
|
578
577
|
+ [`&.${buttonClasses.outlined}.${buttonClasses.sizeLarge}`]: {
|
|
579
578
|
color: 'red',
|
|
580
|
-
|
|
579
|
+
},
|
|
581
580
|
- [`& .${buttonClasses.iconSizeSmall}`]: {
|
|
582
581
|
+ [`&.${buttonClasses.sizeSmall} > .${buttonClasses.icon}`]: {
|
|
583
582
|
color: 'red',
|
|
584
|
-
|
|
583
|
+
},
|
|
585
584
|
- [`& .${buttonClasses.iconSizeMedium}`]: {
|
|
586
585
|
+ [`&.${buttonClasses.sizeMedium} > .${buttonClasses.icon}`]: {
|
|
587
586
|
color: 'red',
|
|
588
|
-
|
|
587
|
+
},
|
|
589
588
|
- [`& .${buttonClasses.iconSizeLarge}`]: {
|
|
590
589
|
+ [`&.${buttonClasses.sizeLarge} > .${buttonClasses.icon}`]: {
|
|
591
590
|
color: 'red',
|
|
592
|
-
|
|
591
|
+
},
|
|
593
592
|
},
|
|
594
593
|
},
|
|
595
594
|
},
|
|
@@ -664,7 +663,6 @@ CSS transforms:
|
|
|
664
663
|
+.MuiButton-root.MuiButton-sizeMedium > .MuiButton-icon
|
|
665
664
|
-.MuiButton-root .MuiButton-iconSizeLarge
|
|
666
665
|
+.MuiButton-root.MuiButton-sizeLarge > .MuiButton-icon
|
|
667
|
-
/>
|
|
668
666
|
```
|
|
669
667
|
|
|
670
668
|
```bash
|
|
@@ -684,71 +682,71 @@ JS transforms:
|
|
|
684
682
|
- [`& .${buttonGroupClasses.groupedHorizontal}`]: {
|
|
685
683
|
+ [`&.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
|
|
686
684
|
color: 'red',
|
|
687
|
-
|
|
685
|
+
},
|
|
688
686
|
- [`& .${buttonGroupClasses.groupedVertical}`]: {
|
|
689
687
|
+ [`&.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
|
|
690
688
|
color: 'red',
|
|
691
|
-
|
|
689
|
+
},
|
|
692
690
|
- [`& .${buttonGroupClasses.groupedText}`]: {
|
|
693
691
|
+ [`&.${buttonGroupClasses.text} > .${buttonGroupClasses.grouped}`]: {
|
|
694
692
|
color: 'red',
|
|
695
|
-
|
|
693
|
+
},
|
|
696
694
|
- [`& .${buttonGroupClasses.groupedTextHorizontal}`]: {
|
|
697
695
|
+ [`&.${buttonGroupClasses.text}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
|
|
698
696
|
color: 'red',
|
|
699
|
-
|
|
697
|
+
},
|
|
700
698
|
- [`& .${buttonGroupClasses.groupedTextVertical}`]: {
|
|
701
699
|
+ [`&.${buttonGroupClasses.text}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
|
|
702
700
|
color: 'red',
|
|
703
|
-
|
|
701
|
+
},
|
|
704
702
|
- [`& .${buttonGroupClasses.groupedTextPrimary}`]: {
|
|
705
703
|
+ [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
|
|
706
704
|
color: 'red',
|
|
707
|
-
|
|
705
|
+
},
|
|
708
706
|
- [`& .${buttonGroupClasses.groupedTextSecondary}`]: {
|
|
709
707
|
+ [`&.${buttonGroupClasses.text}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
|
|
710
708
|
color: 'red',
|
|
711
|
-
|
|
709
|
+
},
|
|
712
710
|
- [`& .${buttonGroupClasses.groupedOutlined}`]: {
|
|
713
711
|
+ [`&.${buttonGroupClasses.outlined} > .${buttonGroupClasses.grouped}`]: {
|
|
714
712
|
color: 'red',
|
|
715
|
-
|
|
713
|
+
},
|
|
716
714
|
- [`& .${buttonGroupClasses.groupedOutlinedHorizontal}`]: {
|
|
717
715
|
+ [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
|
|
718
716
|
color: 'red',
|
|
719
|
-
|
|
717
|
+
},
|
|
720
718
|
- [`& .${buttonGroupClasses.groupedOutlinedVertical}`]: {
|
|
721
719
|
+ [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
|
|
722
720
|
color: 'red',
|
|
723
|
-
|
|
721
|
+
},
|
|
724
722
|
- [`& .${buttonGroupClasses.groupedOutlinedPrimary}`]: {
|
|
725
723
|
+ [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
|
|
726
724
|
color: 'red',
|
|
727
|
-
|
|
725
|
+
},
|
|
728
726
|
- [`& .${buttonGroupClasses.groupedOutlinedSecondary}`]: {
|
|
729
727
|
+ [`&.${buttonGroupClasses.outlined}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
|
|
730
728
|
color: 'red',
|
|
731
|
-
|
|
729
|
+
},
|
|
732
730
|
- [`& .${buttonGroupClasses.groupedContained}`]: {
|
|
733
731
|
+ [`&.${buttonGroupClasses.contained} > .${buttonGroupClasses.grouped}`]: {
|
|
734
732
|
color: 'red',
|
|
735
|
-
|
|
733
|
+
},
|
|
736
734
|
- [`& .${buttonGroupClasses.groupedContainedHorizontal}`]: {
|
|
737
735
|
+ [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.horizontal} > .${buttonGroupClasses.grouped}`]: {
|
|
738
736
|
color: 'red',
|
|
739
|
-
|
|
737
|
+
},
|
|
740
738
|
- [`& .${buttonGroupClasses.groupedContainedVertical}`]: {
|
|
741
739
|
+ [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.vertical} > .${buttonGroupClasses.grouped}`]: {
|
|
742
740
|
color: 'red',
|
|
743
|
-
|
|
741
|
+
},
|
|
744
742
|
- [`& .${buttonGroupClasses.groupedContainedPrimary}`]: {
|
|
745
743
|
+ [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorPrimary} > .${buttonGroupClasses.grouped}`]: {
|
|
746
744
|
color: 'red',
|
|
747
|
-
|
|
745
|
+
},
|
|
748
746
|
- [`& .${buttonGroupClasses.groupedContainedSecondary}`]: {
|
|
749
747
|
+ [`&.${buttonGroupClasses.contained}.${buttonGroupClasses.colorSecondary} > .${buttonGroupClasses.grouped}`]: {
|
|
750
748
|
color: 'red',
|
|
751
|
-
|
|
749
|
+
},
|
|
752
750
|
},
|
|
753
751
|
},
|
|
754
752
|
},
|
|
@@ -811,107 +809,107 @@ JS transforms:
|
|
|
811
809
|
- [`&.${chipClasses.clickableColorPrimary}`]: {
|
|
812
810
|
+ [`&.${chipClasses.clickable}.${chipClasses.colorPrimary}`]: {
|
|
813
811
|
color: 'red',
|
|
814
|
-
|
|
812
|
+
},
|
|
815
813
|
- [`&.${chipClasses.clickableColorSecondary}`]: {
|
|
816
814
|
+ [`&.${chipClasses.clickable}.${chipClasses.colorSecondary}`]: {
|
|
817
815
|
color: 'red',
|
|
818
|
-
|
|
816
|
+
},
|
|
819
817
|
- [`&.${chipClasses.deletableColorPrimary}`]: {
|
|
820
818
|
+ [`&.${chipClasses.deletable}.${chipClasses.colorPrimary}`]: {
|
|
821
819
|
color: 'red',
|
|
822
|
-
|
|
820
|
+
},
|
|
823
821
|
- [`&.${chipClasses.deletableColorSecondary}`]: {
|
|
824
822
|
+ [`&.${chipClasses.deletable}.${chipClasses.colorSecondary}`]: {
|
|
825
823
|
color: 'red',
|
|
826
|
-
|
|
824
|
+
},
|
|
827
825
|
- [`&.${chipClasses.outlinedPrimary}`]: {
|
|
828
826
|
+ [`&.${chipClasses.outlined}.${chipClasses.colorPrimary}`]: {
|
|
829
827
|
color: 'red',
|
|
830
|
-
|
|
828
|
+
},
|
|
831
829
|
- [`&.${chipClasses.outlinedSecondary}`]: {
|
|
832
830
|
+ [`&.${chipClasses.outlined}.${chipClasses.colorSecondary}`]: {
|
|
833
831
|
color: 'red',
|
|
834
|
-
|
|
832
|
+
},
|
|
835
833
|
- [`&.${chipClasses.filledPrimary}`]: {
|
|
836
834
|
+ [`&.${chipClasses.filled}.${chipClasses.colorPrimary}`]: {
|
|
837
835
|
color: 'red',
|
|
838
|
-
|
|
836
|
+
},
|
|
839
837
|
- [`&.${chipClasses.filledSecondary}`]: {
|
|
840
838
|
+ [`&.${chipClasses.filled}.${chipClasses.colorSecondary}`]: {
|
|
841
839
|
color: 'red',
|
|
842
|
-
|
|
840
|
+
},
|
|
843
841
|
- [`& .${chipClasses.avatarSmall}`]: {
|
|
844
842
|
+ [`&.${chipClasses.sizeSmall} > .${chipClasses.avatar}`]: {
|
|
845
843
|
color: 'red',
|
|
846
|
-
|
|
844
|
+
},
|
|
847
845
|
- [`& .${chipClasses.avatarMedium}`]: {
|
|
848
846
|
+ [`&.${chipClasses.sizeMedium} > .${chipClasses.avatar}`]: {
|
|
849
847
|
color: 'red',
|
|
850
|
-
|
|
848
|
+
},
|
|
851
849
|
- [`& .${chipClasses.avatarColorPrimary}`]: {
|
|
852
850
|
+ [`&.${chipClasses.colorPrimary} > .${chipClasses.avatar}`]: {
|
|
853
851
|
color: 'red',
|
|
854
|
-
|
|
852
|
+
},
|
|
855
853
|
- [`& .${chipClasses.avatarColorSecondary}`]: {
|
|
856
854
|
+ [`&.${chipClasses.colorSecondary} > .${chipClasses.avatar}`]: {
|
|
857
855
|
color: 'red',
|
|
858
|
-
|
|
856
|
+
},
|
|
859
857
|
- [`& .${chipClasses.iconSmall}`]: {
|
|
860
858
|
+ [`&.${chipClasses.sizeSmall} > .${chipClasses.icon}`]: {
|
|
861
859
|
color: 'red',
|
|
862
|
-
|
|
860
|
+
},
|
|
863
861
|
- [`& .${chipClasses.iconMedium}`]: {
|
|
864
862
|
+ [`&.${chipClasses.sizeMedium} > .${chipClasses.icon}`]: {
|
|
865
863
|
color: 'red',
|
|
866
|
-
|
|
864
|
+
},
|
|
867
865
|
- [`& .${chipClasses.iconColorPrimary}`]: {
|
|
868
866
|
+ [`&.${chipClasses.colorPrimary} > .${chipClasses.icon}`]: {
|
|
869
867
|
color: 'red',
|
|
870
|
-
|
|
868
|
+
},
|
|
871
869
|
- [`& .${chipClasses.iconColorSecondary}`]: {
|
|
872
870
|
+ [`&.${chipClasses.colorSecondary} > .${chipClasses.icon}`]: {
|
|
873
871
|
color: 'red',
|
|
874
|
-
|
|
872
|
+
},
|
|
875
873
|
- [`& .${chipClasses.labelSmall}`]: {
|
|
876
874
|
+ [`&.${chipClasses.sizeSmall} > .${chipClasses.label}`]: {
|
|
877
875
|
color: 'red',
|
|
878
|
-
|
|
876
|
+
},
|
|
879
877
|
- [`& .${chipClasses.labelMedium}`]: {
|
|
880
878
|
+ [`&.${chipClasses.sizeMedium} > .${chipClasses.label}`]: {
|
|
881
879
|
color: 'red',
|
|
882
|
-
|
|
880
|
+
},
|
|
883
881
|
- [`& .${chipClasses.deleteIconSmall}`]: {
|
|
884
882
|
+ [`&.${chipClasses.sizeSmall} > .${chipClasses.deleteIcon}`]: {
|
|
885
883
|
color: 'red',
|
|
886
|
-
|
|
884
|
+
},
|
|
887
885
|
- [`& .${chipClasses.deleteIconMedium}`]: {
|
|
888
886
|
+ [`&.${chipClasses.sizeMedium} > .${chipClasses.deleteIcon}`]: {
|
|
889
887
|
color: 'red',
|
|
890
|
-
|
|
888
|
+
},
|
|
891
889
|
- [`& .${chipClasses.deleteIconColorPrimary}`]: {
|
|
892
890
|
+ [`&.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: {
|
|
893
891
|
color: 'red',
|
|
894
|
-
|
|
892
|
+
},
|
|
895
893
|
- [`& .${chipClasses.deleteIconColorSecondary}`]: {
|
|
896
894
|
+ [`&.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: {
|
|
897
895
|
color: 'red',
|
|
898
|
-
|
|
896
|
+
},
|
|
899
897
|
- [`& .${chipClasses.deleteIconOutlinedColorPrimary}`]: {
|
|
900
898
|
+ [`&.${chipClasses.outlined}.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: {
|
|
901
899
|
color: 'red',
|
|
902
|
-
|
|
900
|
+
},
|
|
903
901
|
- [`& .${chipClasses.deleteIconOutlinedColorSecondary}`]: {
|
|
904
902
|
+ [`&.${chipClasses.outlined}.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: {
|
|
905
903
|
color: 'red',
|
|
906
|
-
|
|
904
|
+
},
|
|
907
905
|
- [`& .${chipClasses.deleteIconFilledColorPrimary}`]: {
|
|
908
906
|
+ [`&.${chipClasses.filled}.${chipClasses.colorPrimary} > .${chipClasses.deleteIcon}`]: {
|
|
909
907
|
color: 'red',
|
|
910
|
-
|
|
908
|
+
},
|
|
911
909
|
- [`& .${chipClasses.deleteIconFilledColorSecondary}`]: {
|
|
912
910
|
+ [`&.${chipClasses.filled}.${chipClasses.colorSecondary} > .${chipClasses.deleteIcon}`]: {
|
|
913
911
|
color: 'red',
|
|
914
|
-
|
|
912
|
+
},
|
|
915
913
|
},
|
|
916
914
|
},
|
|
917
915
|
},
|
|
@@ -992,11 +990,11 @@ JS transforms:
|
|
|
992
990
|
- [`& .${circularProgressClasses.circleDeterminate}`]: {
|
|
993
991
|
+ [`&.${circularProgressClasses.determinate} > .${circularProgressClasses.circle}`]: {
|
|
994
992
|
color: 'red',
|
|
995
|
-
|
|
993
|
+
},
|
|
996
994
|
- [`& .${circularProgressClasses.circleIndeterminate}`]: {
|
|
997
995
|
+ [`&.${circularProgressClasses.indeterminate} > .${circularProgressClasses.circle}`]: {
|
|
998
996
|
color: 'red',
|
|
999
|
-
|
|
997
|
+
},
|
|
1000
998
|
},
|
|
1001
999
|
},
|
|
1002
1000
|
},
|
|
@@ -1005,9 +1003,12 @@ JS transforms:
|
|
|
1005
1003
|
CSS transforms:
|
|
1006
1004
|
|
|
1007
1005
|
```diff
|
|
1008
|
-
|
|
1006
|
+
-.MuiCircularProgress-circleDeterminate
|
|
1009
1007
|
+.MuiCircularProgress-determinate > .MuiCircularProgress-circle
|
|
1010
|
-
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
```diff
|
|
1011
|
+
-.MuiCircularProgress-circleIndeterminate
|
|
1011
1012
|
+.MuiCircularProgress-indeterminate > .MuiCircularProgress-circle
|
|
1012
1013
|
```
|
|
1013
1014
|
|
|
@@ -1020,7 +1021,7 @@ npx @mui/codemod@next deprecations/circular-progress-classes <path>
|
|
|
1020
1021
|
```diff
|
|
1021
1022
|
<Divider
|
|
1022
1023
|
- light
|
|
1023
|
-
+ sx={{opacity:
|
|
1024
|
+
+ sx={{ opacity: 0.6 }}
|
|
1024
1025
|
/>
|
|
1025
1026
|
```
|
|
1026
1027
|
|
|
@@ -1033,8 +1034,8 @@ npx @mui/codemod@next deprecations/divider-props <path>
|
|
|
1033
1034
|
```diff
|
|
1034
1035
|
<FilledInput
|
|
1035
1036
|
- components={{ Input: CustomInput, Root: CustomRoot }}
|
|
1036
|
-
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1037
1037
|
- componentsProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1038
|
+
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1038
1039
|
+ slotProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1039
1040
|
/>
|
|
1040
1041
|
```
|
|
@@ -1043,8 +1044,8 @@ npx @mui/codemod@next deprecations/divider-props <path>
|
|
|
1043
1044
|
MuiFilledInput: {
|
|
1044
1045
|
defaultProps: {
|
|
1045
1046
|
- components: { Input: CustomInput, Root: CustomRoot }
|
|
1046
|
-
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1047
1047
|
- componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }
|
|
1048
|
+
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1048
1049
|
+ slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } },
|
|
1049
1050
|
},
|
|
1050
1051
|
},
|
|
@@ -1066,9 +1067,9 @@ npx @mui/codemod@next deprecations/filled-input-props <path>
|
|
|
1066
1067
|
```diff
|
|
1067
1068
|
MuiFormControlLabel: {
|
|
1068
1069
|
defaultProps: {
|
|
1069
|
-
-
|
|
1070
|
-
+
|
|
1071
|
-
|
|
1070
|
+
- componentsProps={{ typography: typographyProps }}
|
|
1071
|
+
+ slotProps={{ typography: typographyProps }}
|
|
1072
|
+
},
|
|
1072
1073
|
},
|
|
1073
1074
|
```
|
|
1074
1075
|
|
|
@@ -1082,8 +1083,8 @@ npx @mui/codemod@next deprecations/form-control-label-props <path>
|
|
|
1082
1083
|
```diff
|
|
1083
1084
|
<ListItem
|
|
1084
1085
|
- components={{ Root: CustomRoot }}
|
|
1085
|
-
+ slots={{ root: CustomRoot }}
|
|
1086
1086
|
- componentsProps={{ root: { testid: 'test-id' } }}
|
|
1087
|
+
+ slots={{ root: CustomRoot }}
|
|
1087
1088
|
+ slotProps={{ root: { testid: 'test-id' } }}
|
|
1088
1089
|
/>
|
|
1089
1090
|
```
|
|
@@ -1092,8 +1093,8 @@ npx @mui/codemod@next deprecations/form-control-label-props <path>
|
|
|
1092
1093
|
MuiListItem: {
|
|
1093
1094
|
defaultProps: {
|
|
1094
1095
|
- components: { Root: CustomRoot }
|
|
1095
|
-
+ slots: { root: CustomRoot },
|
|
1096
1096
|
- componentsProps: { root: { testid: 'test-id' }}
|
|
1097
|
+
+ slots: { root: CustomRoot },
|
|
1097
1098
|
+ slotProps: { root: { testid: 'test-id' } },
|
|
1098
1099
|
},
|
|
1099
1100
|
},
|
|
@@ -1107,8 +1108,8 @@ npx @mui/codemod@next deprecations/list-item-props <path>
|
|
|
1107
1108
|
|
|
1108
1109
|
```diff
|
|
1109
1110
|
<Grid
|
|
1110
|
-
-
|
|
1111
|
-
+
|
|
1111
|
+
- wrap="nowrap"
|
|
1112
|
+
+ flexWrap="nowrap"
|
|
1112
1113
|
/>
|
|
1113
1114
|
```
|
|
1114
1115
|
|
|
@@ -1121,8 +1122,8 @@ npx @mui/codemod@next deprecations/grid-props <path>
|
|
|
1121
1122
|
```diff
|
|
1122
1123
|
<InputBase
|
|
1123
1124
|
- components={{ Input: CustomInput, Root: CustomRoot }}
|
|
1124
|
-
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1125
1125
|
- componentsProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1126
|
+
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1126
1127
|
+ slotProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1127
1128
|
/>
|
|
1128
1129
|
```
|
|
@@ -1131,8 +1132,8 @@ npx @mui/codemod@next deprecations/grid-props <path>
|
|
|
1131
1132
|
MuiInputBase: {
|
|
1132
1133
|
defaultProps: {
|
|
1133
1134
|
- components: { Input: CustomInput, Root: CustomRoot }
|
|
1134
|
-
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1135
1135
|
- componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }
|
|
1136
|
+
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1136
1137
|
+ slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } },
|
|
1137
1138
|
},
|
|
1138
1139
|
},
|
|
@@ -1147,8 +1148,8 @@ npx @mui/codemod@next deprecations/input-base-props <path>
|
|
|
1147
1148
|
```diff
|
|
1148
1149
|
<Input
|
|
1149
1150
|
- components={{ Input: CustomInput, Root: CustomRoot }}
|
|
1150
|
-
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1151
1151
|
- componentsProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1152
|
+
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1152
1153
|
+ slotProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1153
1154
|
/>
|
|
1154
1155
|
```
|
|
@@ -1157,8 +1158,8 @@ npx @mui/codemod@next deprecations/input-base-props <path>
|
|
|
1157
1158
|
MuiInput: {
|
|
1158
1159
|
defaultProps: {
|
|
1159
1160
|
- components: { Input: CustomInput, Root: CustomRoot }
|
|
1160
|
-
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1161
1161
|
- componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }
|
|
1162
|
+
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1162
1163
|
+ slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } },
|
|
1163
1164
|
},
|
|
1164
1165
|
},
|
|
@@ -1173,8 +1174,8 @@ npx @mui/codemod@next deprecations/input-props <path>
|
|
|
1173
1174
|
```diff
|
|
1174
1175
|
<Modal
|
|
1175
1176
|
- components={{ Root: CustomRoot, Backdrop: CustomBackdrop }}
|
|
1176
|
-
+ slots={{ root: CustomRoot, backdrop: CustomBackdrop }}
|
|
1177
1177
|
- componentsProps={{ root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' } }}
|
|
1178
|
+
+ slots={{ root: CustomRoot, backdrop: CustomBackdrop }}
|
|
1178
1179
|
+ slotProps={{ root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' } }}
|
|
1179
1180
|
/>
|
|
1180
1181
|
```
|
|
@@ -1183,8 +1184,8 @@ npx @mui/codemod@next deprecations/input-props <path>
|
|
|
1183
1184
|
MuiModal: {
|
|
1184
1185
|
defaultProps: {
|
|
1185
1186
|
- components: { Root: CustomRoot, Backdrop: CustomBackdrop }
|
|
1186
|
-
+ slots: { root: CustomRoot, backdrop: CustomBackdrop },
|
|
1187
1187
|
- componentsProps: { root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' }}
|
|
1188
|
+
+ slots: { root: CustomRoot, backdrop: CustomBackdrop },
|
|
1188
1189
|
+ slotProps: { root: { testid: 'root-id' }, backdrop: { testid: 'backdrop-id' } },
|
|
1189
1190
|
},
|
|
1190
1191
|
},
|
|
@@ -1207,35 +1208,35 @@ JS transforms:
|
|
|
1207
1208
|
- [`&.${paginationItemClasses.textPrimary}`]: {
|
|
1208
1209
|
+ [`&.${paginationItemClasses.text}.${paginationItemClasses.colorPrimary}`]: {
|
|
1209
1210
|
color: 'red',
|
|
1210
|
-
|
|
1211
|
+
},
|
|
1211
1212
|
- [`&.${paginationItemClasses.textSecondary}`]: {
|
|
1212
1213
|
+ [`&.${paginationItemClasses.text}.${paginationItemClasses.colorSecondary}`]: {
|
|
1213
1214
|
color: 'red',
|
|
1214
|
-
|
|
1215
|
+
},
|
|
1215
1216
|
- [`&.${paginationItemClasses.outlinedPrimary}`]: {
|
|
1216
1217
|
+ [`&.${paginationItemClasses.outlined}.${paginationItemClasses.colorPrimary}`]: {
|
|
1217
1218
|
color: 'red',
|
|
1218
|
-
|
|
1219
|
+
},
|
|
1219
1220
|
- [`&.${paginationItemClasses.outlinedSecondary}`]: {
|
|
1220
1221
|
+ [`&.${paginationItemClasses.outlined}.${paginationItemClasses.colorSecondary}`]: {
|
|
1221
1222
|
color: 'red',
|
|
1222
|
-
|
|
1223
|
+
},
|
|
1223
1224
|
- '&.MuiPaginationItem-textPrimary': {
|
|
1224
1225
|
+ '&.MuiPaginationItem-text.MuiPaginationItem-colorPrimary': {
|
|
1225
1226
|
color: 'red',
|
|
1226
|
-
|
|
1227
|
+
},
|
|
1227
1228
|
- '&.MuiPaginationItem-textSecondary': {
|
|
1228
1229
|
+ '&.MuiPaginationItem-text.MuiPaginationItem-colorSecondary': {
|
|
1229
1230
|
color: 'red',
|
|
1230
|
-
|
|
1231
|
+
},
|
|
1231
1232
|
- '&.MuiPaginationItem-outlinedPrimary': {
|
|
1232
1233
|
+ '&.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary': {
|
|
1233
1234
|
color: 'red',
|
|
1234
|
-
|
|
1235
|
+
},
|
|
1235
1236
|
- '&.MuiPaginationItem-outlinedSecondary': {
|
|
1236
1237
|
+ '&.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary': {
|
|
1237
1238
|
color: 'red',
|
|
1238
|
-
|
|
1239
|
+
},
|
|
1239
1240
|
},
|
|
1240
1241
|
},
|
|
1241
1242
|
},
|
|
@@ -1285,8 +1286,8 @@ npx @mui/codemod@next deprecations/pagination-item-props <path>
|
|
|
1285
1286
|
```diff
|
|
1286
1287
|
<Popper
|
|
1287
1288
|
- components={{ Root: CustomRoot }}
|
|
1288
|
-
+ slots={{ root: CustomRoot }}
|
|
1289
1289
|
- componentsProps={{ root: { testid: 'test-id' } }}
|
|
1290
|
+
+ slots={{ root: CustomRoot }}
|
|
1290
1291
|
+ slotProps={{ root: { testid: 'test-id' } }}
|
|
1291
1292
|
/>
|
|
1292
1293
|
```
|
|
@@ -1295,8 +1296,8 @@ npx @mui/codemod@next deprecations/pagination-item-props <path>
|
|
|
1295
1296
|
MuiPopper: {
|
|
1296
1297
|
defaultProps: {
|
|
1297
1298
|
- components: { Root: CustomRoot }
|
|
1298
|
-
+ slots: { root: CustomRoot },
|
|
1299
1299
|
- componentsProps: { root: { testid: 'test-id' }}
|
|
1300
|
+
+ slots: { root: CustomRoot },
|
|
1300
1301
|
+ slotProps: { root: { testid: 'test-id' } },
|
|
1301
1302
|
},
|
|
1302
1303
|
},
|
|
@@ -1311,8 +1312,8 @@ npx @mui/codemod@next deprecations/popper-props <path>
|
|
|
1311
1312
|
```diff
|
|
1312
1313
|
<OutlinedInput
|
|
1313
1314
|
- components={{ Input: CustomInput, Root: CustomRoot }}
|
|
1314
|
-
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1315
1315
|
- componentsProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1316
|
+
+ slots={{ input: CustomInput, root: CustomRoot }}
|
|
1316
1317
|
+ slotProps={{ input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }}
|
|
1317
1318
|
/>
|
|
1318
1319
|
```
|
|
@@ -1321,8 +1322,8 @@ npx @mui/codemod@next deprecations/popper-props <path>
|
|
|
1321
1322
|
MuiOutlinedInput: {
|
|
1322
1323
|
defaultProps: {
|
|
1323
1324
|
- components: { Input: CustomInput, Root: CustomRoot }
|
|
1324
|
-
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1325
1325
|
- componentsProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } }
|
|
1326
|
+
+ slots: { input: CustomInput, root: CustomRoot },
|
|
1326
1327
|
+ slotProps: { input: { id: 'test-input-id' }, root: { id: 'test-root-id' } },
|
|
1327
1328
|
},
|
|
1328
1329
|
},
|
|
@@ -1337,8 +1338,8 @@ npx @mui/codemod@next deprecations/outlined-input-props <path>
|
|
|
1337
1338
|
```diff
|
|
1338
1339
|
<Slider
|
|
1339
1340
|
- components={{ Track: CustomTrack }}
|
|
1340
|
-
+ slots={{ track: CustomTrack }}
|
|
1341
1341
|
- componentsProps={{ track: { testid: 'test-id' } }}
|
|
1342
|
+
+ slots={{ track: CustomTrack }}
|
|
1342
1343
|
+ slotProps={{ track: { testid: 'test-id' } }}
|
|
1343
1344
|
/>
|
|
1344
1345
|
```
|
|
@@ -1347,8 +1348,8 @@ npx @mui/codemod@next deprecations/outlined-input-props <path>
|
|
|
1347
1348
|
MuiSlider: {
|
|
1348
1349
|
defaultProps: {
|
|
1349
1350
|
- components: { Track: CustomTrack }
|
|
1350
|
-
+ slots: { track: CustomTrack },
|
|
1351
1351
|
- componentsProps: { track: { testid: 'test-id' }}
|
|
1352
|
+
+ slots: { track: CustomTrack },
|
|
1352
1353
|
+ slotProps: { track: { testid: 'test-id' } },
|
|
1353
1354
|
},
|
|
1354
1355
|
},
|
|
@@ -1363,8 +1364,8 @@ npx @mui/codemod@next deprecations/slider-props <path>
|
|
|
1363
1364
|
```diff
|
|
1364
1365
|
<Tooltip
|
|
1365
1366
|
- components={{ Arrow: CustomArrow }}
|
|
1366
|
-
+ slots={{ arrow: CustomArrow }}
|
|
1367
1367
|
- componentsProps={{ arrow: { testid: 'test-id' } }}
|
|
1368
|
+
+ slots={{ arrow: CustomArrow }}
|
|
1368
1369
|
+ slotProps={{ arrow: { testid: 'test-id' } }}
|
|
1369
1370
|
/>
|
|
1370
1371
|
```
|
|
@@ -1397,11 +1398,11 @@ JS transforms:
|
|
|
1397
1398
|
- [`& .${stepConnectorClasses.lineHorizontal}`]: {
|
|
1398
1399
|
+ [`&.${stepConnectorClasses.horizontal} > .${stepConnectorClasses.line}`]: {
|
|
1399
1400
|
color: 'red',
|
|
1400
|
-
|
|
1401
|
+
},
|
|
1401
1402
|
- [`& .${stepConnectorClasses.lineVertical}`]: {
|
|
1402
1403
|
+ [`&.${stepConnectorClasses.vertical} > .${stepConnectorClasses.line}`]: {
|
|
1403
1404
|
color: 'red',
|
|
1404
|
-
|
|
1405
|
+
},
|
|
1405
1406
|
},
|
|
1406
1407
|
},
|
|
1407
1408
|
},
|
|
@@ -1441,18 +1442,18 @@ npx @mui/codemod@latest deprecations/step-label-props <path>
|
|
|
1441
1442
|
|
|
1442
1443
|
```diff
|
|
1443
1444
|
<TextField
|
|
1444
|
-
-
|
|
1445
|
-
-
|
|
1446
|
-
-
|
|
1447
|
-
-
|
|
1448
|
-
-
|
|
1449
|
-
+
|
|
1450
|
-
+
|
|
1451
|
-
+
|
|
1452
|
-
+
|
|
1453
|
-
+
|
|
1454
|
-
+
|
|
1455
|
-
+
|
|
1445
|
+
- InputProps={CustomInputProps}
|
|
1446
|
+
- inputProps={CustomHtmlInputProps}
|
|
1447
|
+
- SelectProps={CustomSelectProps}
|
|
1448
|
+
- InputLabelProps={CustomInputLabelProps}
|
|
1449
|
+
- FormHelperTextProps={CustomFormHelperProps}
|
|
1450
|
+
+ slotProps={{
|
|
1451
|
+
+ input: CustomInputProps,
|
|
1452
|
+
+ htmlInput: CustomHtmlInputProps,
|
|
1453
|
+
+ select: CustomSelectProps,
|
|
1454
|
+
+ inputLabel: CustomInputLabelProps,
|
|
1455
|
+
+ formHelper: CustomFormHelperProps,
|
|
1456
|
+
+ }}
|
|
1456
1457
|
/>
|
|
1457
1458
|
```
|
|
1458
1459
|
|
|
@@ -1473,11 +1474,11 @@ JS transforms:
|
|
|
1473
1474
|
- [`& .${toggleButtonGroupClasses.groupedHorizontal}`]: {
|
|
1474
1475
|
+ [`&.${toggleButtonGroupClasses.horizontal} > .${toggleButtonGroupClasses.grouped}`]: {
|
|
1475
1476
|
color: 'red',
|
|
1476
|
-
|
|
1477
|
+
},
|
|
1477
1478
|
- [`& .${toggleButtonGroupClasses.groupedVertical}`]: {
|
|
1478
1479
|
+ [`&.${toggleButtonGroupClasses.vertical} > .${toggleButtonGroupClasses.grouped}`]: {
|
|
1479
1480
|
color: 'red',
|
|
1480
|
-
|
|
1481
|
+
},
|
|
1481
1482
|
},
|
|
1482
1483
|
},
|
|
1483
1484
|
},
|
|
@@ -1488,9 +1489,11 @@ CSS transforms:
|
|
|
1488
1489
|
```diff
|
|
1489
1490
|
-.MuiToggleButtonGroup-root .MuiToggleButtonGroup-groupedHorizontal
|
|
1490
1491
|
+.MuiToggleButtonGroup-root.MuiToggleButtonGroup-horizontal > .MuiToggleButtonGroup-grouped
|
|
1492
|
+
```
|
|
1493
|
+
|
|
1494
|
+
```diff
|
|
1491
1495
|
-.MuiToggleButtonGroup-root .MuiToggleButtonGroup-groupedVertical
|
|
1492
1496
|
+.MuiToggleButtonGroup-root.MuiToggleButtonGroup-vertical > .MuiToggleButtonGroup-grouped
|
|
1493
|
-
/>
|
|
1494
1497
|
```
|
|
1495
1498
|
|
|
1496
1499
|
```bash
|
|
@@ -1500,9 +1503,12 @@ npx @mui/codemod@latest deprecations/toggle-button-group-classes <path>
|
|
|
1500
1503
|
CSS transforms:
|
|
1501
1504
|
|
|
1502
1505
|
```diff
|
|
1503
|
-
|
|
1506
|
+
-.MuiStepConnector-lineHorizontal
|
|
1504
1507
|
+.MuiStepConnector-horizontal > .MuiStepConnector-line
|
|
1505
|
-
|
|
1508
|
+
```
|
|
1509
|
+
|
|
1510
|
+
```diff
|
|
1511
|
+
-.MuiStepConnector-lineVertical
|
|
1506
1512
|
+.MuiStepConnector-vertical > .MuiStepConnector-line
|
|
1507
1513
|
```
|
|
1508
1514
|
|
|
@@ -1510,6 +1516,75 @@ CSS transforms:
|
|
|
1510
1516
|
npx @mui/codemod@next deprecations/step-connector-classes <path>
|
|
1511
1517
|
```
|
|
1512
1518
|
|
|
1519
|
+
#### `tab-classes`
|
|
1520
|
+
|
|
1521
|
+
JS transforms:
|
|
1522
|
+
|
|
1523
|
+
```diff
|
|
1524
|
+
import { tabClasses } from '@mui/material/Tab';
|
|
1525
|
+
|
|
1526
|
+
MuiTab: {
|
|
1527
|
+
styleOverrides: {
|
|
1528
|
+
root: {
|
|
1529
|
+
- [`& .${tabClasses.iconWrapper}`]: {
|
|
1530
|
+
+ [`& .${tabClasses.icon}`]: {
|
|
1531
|
+
color: 'red',
|
|
1532
|
+
},
|
|
1533
|
+
},
|
|
1534
|
+
},
|
|
1535
|
+
},
|
|
1536
|
+
```
|
|
1537
|
+
|
|
1538
|
+
CSS transforms:
|
|
1539
|
+
|
|
1540
|
+
```diff
|
|
1541
|
+
-.MuiTab-iconWrapper
|
|
1542
|
+
+.MuiTab-icon
|
|
1543
|
+
```
|
|
1544
|
+
|
|
1545
|
+
```bash
|
|
1546
|
+
npx @mui/codemod@next deprecations/tab-classes <path>
|
|
1547
|
+
```
|
|
1548
|
+
|
|
1549
|
+
#### `table-sort-label-classes`
|
|
1550
|
+
|
|
1551
|
+
JS transforms:
|
|
1552
|
+
|
|
1553
|
+
```diff
|
|
1554
|
+
import { tableSortLabelClasses } from '@mui/material/TableSortLabel';
|
|
1555
|
+
|
|
1556
|
+
MuiTableSortLabel: {
|
|
1557
|
+
styleOverrides: {
|
|
1558
|
+
root: {
|
|
1559
|
+
- [`& .${tableSortLabelClasses.iconDirectionDesc}`]: {
|
|
1560
|
+
+ [`&.${tableSortLabelClasses.directionDesc} > .${tableSortLabelClasses.icon}`]: {
|
|
1561
|
+
color: 'red',
|
|
1562
|
+
},
|
|
1563
|
+
- [`& .${tableSortLabelClasses.iconDirectionAsc}`]: {
|
|
1564
|
+
+ [`&.${tableSortLabelClasses.directionAsc} > .${tableSortLabelClasses.icon}`]: {
|
|
1565
|
+
color: 'red',
|
|
1566
|
+
},
|
|
1567
|
+
},
|
|
1568
|
+
},
|
|
1569
|
+
},
|
|
1570
|
+
```
|
|
1571
|
+
|
|
1572
|
+
CSS transforms:
|
|
1573
|
+
|
|
1574
|
+
```diff
|
|
1575
|
+
-.MuiTableSortLabel-iconDirectionDesc
|
|
1576
|
+
+.MuiTableSortLabel-directionDesc > .MuiTableSortLabel-icon
|
|
1577
|
+
```
|
|
1578
|
+
|
|
1579
|
+
```diff
|
|
1580
|
+
-.MuiTableSortLabel-iconDirectionAsc
|
|
1581
|
+
+.MuiTableSortLabel-directionAsc > .MuiTableSortLabel-icon
|
|
1582
|
+
```
|
|
1583
|
+
|
|
1584
|
+
```bash
|
|
1585
|
+
npx @mui/codemod@next deprecations/table-sort-label-classes <path>
|
|
1586
|
+
```
|
|
1587
|
+
|
|
1513
1588
|
### v6.0.0
|
|
1514
1589
|
|
|
1515
1590
|
#### `sx-prop`
|
|
@@ -1524,7 +1599,7 @@ Update the usage of the `sx` prop to be compatible with `@pigment-css/react`.
|
|
|
1524
1599
|
<Box
|
|
1525
1600
|
- sx={{
|
|
1526
1601
|
- backgroundColor: (theme) =>
|
|
1527
|
-
-
|
|
1602
|
+
- theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900],
|
|
1528
1603
|
- }}
|
|
1529
1604
|
+ sx={theme => ({
|
|
1530
1605
|
+ backgroundColor: theme.palette.grey[900],
|
|
@@ -1544,8 +1619,8 @@ npx @mui/codemod@next v6.0.0/system-props <path>
|
|
|
1544
1619
|
Remove system props and add them to the `sx` prop.
|
|
1545
1620
|
|
|
1546
1621
|
```diff
|
|
1547
|
-
|
|
1548
|
-
|
|
1622
|
+
-<Box ml="2px" py={1} color="primary.main" />
|
|
1623
|
+
+<Box sx={{ ml: '2px', py: 1, color: 'primary.main' }} />
|
|
1549
1624
|
```
|
|
1550
1625
|
|
|
1551
1626
|
#### `theme-v6`
|
|
@@ -1564,14 +1639,14 @@ Update the theme creation from `@mui/system@v5` to be compatible with `@pigment-
|
|
|
1564
1639
|
createTheme({
|
|
1565
1640
|
components: {
|
|
1566
1641
|
MuiButton: {
|
|
1567
|
-
-
|
|
1568
|
-
-
|
|
1569
|
-
-
|
|
1570
|
-
-
|
|
1571
|
-
-
|
|
1572
|
-
-
|
|
1573
|
-
-
|
|
1574
|
-
-
|
|
1642
|
+
- variants: [
|
|
1643
|
+
- {
|
|
1644
|
+
- props: { color: 'primary' },
|
|
1645
|
+
- style: {
|
|
1646
|
+
- color: 'red',
|
|
1647
|
+
- },
|
|
1648
|
+
- },
|
|
1649
|
+
- ],
|
|
1575
1650
|
styleOverrides: {
|
|
1576
1651
|
- root: ({ theme, ownerState }) => ({
|
|
1577
1652
|
+ root: ({ theme }) => ({
|
|
@@ -1783,7 +1858,7 @@ Transforms `row` prop to `orientation` prop across `Card`, `List` and `RadioGrou
|
|
|
1783
1858
|
```diff
|
|
1784
1859
|
<Card
|
|
1785
1860
|
- row
|
|
1786
|
-
+ orientation=
|
|
1861
|
+
+ orientation="horizontal"
|
|
1787
1862
|
/>;
|
|
1788
1863
|
```
|
|
1789
1864
|
|
|
@@ -1811,7 +1886,7 @@ npx @mui/codemod@next v5.0.0/joy-avatar-remove-imgProps <path>
|
|
|
1811
1886
|
|
|
1812
1887
|
#### `joy-text-field-to-input`
|
|
1813
1888
|
|
|
1814
|
-
Replace `<TextField>` with composition of
|
|
1889
|
+
Replace `<TextField>` with a composition of input components:
|
|
1815
1890
|
|
|
1816
1891
|
This change only affects Joy UI components.
|
|
1817
1892
|
|