@mui/docs 6.0.0-alpha.0 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1146 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import ArrowDropDownRounded from '@mui/icons-material/ArrowDropDownRounded';
3
+ import { createTheme, Theme, alpha } from '@mui/material/styles';
4
+ // TODO: enable this once types conflict is fixed
5
+ // declare module '@mui/material/Button' {
6
+ // interface ButtonPropsVariantOverrides {
7
+ // code: true;
8
+ // }
9
+ // }
10
+
11
+ const defaultTheme = createTheme();
12
+ export const blue = {
13
+ 50: 'hsl(210, 100%, 96%)',
14
+ 100: 'hsl(210, 100%, 90%)',
15
+ 200: 'hsl(210, 100%, 80%)',
16
+ 300: 'hsl(210, 100%, 70%)',
17
+ 400: 'hsl(210, 100%, 60%)',
18
+ main: 'hsl(210, 100%, 45%)',
19
+ 500: 'hsl(210, 100%, 45%)',
20
+ 600: 'hsl(210, 100%, 42%)',
21
+ 700: 'hsl(210, 100%, 38%)',
22
+ 800: 'hsl(210, 100%, 30%)',
23
+ 900: 'hsl(210, 100%, 23%)'
24
+ };
25
+ export const blueDark = {
26
+ 50: 'hsl(210, 14%, 92%)',
27
+ 100: 'hsl(210, 14%, 87%)',
28
+ 200: 'hsl(210, 14%, 72%)',
29
+ 300: 'hsl(210, 14%, 56%)',
30
+ main: 'hsl(210, 14%, 56%)',
31
+ 400: 'hsl(210, 14%, 36%)',
32
+ 500: 'hsl(210, 14%, 28%)',
33
+ 600: 'hsl(210, 14%, 22%)',
34
+ 700: 'hsl(210, 14%, 13%)',
35
+ 800: 'hsl(210, 14%, 9%)',
36
+ 900: 'hsl(210, 14%, 7%)'
37
+ };
38
+ export const grey = {
39
+ 50: 'hsl(215, 15%, 97%)',
40
+ 100: 'hsl(215, 15%, 92%)',
41
+ 200: 'hsl(215, 15%, 89%)',
42
+ 300: 'hsl(215, 15%, 82%)',
43
+ 400: 'hsl(215, 15%, 75%)',
44
+ 500: 'hsl(215, 15%, 65%)',
45
+ 600: 'hsl(215, 15%, 50%)',
46
+ 700: 'hsl(215, 15%, 40%)',
47
+ 800: 'hsl(215, 15%, 22%)',
48
+ 900: 'hsl(215, 15%, 12%)'
49
+ };
50
+ export const error = {
51
+ 50: 'hsl(355, 98%, 97%)',
52
+ 100: 'hsl(355, 98%, 93%)',
53
+ 200: 'hsl(355, 98%, 87%)',
54
+ 300: 'hsl(355, 98%, 80%)',
55
+ 400: 'hsl(355, 98%, 74%)',
56
+ 500: 'hsl(355, 98%, 66%)',
57
+ main: 'hsl(355, 98%, 66%)',
58
+ 600: 'hsl(355, 98%, 46%)',
59
+ 700: 'hsl(355, 98%, 39%)',
60
+ 800: 'hsl(355, 98%, 29%)',
61
+ 900: 'hsl(355, 98%, 17%)'
62
+ };
63
+ export const success = {
64
+ 50: 'hsl(144, 72%, 95%)',
65
+ 100: 'hsl(144, 72%, 87%)',
66
+ 200: 'hsl(144, 72%, 77%)',
67
+ 300: 'hsl(144, 72%, 66%)',
68
+ 400: 'hsl(144, 72%, 56%)',
69
+ 500: 'hsl(144, 72%, 46%)',
70
+ 600: 'hsl(144, 72%, 41%)',
71
+ 700: 'hsl(144, 72%, 37%)',
72
+ 800: 'hsl(144, 72%, 32%)',
73
+ 900: 'hsl(144, 72%, 21%)'
74
+ };
75
+ export const warning = {
76
+ 50: 'hsl(48, 100%, 96%)',
77
+ 100: 'hsl(48, 100%, 88%)',
78
+ 200: 'hsl(48, 100%, 82%)',
79
+ 300: 'hsl(48, 100%, 64%)',
80
+ 400: 'hsl(48, 100%, 48%)',
81
+ 500: 'hsl(48, 100%, 44%)',
82
+ main: 'hsl(48, 100%, 44%)',
83
+ 600: 'hsl(40, 100%, 40%)',
84
+ 700: 'hsl(36, 100%, 34%)',
85
+ 800: 'hsl(36, 100%, 27%)',
86
+ 900: 'hsl(36, 100%, 18%)'
87
+ };
88
+ const systemFont = ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'];
89
+ export const getMetaThemeColor = mode => {
90
+ const themeColor = {
91
+ light: blue[600],
92
+ dark: blueDark[900]
93
+ };
94
+ return themeColor[mode];
95
+ };
96
+ 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
+ }),
108
+ divider: mode === 'dark' ? alpha(blueDark[500], 0.3) : grey[100],
109
+ primaryDark: blueDark,
110
+ mode
111
+ }, mode === 'dark' && {
112
+ background: {
113
+ default: blueDark[900],
114
+ paper: alpha(blueDark[800], 0.8)
115
+ }
116
+ }, {
117
+ common: {
118
+ black: 'hsl(200, 10%, 4%)'
119
+ },
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
+ }),
136
+ error,
137
+ success: _extends({}, success, mode === 'dark' && {
138
+ main: success[600]
139
+ }, mode === 'light' && {
140
+ main: success[700]
141
+ }),
142
+ warning,
143
+ gradients: {
144
+ 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
+ linearSubtle: mode === 'light' ? `linear-gradient(to bottom right, ${alpha(blue[50], 0.3)} 25%, ${alpha(grey[50], 0.2)} 100%)` : `linear-gradient(to bottom right, ${alpha(blue[900], 0.1)} 25%, ${alpha(blueDark[800], 0.2)} 100%)`
146
+ }
147
+ }),
148
+ shape: {
149
+ borderRadius: 12
150
+ },
151
+ spacing: 8,
152
+ typography: {
153
+ fontFamily: ['"IBM Plex Sans"', ...systemFont].join(','),
154
+ // Match VS Code
155
+ // https://github.com/microsoft/vscode/blob/b38691f611d1ce3ef437c67a1b047c757b7b4e53/src/vs/editor/common/config/editorOptions.ts#L4578-L4580
156
+ // https://github.com/microsoft/vscode/blob/d950552131d7350a45dac8b59bf179469c36c2ac/src/vs/editor/standalone/browser/standalone-tokens.css#L10
157
+ fontFamilyCode: ['Menlo',
158
+ // macOS
159
+ 'Consolas',
160
+ // Windows
161
+ '"Droid Sans Mono"',
162
+ // Linux
163
+ 'monospace' // fallback
164
+ ].join(','),
165
+ fontFamilyTagline: ['"General Sans"', ...systemFont].join(','),
166
+ fontFamilySystem: systemFont.join(','),
167
+ fontWeightSemiBold: 600,
168
+ fontWeightExtraBold: 800,
169
+ h1: _extends({
170
+ fontFamily: ['"General Sans"', ...systemFont].join(','),
171
+ fontSize: 'clamp(2.5rem, 1.125rem + 3.5vw, 3.5em)',
172
+ fontWeight: 600,
173
+ lineHeight: 78 / 70,
174
+ letterSpacing: -0.2
175
+ }, mode === 'light' && {
176
+ color: blueDark[900]
177
+ }),
178
+ h2: {
179
+ fontFamily: ['"General Sans"', ...systemFont].join(','),
180
+ fontSize: 'clamp(1.5rem, 0.9643rem + 1.4286vw, 2.25rem)',
181
+ fontWeight: 600,
182
+ lineHeight: 44 / 36,
183
+ letterSpacing: -0.2,
184
+ color: mode === 'dark' ? grey[100] : blueDark[700]
185
+ },
186
+ h3: {
187
+ fontFamily: ['"General Sans"', ...systemFont].join(','),
188
+ fontSize: defaultTheme.typography.pxToRem(36),
189
+ lineHeight: 44 / 36,
190
+ letterSpacing: 0.2
191
+ },
192
+ h4: {
193
+ fontFamily: ['"General Sans"', ...systemFont].join(','),
194
+ fontSize: defaultTheme.typography.pxToRem(30),
195
+ lineHeight: 42 / 28,
196
+ letterSpacing: 0.2
197
+ },
198
+ h5: {
199
+ fontSize: defaultTheme.typography.pxToRem(24),
200
+ lineHeight: 36 / 24,
201
+ letterSpacing: 0.1,
202
+ color: mode === 'dark' ? blue[300] : blue.main
203
+ },
204
+ h6: {
205
+ fontSize: defaultTheme.typography.pxToRem(20),
206
+ lineHeight: 30 / 20
207
+ },
208
+ button: {
209
+ textTransform: 'initial',
210
+ fontWeight: 700,
211
+ letterSpacing: 0
212
+ },
213
+ subtitle1: {
214
+ fontSize: defaultTheme.typography.pxToRem(18),
215
+ lineHeight: 24 / 18,
216
+ letterSpacing: 0,
217
+ fontWeight: 500
218
+ },
219
+ body1: {
220
+ fontSize: defaultTheme.typography.pxToRem(16),
221
+ // 16px
222
+ lineHeight: 24 / 16,
223
+ letterSpacing: 0
224
+ },
225
+ body2: {
226
+ fontSize: defaultTheme.typography.pxToRem(14),
227
+ // 14px
228
+ lineHeight: 21 / 14,
229
+ letterSpacing: 0
230
+ },
231
+ caption: {
232
+ display: 'inline-block',
233
+ fontSize: defaultTheme.typography.pxToRem(12),
234
+ // 12px
235
+ lineHeight: 18 / 12,
236
+ letterSpacing: 0,
237
+ fontWeight: 700
238
+ },
239
+ allVariants: {
240
+ scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)'
241
+ }
242
+ },
243
+ /**
244
+ * This utility exists to help transitioning to CSS variables page by page (prevent dark mode flicker).
245
+ * It will use the proper styling method based on the theme because the component might be on the page that does not support CSS variables yet.
246
+ *
247
+ * 😓 Without this utility:
248
+ * {
249
+ * ...theme.vars ? {
250
+ * color: theme.vars.palette.primary.main,
251
+ * [theme.getColorScheme('dark')]: {
252
+ * color: '#fff',
253
+ * }
254
+ * } : {
255
+ * color: theme.palette.mode === 'dark' ? '#fff' : theme.palette.primary.main,
256
+ * }
257
+ * }
258
+ *
259
+ * 🤩 Using the utility:
260
+ * {
261
+ * color: (theme.vars || theme).palette.primary.main,
262
+ * ...theme.applyDarkStyles({
263
+ * color: '#fff',
264
+ * }),
265
+ * }
266
+ *
267
+ * -------------------------------------------------------------------------------------------------
268
+ * 💡 This util should be used in an array if the styles contain pseudo classes or nested selectors:
269
+ *
270
+ * ❌ There is a chance that the upper selectors could be overridden
271
+ * {
272
+ * // the whole selector could be overridden
273
+ * '&::before': {
274
+ * color: ...
275
+ * },
276
+ * ...theme.applyDarkStyles({
277
+ * '&::before': {
278
+ * color: ...
279
+ * }
280
+ * })
281
+ * }
282
+ *
283
+ * ✅ use an array (supports in both emotion and styled-components)
284
+ * Only the `color` will be overridden in dark mode.
285
+ * [
286
+ * '&::before': {
287
+ * color: ...
288
+ * },
289
+ * theme.applyDarkStyles({
290
+ * '&::before': {
291
+ * color: ...
292
+ * }
293
+ * })
294
+ * ]
295
+ */
296
+ applyDarkStyles(css) {
297
+ return this.applyStyles('dark', css);
298
+ }
299
+ });
300
+ export function getThemedComponents() {
301
+ return {
302
+ components: {
303
+ MuiAlert: {
304
+ styleOverrides: {
305
+ root: {
306
+ padding: '12px 16px'
307
+ },
308
+ standardWarning: ({
309
+ theme
310
+ }) => [{
311
+ backgroundColor: alpha(theme.palette.warning[50], 0.5),
312
+ color: (theme.vars || theme).palette.grey[900],
313
+ border: '1px solid',
314
+ borderColor: alpha(theme.palette.warning[600], 0.3),
315
+ '& .MuiAlert-icon': {
316
+ color: (theme.vars || theme).palette.warning[700]
317
+ }
318
+ }, theme.applyDarkStyles({
319
+ backgroundColor: alpha(theme.palette.warning[700], 0.2),
320
+ color: (theme.vars || theme).palette.warning[50],
321
+ '& .MuiAlert-icon': {
322
+ color: (theme.vars || theme).palette.warning[200]
323
+ }
324
+ })],
325
+ icon: {
326
+ paddingTop: 12,
327
+ paddingBottom: 0
328
+ }
329
+ }
330
+ },
331
+ MuiButtonBase: {
332
+ defaultProps: {
333
+ disableTouchRipple: true,
334
+ disableRipple: true
335
+ },
336
+ styleOverrides: {
337
+ root: ({
338
+ theme
339
+ }) => ({
340
+ transition: 'all 100ms ease-in',
341
+ '&:focus-visible': {
342
+ outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
343
+ outlineOffset: '2px'
344
+ }
345
+ })
346
+ }
347
+ },
348
+ MuiButton: {
349
+ defaultProps: {
350
+ disableElevation: true
351
+ },
352
+ styleOverrides: {
353
+ root: ({
354
+ theme,
355
+ ownerState
356
+ }) => _extends({
357
+ transition: 'all 120ms ease-in'
358
+ }, ownerState.size === 'large' && _extends({}, theme.typography.body1, {
359
+ lineHeight: 21 / 16,
360
+ padding: theme.spacing('8px', '10px', '10px', '12px'),
361
+ fontWeight: theme.typography.fontWeightSemiBold,
362
+ borderRadius: 10,
363
+ '& > span': {
364
+ transition: '0.2s',
365
+ marginLeft: 4
366
+ },
367
+ '&:hover > span': {
368
+ transform: 'translateX(2px)'
369
+ }
370
+ }), ownerState.size === 'medium' && {
371
+ fontSize: defaultTheme.typography.pxToRem(15),
372
+ padding: theme.spacing('8px', '12px', '8px', '14px'),
373
+ fontWeight: theme.typography.fontWeightSemiBold,
374
+ borderRadius: 8,
375
+ '& > span': {
376
+ transition: '0.2s',
377
+ marginLeft: 4
378
+ },
379
+ '&:hover > span': {
380
+ transform: 'translateX(2px)'
381
+ }
382
+ }, ownerState.size === 'small' && {
383
+ padding: theme.spacing('6px', 1),
384
+ fontFamily: theme.typography.fontFamily,
385
+ fontSize: defaultTheme.typography.pxToRem(13),
386
+ fontWeight: theme.typography.fontWeightSemiBold,
387
+ borderRadius: 8,
388
+ '& .MuiButton-startIcon': {
389
+ transition: '0.15s',
390
+ marginRight: 4,
391
+ marginLeft: -1
392
+ },
393
+ '& .MuiButton-endIcon': {
394
+ transition: '0.15s',
395
+ marginLeft: 4
396
+ },
397
+ '&:hover': {
398
+ '& .MuiButton-startIcon': {
399
+ transform: 'translateX(-2px)'
400
+ },
401
+ '& .MuiButton-endIcon': {
402
+ transform: 'translateX(2px)'
403
+ }
404
+ }
405
+ }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && _extends({
406
+ color: (theme.vars || theme).palette.text.primary,
407
+ backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
408
+ borderColor: (theme.vars || theme).palette.primaryDark[100],
409
+ 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`,
410
+ '&:hover': {
411
+ backgroundColor: (theme.vars || theme).palette.grey[50]
412
+ }
413
+ }, theme.applyDarkStyles({
414
+ color: (theme.vars || theme).palette.primaryDark[100],
415
+ borderColor: alpha(theme.palette.primaryDark[600], 0.5),
416
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
417
+ 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`,
418
+ '&:hover': {
419
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
420
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
421
+ }
422
+ })), ownerState.variant === 'outlined' && ownerState.color === 'primary' && _extends({
423
+ color: (theme.vars || theme).palette.primary[600],
424
+ backgroundColor: alpha(theme.palette.primary[50], 0.2),
425
+ borderColor: (theme.vars || theme).palette.primary[100],
426
+ 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`,
427
+ '&:hover': {
428
+ backgroundColor: (theme.vars || theme).palette.primary[50],
429
+ borderColor: (theme.vars || theme).palette.primary[200]
430
+ }
431
+ }, theme.applyDarkStyles({
432
+ color: (theme.vars || theme).palette.primary[200],
433
+ borderColor: alpha(theme.palette.primary[900], 0.7),
434
+ backgroundColor: alpha(theme.palette.primary[900], 0.2),
435
+ 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`,
436
+ '&:hover': {
437
+ backgroundColor: (theme.vars || theme).palette.primary[900],
438
+ borderColor: (theme.vars || theme).palette.primary[700]
439
+ }
440
+ })), ownerState.variant === 'contained' && ownerState.color === 'primary' && {
441
+ color: '#fff',
442
+ textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
443
+ backgroundColor: (theme.vars || theme).palette.primary[500],
444
+ backgroundImage: `linear-gradient(180deg, ${alpha(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
445
+ 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`,
446
+ '&:hover': {
447
+ backgroundColor: (theme.vars || theme).palette.primary[700]
448
+ },
449
+ '&:active': {
450
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
451
+ }
452
+ }, ownerState.variant === 'text' && _extends({
453
+ color: (theme.vars || theme).palette.primary[600]
454
+ }, theme.applyDarkStyles({
455
+ color: (theme.vars || theme).palette.primary[300]
456
+ })))
457
+ },
458
+ variants: [{
459
+ // @ts-ignore internal repo module augmentation issue
460
+ props: {
461
+ variant: 'code'
462
+ },
463
+ style: ({
464
+ theme
465
+ }) => [{
466
+ cursor: 'copy',
467
+ padding: 0,
468
+ width: 'max-content',
469
+ backgroundColor: 'transparent',
470
+ color: (theme.vars || theme).palette.grey[600],
471
+ fontFamily: theme.typography.fontFamilyCode,
472
+ fontWeight: 400,
473
+ fontSize: defaultTheme.typography.pxToRem(12),
474
+ lineHeight: 21 / 14,
475
+ letterSpacing: 0,
476
+ WebkitFontSmoothing: 'subpixel-antialiased',
477
+ '& .MuiButton-startIcon': {
478
+ color: (theme.vars || theme).palette.grey[400]
479
+ },
480
+ '& .MuiButton-endIcon': {
481
+ display: 'inline-block',
482
+ position: 'absolute',
483
+ color: (theme.vars || theme).palette.primary.main,
484
+ right: -22,
485
+ top: -1,
486
+ opacity: 0,
487
+ transitionProperty: 'opacity',
488
+ transitionDuration: '100ms',
489
+ transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)'
490
+ },
491
+ '&:hover, &.Mui-focusVisible': {
492
+ backgroundColor: 'transparent',
493
+ color: (theme.vars || theme).palette.primary.main,
494
+ '& .MuiButton-endIcon': {
495
+ color: (theme.vars || theme).palette.primary.main,
496
+ opacity: 1
497
+ }
498
+ }
499
+ }, theme.applyDarkStyles({
500
+ '& .MuiButton-endIcon': {
501
+ color: (theme.vars || theme).palette.primary[300]
502
+ },
503
+ '&:hover, &.Mui-focusVisible': {
504
+ color: (theme.vars || theme).palette.primary[300],
505
+ '& .MuiButton-endIcon': {
506
+ opacity: 1
507
+ }
508
+ }
509
+ })]
510
+ }, {
511
+ // @ts-ignore internal repo module augmentation issue
512
+ props: {
513
+ variant: 'codeOutlined'
514
+ },
515
+ style: ({
516
+ theme
517
+ }) => [{
518
+ display: 'inline-block',
519
+ justifyContent: 'start',
520
+ overflowX: 'hidden',
521
+ whiteSpace: 'nowrap',
522
+ textOverflow: 'ellipsis',
523
+ position: 'relative',
524
+ border: '1px solid',
525
+ color: (theme.vars || theme).palette.grey[900],
526
+ backgroundColor: alpha(theme.palette.primary[50], 0.3),
527
+ borderColor: (theme.vars || theme).palette.grey[200],
528
+ boxShadow: `0px 2px 2px ${alpha(theme.palette.primary[100], 0.2)}, inset 0px 4px 4px ${alpha(theme.palette.primary[100], 0.2)}`,
529
+ fontFamily: theme.typography.fontFamilyCode,
530
+ fontWeight: 400,
531
+ fontSize: defaultTheme.typography.pxToRem(12),
532
+ lineHeight: 21 / 14,
533
+ letterSpacing: 0,
534
+ WebkitFontSmoothing: 'subpixel-antialiased',
535
+ '& .MuiButton-endIcon': {
536
+ display: 'inline-block',
537
+ position: 'absolute',
538
+ top: 12,
539
+ right: 0,
540
+ marginRight: 10,
541
+ color: (theme.vars || theme).palette.grey[600]
542
+ },
543
+ '&:hover, &.Mui-focusVisible': {
544
+ borderColor: (theme.vars || theme).palette.primary.main,
545
+ backgroundColor: (theme.vars || theme).palette.primary[50],
546
+ color: (theme.vars || theme).palette.primary[600],
547
+ '& .MuiButton-endIcon': {
548
+ color: (theme.vars || theme).palette.primary.main
549
+ }
550
+ }
551
+ }, theme.applyDarkStyles({
552
+ color: (theme.vars || theme).palette.grey[500],
553
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
554
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
555
+ boxShadow: '0px 2px 2px #0B0D0E, inset 0px 4px 4px rgba(20, 25, 31, 0.3)',
556
+ '& .MuiButton-endIcon': {
557
+ color: (theme.vars || theme).palette.grey[400]
558
+ },
559
+ '&:hover, &.Mui-focusVisible': {
560
+ backgroundColor: (theme.vars || theme).palette.primary[900],
561
+ color: (theme.vars || theme).palette.primary[100],
562
+ '& .MuiButton-endIcon': {
563
+ color: (theme.vars || theme).palette.primary[300]
564
+ }
565
+ }
566
+ })]
567
+ }, {
568
+ // @ts-ignore internal repo module augmentation issue
569
+ props: {
570
+ variant: 'link'
571
+ },
572
+ style: ({
573
+ theme
574
+ }) => _extends({
575
+ marginBottom: 1,
576
+ fontSize: theme.typography.pxToRem(14),
577
+ fontWeight: theme.typography.fontWeightBold,
578
+ color: (theme.vars || theme).palette.primary[600],
579
+ '&:hover': {
580
+ backgroundColor: (theme.vars || theme).palette.primary[50]
581
+ }
582
+ }, theme.applyDarkStyles({
583
+ color: (theme.vars || theme).palette.primary[300],
584
+ '&:hover': {
585
+ backgroundColor: alpha(theme.palette.primary[800], 0.3)
586
+ }
587
+ }))
588
+ }]
589
+ },
590
+ MuiIconButton: {
591
+ variants: [{
592
+ props: {
593
+ color: 'primary'
594
+ },
595
+ style: ({
596
+ theme
597
+ }) => [{
598
+ height: 34,
599
+ width: 34,
600
+ border: `1px solid`,
601
+ borderRadius: theme.shape.borderRadius,
602
+ color: (theme.vars || theme).palette.primary.main,
603
+ backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
604
+ borderColor: (theme.vars || theme).palette.primaryDark[100],
605
+ 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`,
606
+ '&:hover': {
607
+ borderColor: (theme.vars || theme).palette.grey[300],
608
+ background: (theme.vars || theme).palette.grey[50]
609
+ }
610
+ }, theme.applyDarkStyles({
611
+ color: (theme.vars || theme).palette.primary[300],
612
+ borderColor: alpha(theme.palette.primaryDark[600], 0.5),
613
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
614
+ 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`,
615
+ '&:hover': {
616
+ borderColor: (theme.vars || theme).palette.primaryDark[500],
617
+ background: alpha(theme.palette.primaryDark[700], 0.4)
618
+ }
619
+ })]
620
+ }, {
621
+ props: {
622
+ color: 'info'
623
+ },
624
+ style: ({
625
+ theme
626
+ }) => [{
627
+ height: 34,
628
+ width: 34,
629
+ color: (theme.vars || theme).palette.text.tertiary,
630
+ borderRadius: theme.shape.borderRadius,
631
+ border: `1px solid`,
632
+ backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
633
+ borderColor: (theme.vars || theme).palette.primaryDark[100],
634
+ 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`,
635
+ '&:hover': {
636
+ color: (theme.vars || theme).palette.primary.main,
637
+ borderColor: (theme.vars || theme).palette.grey[300],
638
+ background: (theme.vars || theme).palette.grey[50]
639
+ }
640
+ }, theme.applyDarkStyles({
641
+ borderColor: alpha(theme.palette.primaryDark[600], 0.5),
642
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
643
+ 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`,
644
+ '&:hover': {
645
+ color: (theme.vars || theme).palette.primary[400],
646
+ borderColor: (theme.vars || theme).palette.primaryDark[500],
647
+ background: alpha(theme.palette.primaryDark[700], 0.4)
648
+ }
649
+ })]
650
+ }]
651
+ },
652
+ MuiMenu: {
653
+ styleOverrides: {
654
+ paper: ({
655
+ theme
656
+ }) => [{
657
+ minWidth: 160,
658
+ color: (theme.vars || theme).palette.text.secondary,
659
+ backgroundImage: 'none',
660
+ border: '1px solid',
661
+ backgroundColor: (theme.vars || theme).palette.background.paper,
662
+ borderColor: (theme.vars || theme).palette.grey[200],
663
+ '& .MuiMenuItem-root': {
664
+ fontSize: theme.typography.pxToRem(14),
665
+ fontWeight: 500,
666
+ '&:hover, &:focus': {
667
+ backgroundColor: (theme.vars || theme).palette.grey[50]
668
+ },
669
+ '&:focus-visible': {
670
+ outline: 'none'
671
+ },
672
+ '&.Mui-selected': {
673
+ fontWeight: 500,
674
+ color: (theme.vars || theme).palette.primary[600],
675
+ backgroundColor: alpha(theme.palette.primary[100], 0.6)
676
+ }
677
+ }
678
+ }, theme.applyDarkStyles({
679
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900],
680
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
681
+ '& .MuiMenuItem-root': {
682
+ '&:hover, &:focus': {
683
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
684
+ },
685
+ '&.Mui-selected': {
686
+ color: (theme.vars || theme).palette.primary[300],
687
+ backgroundColor: alpha(theme.palette.primary[900], 0.4)
688
+ }
689
+ }
690
+ })]
691
+ }
692
+ },
693
+ MuiPopover: {
694
+ styleOverrides: {
695
+ paper: ({
696
+ theme
697
+ }) => _extends({
698
+ boxShadow: '0px 4px 20px rgba(170, 180, 190, 0.3)'
699
+ }, theme.applyDarkStyles({
700
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.5)'
701
+ }))
702
+ }
703
+ },
704
+ MuiDivider: {
705
+ styleOverrides: {
706
+ root: ({
707
+ theme
708
+ }) => _extends({
709
+ borderColor: (theme.vars || theme).palette.grey[100]
710
+ }, theme.applyDarkStyles({
711
+ borderColor: alpha(theme.palette.primaryDark[700], 0.8)
712
+ }))
713
+ }
714
+ },
715
+ MuiLink: {
716
+ defaultProps: {
717
+ underline: 'none'
718
+ },
719
+ styleOverrides: {
720
+ root: ({
721
+ theme
722
+ }) => ({
723
+ display: 'inline-flex',
724
+ alignItems: 'center',
725
+ fontWeight: theme.typography.fontWeightSemiBold,
726
+ '&.MuiTypography-body1 > svg': {
727
+ marginTop: 2
728
+ },
729
+ '& svg:last-child': {
730
+ marginLeft: 2
731
+ },
732
+ '&:focus-visible': {
733
+ outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
734
+ outlineOffset: '2px'
735
+ }
736
+ })
737
+ },
738
+ variants: [{
739
+ props: {
740
+ color: 'primary'
741
+ },
742
+ style: ({
743
+ theme
744
+ }) => [{
745
+ color: (theme.vars || theme).palette.primary[600],
746
+ '&:hover': {
747
+ color: (theme.vars || theme).palette.primary[700]
748
+ }
749
+ }, theme.applyDarkStyles({
750
+ color: (theme.vars || theme).palette.primary[300],
751
+ '&:hover': {
752
+ color: (theme.vars || theme).palette.primary[200]
753
+ }
754
+ })]
755
+ }]
756
+ },
757
+ MuiChip: {
758
+ styleOverrides: {
759
+ root: ({
760
+ ownerState: {
761
+ color,
762
+ variant
763
+ },
764
+ theme
765
+ }) => _extends({
766
+ fontWeight: theme.typography.fontWeightSemiBold,
767
+ paddingBottom: 0.2
768
+ }, variant === 'outlined' && color === 'default' && _extends({
769
+ backgroundColor: alpha(theme.palette.grey[50], 0.5),
770
+ color: (theme.vars || theme).palette.grey[900],
771
+ borderColor: (theme.vars || theme).palette.grey[200],
772
+ '&:hover': {
773
+ backgroundColor: (theme.vars || theme).palette.grey[100],
774
+ color: (theme.vars || theme).palette.grey[900]
775
+ }
776
+ }, theme.applyDarkStyles({
777
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
778
+ color: (theme.vars || theme).palette.grey[300],
779
+ borderColor: alpha(theme.palette.primaryDark[500], 0.5),
780
+ '&:hover': {
781
+ color: (theme.vars || theme).palette.grey[300],
782
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
783
+ }
784
+ })), variant === 'outlined' && color === 'info' && _extends({
785
+ backgroundColor: alpha(theme.palette.grey[50], 0.5),
786
+ color: (theme.vars || theme).palette.grey[900],
787
+ borderColor: (theme.vars || theme).palette.grey[200]
788
+ }, theme.applyDarkStyles({
789
+ color: (theme.vars || theme).palette.grey[300],
790
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
791
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
792
+ })), variant === 'outlined' && color === 'primary' && _extends({
793
+ borderColor: (theme.vars || theme).palette.primary[100],
794
+ backgroundColor: (theme.vars || theme).palette.primary[50]
795
+ }, theme.applyDarkStyles({
796
+ color: (theme.vars || theme).palette.primary[300],
797
+ borderColor: alpha(theme.palette.primary[500], 0.2),
798
+ backgroundColor: alpha(theme.palette.primary[700], 0.2)
799
+ })), variant === 'outlined' && color === 'success' && _extends({
800
+ borderColor: (theme.vars || theme).palette.success[100],
801
+ backgroundColor: (theme.vars || theme).palette.success[50],
802
+ color: (theme.vars || theme).palette.success[900]
803
+ }, theme.applyDarkStyles({
804
+ color: (theme.vars || theme).palette.success[300],
805
+ borderColor: alpha(theme.palette.success[300], 0.2),
806
+ background: alpha(theme.palette.success[800], 0.2)
807
+ })), variant === 'filled' && _extends({}, color === 'default' && _extends({
808
+ border: '1px solid transparent',
809
+ color: (theme.vars || theme).palette.primary[700],
810
+ backgroundColor: alpha(theme.palette.primary[100], 0.5),
811
+ '&:hover': {
812
+ backgroundColor: (theme.vars || theme).palette.primary[100]
813
+ }
814
+ }, theme.applyDarkStyles({
815
+ color: '#fff',
816
+ backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
817
+ '&:hover': {
818
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600]
819
+ }
820
+ })), color === 'primary' && _extends({
821
+ color: (theme.vars || theme).palette.primary[600],
822
+ backgroundColor: alpha(theme.palette.primary[100], 0.4),
823
+ '&:hover': {
824
+ backgroundColor: (theme.vars || theme).palette.primary[100]
825
+ },
826
+ '& .MuiChip-deleteIcon': {
827
+ color: (theme.vars || theme).palette.primary[600],
828
+ '&:hover': {
829
+ color: (theme.vars || theme).palette.primary[700]
830
+ }
831
+ },
832
+ '&.Mui-focusVisible': {
833
+ backgroundColor: (theme.vars || theme).palette.primary[200]
834
+ }
835
+ }, theme.applyDarkStyles({
836
+ color: (theme.vars || theme).palette.primary[100],
837
+ backgroundColor: alpha(theme.palette.primary[800], 0.5),
838
+ '&:hover': {
839
+ backgroundColor: alpha(theme.palette.primary[900], 0.5)
840
+ },
841
+ '& .MuiChip-deleteIcon': {
842
+ color: (theme.vars || theme).palette.primary[100],
843
+ '&:hover': {
844
+ color: (theme.vars || theme).palette.primary[50]
845
+ }
846
+ }
847
+ }))), variant === 'light' && _extends({}, color === 'default' && _extends({
848
+ color: (theme.vars || theme).palette.primary[700],
849
+ backgroundColor: alpha(theme.palette.primary[100], 0.3)
850
+ }, theme.applyDarkStyles({
851
+ color: (theme.vars || theme).palette.primary[200],
852
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
853
+ })), color === 'warning' && _extends({
854
+ color: (theme.vars || theme).palette.warning[900],
855
+ backgroundColor: (theme.vars || theme).palette.warning[100]
856
+ }, theme.applyDarkStyles({
857
+ color: '#fff',
858
+ backgroundColor: (theme.vars || theme).palette.warning[900]
859
+ })), color === 'success' && _extends({
860
+ color: (theme.vars || theme).palette.success[900],
861
+ backgroundColor: (theme.vars || theme).palette.success[100]
862
+ }, theme.applyDarkStyles({
863
+ color: '#fff',
864
+ backgroundColor: (theme.vars || theme).palette.success[900]
865
+ }))))
866
+ }
867
+ },
868
+ MuiList: {
869
+ styleOverrides: {
870
+ root: {
871
+ padding: 0
872
+ }
873
+ }
874
+ },
875
+ MuiListItemButton: {
876
+ styleOverrides: {
877
+ root: ({
878
+ theme
879
+ }) => [{
880
+ padding: '8px',
881
+ textTransform: 'none',
882
+ fontWeight: 500,
883
+ fontSize: theme.typography.pxToRem(14),
884
+ color: theme.palette.grey[700],
885
+ borderRadius: 0,
886
+ '&:hover': {
887
+ backgroundColor: theme.palette.grey[50]
888
+ },
889
+ '&.Mui-selected': {
890
+ borderRadius: 10,
891
+ border: '1px solid',
892
+ color: (theme.vars || theme).palette.primary[500],
893
+ borderColor: `${(theme.vars || theme).palette.primary[500]} !important`,
894
+ backgroundColor: (theme.vars || theme).palette.primary[50],
895
+ '&:hover': {
896
+ backgroundColor: (theme.vars || theme).palette.primary[100]
897
+ }
898
+ }
899
+ }, theme.applyDarkStyles({
900
+ color: theme.palette.grey[300],
901
+ '&:hover': {
902
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.4)
903
+ },
904
+ '&.Mui-selected': {
905
+ color: '#fff',
906
+ borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
907
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
908
+ '&:hover': {
909
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600]
910
+ }
911
+ }
912
+ })]
913
+ }
914
+ },
915
+ MuiSelect: {
916
+ defaultProps: {
917
+ IconComponent: ArrowDropDownRounded
918
+ },
919
+ styleOverrides: {
920
+ iconFilled: {
921
+ top: 'calc(50% - .25em)'
922
+ }
923
+ }
924
+ },
925
+ MuiTab: {
926
+ defaultProps: {
927
+ disableTouchRipple: true
928
+ }
929
+ },
930
+ MuiPaper: {
931
+ styleOverrides: {
932
+ root: ({
933
+ theme,
934
+ ownerState
935
+ }) => [_extends({
936
+ backgroundImage: 'none',
937
+ backgroundColor: '#fff',
938
+ '&[href]': {
939
+ textDecorationLine: 'none'
940
+ },
941
+ transition: theme.transitions.create(['border', 'box-shadow'], {
942
+ duration: theme.transitions.duration.shortest
943
+ })
944
+ }, ownerState.variant === 'outlined' && {
945
+ display: 'block',
946
+ borderColor: (theme.vars || theme).palette.grey[100],
947
+ '&[href]': {
948
+ textDecorationLine: 'none',
949
+ 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`,
950
+ '&:hover': {
951
+ borderColor: (theme.vars || theme).palette.primary[200],
952
+ boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
953
+ },
954
+ '&:focus-visible': {
955
+ outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
956
+ outlineOffset: '2px'
957
+ }
958
+ },
959
+ ':is(a&), :is(button&)': {
960
+ '&:hover': {
961
+ borderColor: (theme.vars || theme).palette.primary[200],
962
+ boxShadow: `0px 4px 16px ${(theme.vars || theme).palette.grey[200]}`
963
+ }
964
+ }
965
+ }), theme.applyDarkStyles(_extends({
966
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900]
967
+ }, ownerState.variant === 'outlined' && {
968
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
969
+ backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
970
+ '&[href]': {
971
+ textDecorationLine: 'none',
972
+ 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`,
973
+ '&:hover': {
974
+ borderColor: alpha(theme.palette.primary[600], 0.5),
975
+ boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
976
+ }
977
+ },
978
+ ':is(a&), :is(button&)': {
979
+ '&:hover': {
980
+ boxShadow: `0px 4px 24px ${(theme.vars || theme).palette.common.black}`
981
+ }
982
+ }
983
+ }))]
984
+ }
985
+ },
986
+ MuiTableCell: {
987
+ styleOverrides: {
988
+ root: ({
989
+ theme,
990
+ ownerState
991
+ }) => _extends({
992
+ padding: theme.spacing(1, 2),
993
+ borderColor: (theme.vars || theme).palette.divider
994
+ }, ownerState.variant === 'head' && {
995
+ color: (theme.vars || theme).palette.text.primary,
996
+ fontWeight: 700
997
+ }, ownerState.variant === 'body' && {
998
+ color: (theme.vars || theme).palette.text.secondary
999
+ })
1000
+ }
1001
+ },
1002
+ MuiToggleButtonGroup: {
1003
+ styleOverrides: {
1004
+ root: ({
1005
+ theme
1006
+ }) => _extends({
1007
+ backgroundColor: '#fff'
1008
+ }, theme.applyDarkStyles({
1009
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1010
+ }))
1011
+ }
1012
+ },
1013
+ MuiToggleButton: {
1014
+ styleOverrides: {
1015
+ root: ({
1016
+ theme,
1017
+ ownerState
1018
+ }) => [_extends({
1019
+ textTransform: 'none',
1020
+ fontWeight: theme.typography.fontWeightMedium,
1021
+ color: theme.palette.text.secondary,
1022
+ borderColor: theme.palette.grey[200]
1023
+ }, ownerState.size === 'small' && {
1024
+ padding: '0.375rem 0.75rem'
1025
+ }, {
1026
+ '&.Mui-selected': {
1027
+ color: (theme.vars || theme).palette.primary[700],
1028
+ borderColor: `${(theme.vars || theme).palette.primary[500]} !important`,
1029
+ backgroundColor: (theme.vars || theme).palette.primary[50],
1030
+ '&:hover': {
1031
+ backgroundColor: (theme.vars || theme).palette.primary[100]
1032
+ }
1033
+ }
1034
+ }), theme.applyDarkStyles({
1035
+ borderColor: theme.palette.primaryDark[700],
1036
+ '&:hover': {
1037
+ backgroundColor: alpha(theme.palette.primaryDark[600], 0.2)
1038
+ },
1039
+ '&.Mui-selected': {
1040
+ color: (theme.vars || theme).palette.primary[200],
1041
+ borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1042
+ backgroundColor: alpha(theme.palette.primary[900], 0.4),
1043
+ '&:hover': {
1044
+ backgroundColor: alpha(theme.palette.primary[900], 0.8),
1045
+ borderColor: `${(theme.vars || theme).palette.primary[400]} !important`
1046
+ }
1047
+ }
1048
+ })]
1049
+ }
1050
+ },
1051
+ MuiTooltip: {
1052
+ styleOverrides: {
1053
+ tooltip: {
1054
+ borderRadius: 6,
1055
+ padding: '6px 12px'
1056
+ }
1057
+ }
1058
+ },
1059
+ MuiSwitch: {
1060
+ styleOverrides: {
1061
+ root: {
1062
+ width: 32,
1063
+ height: 20,
1064
+ padding: 0,
1065
+ '& .MuiSwitch-switchBase': {
1066
+ '&.Mui-checked': {
1067
+ transform: 'translateX(11px)',
1068
+ color: '#fff'
1069
+ }
1070
+ }
1071
+ },
1072
+ switchBase: {
1073
+ height: 20,
1074
+ width: 20,
1075
+ padding: 0,
1076
+ color: '#fff',
1077
+ '&.Mui-checked + .MuiSwitch-track': {
1078
+ opacity: 1
1079
+ }
1080
+ },
1081
+ track: ({
1082
+ theme
1083
+ }) => _extends({
1084
+ opacity: 1,
1085
+ borderRadius: 32,
1086
+ backgroundColor: theme.palette.grey[400]
1087
+ }, theme.applyDarkStyles({
1088
+ backgroundColor: theme.palette.grey[800]
1089
+ })),
1090
+ thumb: {
1091
+ flexShrink: 0,
1092
+ width: '14px',
1093
+ height: '14px'
1094
+ }
1095
+ }
1096
+ },
1097
+ MuiPaginationItem: {
1098
+ styleOverrides: {
1099
+ root: ({
1100
+ theme
1101
+ }) => [{
1102
+ textTransform: 'none',
1103
+ fontWeight: theme.typography.fontWeightSemiBold,
1104
+ color: theme.palette.grey[700],
1105
+ borderColor: theme.palette.grey[200],
1106
+ borderRadius: '8px',
1107
+ '&.Mui-selected': {
1108
+ color: (theme.vars || theme).palette.primary[500],
1109
+ borderColor: `${(theme.vars || theme).palette.primary[500]} !important`,
1110
+ backgroundColor: (theme.vars || theme).palette.primary[50],
1111
+ '&:hover': {
1112
+ backgroundColor: (theme.vars || theme).palette.primary[100]
1113
+ }
1114
+ }
1115
+ }, theme.applyDarkStyles({
1116
+ color: theme.palette.grey[200],
1117
+ borderColor: theme.palette.primaryDark[700],
1118
+ '&.Mui-selected': {
1119
+ color: theme.palette.primary[100],
1120
+ borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1121
+ backgroundColor: alpha(theme.palette.primary[900], 0.5),
1122
+ '&:hover': {
1123
+ backgroundColor: alpha(theme.palette.primary[900], 0.8)
1124
+ }
1125
+ }
1126
+ })]
1127
+ }
1128
+ },
1129
+ MuiCssBaseline: {
1130
+ defaultProps: {
1131
+ enableColorScheme: true
1132
+ },
1133
+ styleOverrides: {
1134
+ html: {
1135
+ overflowY: 'scroll'
1136
+ // TODO add support for it,
1137
+ // https://github.com/mui/material-ui/issues/40748
1138
+ // scrollbarGutter: 'stable',
1139
+ }
1140
+ }
1141
+ }
1142
+ }
1143
+ };
1144
+ }
1145
+ export const brandingDarkTheme = createTheme(_extends({}, getDesignTokens('dark'), getThemedComponents()));
1146
+ export const brandingLightTheme = createTheme(_extends({}, getDesignTokens('light'), getThemedComponents()));