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

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