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