@mui/codemod 6.0.0-alpha.5 → 6.0.0-alpha.7

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 (38) hide show
  1. package/README.md +168 -0
  2. package/node/deprecations/all/deprecations-all.js +6 -0
  3. package/node/deprecations/all/postcss.config.js +4 -1
  4. package/node/deprecations/autocomplete-props/autocomplete-props.js +54 -0
  5. package/node/deprecations/autocomplete-props/index.js +13 -0
  6. package/node/deprecations/autocomplete-props/test-cases/actual.js +97 -0
  7. package/node/deprecations/autocomplete-props/test-cases/expected.js +101 -0
  8. package/node/deprecations/autocomplete-props/test-cases/theme.actual.js +65 -0
  9. package/node/deprecations/autocomplete-props/test-cases/theme.expected.js +68 -0
  10. package/node/deprecations/circular-progress-classes/circular-progress-classes.js +77 -0
  11. package/node/deprecations/circular-progress-classes/index.js +13 -0
  12. package/node/deprecations/circular-progress-classes/postcss-plugin.js +33 -0
  13. package/node/deprecations/circular-progress-classes/postcss.config.js +8 -0
  14. package/node/deprecations/circular-progress-classes/test-cases/actual.js +7 -0
  15. package/node/deprecations/circular-progress-classes/test-cases/expected.js +7 -0
  16. package/node/deprecations/divider-props/divider-props.js +36 -30
  17. package/node/deprecations/divider-props/test-cases/actual.js +3 -0
  18. package/node/deprecations/divider-props/test-cases/expected.js +3 -0
  19. package/node/deprecations/divider-props/test-cases/theme.actual.js +7 -0
  20. package/node/deprecations/divider-props/test-cases/theme.expected.js +7 -0
  21. package/node/deprecations/speed-dial-props/index.js +13 -0
  22. package/node/deprecations/speed-dial-props/speed-dial-props.js +31 -0
  23. package/node/deprecations/speed-dial-props/test-cases/actual.js +40 -0
  24. package/node/deprecations/speed-dial-props/test-cases/expected.js +54 -0
  25. package/node/deprecations/speed-dial-props/test-cases/theme.actual.js +33 -0
  26. package/node/deprecations/speed-dial-props/test-cases/theme.expected.js +40 -0
  27. package/node/util/getReturnExpression.js +20 -0
  28. package/node/util/migrateToVariants.js +472 -0
  29. package/node/v6.0.0/styled/styled-v6.js +2 -415
  30. package/node/v6.0.0/styled/test-cases/ConditionalStyled.actual.js +28 -1
  31. package/node/v6.0.0/styled/test-cases/ConditionalStyled.expected.js +38 -1
  32. package/node/v6.0.0/theme-v6/index.js +13 -0
  33. package/node/v6.0.0/theme-v6/test-cases/basicTheme.actual.js +530 -0
  34. package/node/v6.0.0/theme-v6/test-cases/basicTheme.expected.js +626 -0
  35. package/node/v6.0.0/theme-v6/test-cases/themeVariants.actual.js +63 -0
  36. package/node/v6.0.0/theme-v6/test-cases/themeVariants.expected.js +73 -0
  37. package/node/v6.0.0/theme-v6/theme-v6.js +87 -0
  38. package/package.json +5 -5
@@ -0,0 +1,626 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = getCheckoutTheme;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function getCheckoutTheme(mode) {
11
+ return (0, _extends2.default)({}, getDesignTokens(mode), {
12
+ components: {
13
+ MuiAlert: {
14
+ styleOverrides: {
15
+ root: ({
16
+ theme
17
+ }) => (0, _extends2.default)({
18
+ borderRadius: 10,
19
+ backgroundColor: orange[100],
20
+ color: theme.palette.text.primary,
21
+ border: `1px solid ${alpha(orange[300], 0.5)}`,
22
+ '& .MuiAlert-icon': {
23
+ color: orange[500]
24
+ }
25
+ }, theme.applyStyles("dark", {
26
+ backgroundColor: `${alpha(orange[900], 0.5)}`,
27
+ border: `1px solid ${alpha(orange[800], 0.5)}`
28
+ }))
29
+ }
30
+ },
31
+ MuiButtonBase: {
32
+ defaultProps: {
33
+ disableTouchRipple: true,
34
+ disableRipple: true
35
+ },
36
+ styleOverrides: {
37
+ root: {
38
+ boxSizing: 'border-box',
39
+ transition: 'all 100ms ease',
40
+ '&:focus-visible': {
41
+ outline: `3px solid ${alpha(brand[400], 0.5)}`,
42
+ outlineOffset: '2px'
43
+ }
44
+ }
45
+ }
46
+ },
47
+ MuiButton: {
48
+ styleOverrides: {
49
+ root: ({
50
+ theme
51
+ }) => ({
52
+ boxShadow: 'none',
53
+ borderRadius: theme.shape.borderRadius,
54
+ textTransform: 'none',
55
+ variants: [{
56
+ props: {
57
+ size: 'small'
58
+ },
59
+ style: {
60
+ height: '2rem',
61
+ // 32px
62
+ padding: '0 0.5rem'
63
+ }
64
+ }, {
65
+ props: {
66
+ size: 'medium'
67
+ },
68
+ style: {
69
+ height: '2.5rem' // 40px
70
+ }
71
+ }, {
72
+ props: {
73
+ color: 'primary',
74
+ variant: 'contained'
75
+ },
76
+ style: {
77
+ color: 'white',
78
+ backgroundColor: brand[300],
79
+ backgroundImage: `linear-gradient(to bottom, ${alpha(brand[400], 0.8)}, ${brand[500]})`,
80
+ boxShadow: `inset 0 2px 0 ${alpha(brand[200], 0.2)}, inset 0 -2px 0 ${alpha(brand[700], 0.4)}`,
81
+ border: `1px solid ${brand[500]}`,
82
+ '&:hover': {
83
+ backgroundColor: brand[700],
84
+ boxShadow: 'none'
85
+ },
86
+ '&:active': {
87
+ backgroundColor: brand[700],
88
+ boxShadow: `inset 0 2.5px 0 ${alpha(brand[700], 0.4)}`
89
+ }
90
+ }
91
+ }, {
92
+ props: {
93
+ variant: 'outlined'
94
+ },
95
+ style: {
96
+ color: brand[700],
97
+ backgroundColor: alpha(brand[300], 0.1),
98
+ borderColor: alpha(brand[200], 0.8),
99
+ boxShadow: `inset 0 2px ${alpha(brand[50], 0.5)}, inset 0 -2px ${alpha(brand[200], 0.2)}`,
100
+ '&:hover': {
101
+ backgroundColor: alpha(brand[300], 0.2),
102
+ borderColor: alpha(brand[300], 0.5),
103
+ boxShadow: 'none'
104
+ },
105
+ '&:active': {
106
+ backgroundColor: alpha(brand[300], 0.3),
107
+ boxShadow: `inset 0 2.5px 0 ${alpha(brand[400], 0.2)}`,
108
+ backgroundImage: 'none'
109
+ }
110
+ }
111
+ }, {
112
+ props: {
113
+ color: 'secondary',
114
+ variant: 'outlined'
115
+ },
116
+ style: {
117
+ backgroundColor: alpha(gray[300], 0.1),
118
+ borderColor: alpha(gray[300], 0.5),
119
+ color: gray[700],
120
+ '&:hover': {
121
+ backgroundColor: alpha(gray[300], 0.3),
122
+ borderColor: alpha(gray[300], 0.5),
123
+ boxShadow: 'none'
124
+ },
125
+ '&:active': {
126
+ backgroundColor: alpha(gray[300], 0.4),
127
+ boxShadow: `inset 0 2.5px 0 ${alpha(gray[400], 0.2)}`,
128
+ backgroundImage: 'none'
129
+ }
130
+ }
131
+ }, {
132
+ props: {
133
+ color: 'primary',
134
+ variant: 'text'
135
+ },
136
+ style: {
137
+ color: brand[700],
138
+ '&:hover': {
139
+ backgroundColor: alpha(brand[300], 0.3)
140
+ }
141
+ }
142
+ }, {
143
+ props: {
144
+ color: 'info',
145
+ variant: 'text'
146
+ },
147
+ style: {
148
+ color: gray[700],
149
+ '&:hover': {
150
+ backgroundColor: alpha(gray[300], 0.3)
151
+ }
152
+ }
153
+ }, {
154
+ props: {
155
+ variant: 'outlined'
156
+ },
157
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
158
+ color: brand[200],
159
+ backgroundColor: alpha(brand[600], 0.1),
160
+ borderColor: alpha(brand[600], 0.6),
161
+ boxShadow: `inset 0 2.5px ${alpha(brand[400], 0.1)}, inset 0 -2px ${alpha(gray[900], 0.5)}`,
162
+ '&:hover': {
163
+ backgroundColor: alpha(brand[700], 0.2),
164
+ borderColor: alpha(brand[700], 0.5),
165
+ boxShadow: 'none'
166
+ },
167
+ '&:active': {
168
+ backgroundColor: alpha(brand[800], 0.2),
169
+ boxShadow: `inset 0 2.5px 0 ${alpha(brand[900], 0.4)}`,
170
+ backgroundImage: 'none'
171
+ }
172
+ }))
173
+ }, {
174
+ props: {
175
+ color: 'info',
176
+ variant: 'text'
177
+ },
178
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
179
+ color: gray[200],
180
+ '&:hover': {
181
+ backgroundColor: alpha(gray[700], 0.3)
182
+ }
183
+ }))
184
+ }, {
185
+ props: {
186
+ color: 'secondary',
187
+ variant: 'outlined'
188
+ },
189
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
190
+ color: gray[300],
191
+ backgroundColor: alpha(gray[600], 0.1),
192
+ borderColor: alpha(gray[700], 0.5),
193
+ boxShadow: `inset 0 2.5px ${alpha(gray[600], 0.1)}, inset 0 -2px ${alpha(gray[900], 0.5)}`,
194
+ '&:hover': {
195
+ backgroundColor: alpha(gray[700], 0.2),
196
+ borderColor: alpha(gray[700], 0.5),
197
+ boxShadow: 'none'
198
+ },
199
+ '&:active': {
200
+ backgroundColor: alpha(gray[800], 0.2),
201
+ boxShadow: `inset 0 2.5px 0 ${alpha(gray[900], 0.4)}`,
202
+ backgroundImage: 'none'
203
+ }
204
+ }))
205
+ }, {
206
+ props: {
207
+ color: 'primary',
208
+ variant: 'text'
209
+ },
210
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
211
+ color: brand[200],
212
+ '&:hover': {
213
+ backgroundColor: alpha(brand[700], 0.3)
214
+ }
215
+ }))
216
+ }]
217
+ })
218
+ }
219
+ },
220
+ MuiCard: {
221
+ styleOverrides: {
222
+ root: ({
223
+ theme
224
+ }) => (0, _extends2.default)({
225
+ transition: 'all 100ms ease',
226
+ backgroundColor: gray[50],
227
+ borderRadius: theme.shape.borderRadius,
228
+ border: `1px solid ${alpha(gray[200], 0.5)}`,
229
+ boxShadow: 'none'
230
+ }, theme.applyStyles("dark", {
231
+ backgroundColor: alpha(gray[800], 0.6),
232
+ border: `1px solid ${alpha(gray[700], 0.3)}`
233
+ }), {
234
+ variants: [{
235
+ props: {
236
+ variant: 'outlined'
237
+ },
238
+ style: {
239
+ border: `1px solid ${gray[200]}`,
240
+ boxShadow: 'none',
241
+ background: `linear-gradient(to bottom, hsl(0, 0%, 100%), ${gray[50]})`
242
+ }
243
+ }, {
244
+ props: {
245
+ variant: 'outlined'
246
+ },
247
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
248
+ border: `1px solid ${alpha(gray[700], 0.4)}`,
249
+ boxShadow: 'none',
250
+ background: `linear-gradient(to bottom, ${gray[900]}, ${alpha(gray[800], 0.5)})`
251
+ }))
252
+ }]
253
+ })
254
+ }
255
+ },
256
+ MuiCheckbox: {
257
+ defaultProps: {
258
+ disableRipple: true,
259
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckBoxOutlineBlankRoundedIcon, {
260
+ sx: {
261
+ color: 'hsla(210, 0%, 0%, 0.0)'
262
+ }
263
+ }),
264
+ checkedIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckRoundedIcon, {
265
+ sx: {
266
+ height: 14,
267
+ width: 14
268
+ }
269
+ })
270
+ },
271
+ styleOverrides: {
272
+ root: ({
273
+ theme
274
+ }) => (0, _extends2.default)({
275
+ margin: 10,
276
+ height: 16,
277
+ width: 16,
278
+ borderRadius: 5,
279
+ border: '1px solid ',
280
+ borderColor: alpha(gray[300], 0.8),
281
+ boxShadow: '0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset',
282
+ transition: 'border-color 120ms ease-in',
283
+ backgroundColor: alpha(gray[100], 0.4),
284
+ '&:hover': {
285
+ borderColor: brand[300]
286
+ },
287
+ '&.Mui-focusVisible': {
288
+ outline: `3px solid ${alpha(brand[500], 0.5)}`,
289
+ outlineOffset: '2px',
290
+ borderColor: brand[400]
291
+ },
292
+ '&.Mui-checked': {
293
+ color: 'white',
294
+ backgroundColor: brand[500],
295
+ borderColor: brand[500],
296
+ boxShadow: `none`,
297
+ '&:hover': {
298
+ backgroundColor: brand[600]
299
+ }
300
+ }
301
+ }, theme.applyStyles("dark", {
302
+ borderColor: alpha(gray[700], 0.5),
303
+ boxShadow: '0 0 0 1.5px hsl(210, 0%, 0%) inset',
304
+ backgroundColor: alpha(gray[900], 0.8),
305
+ '&:hover': {
306
+ borderColor: brand[300]
307
+ },
308
+ '&.Mui-focusVisible': {
309
+ borderColor: brand[400],
310
+ outline: `3px solid ${alpha(brand[500], 0.5)}`,
311
+ outlineOffset: '2px'
312
+ }
313
+ }))
314
+ }
315
+ },
316
+ MuiDivider: {
317
+ styleOverrides: {
318
+ root: ({
319
+ theme
320
+ }) => (0, _extends2.default)({
321
+ borderColor: `${alpha(gray[200], 0.8)}`
322
+ }, theme.applyStyles("dark", {
323
+ borderColor: `${alpha(gray[700], 0.4)}`
324
+ }))
325
+ }
326
+ },
327
+ MuiFormLabel: {
328
+ styleOverrides: {
329
+ root: ({
330
+ theme
331
+ }) => ({
332
+ typography: theme.typography.caption,
333
+ marginBottom: 8
334
+ })
335
+ }
336
+ },
337
+ MuiIconButton: {
338
+ styleOverrides: {
339
+ root: ({
340
+ theme
341
+ }) => (0, _extends2.default)({
342
+ color: brand[500],
343
+ '&:hover': {
344
+ backgroundColor: alpha(brand[300], 0.3),
345
+ borderColor: brand[200]
346
+ }
347
+ }, theme.applyStyles("dark", {
348
+ color: brand[200],
349
+ '&:hover': {
350
+ backgroundColor: alpha(brand[600], 0.3),
351
+ borderColor: brand[700]
352
+ }
353
+ }), {
354
+ variants: [{
355
+ props: {
356
+ size: 'small'
357
+ },
358
+ style: {
359
+ height: '2rem',
360
+ width: '2rem'
361
+ }
362
+ }, {
363
+ props: {
364
+ size: 'medium'
365
+ },
366
+ style: {
367
+ height: '2.5rem',
368
+ width: '2.5rem'
369
+ }
370
+ }]
371
+ })
372
+ }
373
+ },
374
+ MuiInputBase: {
375
+ styleOverrides: {
376
+ root: {
377
+ border: 'none'
378
+ }
379
+ }
380
+ },
381
+ MuiLink: {
382
+ defaultProps: {
383
+ underline: 'none'
384
+ },
385
+ styleOverrides: {
386
+ root: ({
387
+ theme
388
+ }) => (0, _extends2.default)({
389
+ color: brand[700],
390
+ fontWeight: 500,
391
+ position: 'relative',
392
+ textDecoration: 'none',
393
+ '&::before': {
394
+ content: '""',
395
+ position: 'absolute',
396
+ width: 0,
397
+ height: '1px',
398
+ bottom: 0,
399
+ left: 0,
400
+ backgroundColor: brand[200],
401
+ opacity: 0.7,
402
+ transition: 'width 0.3s ease, opacity 0.3s ease'
403
+ },
404
+ '&:hover::before': {
405
+ width: '100%',
406
+ opacity: 1
407
+ },
408
+ '&:focus-visible': {
409
+ outline: `3px solid ${alpha(brand[500], 0.5)}`,
410
+ outlineOffset: '4px',
411
+ borderRadius: '2px'
412
+ }
413
+ }, theme.applyStyles("dark", {
414
+ color: brand[200]
415
+ }))
416
+ }
417
+ },
418
+ MuiOutlinedInput: {
419
+ styleOverrides: {
420
+ notchedOutline: {
421
+ border: 'none'
422
+ },
423
+ input: {
424
+ paddingLeft: 10
425
+ },
426
+ root: ({
427
+ theme
428
+ }) => (0, _extends2.default)({
429
+ 'input:-webkit-autofill': {
430
+ WebkitBoxShadow: `0 0 0 1000px ${brand[100]} inset, 0 0 0 1px ${brand[200]}`,
431
+ maxHeight: '4px',
432
+ borderRadius: '8px'
433
+ },
434
+ '& .MuiInputBase-input': {
435
+ fontSize: '1rem',
436
+ '&::placeholder': {
437
+ opacity: 0.7,
438
+ color: gray[500]
439
+ }
440
+ },
441
+ boxSizing: 'border-box',
442
+ flexGrow: 1,
443
+ height: '40px',
444
+ borderRadius: theme.shape.borderRadius,
445
+ border: '1px solid',
446
+ borderColor: alpha(gray[300], 0.8),
447
+ boxShadow: '0 0 0 1.5px hsla(210, 0%, 0%, 0.02) inset',
448
+ transition: 'border-color 120ms ease-in',
449
+ backgroundColor: alpha(gray[100], 0.4),
450
+ '&:hover': {
451
+ borderColor: brand[300]
452
+ },
453
+ '&.Mui-focused': {
454
+ outline: `3px solid ${alpha(brand[500], 0.5)}`,
455
+ outlineOffset: '2px',
456
+ borderColor: brand[400]
457
+ }
458
+ }, theme.applyStyles("dark", {
459
+ 'input:-webkit-autofill': {
460
+ WebkitBoxShadow: `0 0 0 1000px ${brand[900]} inset, 0 0 0 1px ${brand[600]}`,
461
+ maxHeight: '6px',
462
+ borderRadius: '8px'
463
+ },
464
+ '& .MuiInputBase-input': {
465
+ fontSize: '1rem',
466
+ '&::placeholder': {
467
+ opacity: 1,
468
+ color: gray[500]
469
+ }
470
+ },
471
+ borderColor: alpha(gray[700], 0.5),
472
+ boxShadow: '0 0 0 1.5px hsl(210, 0%, 0%) inset',
473
+ backgroundColor: alpha(gray[900], 0.8),
474
+ transition: 'border-color 120ms ease-in',
475
+ '&:hover': {
476
+ borderColor: brand[300]
477
+ },
478
+ '&.Mui-focused': {
479
+ borderColor: brand[400],
480
+ outline: `3px solid ${alpha(brand[500], 0.5)}`,
481
+ outlineOffset: '2px'
482
+ }
483
+ }), {
484
+ variants: [{
485
+ props: {
486
+ color: 'error'
487
+ },
488
+ style: {
489
+ borderColor: red[200],
490
+ color: red[500],
491
+ '& + .MuiFormHelperText-root': {
492
+ color: red[500]
493
+ }
494
+ }
495
+ }, {
496
+ props: {
497
+ color: 'error'
498
+ },
499
+ style: (0, _extends2.default)({}, theme.applyStyles("dark", {
500
+ borderColor: red[700],
501
+ color: red[300],
502
+ '& + .MuiFormHelperText-root': {
503
+ color: red[300]
504
+ }
505
+ }))
506
+ }]
507
+ })
508
+ }
509
+ },
510
+ MuiPaper: {
511
+ defaultProps: {
512
+ elevation: 0
513
+ }
514
+ },
515
+ MuiStack: {
516
+ defaultProps: {
517
+ useFlexGap: true
518
+ }
519
+ },
520
+ MuiStepConnector: {
521
+ styleOverrides: {
522
+ line: ({
523
+ theme
524
+ }) => ({
525
+ borderTop: '1px solid',
526
+ borderColor: theme.palette.divider,
527
+ flex: 1,
528
+ borderRadius: '99px'
529
+ })
530
+ }
531
+ },
532
+ MuiStepIcon: {
533
+ styleOverrides: {
534
+ root: ({
535
+ theme
536
+ }) => (0, _extends2.default)({
537
+ color: 'transparent',
538
+ border: `1px solid ${gray[400]}`,
539
+ width: 12,
540
+ height: 12,
541
+ borderRadius: '50%',
542
+ '& text': {
543
+ display: 'none'
544
+ },
545
+ '&.Mui-active': {
546
+ border: 'none',
547
+ color: theme.palette.primary.main
548
+ },
549
+ '&.Mui-completed': {
550
+ border: 'none',
551
+ color: theme.palette.success.main
552
+ }
553
+ }, theme.applyStyles("dark", {
554
+ border: `1px solid ${gray[700]}`,
555
+ '&.Mui-active': {
556
+ border: 'none',
557
+ color: theme.palette.primary.light
558
+ },
559
+ '&.Mui-completed': {
560
+ border: 'none',
561
+ color: theme.palette.success.light
562
+ }
563
+ }), {
564
+ variants: [{
565
+ props: {
566
+ completed: true
567
+ },
568
+ style: {
569
+ width: 12,
570
+ height: 12
571
+ }
572
+ }]
573
+ })
574
+ }
575
+ },
576
+ MuiStepLabel: {
577
+ styleOverrides: {
578
+ label: ({
579
+ theme
580
+ }) => ({
581
+ '&.Mui-completed': (0, _extends2.default)({
582
+ opacity: 0.6
583
+ }, theme.applyStyles("dark", {
584
+ opacity: 0.5
585
+ }))
586
+ })
587
+ }
588
+ },
589
+ MuiToggleButtonGroup: {
590
+ styleOverrides: {
591
+ root: ({
592
+ theme
593
+ }) => (0, _extends2.default)({
594
+ borderRadius: theme.shape.borderRadius,
595
+ boxShadow: `0 1px 2px hsla(210, 0%, 0%, 0.05), 0 2px 12px ${alpha(brand[200], 0.5)}`,
596
+ '& .Mui-selected': {
597
+ color: brand[500]
598
+ }
599
+ }, theme.applyStyles("dark", {
600
+ '& .Mui-selected': {
601
+ color: 'hsl(0, 0%, 100%)'
602
+ },
603
+ boxShadow: `0 0 0 1px hsla(210, 0%, 0%, 0.5), 0 2px 12px ${alpha(brand[700], 0.5)}`
604
+ }))
605
+ }
606
+ },
607
+ MuiToggleButton: {
608
+ styleOverrides: {
609
+ root: ({
610
+ theme
611
+ }) => (0, _extends2.default)({
612
+ padding: '12px 16px',
613
+ textTransform: 'none',
614
+ borderRadius: theme.shape.borderRadius,
615
+ fontWeight: 500
616
+ }, theme.applyStyles("dark", {
617
+ color: gray[400],
618
+ '&.Mui-selected': {
619
+ color: brand[300]
620
+ }
621
+ }))
622
+ }
623
+ }
624
+ }
625
+ });
626
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = getCheckoutTheme;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ function getCheckoutTheme(mode) {
10
+ return (0, _extends2.default)({}, getDesignTokens(mode), {
11
+ components: {
12
+ MuiStepIcon: {
13
+ variants: [{
14
+ props: {
15
+ completed: true
16
+ },
17
+ style: () => ({
18
+ width: 12,
19
+ height: 12
20
+ })
21
+ }],
22
+ styleOverrides: {
23
+ root: ({
24
+ theme,
25
+ ownerState
26
+ }) => (0, _extends2.default)({
27
+ color: 'transparent',
28
+ border: `1px solid ${gray[400]}`,
29
+ width: 12,
30
+ height: 12,
31
+ borderRadius: '50%',
32
+ '& text': {
33
+ display: 'none'
34
+ },
35
+ '&.Mui-active': {
36
+ border: 'none',
37
+ color: theme.palette.primary.main
38
+ },
39
+ '&.Mui-completed': {
40
+ border: 'none',
41
+ color: theme.palette.success.main
42
+ }
43
+ }, ownerState.size === 'large' && {
44
+ width: 20,
45
+ height: 20
46
+ }, theme.palette.mode === 'dark' && (0, _extends2.default)({
47
+ border: `1px solid ${gray[700]}`,
48
+ '&.Mui-active': {
49
+ border: 'none',
50
+ color: theme.palette.primary.light
51
+ },
52
+ '&.Mui-completed': {
53
+ border: 'none',
54
+ color: theme.palette.success.light
55
+ }
56
+ }, ownerState.variant === 'shadow' && {
57
+ boxShadow: theme.shadows[2]
58
+ }))
59
+ }
60
+ }
61
+ }
62
+ });
63
+ }