@mui/docs 6.0.0-alpha.7 → 6.0.0-alpha.9

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.
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import ArrowDropDownRounded from '@mui/icons-material/ArrowDropDownRounded';
3
2
  import { createTheme, Theme, alpha } from '@mui/material/styles';
4
3
  // TODO: enable this once types conflict is fixed
@@ -94,57 +93,75 @@ export const getMetaThemeColor = mode => {
94
93
  return themeColor[mode];
95
94
  };
96
95
  export const getDesignTokens = mode => ({
97
- palette: _extends({
98
- primary: _extends({}, blue, mode === 'dark' && {
99
- main: blue[400]
100
- }),
101
- secondary: _extends({}, grey, mode === 'light' && {
102
- main: blueDark[100],
103
- contrastText: blueDark[600]
104
- }, mode === 'dark' && {
105
- main: blueDark[700],
106
- contrastText: blueDark[600]
107
- }),
96
+ palette: {
97
+ primary: {
98
+ ...blue,
99
+ ...(mode === 'dark' && {
100
+ main: blue[400]
101
+ })
102
+ },
103
+ secondary: {
104
+ ...grey,
105
+ ...(mode === 'light' && {
106
+ main: blueDark[100],
107
+ contrastText: blueDark[600]
108
+ }),
109
+ ...(mode === 'dark' && {
110
+ main: blueDark[700],
111
+ contrastText: blueDark[600]
112
+ })
113
+ },
108
114
  divider: mode === 'dark' ? alpha(blueDark[500], 0.3) : grey[100],
109
115
  primaryDark: blueDark,
110
- mode
111
- }, mode === 'dark' && {
112
- background: {
113
- default: blueDark[900],
114
- paper: alpha(blueDark[800], 0.8)
115
- }
116
- }, {
116
+ mode,
117
+ ...(mode === 'dark' && {
118
+ background: {
119
+ default: blueDark[900],
120
+ paper: alpha(blueDark[800], 0.8)
121
+ }
122
+ }),
117
123
  common: {
118
124
  black: 'hsl(200, 10%, 4%)'
119
125
  },
120
- text: _extends({}, mode === 'light' && {
121
- primary: grey[900],
122
- secondary: grey[800],
123
- tertiary: grey[700]
124
- }, mode === 'dark' && {
125
- primary: '#fff',
126
- secondary: grey[400],
127
- tertiary: grey[500]
128
- }),
129
- grey: _extends({}, grey, mode === 'light' && {
130
- main: grey[100],
131
- contrastText: grey[600]
132
- }, mode === 'dark' && {
133
- main: grey[700],
134
- contrastText: grey[600]
135
- }),
126
+ text: {
127
+ ...(mode === 'light' && {
128
+ primary: grey[900],
129
+ secondary: grey[800],
130
+ tertiary: grey[700]
131
+ }),
132
+ ...(mode === 'dark' && {
133
+ primary: '#fff',
134
+ secondary: grey[400],
135
+ tertiary: grey[500]
136
+ })
137
+ },
138
+ grey: {
139
+ ...grey,
140
+ ...(mode === 'light' && {
141
+ main: grey[100],
142
+ contrastText: grey[600]
143
+ }),
144
+ ...(mode === 'dark' && {
145
+ main: grey[700],
146
+ contrastText: grey[600]
147
+ })
148
+ },
136
149
  error,
137
- success: _extends({}, success, mode === 'dark' && {
138
- main: success[600]
139
- }, mode === 'light' && {
140
- main: success[700]
141
- }),
150
+ success: {
151
+ ...success,
152
+ ...(mode === 'dark' && {
153
+ main: success[600]
154
+ }),
155
+ ...(mode === 'light' && {
156
+ main: success[700]
157
+ })
158
+ },
142
159
  warning,
143
160
  gradients: {
144
161
  radioSubtle: mode === 'dark' ? `radial-gradient(100% 100% at 100% 100%, transparent 0, ${alpha(blue[900], 0.3)} 300%)` : `radial-gradient(100% 90% at 50% 0, transparent 0, ${alpha(blue[100], 0.3)} 300%)`,
145
162
  linearSubtle: mode === 'dark' ? `linear-gradient(0deg, ${alpha(blue[900], 0.1)}, ${alpha(blueDark[900], 0.5)})` : `linear-gradient(0deg, ${alpha(blue[50], 0.4)}, ${alpha(grey[50], 0.1)})`
146
163
  }
147
- }),
164
+ },
148
165
  shape: {
149
166
  borderRadius: 12
150
167
  },
@@ -166,15 +183,16 @@ export const getDesignTokens = mode => ({
166
183
  fontFamilySystem: systemFont.join(','),
167
184
  fontWeightSemiBold: 600,
168
185
  fontWeightExtraBold: 800,
169
- h1: _extends({
186
+ h1: {
170
187
  fontFamily: ['"General Sans"', ...systemFont].join(','),
171
188
  fontSize: 'clamp(2.5rem, 1.125rem + 3.5vw, 3.5em)',
172
189
  fontWeight: 600,
173
190
  lineHeight: 78 / 70,
174
- letterSpacing: -0.2
175
- }, mode === 'light' && {
176
- color: blueDark[900]
177
- }),
191
+ letterSpacing: -0.2,
192
+ ...(mode === 'light' && {
193
+ color: blueDark[900]
194
+ })
195
+ },
178
196
  h2: {
179
197
  fontFamily: ['"General Sans"', ...systemFont].join(','),
180
198
  fontSize: 'clamp(1.5rem, 0.9643rem + 1.4286vw, 2.25rem)',
@@ -300,29 +318,95 @@ export function getThemedComponents() {
300
318
  MuiAlert: {
301
319
  styleOverrides: {
302
320
  root: {
303
- padding: '12px 16px'
321
+ padding: '16px',
322
+ gap: '12px',
323
+ fontSize: '1rem',
324
+ '& * ul': {
325
+ paddingLeft: '24px !important',
326
+ marginBottom: '0 !important'
327
+ },
328
+ // !important is used here to override the anchor tag color coming from MarkdownElement
329
+ '& .MuiAlert-icon': {
330
+ margin: 0,
331
+ marginTop: '2px',
332
+ padding: 0
333
+ },
334
+ '& .MuiAlert-message': {
335
+ padding: 0
336
+ }
337
+ },
338
+ icon: {
339
+ paddingTop: 10,
340
+ paddingBottom: 0
304
341
  },
305
342
  standardWarning: ({
306
343
  theme
307
- }) => [{
344
+ }) => [
345
+ // same styles from the MarkdownElement callout
346
+ {
308
347
  backgroundColor: alpha(theme.palette.warning[50], 0.5),
309
348
  color: (theme.vars || theme).palette.grey[900],
310
349
  border: '1px solid',
311
- borderColor: alpha(theme.palette.warning[600], 0.3),
350
+ borderColor: alpha(theme.palette.warning[700], 0.15),
312
351
  '& .MuiAlert-icon': {
313
- color: (theme.vars || theme).palette.warning[700]
352
+ color: (theme.vars || theme).palette.warning[600]
353
+ },
354
+ '& * a': {
355
+ // !important is used here to override the anchor tag color coming from MarkdownElement
356
+ color: `${(theme.vars || theme).palette.warning[900]} !important`,
357
+ textDecorationColor: `${alpha(theme.palette.warning.main, 0.4)} !important`,
358
+ '&:hover': {
359
+ textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
360
+ }
314
361
  }
315
362
  }, theme.applyDarkStyles({
316
- backgroundColor: alpha(theme.palette.warning[700], 0.2),
363
+ backgroundColor: alpha(theme.palette.warning[700], 0.12),
317
364
  color: (theme.vars || theme).palette.warning[50],
318
365
  '& .MuiAlert-icon': {
319
- color: (theme.vars || theme).palette.warning[200]
366
+ color: (theme.vars || theme).palette.warning[400]
367
+ },
368
+ '& * a': {
369
+ color: `${(theme.vars || theme).palette.warning[100]} !important`,
370
+ textDecorationColor: `${alpha(theme.palette.warning[600], 0.4)} !important`,
371
+ '&:hover': {
372
+ textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
373
+ }
320
374
  }
321
375
  })],
322
- icon: {
323
- paddingTop: 12,
324
- paddingBottom: 0
325
- }
376
+ standardSuccess: ({
377
+ theme
378
+ }) => [
379
+ // same styles from the MarkdownElement callout
380
+ {
381
+ backgroundColor: alpha(theme.palette.success[50], 0.5),
382
+ color: (theme.vars || theme).palette.success[900],
383
+ border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
384
+ '& .MuiAlert-icon': {
385
+ color: (theme.vars || theme).palette.success[600]
386
+ },
387
+ '& * a': {
388
+ // !important is used here to override the anchor tag color coming from MarkdownElement
389
+ color: `${(theme.vars || theme).palette.success[900]} !important`,
390
+ textDecorationColor: `${alpha(theme.palette.success.main, 0.4)} !important`,
391
+ '&:hover': {
392
+ textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
393
+ }
394
+ }
395
+ }, theme.applyDarkStyles({
396
+ backgroundColor: alpha(theme.palette.success[700], 0.12),
397
+ color: (theme.vars || theme).palette.success[50],
398
+ borderColor: alpha(theme.palette.success[400], 0.1),
399
+ '& .MuiAlert-icon': {
400
+ color: (theme.vars || theme).palette.success[500]
401
+ },
402
+ '& * a': {
403
+ color: `${(theme.vars || theme).palette.success[100]} !important`,
404
+ textDecorationColor: `${alpha(theme.palette.success[600], 0.4)} !important`,
405
+ '&:hover': {
406
+ textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
407
+ }
408
+ }
409
+ })]
326
410
  }
327
411
  },
328
412
  MuiButtonBase: {
@@ -350,107 +434,135 @@ export function getThemedComponents() {
350
434
  root: ({
351
435
  theme,
352
436
  ownerState
353
- }) => _extends({
354
- transition: 'all 120ms ease-in'
355
- }, ownerState.size === 'large' && _extends({}, theme.typography.body1, {
356
- lineHeight: 21 / 16,
357
- padding: theme.spacing('8px', '10px', '10px', '12px'),
358
- fontWeight: theme.typography.fontWeightSemiBold,
359
- borderRadius: 10,
360
- '& > span': {
361
- transition: '0.2s',
362
- marginLeft: 4
363
- },
364
- '&:hover > span': {
365
- transform: 'translateX(2px)'
366
- }
367
- }), ownerState.size === 'medium' && {
368
- fontSize: defaultTheme.typography.pxToRem(15),
369
- padding: theme.spacing('8px', '12px', '8px', '14px'),
370
- fontWeight: theme.typography.fontWeightSemiBold,
371
- borderRadius: 8,
372
- '& > span': {
373
- transition: '0.2s',
374
- marginLeft: 4
375
- },
376
- '&:hover > span': {
377
- transform: 'translateX(2px)'
378
- }
379
- }, ownerState.size === 'small' && {
380
- padding: theme.spacing('6px', 1.5),
381
- fontFamily: theme.typography.fontFamily,
382
- fontSize: defaultTheme.typography.pxToRem(13),
383
- fontWeight: theme.typography.fontWeightSemiBold,
384
- borderRadius: 8,
385
- '& .MuiButton-startIcon': {
386
- transition: '0.15s',
387
- marginRight: 4,
388
- marginLeft: -1
389
- },
390
- '& .MuiButton-endIcon': {
391
- transition: '0.15s',
392
- marginLeft: 4
393
- },
394
- '&:hover': {
437
+ }) => ({
438
+ transition: 'all 120ms ease-in',
439
+ ...(ownerState.size === 'large' && {
440
+ ...theme.typography.body1,
441
+ lineHeight: 21 / 16,
442
+ padding: theme.spacing('8px', '10px', '10px', '12px'),
443
+ fontWeight: theme.typography.fontWeightSemiBold,
444
+ borderRadius: 10,
445
+ '& > span': {
446
+ transition: '0.2s',
447
+ marginLeft: 4
448
+ },
449
+ '&:hover > span': {
450
+ transform: 'translateX(2px)'
451
+ }
452
+ }),
453
+ ...(ownerState.size === 'medium' && {
454
+ fontSize: defaultTheme.typography.pxToRem(15),
455
+ padding: theme.spacing('8px', '12px', '8px', '14px'),
456
+ fontWeight: theme.typography.fontWeightSemiBold,
457
+ borderRadius: 8,
458
+ '& > span': {
459
+ transition: '0.2s',
460
+ marginLeft: 4
461
+ },
462
+ '&:hover > span': {
463
+ transform: 'translateX(2px)'
464
+ }
465
+ }),
466
+ ...(ownerState.size === 'small' && {
467
+ padding: theme.spacing('6px', 1.5),
468
+ fontFamily: theme.typography.fontFamily,
469
+ fontSize: defaultTheme.typography.pxToRem(13),
470
+ fontWeight: theme.typography.fontWeightSemiBold,
471
+ borderRadius: 8,
395
472
  '& .MuiButton-startIcon': {
396
- transform: 'translateX(-2px)'
473
+ transition: '0.15s',
474
+ marginRight: 4,
475
+ marginLeft: -1
397
476
  },
398
477
  '& .MuiButton-endIcon': {
399
- transform: 'translateX(2px)'
478
+ transition: '0.15s',
479
+ marginLeft: 4
480
+ },
481
+ '&:hover': {
482
+ '& .MuiButton-startIcon': {
483
+ transform: 'translateX(-2px)'
484
+ },
485
+ '& .MuiButton-endIcon': {
486
+ transform: 'translateX(2px)'
487
+ }
400
488
  }
401
- }
402
- }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && _extends({
403
- color: (theme.vars || theme).palette.text.primary,
404
- backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
405
- borderColor: (theme.vars || theme).palette.primaryDark[100],
406
- boxShadow: `${alpha(theme.palette.grey[50], 0.5)} 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
407
- '&:hover': {
408
- backgroundColor: (theme.vars || theme).palette.grey[50]
409
- }
410
- }, theme.applyDarkStyles({
411
- color: (theme.vars || theme).palette.primaryDark[100],
412
- borderColor: alpha(theme.palette.primaryDark[600], 0.5),
413
- backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
414
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
415
- '&:hover': {
416
- backgroundColor: (theme.vars || theme).palette.primaryDark[700],
417
- borderColor: (theme.vars || theme).palette.primaryDark[600]
418
- }
419
- })), ownerState.variant === 'outlined' && ownerState.color === 'primary' && _extends({
420
- color: (theme.vars || theme).palette.primary[600],
421
- backgroundColor: alpha(theme.palette.primary[50], 0.2),
422
- borderColor: (theme.vars || theme).palette.primary[100],
423
- boxShadow: `${alpha(theme.palette.primary[50], 0.8)} 0 2px 0 inset, ${alpha(theme.palette.primary[100], 0.4)} 0 -2px 0 inset, ${alpha(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
424
- '&:hover': {
425
- backgroundColor: (theme.vars || theme).palette.primary[50],
426
- borderColor: (theme.vars || theme).palette.primary[200]
427
- }
428
- }, theme.applyDarkStyles({
429
- color: (theme.vars || theme).palette.primary[200],
430
- borderColor: alpha(theme.palette.primary[900], 0.7),
431
- backgroundColor: alpha(theme.palette.primary[900], 0.2),
432
- boxShadow: `${alpha(theme.palette.primary[900], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
433
- '&:hover': {
434
- backgroundColor: (theme.vars || theme).palette.primary[900],
435
- borderColor: (theme.vars || theme).palette.primary[700]
436
- }
437
- })), ownerState.variant === 'contained' && ownerState.color === 'primary' && {
438
- color: '#fff',
439
- textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
440
- backgroundColor: (theme.vars || theme).palette.primary[500],
441
- backgroundImage: `linear-gradient(180deg, ${alpha(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
442
- boxShadow: `${theme.palette.primary[400]} 0 2px 0 inset, ${theme.palette.primary[700]} 0 -2px 0 inset, ${alpha(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
443
- '&:hover': {
444
- backgroundColor: (theme.vars || theme).palette.primary[700]
445
- },
446
- '&:active': {
447
- backgroundColor: (theme.vars || theme).palette.primaryDark[700]
448
- }
449
- }, ownerState.variant === 'text' && _extends({
450
- color: (theme.vars || theme).palette.primary[600]
451
- }, theme.applyDarkStyles({
452
- color: (theme.vars || theme).palette.primary[300]
453
- })))
489
+ }),
490
+ ...(ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
491
+ color: (theme.vars || theme).palette.text.primary,
492
+ backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
493
+ borderColor: (theme.vars || theme).palette.primaryDark[100],
494
+ boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
495
+ '&:hover': {
496
+ backgroundColor: (theme.vars || theme).palette.grey[50]
497
+ },
498
+ ...theme.applyDarkStyles({
499
+ color: (theme.vars || theme).palette.primaryDark[100],
500
+ borderColor: alpha(theme.palette.primaryDark[600], 0.5),
501
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
502
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
503
+ '&:hover': {
504
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
505
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
506
+ }
507
+ })
508
+ }),
509
+ ...(ownerState.variant === 'outlined' && ownerState.color === 'primary' && {
510
+ color: (theme.vars || theme).palette.primary[600],
511
+ backgroundColor: alpha(theme.palette.primary[50], 0.2),
512
+ borderColor: (theme.vars || theme).palette.primary[100],
513
+ boxShadow: `${alpha(theme.palette.primary[50], 0.8)} 0 2px 0 inset, ${alpha(theme.palette.primary[100], 0.4)} 0 -2px 0 inset, ${alpha(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
514
+ '&:hover': {
515
+ backgroundColor: (theme.vars || theme).palette.primary[50],
516
+ borderColor: (theme.vars || theme).palette.primary[200]
517
+ },
518
+ ...theme.applyDarkStyles({
519
+ color: (theme.vars || theme).palette.primary[200],
520
+ borderColor: alpha(theme.palette.primary[900], 0.7),
521
+ backgroundColor: alpha(theme.palette.primary[900], 0.2),
522
+ boxShadow: `${alpha(theme.palette.primary[900], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
523
+ '&:hover': {
524
+ backgroundColor: (theme.vars || theme).palette.primary[900],
525
+ borderColor: (theme.vars || theme).palette.primary[700]
526
+ }
527
+ })
528
+ }),
529
+ ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
530
+ color: '#fff',
531
+ textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
532
+ backgroundColor: (theme.vars || theme).palette.primary[500],
533
+ backgroundImage: `linear-gradient(180deg, ${alpha(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
534
+ boxShadow: `${theme.palette.primary[400]} 0 2px 0 inset, ${theme.palette.primary[700]} 0 -2px 0 inset, ${alpha(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
535
+ '&:hover': {
536
+ backgroundColor: (theme.vars || theme).palette.primary[700]
537
+ },
538
+ '&:active': {
539
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
540
+ }
541
+ }),
542
+ ...(ownerState.variant === 'text' && ownerState.color === 'secondary' && {
543
+ color: (theme.vars || theme).palette.text.secondary,
544
+ '&:hover': {
545
+ backgroundColor: (theme.vars || theme).palette.grey[50]
546
+ },
547
+ '&:active': {
548
+ backgroundColor: (theme.vars || theme).palette.grey[200]
549
+ },
550
+ ...theme.applyDarkStyles({
551
+ '&:hover': {
552
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
553
+ },
554
+ '&:active': {
555
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
556
+ }
557
+ })
558
+ }),
559
+ ...(ownerState.variant === 'text' && ownerState.color === 'primary' && {
560
+ color: (theme.vars || theme).palette.primary[600],
561
+ ...theme.applyDarkStyles({
562
+ color: (theme.vars || theme).palette.primary[300]
563
+ })
564
+ })
565
+ })
454
566
  },
455
567
  variants: [{
456
568
  // @ts-ignore internal repo module augmentation issue
@@ -568,23 +680,39 @@ export function getThemedComponents() {
568
680
  },
569
681
  style: ({
570
682
  theme
571
- }) => _extends({
683
+ }) => ({
572
684
  marginBottom: 1,
573
685
  fontSize: theme.typography.pxToRem(14),
574
686
  fontWeight: theme.typography.fontWeightBold,
575
687
  color: (theme.vars || theme).palette.primary[600],
576
688
  '&:hover': {
577
689
  backgroundColor: (theme.vars || theme).palette.primary[50]
578
- }
579
- }, theme.applyDarkStyles({
580
- color: (theme.vars || theme).palette.primary[300],
581
- '&:hover': {
582
- backgroundColor: alpha(theme.palette.primary[800], 0.3)
583
- }
584
- }))
690
+ },
691
+ ...theme.applyDarkStyles({
692
+ color: (theme.vars || theme).palette.primary[300],
693
+ '&:hover': {
694
+ backgroundColor: alpha(theme.palette.primary[800], 0.3)
695
+ }
696
+ })
697
+ })
585
698
  }]
586
699
  },
587
700
  MuiIconButton: {
701
+ styleOverrides: {
702
+ root: ({
703
+ theme,
704
+ ownerState
705
+ }) => ({
706
+ borderRadius: theme.shape.borderRadius,
707
+ ...(ownerState.size === 'small' && {
708
+ height: 32,
709
+ width: 32,
710
+ '& .MuiSvgIcon-root': {
711
+ fontSize: defaultTheme.typography.pxToRem(18)
712
+ }
713
+ })
714
+ })
715
+ },
588
716
  variants: [{
589
717
  props: {
590
718
  color: 'primary'
@@ -592,14 +720,11 @@ export function getThemedComponents() {
592
720
  style: ({
593
721
  theme
594
722
  }) => [{
595
- height: 34,
596
- width: 34,
597
723
  border: `1px solid`,
598
- borderRadius: theme.shape.borderRadius,
599
724
  color: (theme.vars || theme).palette.primary.main,
600
725
  backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
601
726
  borderColor: (theme.vars || theme).palette.primaryDark[100],
602
- boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
727
+ boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
603
728
  '&:hover': {
604
729
  borderColor: (theme.vars || theme).palette.grey[300],
605
730
  background: (theme.vars || theme).palette.grey[50]
@@ -608,10 +733,10 @@ export function getThemedComponents() {
608
733
  color: (theme.vars || theme).palette.primary[300],
609
734
  borderColor: alpha(theme.palette.primaryDark[600], 0.5),
610
735
  backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
611
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
736
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
612
737
  '&:hover': {
613
- borderColor: (theme.vars || theme).palette.primaryDark[500],
614
- background: alpha(theme.palette.primaryDark[700], 0.4)
738
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
739
+ background: alpha(theme.palette.primaryDark[700], 0.8)
615
740
  }
616
741
  })]
617
742
  }, {
@@ -621,14 +746,12 @@ export function getThemedComponents() {
621
746
  style: ({
622
747
  theme
623
748
  }) => [{
624
- height: 34,
625
- width: 34,
626
749
  color: (theme.vars || theme).palette.text.tertiary,
627
750
  borderRadius: theme.shape.borderRadius,
628
751
  border: `1px solid`,
629
752
  backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
630
753
  borderColor: (theme.vars || theme).palette.primaryDark[100],
631
- boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
754
+ boxShadow: `${alpha(theme.palette.grey[50], 0.4)} 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
632
755
  '&:hover': {
633
756
  color: (theme.vars || theme).palette.primary.main,
634
757
  borderColor: (theme.vars || theme).palette.grey[300],
@@ -637,7 +760,7 @@ export function getThemedComponents() {
637
760
  }, theme.applyDarkStyles({
638
761
  borderColor: alpha(theme.palette.primaryDark[600], 0.5),
639
762
  backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
640
- boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
763
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.2)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
641
764
  '&:hover': {
642
765
  color: (theme.vars || theme).palette.primary[400],
643
766
  borderColor: (theme.vars || theme).palette.primaryDark[500],
@@ -651,15 +774,26 @@ export function getThemedComponents() {
651
774
  paper: ({
652
775
  theme
653
776
  }) => [{
777
+ padding: '6px',
654
778
  minWidth: 160,
655
779
  color: (theme.vars || theme).palette.text.secondary,
656
780
  backgroundImage: 'none',
657
781
  border: '1px solid',
658
782
  backgroundColor: (theme.vars || theme).palette.background.paper,
659
783
  borderColor: (theme.vars || theme).palette.grey[200],
784
+ '& .MuiMenu-list': {
785
+ display: 'flex',
786
+ flexDirection: 'column',
787
+ gap: '2px',
788
+ '& .MuiDivider-root': {
789
+ margin: '4px -8px 4px -8px'
790
+ }
791
+ },
660
792
  '& .MuiMenuItem-root': {
793
+ padding: '6px 12px',
794
+ borderRadius: '6px',
661
795
  fontSize: theme.typography.pxToRem(14),
662
- fontWeight: 500,
796
+ fontWeight: theme.typography.fontWeightMedium,
663
797
  '&:hover, &:focus': {
664
798
  backgroundColor: (theme.vars || theme).palette.grey[100],
665
799
  color: (theme.vars || theme).palette.text.primary
@@ -681,7 +815,7 @@ export function getThemedComponents() {
681
815
  backgroundColor: (theme.vars || theme).palette.primaryDark[700]
682
816
  },
683
817
  '&.Mui-selected': {
684
- color: (theme.vars || theme).palette.primary[300],
818
+ color: (theme.vars || theme).palette.primary[200],
685
819
  backgroundColor: alpha(theme.palette.primary[900], 0.4)
686
820
  }
687
821
  }
@@ -692,22 +826,21 @@ export function getThemedComponents() {
692
826
  styleOverrides: {
693
827
  paper: ({
694
828
  theme
695
- }) => _extends({
696
- boxShadow: '0px 4px 20px rgba(170, 180, 190, 0.3)'
697
- }, theme.applyDarkStyles({
698
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.5)'
699
- }))
829
+ }) => ({
830
+ boxShadow: '0px 4px 20px rgba(170, 180, 190, 0.3)',
831
+ ...theme.applyDarkStyles({
832
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.5)'
833
+ })
834
+ })
700
835
  }
701
836
  },
702
837
  MuiDivider: {
703
838
  styleOverrides: {
704
839
  root: ({
705
840
  theme
706
- }) => _extends({
707
- borderColor: (theme.vars || theme).palette.grey[100]
708
- }, theme.applyDarkStyles({
709
- borderColor: alpha(theme.palette.primaryDark[500], 0.3)
710
- }))
841
+ }) => ({
842
+ borderColor: (theme.vars || theme).palette.divider
843
+ })
711
844
  }
712
845
  },
713
846
  MuiLink: {
@@ -760,107 +893,131 @@ export function getThemedComponents() {
760
893
  variant
761
894
  },
762
895
  theme
763
- }) => _extends({
896
+ }) => ({
764
897
  fontWeight: theme.typography.fontWeightSemiBold,
765
- paddingBottom: 0.2
766
- }, variant === 'outlined' && color === 'default' && _extends({
767
- backgroundColor: alpha(theme.palette.grey[50], 0.5),
768
- color: (theme.vars || theme).palette.grey[900],
769
- borderColor: (theme.vars || theme).palette.grey[200],
770
- '&:hover': {
771
- backgroundColor: (theme.vars || theme).palette.grey[100],
772
- color: (theme.vars || theme).palette.grey[900]
773
- }
774
- }, theme.applyDarkStyles({
775
- backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
776
- color: (theme.vars || theme).palette.grey[300],
777
- borderColor: alpha(theme.palette.primaryDark[500], 0.5),
778
- '&:hover': {
779
- color: (theme.vars || theme).palette.grey[300],
780
- backgroundColor: (theme.vars || theme).palette.primaryDark[700]
781
- }
782
- })), variant === 'outlined' && color === 'info' && _extends({
783
- backgroundColor: alpha(theme.palette.grey[50], 0.5),
784
- color: (theme.vars || theme).palette.grey[900],
785
- borderColor: (theme.vars || theme).palette.grey[200]
786
- }, theme.applyDarkStyles({
787
- color: (theme.vars || theme).palette.grey[300],
788
- backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
789
- borderColor: (theme.vars || theme).palette.primaryDark[600]
790
- })), variant === 'outlined' && color === 'primary' && _extends({
791
- borderColor: (theme.vars || theme).palette.primary[100],
792
- backgroundColor: alpha(theme.palette.primary[100], 0.2)
793
- }, theme.applyDarkStyles({
794
- color: (theme.vars || theme).palette.primary[300],
795
- borderColor: alpha(theme.palette.primary[500], 0.2),
796
- backgroundColor: alpha(theme.palette.primary[700], 0.2)
797
- })), variant === 'outlined' && color === 'success' && _extends({
798
- borderColor: (theme.vars || theme).palette.success[100],
799
- backgroundColor: (theme.vars || theme).palette.success[50],
800
- color: (theme.vars || theme).palette.success[900]
801
- }, theme.applyDarkStyles({
802
- color: (theme.vars || theme).palette.success[300],
803
- borderColor: alpha(theme.palette.success[300], 0.2),
804
- background: alpha(theme.palette.success[800], 0.2)
805
- })), variant === 'filled' && _extends({}, color === 'default' && _extends({
806
- border: '1px solid transparent',
807
- color: (theme.vars || theme).palette.primary[700],
808
- backgroundColor: alpha(theme.palette.primary[100], 0.5),
809
- '&:hover': {
810
- backgroundColor: (theme.vars || theme).palette.primary[100]
811
- }
812
- }, theme.applyDarkStyles({
813
- color: '#fff',
814
- backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
815
- '&:hover': {
816
- backgroundColor: (theme.vars || theme).palette.primaryDark[600]
817
- }
818
- })), color === 'primary' && _extends({
819
- color: (theme.vars || theme).palette.primary[600],
820
- backgroundColor: alpha(theme.palette.primary[100], 0.4),
821
- '&:hover': {
822
- backgroundColor: (theme.vars || theme).palette.primary[100]
823
- },
824
- '& .MuiChip-deleteIcon': {
825
- color: (theme.vars || theme).palette.primary[600],
898
+ paddingBottom: 0.2,
899
+ ...(variant === 'outlined' && color === 'default' && {
900
+ backgroundColor: alpha(theme.palette.grey[50], 0.5),
901
+ color: (theme.vars || theme).palette.grey[900],
902
+ borderColor: (theme.vars || theme).palette.grey[200],
826
903
  '&:hover': {
827
- color: (theme.vars || theme).palette.primary[700]
828
- }
829
- },
830
- '&.Mui-focusVisible': {
831
- backgroundColor: (theme.vars || theme).palette.primary[200]
832
- }
833
- }, theme.applyDarkStyles({
834
- color: (theme.vars || theme).palette.primary[100],
835
- backgroundColor: alpha(theme.palette.primary[800], 0.5),
836
- '&:hover': {
837
- backgroundColor: alpha(theme.palette.primary[900], 0.5)
838
- },
839
- '& .MuiChip-deleteIcon': {
840
- color: (theme.vars || theme).palette.primary[100],
841
- '&:hover': {
842
- color: (theme.vars || theme).palette.primary[50]
843
- }
844
- }
845
- }))), variant === 'light' && _extends({}, color === 'default' && _extends({
846
- color: (theme.vars || theme).palette.primary[700],
847
- backgroundColor: alpha(theme.palette.primary[100], 0.3)
848
- }, theme.applyDarkStyles({
849
- color: (theme.vars || theme).palette.primary[200],
850
- backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
851
- })), color === 'warning' && _extends({
852
- color: (theme.vars || theme).palette.warning[900],
853
- backgroundColor: (theme.vars || theme).palette.warning[100]
854
- }, theme.applyDarkStyles({
855
- color: '#fff',
856
- backgroundColor: (theme.vars || theme).palette.warning[900]
857
- })), color === 'success' && _extends({
858
- color: (theme.vars || theme).palette.success[900],
859
- backgroundColor: (theme.vars || theme).palette.success[100]
860
- }, theme.applyDarkStyles({
861
- color: '#fff',
862
- backgroundColor: (theme.vars || theme).palette.success[900]
863
- }))))
904
+ backgroundColor: (theme.vars || theme).palette.grey[100],
905
+ color: (theme.vars || theme).palette.grey[900]
906
+ },
907
+ ...theme.applyDarkStyles({
908
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
909
+ color: (theme.vars || theme).palette.grey[300],
910
+ borderColor: alpha(theme.palette.primaryDark[500], 0.5),
911
+ '&:hover': {
912
+ color: (theme.vars || theme).palette.grey[300],
913
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
914
+ }
915
+ })
916
+ }),
917
+ ...(variant === 'outlined' && color === 'info' && {
918
+ backgroundColor: alpha(theme.palette.grey[50], 0.5),
919
+ color: (theme.vars || theme).palette.grey[900],
920
+ borderColor: (theme.vars || theme).palette.grey[200],
921
+ ...theme.applyDarkStyles({
922
+ color: (theme.vars || theme).palette.grey[300],
923
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
924
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
925
+ })
926
+ }),
927
+ ...(variant === 'outlined' && color === 'primary' && {
928
+ borderColor: (theme.vars || theme).palette.primary[100],
929
+ backgroundColor: alpha(theme.palette.primary[100], 0.2),
930
+ ...theme.applyDarkStyles({
931
+ color: (theme.vars || theme).palette.primary[300],
932
+ borderColor: alpha(theme.palette.primary[500], 0.2),
933
+ backgroundColor: alpha(theme.palette.primary[700], 0.2)
934
+ })
935
+ }),
936
+ ...(variant === 'outlined' && color === 'success' && {
937
+ borderColor: (theme.vars || theme).palette.success[100],
938
+ backgroundColor: (theme.vars || theme).palette.success[50],
939
+ color: (theme.vars || theme).palette.success[900],
940
+ ...theme.applyDarkStyles({
941
+ color: (theme.vars || theme).palette.success[300],
942
+ borderColor: alpha(theme.palette.success[300], 0.2),
943
+ background: alpha(theme.palette.success[800], 0.2)
944
+ })
945
+ }),
946
+ ...(variant === 'filled' && {
947
+ ...(color === 'default' && {
948
+ border: '1px solid transparent',
949
+ color: (theme.vars || theme).palette.primary[700],
950
+ backgroundColor: alpha(theme.palette.primary[100], 0.5),
951
+ '&:hover': {
952
+ backgroundColor: (theme.vars || theme).palette.primary[100]
953
+ },
954
+ ...theme.applyDarkStyles({
955
+ color: '#fff',
956
+ backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
957
+ '&:hover': {
958
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600]
959
+ }
960
+ })
961
+ }),
962
+ ...(color === 'primary' && {
963
+ color: (theme.vars || theme).palette.primary[600],
964
+ backgroundColor: alpha(theme.palette.primary[100], 0.4),
965
+ '&:hover': {
966
+ backgroundColor: (theme.vars || theme).palette.primary[100]
967
+ },
968
+ '& .MuiChip-deleteIcon': {
969
+ color: (theme.vars || theme).palette.primary[600],
970
+ '&:hover': {
971
+ color: (theme.vars || theme).palette.primary[700]
972
+ }
973
+ },
974
+ '&.Mui-focusVisible': {
975
+ backgroundColor: (theme.vars || theme).palette.primary[200]
976
+ },
977
+ ...theme.applyDarkStyles({
978
+ color: (theme.vars || theme).palette.primary[100],
979
+ backgroundColor: alpha(theme.palette.primary[800], 0.5),
980
+ '&:hover': {
981
+ backgroundColor: alpha(theme.palette.primary[900], 0.5)
982
+ },
983
+ '& .MuiChip-deleteIcon': {
984
+ color: (theme.vars || theme).palette.primary[100],
985
+ '&:hover': {
986
+ color: (theme.vars || theme).palette.primary[50]
987
+ }
988
+ }
989
+ })
990
+ })
991
+ }),
992
+ // for labelling product in the search
993
+ // @ts-ignore internal repo module augmentation issue
994
+ ...(variant === 'light' && {
995
+ ...(color === 'default' && {
996
+ color: (theme.vars || theme).palette.primary[700],
997
+ backgroundColor: alpha(theme.palette.primary[100], 0.3),
998
+ ...theme.applyDarkStyles({
999
+ color: (theme.vars || theme).palette.primary[200],
1000
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
1001
+ })
1002
+ }),
1003
+ ...(color === 'warning' && {
1004
+ color: (theme.vars || theme).palette.warning[900],
1005
+ backgroundColor: (theme.vars || theme).palette.warning[100],
1006
+ ...theme.applyDarkStyles({
1007
+ color: '#fff',
1008
+ backgroundColor: (theme.vars || theme).palette.warning[900]
1009
+ })
1010
+ }),
1011
+ ...(color === 'success' && {
1012
+ color: (theme.vars || theme).palette.success[900],
1013
+ backgroundColor: (theme.vars || theme).palette.success[100],
1014
+ ...theme.applyDarkStyles({
1015
+ color: '#fff',
1016
+ backgroundColor: (theme.vars || theme).palette.success[900]
1017
+ })
1018
+ })
1019
+ })
1020
+ })
864
1021
  }
865
1022
  },
866
1023
  MuiList: {
@@ -930,7 +1087,7 @@ export function getThemedComponents() {
930
1087
  root: ({
931
1088
  theme,
932
1089
  ownerState
933
- }) => [_extends({
1090
+ }) => [{
934
1091
  backgroundImage: 'none',
935
1092
  backgroundColor: '#fff',
936
1093
  '&[href]': {
@@ -938,47 +1095,49 @@ export function getThemedComponents() {
938
1095
  },
939
1096
  transition: theme.transitions.create(['border', 'box-shadow'], {
940
1097
  duration: theme.transitions.duration.shortest
941
- })
942
- }, ownerState.variant === 'outlined' && {
943
- display: 'block',
944
- borderColor: (theme.vars || theme).palette.grey[100],
945
- '&[href]': {
946
- textDecorationLine: 'none',
947
- boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
948
- '&:hover': {
949
- borderColor: (theme.vars || theme).palette.primary[200],
950
- boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
1098
+ }),
1099
+ ...(ownerState.variant === 'outlined' && {
1100
+ display: 'block',
1101
+ borderColor: (theme.vars || theme).palette.grey[100],
1102
+ '&[href]': {
1103
+ textDecorationLine: 'none',
1104
+ boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1105
+ '&:hover': {
1106
+ borderColor: (theme.vars || theme).palette.primary[200],
1107
+ boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
1108
+ },
1109
+ '&:focus-visible': {
1110
+ outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
1111
+ outlineOffset: '2px'
1112
+ }
951
1113
  },
952
- '&:focus-visible': {
953
- outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
954
- outlineOffset: '2px'
1114
+ ':is(a&), :is(button&)': {
1115
+ '&:hover': {
1116
+ borderColor: (theme.vars || theme).palette.primary[200],
1117
+ boxShadow: `0px 4px 16px ${(theme.vars || theme).palette.grey[200]}`
1118
+ }
955
1119
  }
956
- },
957
- ':is(a&), :is(button&)': {
958
- '&:hover': {
959
- borderColor: (theme.vars || theme).palette.primary[200],
960
- boxShadow: `0px 4px 16px ${(theme.vars || theme).palette.grey[200]}`
961
- }
962
- }
963
- }), theme.applyDarkStyles(_extends({
964
- backgroundColor: (theme.vars || theme).palette.primaryDark[900]
965
- }, ownerState.variant === 'outlined' && {
966
- borderColor: (theme.vars || theme).palette.primaryDark[700],
967
- backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
968
- '&[href]': {
969
- textDecorationLine: 'none',
970
- boxShadow: `${alpha(theme.palette.primaryDark[700], 0.4)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
971
- '&:hover': {
972
- borderColor: alpha(theme.palette.primary[600], 0.5),
973
- boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
974
- }
975
- },
976
- ':is(a&), :is(button&)': {
977
- '&:hover': {
978
- boxShadow: `0px 4px 24px ${(theme.vars || theme).palette.common.black}`
1120
+ })
1121
+ }, theme.applyDarkStyles({
1122
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900],
1123
+ ...(ownerState.variant === 'outlined' && {
1124
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
1125
+ backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
1126
+ '&[href]': {
1127
+ textDecorationLine: 'none',
1128
+ boxShadow: `${alpha(theme.palette.primaryDark[700], 0.4)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
1129
+ '&:hover': {
1130
+ borderColor: alpha(theme.palette.primary[600], 0.5),
1131
+ boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
1132
+ }
1133
+ },
1134
+ ':is(a&), :is(button&)': {
1135
+ '&:hover': {
1136
+ boxShadow: `0px 4px 24px ${(theme.vars || theme).palette.common.black}`
1137
+ }
979
1138
  }
980
- }
981
- }))]
1139
+ })
1140
+ })]
982
1141
  }
983
1142
  },
984
1143
  MuiTableCell: {
@@ -986,14 +1145,16 @@ export function getThemedComponents() {
986
1145
  root: ({
987
1146
  theme,
988
1147
  ownerState
989
- }) => _extends({
1148
+ }) => ({
990
1149
  padding: theme.spacing(1, 2),
991
- borderColor: (theme.vars || theme).palette.divider
992
- }, ownerState.variant === 'head' && {
993
- color: (theme.vars || theme).palette.text.primary,
994
- fontWeight: 700
995
- }, ownerState.variant === 'body' && {
996
- color: (theme.vars || theme).palette.text.secondary
1150
+ borderColor: (theme.vars || theme).palette.divider,
1151
+ ...(ownerState.variant === 'head' && {
1152
+ color: (theme.vars || theme).palette.text.primary,
1153
+ fontWeight: 700
1154
+ }),
1155
+ ...(ownerState.variant === 'body' && {
1156
+ color: (theme.vars || theme).palette.text.secondary
1157
+ })
997
1158
  })
998
1159
  }
999
1160
  },
@@ -1001,11 +1162,12 @@ export function getThemedComponents() {
1001
1162
  styleOverrides: {
1002
1163
  root: ({
1003
1164
  theme
1004
- }) => _extends({
1005
- backgroundColor: '#fff'
1006
- }, theme.applyDarkStyles({
1007
- backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1008
- }))
1165
+ }) => ({
1166
+ backgroundColor: '#fff',
1167
+ ...theme.applyDarkStyles({
1168
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1169
+ })
1170
+ })
1009
1171
  }
1010
1172
  },
1011
1173
  MuiToggleButton: {
@@ -1013,14 +1175,14 @@ export function getThemedComponents() {
1013
1175
  root: ({
1014
1176
  theme,
1015
1177
  ownerState
1016
- }) => [_extends({
1178
+ }) => [{
1017
1179
  textTransform: 'none',
1018
1180
  fontWeight: theme.typography.fontWeightMedium,
1019
1181
  color: theme.palette.text.secondary,
1020
- borderColor: theme.palette.grey[200]
1021
- }, ownerState.size === 'small' && {
1022
- padding: '0.375rem 0.75rem'
1023
- }, {
1182
+ borderColor: theme.palette.grey[200],
1183
+ ...(ownerState.size === 'small' && {
1184
+ padding: '0.375rem 0.75rem'
1185
+ }),
1024
1186
  '&.Mui-selected': {
1025
1187
  color: (theme.vars || theme).palette.primary[700],
1026
1188
  borderColor: `${(theme.vars || theme).palette.primary[200]} !important`,
@@ -1029,7 +1191,7 @@ export function getThemedComponents() {
1029
1191
  backgroundColor: (theme.vars || theme).palette.primary[100]
1030
1192
  }
1031
1193
  }
1032
- }), theme.applyDarkStyles({
1194
+ }, theme.applyDarkStyles({
1033
1195
  borderColor: theme.palette.primaryDark[700],
1034
1196
  '&:hover': {
1035
1197
  backgroundColor: alpha(theme.palette.primaryDark[600], 0.2)
@@ -1078,13 +1240,14 @@ export function getThemedComponents() {
1078
1240
  },
1079
1241
  track: ({
1080
1242
  theme
1081
- }) => _extends({
1243
+ }) => ({
1082
1244
  opacity: 1,
1083
1245
  borderRadius: 32,
1084
- backgroundColor: theme.palette.grey[400]
1085
- }, theme.applyDarkStyles({
1086
- backgroundColor: theme.palette.grey[800]
1087
- })),
1246
+ backgroundColor: theme.palette.grey[400],
1247
+ ...theme.applyDarkStyles({
1248
+ backgroundColor: theme.palette.grey[800]
1249
+ })
1250
+ }),
1088
1251
  thumb: {
1089
1252
  flexShrink: 0,
1090
1253
  width: '14px',
@@ -1140,5 +1303,11 @@ export function getThemedComponents() {
1140
1303
  }
1141
1304
  };
1142
1305
  }
1143
- export const brandingDarkTheme = createTheme(_extends({}, getDesignTokens('dark'), getThemedComponents()));
1144
- export const brandingLightTheme = createTheme(_extends({}, getDesignTokens('light'), getThemedComponents()));
1306
+ export const brandingDarkTheme = createTheme({
1307
+ ...getDesignTokens('dark'),
1308
+ ...getThemedComponents()
1309
+ });
1310
+ export const brandingLightTheme = createTheme({
1311
+ ...getDesignTokens('light'),
1312
+ ...getThemedComponents()
1313
+ });