@mui/docs 9.0.0-alpha.1 → 9.0.0-alpha.3
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.
- package/Ad/Ad.js +33 -42
- package/Ad/AdCarbon.js +18 -27
- package/Ad/AdDisplay.js +22 -29
- package/Ad/AdGuest.js +8 -15
- package/Ad/AdInHouse.js +4 -11
- package/Ad/AdManager.js +8 -17
- package/Ad/AdProvider.js +5 -13
- package/Ad/ad.styles.js +5 -13
- package/Ad/index.js +6 -62
- package/AnalyticsProvider/AnalyticsProvider.d.ts +17 -0
- package/AnalyticsProvider/AnalyticsProvider.js +225 -0
- package/AnalyticsProvider/index.d.ts +1 -0
- package/AnalyticsProvider/index.js +1 -0
- package/CHANGELOG.md +65 -0
- package/CodeCopy/CodeCopy.js +10 -19
- package/CodeCopy/CodeCopyButton.js +9 -16
- package/CodeCopy/index.js +3 -40
- package/CodeCopy/useClipboardCopy.js +4 -12
- package/ComponentLinkHeader/ComponentLinkHeader.js +46 -54
- package/ComponentLinkHeader/index.js +2 -24
- package/DemoContext/DemoContext.d.ts +86 -0
- package/DemoContext/DemoContext.js +13 -0
- package/DemoContext/index.d.ts +2 -0
- package/DemoContext/index.js +1 -0
- package/DocsProvider/DocsProvider.js +9 -17
- package/DocsProvider/index.js +1 -16
- package/Document/Document.d.ts +16 -0
- package/Document/Document.js +147 -0
- package/Document/getInitialProps.d.ts +18 -0
- package/Document/getInitialProps.js +62 -0
- package/Document/index.d.ts +2 -0
- package/Document/index.js +2 -0
- package/GoogleAnalytics/GoogleAnalytics.d.ts +9 -0
- package/GoogleAnalytics/GoogleAnalytics.js +129 -0
- package/GoogleAnalytics/index.d.ts +1 -0
- package/GoogleAnalytics/index.js +1 -0
- package/HighlightedCode/HighlightedCode.js +18 -26
- package/HighlightedCode/index.js +1 -16
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
- package/HighlightedCodeWithTabs/index.js +2 -24
- package/IconImage/IconImage.d.ts +11 -0
- package/IconImage/IconImage.js +83 -0
- package/IconImage/index.d.ts +1 -0
- package/IconImage/index.js +1 -0
- package/InfoCard/InfoCard.js +20 -29
- package/InfoCard/index.js +1 -16
- package/Link/Link.js +17 -25
- package/Link/MarkdownLinks.d.ts +2 -0
- package/Link/MarkdownLinks.js +84 -0
- package/Link/SkipLink.d.ts +1 -0
- package/Link/SkipLink.js +66 -0
- package/Link/index.d.ts +3 -1
- package/Link/index.js +3 -16
- package/MarkdownElement/MarkdownElement.js +178 -186
- package/MarkdownElement/index.js +1 -16
- package/MuiPage/MuiPage.d.ts +67 -0
- package/MuiPage/MuiPage.js +1 -0
- package/MuiPage/index.d.ts +1 -0
- package/MuiPage/index.js +1 -0
- package/NextNProgressBar/NextNProgressBar.d.ts +1 -0
- package/NextNProgressBar/NextNProgressBar.js +44 -0
- package/NextNProgressBar/index.d.ts +1 -0
- package/NextNProgressBar/index.js +1 -0
- package/PageContext/PageContext.d.ts +31 -0
- package/PageContext/PageContext.js +6 -0
- package/PageContext/index.d.ts +2 -0
- package/PageContext/index.js +1 -0
- package/SectionHeadline/SectionHeadline.d.ts +13 -0
- package/SectionHeadline/SectionHeadline.js +81 -0
- package/SectionHeadline/index.d.ts +2 -0
- package/SectionHeadline/index.js +2 -0
- package/SectionTitle/SectionTitle.js +7 -13
- package/SectionTitle/index.js +1 -16
- package/StyledEngineProvider/StyledEngineProvider.d.ts +9 -0
- package/StyledEngineProvider/StyledEngineProvider.js +44 -0
- package/StyledEngineProvider/index.d.ts +1 -0
- package/StyledEngineProvider/index.js +1 -0
- package/ThemeContext/ThemeContext.d.ts +92 -0
- package/ThemeContext/ThemeContext.js +200 -0
- package/ThemeContext/index.d.ts +1 -0
- package/ThemeContext/index.js +1 -0
- package/branding/BrandingCssVarsProvider.d.ts +23 -0
- package/branding/BrandingCssVarsProvider.js +170 -0
- package/branding/BrandingProvider.js +8 -15
- package/branding/brandingTheme.js +115 -126
- package/branding/index.d.ts +2 -1
- package/branding/index.js +3 -27
- package/codeStyling/codeStyling.d.ts +10 -0
- package/codeStyling/codeStyling.js +84 -0
- package/codeStyling/index.d.ts +1 -0
- package/codeStyling/index.js +1 -0
- package/codeVariant/codeVariant.d.ts +10 -0
- package/codeVariant/codeVariant.js +73 -0
- package/codeVariant/index.d.ts +1 -0
- package/codeVariant/index.js +1 -0
- package/constants/constants.d.ts +13 -0
- package/constants/constants.js +15 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +1 -0
- package/createEmotionCache/createEmotionCache.d.ts +1 -0
- package/createEmotionCache/createEmotionCache.js +12 -0
- package/createEmotionCache/index.d.ts +1 -0
- package/createEmotionCache/index.js +1 -0
- package/findActivePage/findActivePage.d.ts +5 -0
- package/findActivePage/findActivePage.js +35 -0
- package/findActivePage/index.d.ts +1 -0
- package/findActivePage/index.js +1 -0
- package/getProductInfoFromUrl/getProductInfoFromUrl.d.ts +8 -0
- package/getProductInfoFromUrl/getProductInfoFromUrl.js +50 -0
- package/getProductInfoFromUrl/index.d.ts +2 -0
- package/getProductInfoFromUrl/index.js +1 -0
- package/globalSelector/globalSelector.d.ts +2 -0
- package/globalSelector/globalSelector.js +17 -0
- package/globalSelector/index.d.ts +1 -0
- package/globalSelector/index.js +1 -0
- package/helpers/helpers.d.ts +31 -0
- package/helpers/helpers.js +87 -0
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +1 -0
- package/i18n/i18n.js +17 -29
- package/i18n/index.js +1 -16
- package/mapApiPageTranslations/index.d.ts +1 -0
- package/mapApiPageTranslations/index.js +1 -0
- package/mapApiPageTranslations/mapApiPageTranslations.d.ts +11 -0
- package/mapApiPageTranslations/mapApiPageTranslations.js +46 -0
- package/nextFonts/index.js +8 -15
- package/package.json +265 -102
- package/svgIcons/BundleSizeIcon.js +5 -11
- package/svgIcons/FigmaIcon.js +8 -14
- package/svgIcons/FileDownload.js +5 -12
- package/svgIcons/JavaScript.js +5 -12
- package/svgIcons/MarkdownIcon.js +7 -14
- package/svgIcons/MaterialDesignIcon.js +6 -12
- package/svgIcons/SketchIcon.js +10 -16
- package/svgIcons/TypeScript.js +5 -12
- package/svgIcons/W3CIcon.js +6 -12
- package/translations/index.js +3 -10
- package/translations/translations.json +0 -1
- package/useLazyCSS/index.d.ts +1 -0
- package/useLazyCSS/index.js +1 -0
- package/useLazyCSS/useLazyCSS.d.ts +11 -0
- package/useLazyCSS/useLazyCSS.js +70 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -0
- package/utils/loadScript.js +1 -7
- package/Ad/Ad.d.mts +0 -5
- package/Ad/Ad.mjs +0 -226
- package/Ad/AdCarbon.d.mts +0 -2
- package/Ad/AdCarbon.mjs +0 -125
- package/Ad/AdDisplay.d.mts +0 -16
- package/Ad/AdDisplay.mjs +0 -86
- package/Ad/AdGuest.d.mts +0 -10
- package/Ad/AdGuest.mjs +0 -29
- package/Ad/AdInHouse.d.mts +0 -4
- package/Ad/AdInHouse.mjs +0 -14
- package/Ad/AdManager.d.mts +0 -19
- package/Ad/AdManager.mjs +0 -36
- package/Ad/AdProvider.d.mts +0 -15
- package/Ad/AdProvider.mjs +0 -24
- package/Ad/ad.styles.d.mts +0 -4512
- package/Ad/ad.styles.mjs +0 -91
- package/Ad/index.d.mts +0 -5
- package/Ad/index.mjs +0 -7
- package/CodeCopy/CodeCopy.d.mts +0 -22
- package/CodeCopy/CodeCopy.mjs +0 -172
- package/CodeCopy/CodeCopyButton.d.mts +0 -4
- package/CodeCopy/CodeCopyButton.mjs +0 -40
- package/CodeCopy/index.d.mts +0 -3
- package/CodeCopy/index.mjs +0 -3
- package/CodeCopy/useClipboardCopy.d.mts +0 -4
- package/CodeCopy/useClipboardCopy.mjs +0 -21
- package/ComponentLinkHeader/ComponentLinkHeader.d.mts +0 -8
- package/ComponentLinkHeader/ComponentLinkHeader.mjs +0 -197
- package/ComponentLinkHeader/index.d.mts +0 -2
- package/ComponentLinkHeader/index.mjs +0 -2
- package/DocsProvider/DocsProvider.d.mts +0 -24
- package/DocsProvider/DocsProvider.mjs +0 -31
- package/DocsProvider/index.d.mts +0 -1
- package/DocsProvider/index.mjs +0 -1
- package/HighlightedCode/HighlightedCode.d.mts +0 -14
- package/HighlightedCode/HighlightedCode.mjs +0 -67
- package/HighlightedCode/index.d.mts +0 -1
- package/HighlightedCode/index.mjs +0 -1
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.mts +0 -28
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.mjs +0 -362
- package/HighlightedCodeWithTabs/index.d.mts +0 -2
- package/HighlightedCodeWithTabs/index.mjs +0 -2
- package/InfoCard/InfoCard.d.mts +0 -22
- package/InfoCard/InfoCard.mjs +0 -87
- package/InfoCard/index.d.mts +0 -1
- package/InfoCard/index.mjs +0 -1
- package/Link/Link.d.mts +0 -25
- package/Link/Link.mjs +0 -75
- package/Link/index.d.mts +0 -1
- package/Link/index.mjs +0 -1
- package/MarkdownElement/MarkdownElement.d.mts +0 -7
- package/MarkdownElement/MarkdownElement.mjs +0 -847
- package/MarkdownElement/index.d.mts +0 -1
- package/MarkdownElement/index.mjs +0 -1
- package/NProgressBar/NProgressBar.d.mts +0 -6
- package/NProgressBar/NProgressBar.js +0 -98
- package/NProgressBar/index.d.mts +0 -2
- package/NProgressBar/index.d.ts +0 -2
- package/NProgressBar/index.js +0 -13
- package/NProgressBar/index.mjs +0 -1
- package/SectionTitle/SectionTitle.d.mts +0 -6
- package/SectionTitle/SectionTitle.mjs +0 -29
- package/SectionTitle/index.d.mts +0 -1
- package/SectionTitle/index.mjs +0 -1
- package/branding/BrandingProvider.d.mts +0 -9
- package/branding/BrandingProvider.mjs +0 -17
- package/branding/brandingTheme.d.mts +0 -147
- package/branding/brandingTheme.mjs +0 -1527
- package/branding/index.d.mts +0 -2
- package/branding/index.mjs +0 -2
- package/i18n/i18n.d.mts +0 -27
- package/i18n/i18n.mjs +0 -111
- package/i18n/index.d.mts +0 -1
- package/i18n/index.mjs +0 -1
- package/nextFonts/index.d.mts +0 -6
- package/nextFonts/index.mjs +0 -59
- package/svgIcons/BundleSizeIcon.d.mts +0 -4
- package/svgIcons/BundleSizeIcon.mjs +0 -13
- package/svgIcons/FigmaIcon.d.mts +0 -4
- package/svgIcons/FigmaIcon.mjs +0 -22
- package/svgIcons/FileDownload.d.mts +0 -6
- package/svgIcons/FileDownload.mjs +0 -13
- package/svgIcons/JavaScript.d.mts +0 -6
- package/svgIcons/JavaScript.mjs +0 -13
- package/svgIcons/MarkdownIcon.d.mts +0 -2
- package/svgIcons/MarkdownIcon.mjs +0 -22
- package/svgIcons/MaterialDesignIcon.d.mts +0 -4
- package/svgIcons/MaterialDesignIcon.mjs +0 -18
- package/svgIcons/SketchIcon.d.mts +0 -4
- package/svgIcons/SketchIcon.mjs +0 -27
- package/svgIcons/TypeScript.d.mts +0 -6
- package/svgIcons/TypeScript.mjs +0 -13
- package/svgIcons/W3CIcon.d.mts +0 -4
- package/svgIcons/W3CIcon.mjs +0 -15
- package/translations/index.d.mts +0 -3
- package/translations/index.mjs +0 -4
- package/utils/loadScript.d.mts +0 -1
- package/utils/loadScript.mjs +0 -7
- /package/{NProgressBar → NextNProgressBar}/NProgressBar.d.ts +0 -0
- /package/{NProgressBar/NProgressBar.mjs → NextNProgressBar/NProgressBar.js} +0 -0
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
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 _ArrowDropDownRounded = _interopRequireDefault(require("@mui/icons-material/ArrowDropDownRounded"));
|
|
11
|
-
var _styles = require("@mui/material/styles");
|
|
1
|
+
import ArrowDropDownRounded from '@mui/icons-material/ArrowDropDownRounded';
|
|
2
|
+
import { createTheme, Theme, alpha } from '@mui/material/styles';
|
|
12
3
|
// TODO: enable this once types conflict is fixed
|
|
13
4
|
// declare module '@mui/material/Button' {
|
|
14
5
|
// interface ButtonPropsVariantOverrides {
|
|
@@ -16,8 +7,8 @@ var _styles = require("@mui/material/styles");
|
|
|
16
7
|
// }
|
|
17
8
|
// }
|
|
18
9
|
|
|
19
|
-
const defaultTheme =
|
|
20
|
-
const blue =
|
|
10
|
+
const defaultTheme = createTheme();
|
|
11
|
+
export const blue = {
|
|
21
12
|
50: 'hsl(210, 100%, 96%)',
|
|
22
13
|
100: 'hsl(210, 100%, 90%)',
|
|
23
14
|
200: 'hsl(210, 100%, 80%)',
|
|
@@ -30,7 +21,7 @@ const blue = exports.blue = {
|
|
|
30
21
|
800: 'hsl(210, 100%, 30%)',
|
|
31
22
|
900: 'hsl(210, 100%, 23%)'
|
|
32
23
|
};
|
|
33
|
-
const blueDark =
|
|
24
|
+
export const blueDark = {
|
|
34
25
|
50: 'hsl(210, 14%, 92%)',
|
|
35
26
|
100: 'hsl(210, 14%, 87%)',
|
|
36
27
|
200: 'hsl(210, 14%, 72%)',
|
|
@@ -43,7 +34,7 @@ const blueDark = exports.blueDark = {
|
|
|
43
34
|
800: 'hsl(210, 14%, 9%)',
|
|
44
35
|
900: 'hsl(210, 14%, 7%)'
|
|
45
36
|
};
|
|
46
|
-
const grey =
|
|
37
|
+
export const grey = {
|
|
47
38
|
50: 'hsl(215, 15%, 97%)',
|
|
48
39
|
100: 'hsl(215, 15%, 92%)',
|
|
49
40
|
200: 'hsl(215, 15%, 89%)',
|
|
@@ -55,7 +46,7 @@ const grey = exports.grey = {
|
|
|
55
46
|
800: 'hsl(215, 15%, 22%)',
|
|
56
47
|
900: 'hsl(215, 15%, 12%)'
|
|
57
48
|
};
|
|
58
|
-
const error =
|
|
49
|
+
export const error = {
|
|
59
50
|
50: 'hsl(355, 98%, 97%)',
|
|
60
51
|
100: 'hsl(355, 98%, 93%)',
|
|
61
52
|
200: 'hsl(355, 98%, 87%)',
|
|
@@ -68,7 +59,7 @@ const error = exports.error = {
|
|
|
68
59
|
800: 'hsl(355, 98%, 29%)',
|
|
69
60
|
900: 'hsl(355, 98%, 17%)'
|
|
70
61
|
};
|
|
71
|
-
const success =
|
|
62
|
+
export const success = {
|
|
72
63
|
50: 'hsl(144, 72%, 95%)',
|
|
73
64
|
100: 'hsl(144, 72%, 87%)',
|
|
74
65
|
200: 'hsl(144, 72%, 77%)',
|
|
@@ -80,7 +71,7 @@ const success = exports.success = {
|
|
|
80
71
|
800: 'hsl(144, 72%, 32%)',
|
|
81
72
|
900: 'hsl(144, 72%, 21%)'
|
|
82
73
|
};
|
|
83
|
-
const warning =
|
|
74
|
+
export const warning = {
|
|
84
75
|
50: 'hsl(48, 100%, 96%)',
|
|
85
76
|
100: 'hsl(48, 100%, 88%)',
|
|
86
77
|
200: 'hsl(48, 100%, 82%)',
|
|
@@ -94,15 +85,14 @@ const warning = exports.warning = {
|
|
|
94
85
|
900: 'hsl(36, 100%, 18%)'
|
|
95
86
|
};
|
|
96
87
|
const systemFont = ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'];
|
|
97
|
-
const getMetaThemeColor = mode => {
|
|
88
|
+
export const getMetaThemeColor = mode => {
|
|
98
89
|
const themeColor = {
|
|
99
90
|
light: blue[600],
|
|
100
91
|
dark: blueDark[900]
|
|
101
92
|
};
|
|
102
93
|
return themeColor[mode];
|
|
103
94
|
};
|
|
104
|
-
|
|
105
|
-
const getDesignTokens = mode => ({
|
|
95
|
+
export const getDesignTokens = mode => ({
|
|
106
96
|
palette: {
|
|
107
97
|
primary: {
|
|
108
98
|
...blue,
|
|
@@ -121,13 +111,13 @@ const getDesignTokens = mode => ({
|
|
|
121
111
|
contrastText: blueDark[600]
|
|
122
112
|
})
|
|
123
113
|
},
|
|
124
|
-
divider: mode === 'dark' ?
|
|
114
|
+
divider: mode === 'dark' ? alpha(blueDark[500], 0.3) : grey[100],
|
|
125
115
|
primaryDark: blueDark,
|
|
126
116
|
mode,
|
|
127
117
|
...(mode === 'dark' && {
|
|
128
118
|
background: {
|
|
129
119
|
default: blueDark[900],
|
|
130
|
-
paper:
|
|
120
|
+
paper: alpha(blueDark[800], 0.8)
|
|
131
121
|
}
|
|
132
122
|
}),
|
|
133
123
|
common: {
|
|
@@ -168,8 +158,8 @@ const getDesignTokens = mode => ({
|
|
|
168
158
|
},
|
|
169
159
|
warning,
|
|
170
160
|
gradients: {
|
|
171
|
-
radioSubtle: mode === 'dark' ? `radial-gradient(100% 100% at 100% 100%, transparent 0, ${
|
|
172
|
-
linearSubtle: mode === 'dark' ? `linear-gradient(0deg, ${
|
|
161
|
+
radioSubtle: mode === 'dark' ? `radial-gradient(100% 100% at 100% 100%, transparent 0, ${alpha(blue[900], 0.3)} 300%)` : `radial-gradient(100% 90% at 50% 0, transparent 0, ${alpha(blue[100], 0.3)} 300%)`,
|
|
162
|
+
linearSubtle: mode === 'dark' ? `linear-gradient(0deg, ${alpha(blue[900], 0.1)}, ${alpha(blueDark[900], 0.5)})` : `linear-gradient(0deg, ${alpha(blue[50], 0.4)}, ${alpha(grey[50], 0.1)})`
|
|
173
163
|
}
|
|
174
164
|
},
|
|
175
165
|
shape: {
|
|
@@ -322,8 +312,7 @@ const getDesignTokens = mode => ({
|
|
|
322
312
|
return this.applyStyles('dark', css);
|
|
323
313
|
}
|
|
324
314
|
});
|
|
325
|
-
|
|
326
|
-
function getThemedComponents() {
|
|
315
|
+
export function getThemedComponents() {
|
|
327
316
|
return {
|
|
328
317
|
components: {
|
|
329
318
|
MuiAlert: {
|
|
@@ -355,30 +344,30 @@ function getThemedComponents() {
|
|
|
355
344
|
}) => [
|
|
356
345
|
// same styles from the MarkdownElement callout
|
|
357
346
|
{
|
|
358
|
-
backgroundColor:
|
|
347
|
+
backgroundColor: alpha(theme.palette.warning[50], 0.5),
|
|
359
348
|
color: (theme.vars || theme).palette.grey[900],
|
|
360
349
|
border: '1px solid',
|
|
361
|
-
borderColor:
|
|
350
|
+
borderColor: alpha(theme.palette.warning[700], 0.15),
|
|
362
351
|
'& .MuiAlert-icon': {
|
|
363
352
|
color: (theme.vars || theme).palette.warning[600]
|
|
364
353
|
},
|
|
365
354
|
'& * a': {
|
|
366
355
|
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
367
356
|
color: `${(theme.vars || theme).palette.warning[900]} !important`,
|
|
368
|
-
textDecorationColor: `${
|
|
357
|
+
textDecorationColor: `${alpha(theme.palette.warning.main, 0.4)} !important`,
|
|
369
358
|
'&:hover': {
|
|
370
359
|
textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
|
|
371
360
|
}
|
|
372
361
|
}
|
|
373
362
|
}, theme.applyDarkStyles({
|
|
374
|
-
backgroundColor:
|
|
363
|
+
backgroundColor: alpha(theme.palette.warning[700], 0.12),
|
|
375
364
|
color: (theme.vars || theme).palette.warning[50],
|
|
376
365
|
'& .MuiAlert-icon': {
|
|
377
366
|
color: (theme.vars || theme).palette.warning[400]
|
|
378
367
|
},
|
|
379
368
|
'& * a': {
|
|
380
369
|
color: `${(theme.vars || theme).palette.warning[100]} !important`,
|
|
381
|
-
textDecorationColor: `${
|
|
370
|
+
textDecorationColor: `${alpha(theme.palette.warning[600], 0.4)} !important`,
|
|
382
371
|
'&:hover': {
|
|
383
372
|
textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
|
|
384
373
|
}
|
|
@@ -389,7 +378,7 @@ function getThemedComponents() {
|
|
|
389
378
|
}) => [
|
|
390
379
|
// same styles from the MarkdownElement callout
|
|
391
380
|
{
|
|
392
|
-
backgroundColor:
|
|
381
|
+
backgroundColor: alpha(theme.palette.success[50], 0.5),
|
|
393
382
|
color: (theme.vars || theme).palette.success[900],
|
|
394
383
|
border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
|
|
395
384
|
'& .MuiAlert-icon': {
|
|
@@ -398,21 +387,21 @@ function getThemedComponents() {
|
|
|
398
387
|
'& * a': {
|
|
399
388
|
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
400
389
|
color: `${(theme.vars || theme).palette.success[900]} !important`,
|
|
401
|
-
textDecorationColor: `${
|
|
390
|
+
textDecorationColor: `${alpha(theme.palette.success.main, 0.4)} !important`,
|
|
402
391
|
'&:hover': {
|
|
403
392
|
textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
|
|
404
393
|
}
|
|
405
394
|
}
|
|
406
395
|
}, theme.applyDarkStyles({
|
|
407
|
-
backgroundColor:
|
|
396
|
+
backgroundColor: alpha(theme.palette.success[700], 0.12),
|
|
408
397
|
color: (theme.vars || theme).palette.success[50],
|
|
409
|
-
borderColor:
|
|
398
|
+
borderColor: alpha(theme.palette.success[400], 0.1),
|
|
410
399
|
'& .MuiAlert-icon': {
|
|
411
400
|
color: (theme.vars || theme).palette.success[500]
|
|
412
401
|
},
|
|
413
402
|
'& * a': {
|
|
414
403
|
color: `${(theme.vars || theme).palette.success[100]} !important`,
|
|
415
|
-
textDecorationColor: `${
|
|
404
|
+
textDecorationColor: `${alpha(theme.palette.success[600], 0.4)} !important`,
|
|
416
405
|
'&:hover': {
|
|
417
406
|
textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
|
|
418
407
|
}
|
|
@@ -431,7 +420,7 @@ function getThemedComponents() {
|
|
|
431
420
|
}) => ({
|
|
432
421
|
transition: 'all 100ms ease-in',
|
|
433
422
|
'&:focus-visible': {
|
|
434
|
-
outline: `3px solid ${
|
|
423
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
435
424
|
outlineOffset: 2
|
|
436
425
|
}
|
|
437
426
|
})
|
|
@@ -501,9 +490,9 @@ function getThemedComponents() {
|
|
|
501
490
|
}),
|
|
502
491
|
...(ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
|
|
503
492
|
color: (theme.vars || theme).palette.text.primary,
|
|
504
|
-
backgroundColor:
|
|
493
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
505
494
|
borderColor: (theme.vars || theme).palette.primaryDark[100],
|
|
506
|
-
boxShadow: `#FFF 0 1px 0 1px inset, ${
|
|
495
|
+
boxShadow: `#FFF 0 1px 0 1px inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 1px inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
|
|
507
496
|
'&:hover': {
|
|
508
497
|
backgroundColor: (theme.vars || theme).palette.grey[50]
|
|
509
498
|
},
|
|
@@ -512,9 +501,9 @@ function getThemedComponents() {
|
|
|
512
501
|
},
|
|
513
502
|
...theme.applyDarkStyles({
|
|
514
503
|
color: (theme.vars || theme).palette.primaryDark[100],
|
|
515
|
-
borderColor:
|
|
516
|
-
backgroundColor:
|
|
517
|
-
boxShadow: `${
|
|
504
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
505
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
506
|
+
boxShadow: `${alpha(theme.palette.primaryDark[700], 0.3)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
|
|
518
507
|
'&:hover': {
|
|
519
508
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
|
|
520
509
|
borderColor: (theme.vars || theme).palette.primaryDark[600]
|
|
@@ -529,43 +518,43 @@ function getThemedComponents() {
|
|
|
529
518
|
}),
|
|
530
519
|
...(ownerState.variant === 'outlined' && ownerState.color === 'primary' && {
|
|
531
520
|
color: (theme.vars || theme).palette.primary[600],
|
|
532
|
-
backgroundColor:
|
|
521
|
+
backgroundColor: alpha(theme.palette.primary[50], 0.2),
|
|
533
522
|
borderColor: (theme.vars || theme).palette.primary[100],
|
|
534
|
-
boxShadow: `${
|
|
523
|
+
boxShadow: `${alpha(theme.palette.primary[100], 0.4)} 0 -1px 0 1px inset, ${alpha(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
|
|
535
524
|
'&:hover': {
|
|
536
525
|
backgroundColor: (theme.vars || theme).palette.primary[50],
|
|
537
526
|
borderColor: (theme.vars || theme).palette.primary[200]
|
|
538
527
|
},
|
|
539
528
|
'&:active': {
|
|
540
|
-
backgroundColor:
|
|
529
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.7)
|
|
541
530
|
},
|
|
542
531
|
...theme.applyDarkStyles({
|
|
543
532
|
color: (theme.vars || theme).palette.primary[200],
|
|
544
|
-
borderColor:
|
|
545
|
-
backgroundColor:
|
|
546
|
-
boxShadow: `${
|
|
533
|
+
borderColor: alpha(theme.palette.primary[900], 0.7),
|
|
534
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.2),
|
|
535
|
+
boxShadow: `${alpha(theme.palette.primary[900], 0.2)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
|
|
547
536
|
'&:hover': {
|
|
548
|
-
backgroundColor:
|
|
537
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5),
|
|
549
538
|
borderColor: (theme.vars || theme).palette.primary[900]
|
|
550
539
|
},
|
|
551
540
|
'&:active': {
|
|
552
|
-
backgroundColor:
|
|
541
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.3)
|
|
553
542
|
},
|
|
554
543
|
'&.Mui-disabled:not(.MuiButton-loading)': {
|
|
555
544
|
background: 'none',
|
|
556
|
-
backgroundColor:
|
|
545
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
557
546
|
color: theme.palette.grey[500]
|
|
558
547
|
}
|
|
559
548
|
})
|
|
560
549
|
}),
|
|
561
550
|
...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
|
|
562
551
|
color: '#fff',
|
|
563
|
-
textShadow: `0 1px 1px ${
|
|
552
|
+
textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
|
|
564
553
|
backgroundColor: (theme.vars || theme).palette.primary[500],
|
|
565
554
|
backgroundImage: 'transparent',
|
|
566
555
|
border: '1px solid ',
|
|
567
556
|
borderColor: (theme.vars || theme).palette.primary[600],
|
|
568
|
-
boxShadow: `${
|
|
557
|
+
boxShadow: `${alpha(theme.palette.primary[400], 0.5)} 0 1px 0 inset, ${alpha(theme.palette.primary[800], 0.4)} 0 -1px 0 1px inset, ${alpha(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
|
|
569
558
|
'&:hover': {
|
|
570
559
|
backgroundColor: (theme.vars || theme).palette.primary[700],
|
|
571
560
|
borderColor: (theme.vars || theme).palette.primary[800]
|
|
@@ -573,7 +562,7 @@ function getThemedComponents() {
|
|
|
573
562
|
'&:active': {
|
|
574
563
|
backgroundColor: (theme.vars || theme).palette.primary[800],
|
|
575
564
|
borderColor: (theme.vars || theme).palette.primary[600],
|
|
576
|
-
boxShadow: `${
|
|
565
|
+
boxShadow: `${alpha(theme.palette.primary[900], 0.7)} 0 1px 0 1px inset`
|
|
577
566
|
},
|
|
578
567
|
'&.Mui-disabled': {
|
|
579
568
|
color: theme.palette.grey[700],
|
|
@@ -590,12 +579,12 @@ function getThemedComponents() {
|
|
|
590
579
|
}),
|
|
591
580
|
...(ownerState.variant === 'contained' && ownerState.color === 'secondary' && {
|
|
592
581
|
color: '#fff',
|
|
593
|
-
textShadow: `0 1px 1px ${
|
|
582
|
+
textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
|
|
594
583
|
backgroundColor: (theme.vars || theme).palette.primaryDark[500],
|
|
595
584
|
backgroundImage: 'transparent',
|
|
596
585
|
border: '1px solid ',
|
|
597
586
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
598
|
-
boxShadow: `${
|
|
587
|
+
boxShadow: `${alpha(theme.palette.primaryDark[400], 0.5)} 0 1px 0 1px inset, ${alpha(theme.palette.primaryDark[800], 0.7)} 0 -1px 0 1px inset, ${alpha(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
|
|
599
588
|
'&:hover': {
|
|
600
589
|
backgroundColor: (theme.vars || theme).palette.primaryDark[600],
|
|
601
590
|
borderColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -603,7 +592,7 @@ function getThemedComponents() {
|
|
|
603
592
|
'&:active': {
|
|
604
593
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
|
|
605
594
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
606
|
-
boxShadow: `${
|
|
595
|
+
boxShadow: `${alpha(theme.palette.primaryDark[900], 0.7)} 0 1px 0 1px inset`
|
|
607
596
|
},
|
|
608
597
|
'&.Mui-disabled': {
|
|
609
598
|
color: theme.palette.grey[700],
|
|
@@ -628,7 +617,7 @@ function getThemedComponents() {
|
|
|
628
617
|
},
|
|
629
618
|
...theme.applyDarkStyles({
|
|
630
619
|
'&:hover': {
|
|
631
|
-
backgroundColor:
|
|
620
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
|
|
632
621
|
},
|
|
633
622
|
'&:active': {
|
|
634
623
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -641,18 +630,18 @@ function getThemedComponents() {
|
|
|
641
630
|
...(ownerState.variant === 'text' && ownerState.color === 'primary' && {
|
|
642
631
|
color: (theme.vars || theme).palette.primary[600],
|
|
643
632
|
'&:hover': {
|
|
644
|
-
backgroundColor:
|
|
633
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.3)
|
|
645
634
|
},
|
|
646
635
|
'&:active': {
|
|
647
|
-
backgroundColor:
|
|
636
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.5)
|
|
648
637
|
},
|
|
649
638
|
...theme.applyDarkStyles({
|
|
650
639
|
color: (theme.vars || theme).palette.primary[300],
|
|
651
640
|
'&:hover': {
|
|
652
|
-
backgroundColor:
|
|
641
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.3)
|
|
653
642
|
},
|
|
654
643
|
'&:active': {
|
|
655
|
-
backgroundColor:
|
|
644
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.1)
|
|
656
645
|
},
|
|
657
646
|
'&.Mui-disabled:not(.MuiButton-loading)': {
|
|
658
647
|
color: theme.palette.grey[500]
|
|
@@ -729,9 +718,9 @@ function getThemedComponents() {
|
|
|
729
718
|
position: 'relative',
|
|
730
719
|
border: '1px solid',
|
|
731
720
|
color: (theme.vars || theme).palette.grey[900],
|
|
732
|
-
backgroundColor:
|
|
721
|
+
backgroundColor: alpha(theme.palette.primary[50], 0.3),
|
|
733
722
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
734
|
-
boxShadow: `0px 2px 2px ${
|
|
723
|
+
boxShadow: `0px 2px 2px ${alpha(theme.palette.primary[100], 0.2)}, inset 0px 4px 4px ${alpha(theme.palette.primary[100], 0.2)}`,
|
|
735
724
|
fontFamily: theme.typography.fontFamilyCode,
|
|
736
725
|
fontWeight: 400,
|
|
737
726
|
fontSize: defaultTheme.typography.pxToRem(12),
|
|
@@ -788,7 +777,7 @@ function getThemedComponents() {
|
|
|
788
777
|
...theme.applyDarkStyles({
|
|
789
778
|
color: (theme.vars || theme).palette.primary[300],
|
|
790
779
|
'&:hover': {
|
|
791
|
-
backgroundColor:
|
|
780
|
+
backgroundColor: alpha(theme.palette.primary[800], 0.3)
|
|
792
781
|
}
|
|
793
782
|
})
|
|
794
783
|
})
|
|
@@ -807,7 +796,7 @@ function getThemedComponents() {
|
|
|
807
796
|
background: (theme.vars || theme).palette.grey[50],
|
|
808
797
|
...theme.applyDarkStyles({
|
|
809
798
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
810
|
-
background:
|
|
799
|
+
background: alpha(theme.palette.primaryDark[700], 0.8)
|
|
811
800
|
})
|
|
812
801
|
},
|
|
813
802
|
'&:active': {
|
|
@@ -833,25 +822,25 @@ function getThemedComponents() {
|
|
|
833
822
|
theme
|
|
834
823
|
}) => [{
|
|
835
824
|
color: (theme.vars || theme).palette.primary.main,
|
|
836
|
-
backgroundColor:
|
|
825
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
837
826
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
838
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
827
|
+
boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
|
|
839
828
|
'&:hover': {
|
|
840
829
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
841
830
|
background: (theme.vars || theme).palette.grey[50],
|
|
842
|
-
boxShadow: `${
|
|
831
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
843
832
|
},
|
|
844
833
|
'&:active': {
|
|
845
834
|
background: (theme.vars || theme).palette.grey[100]
|
|
846
835
|
}
|
|
847
836
|
}, theme.applyDarkStyles({
|
|
848
837
|
color: (theme.vars || theme).palette.primary[300],
|
|
849
|
-
borderColor:
|
|
850
|
-
backgroundColor:
|
|
851
|
-
boxShadow: `${
|
|
838
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
839
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
840
|
+
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
|
|
852
841
|
'&:hover': {
|
|
853
842
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
854
|
-
background:
|
|
843
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
855
844
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
856
845
|
},
|
|
857
846
|
'&:active': {
|
|
@@ -866,25 +855,25 @@ function getThemedComponents() {
|
|
|
866
855
|
theme
|
|
867
856
|
}) => [{
|
|
868
857
|
color: (theme.vars || theme).palette.text.secondary,
|
|
869
|
-
backgroundColor:
|
|
858
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
870
859
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
871
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
860
|
+
boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
|
|
872
861
|
'&:hover': {
|
|
873
862
|
color: (theme.vars || theme).palette.text.primary,
|
|
874
863
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
875
864
|
background: (theme.vars || theme).palette.grey[50],
|
|
876
|
-
boxShadow: `${
|
|
865
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
877
866
|
},
|
|
878
867
|
'&:active': {
|
|
879
868
|
background: (theme.vars || theme).palette.grey[100]
|
|
880
869
|
}
|
|
881
870
|
}, theme.applyDarkStyles({
|
|
882
|
-
borderColor:
|
|
883
|
-
backgroundColor:
|
|
884
|
-
boxShadow: `${
|
|
871
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
872
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
873
|
+
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
|
|
885
874
|
'&:hover': {
|
|
886
875
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
887
|
-
background:
|
|
876
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
888
877
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
889
878
|
},
|
|
890
879
|
'&:active': {
|
|
@@ -928,7 +917,7 @@ function getThemedComponents() {
|
|
|
928
917
|
'&.Mui-selected': {
|
|
929
918
|
fontWeight: 500,
|
|
930
919
|
color: (theme.vars || theme).palette.primary[600],
|
|
931
|
-
backgroundColor:
|
|
920
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.6)
|
|
932
921
|
}
|
|
933
922
|
}
|
|
934
923
|
}, theme.applyDarkStyles({
|
|
@@ -940,7 +929,7 @@ function getThemedComponents() {
|
|
|
940
929
|
},
|
|
941
930
|
'&.Mui-selected': {
|
|
942
931
|
color: (theme.vars || theme).palette.primary[200],
|
|
943
|
-
backgroundColor:
|
|
932
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.4)
|
|
944
933
|
}
|
|
945
934
|
}
|
|
946
935
|
})]
|
|
@@ -985,7 +974,7 @@ function getThemedComponents() {
|
|
|
985
974
|
marginLeft: 2
|
|
986
975
|
},
|
|
987
976
|
'&:focus-visible': {
|
|
988
|
-
outline: `3px solid ${
|
|
977
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
989
978
|
outlineOffset: 2
|
|
990
979
|
}
|
|
991
980
|
})
|
|
@@ -1021,7 +1010,7 @@ function getThemedComponents() {
|
|
|
1021
1010
|
fontWeight: theme.typography.fontWeightSemiBold,
|
|
1022
1011
|
paddingBottom: 0.2,
|
|
1023
1012
|
...(variant === 'outlined' && color === 'default' && {
|
|
1024
|
-
backgroundColor:
|
|
1013
|
+
backgroundColor: alpha(theme.palette.grey[50], 0.5),
|
|
1025
1014
|
color: (theme.vars || theme).palette.grey[900],
|
|
1026
1015
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
1027
1016
|
'&:hover': {
|
|
@@ -1029,9 +1018,9 @@ function getThemedComponents() {
|
|
|
1029
1018
|
color: (theme.vars || theme).palette.grey[900]
|
|
1030
1019
|
},
|
|
1031
1020
|
...theme.applyDarkStyles({
|
|
1032
|
-
backgroundColor:
|
|
1021
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
|
|
1033
1022
|
color: (theme.vars || theme).palette.grey[300],
|
|
1034
|
-
borderColor:
|
|
1023
|
+
borderColor: alpha(theme.palette.primaryDark[500], 0.5),
|
|
1035
1024
|
'&:hover': {
|
|
1036
1025
|
color: (theme.vars || theme).palette.grey[300],
|
|
1037
1026
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -1039,22 +1028,22 @@ function getThemedComponents() {
|
|
|
1039
1028
|
})
|
|
1040
1029
|
}),
|
|
1041
1030
|
...(variant === 'outlined' && color === 'info' && {
|
|
1042
|
-
backgroundColor:
|
|
1031
|
+
backgroundColor: alpha(theme.palette.grey[50], 0.5),
|
|
1043
1032
|
color: (theme.vars || theme).palette.grey[900],
|
|
1044
1033
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
1045
1034
|
...theme.applyDarkStyles({
|
|
1046
1035
|
color: (theme.vars || theme).palette.grey[300],
|
|
1047
|
-
backgroundColor:
|
|
1036
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
|
|
1048
1037
|
borderColor: (theme.vars || theme).palette.primaryDark[600]
|
|
1049
1038
|
})
|
|
1050
1039
|
}),
|
|
1051
1040
|
...(variant === 'outlined' && color === 'primary' && {
|
|
1052
1041
|
borderColor: (theme.vars || theme).palette.primary[100],
|
|
1053
|
-
backgroundColor:
|
|
1042
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.2),
|
|
1054
1043
|
...theme.applyDarkStyles({
|
|
1055
1044
|
color: (theme.vars || theme).palette.primary[300],
|
|
1056
|
-
borderColor:
|
|
1057
|
-
backgroundColor:
|
|
1045
|
+
borderColor: alpha(theme.palette.primary[500], 0.2),
|
|
1046
|
+
backgroundColor: alpha(theme.palette.primary[700], 0.2)
|
|
1058
1047
|
})
|
|
1059
1048
|
}),
|
|
1060
1049
|
...(variant === 'outlined' && color === 'success' && {
|
|
@@ -1063,21 +1052,21 @@ function getThemedComponents() {
|
|
|
1063
1052
|
color: (theme.vars || theme).palette.success[900],
|
|
1064
1053
|
...theme.applyDarkStyles({
|
|
1065
1054
|
color: (theme.vars || theme).palette.success[300],
|
|
1066
|
-
borderColor:
|
|
1067
|
-
background:
|
|
1055
|
+
borderColor: alpha(theme.palette.success[300], 0.2),
|
|
1056
|
+
background: alpha(theme.palette.success[800], 0.2)
|
|
1068
1057
|
})
|
|
1069
1058
|
}),
|
|
1070
1059
|
...(variant === 'filled' && {
|
|
1071
1060
|
...(color === 'default' && {
|
|
1072
1061
|
border: '1px solid transparent',
|
|
1073
1062
|
color: (theme.vars || theme).palette.primary[700],
|
|
1074
|
-
backgroundColor:
|
|
1063
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.5),
|
|
1075
1064
|
'&:hover': {
|
|
1076
1065
|
backgroundColor: (theme.vars || theme).palette.primary[100]
|
|
1077
1066
|
},
|
|
1078
1067
|
...theme.applyDarkStyles({
|
|
1079
1068
|
color: '#fff',
|
|
1080
|
-
backgroundColor:
|
|
1069
|
+
backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
|
|
1081
1070
|
'&:hover': {
|
|
1082
1071
|
backgroundColor: (theme.vars || theme).palette.primaryDark[600]
|
|
1083
1072
|
}
|
|
@@ -1085,7 +1074,7 @@ function getThemedComponents() {
|
|
|
1085
1074
|
}),
|
|
1086
1075
|
...(color === 'primary' && {
|
|
1087
1076
|
color: (theme.vars || theme).palette.primary[600],
|
|
1088
|
-
backgroundColor:
|
|
1077
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.4),
|
|
1089
1078
|
'&:hover': {
|
|
1090
1079
|
backgroundColor: (theme.vars || theme).palette.primary[100]
|
|
1091
1080
|
},
|
|
@@ -1100,9 +1089,9 @@ function getThemedComponents() {
|
|
|
1100
1089
|
},
|
|
1101
1090
|
...theme.applyDarkStyles({
|
|
1102
1091
|
color: (theme.vars || theme).palette.primary[100],
|
|
1103
|
-
backgroundColor:
|
|
1092
|
+
backgroundColor: alpha(theme.palette.primary[800], 0.5),
|
|
1104
1093
|
'&:hover': {
|
|
1105
|
-
backgroundColor:
|
|
1094
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5)
|
|
1106
1095
|
},
|
|
1107
1096
|
'& .MuiChip-deleteIcon': {
|
|
1108
1097
|
color: (theme.vars || theme).palette.primary[100],
|
|
@@ -1118,10 +1107,10 @@ function getThemedComponents() {
|
|
|
1118
1107
|
...(variant === 'light' && {
|
|
1119
1108
|
...(color === 'default' && {
|
|
1120
1109
|
color: (theme.vars || theme).palette.primary[700],
|
|
1121
|
-
backgroundColor:
|
|
1110
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.3),
|
|
1122
1111
|
...theme.applyDarkStyles({
|
|
1123
1112
|
color: (theme.vars || theme).palette.primary[200],
|
|
1124
|
-
backgroundColor:
|
|
1113
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
|
|
1125
1114
|
})
|
|
1126
1115
|
}),
|
|
1127
1116
|
...(color === 'warning' && {
|
|
@@ -1178,7 +1167,7 @@ function getThemedComponents() {
|
|
|
1178
1167
|
}, theme.applyDarkStyles({
|
|
1179
1168
|
color: theme.palette.grey[300],
|
|
1180
1169
|
'&:hover': {
|
|
1181
|
-
backgroundColor:
|
|
1170
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4)
|
|
1182
1171
|
},
|
|
1183
1172
|
'&.Mui-selected': {
|
|
1184
1173
|
color: '#fff',
|
|
@@ -1193,7 +1182,7 @@ function getThemedComponents() {
|
|
|
1193
1182
|
},
|
|
1194
1183
|
MuiSelect: {
|
|
1195
1184
|
defaultProps: {
|
|
1196
|
-
IconComponent:
|
|
1185
|
+
IconComponent: ArrowDropDownRounded
|
|
1197
1186
|
},
|
|
1198
1187
|
styleOverrides: {
|
|
1199
1188
|
iconFilled: {
|
|
@@ -1207,27 +1196,27 @@ function getThemedComponents() {
|
|
|
1207
1196
|
variant: 'outlined'
|
|
1208
1197
|
},
|
|
1209
1198
|
style: {
|
|
1210
|
-
backgroundColor:
|
|
1199
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
1211
1200
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1212
1201
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
1213
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
1202
|
+
boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
1214
1203
|
},
|
|
1215
1204
|
'&:not(.Mui-focused):hover': {
|
|
1216
1205
|
background: (theme.vars || theme).palette.grey[50],
|
|
1217
1206
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1218
1207
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
1219
|
-
boxShadow: `${
|
|
1208
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
1220
1209
|
}
|
|
1221
1210
|
},
|
|
1222
1211
|
...theme.applyDarkStyles({
|
|
1223
1212
|
color: (theme.vars || theme).palette.primary[300],
|
|
1224
|
-
backgroundColor:
|
|
1213
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
1225
1214
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1226
|
-
borderColor:
|
|
1227
|
-
boxShadow: `${
|
|
1215
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
1216
|
+
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
1228
1217
|
},
|
|
1229
1218
|
'&:not(.Mui-focused):hover': {
|
|
1230
|
-
background:
|
|
1219
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
1231
1220
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1232
1221
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
1233
1222
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
@@ -1273,13 +1262,13 @@ function getThemedComponents() {
|
|
|
1273
1262
|
borderColor: (theme.vars || theme).palette.grey[100],
|
|
1274
1263
|
'&[href]': {
|
|
1275
1264
|
textDecorationLine: 'none',
|
|
1276
|
-
boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${
|
|
1265
|
+
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`,
|
|
1277
1266
|
'&:hover': {
|
|
1278
1267
|
borderColor: (theme.vars || theme).palette.primary[200],
|
|
1279
1268
|
boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
|
|
1280
1269
|
},
|
|
1281
1270
|
'&:focus-visible': {
|
|
1282
|
-
outline: `3px solid ${
|
|
1271
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
1283
1272
|
outlineOffset: 2
|
|
1284
1273
|
}
|
|
1285
1274
|
},
|
|
@@ -1294,13 +1283,13 @@ function getThemedComponents() {
|
|
|
1294
1283
|
backgroundColor: (theme.vars || theme).palette.primaryDark[900],
|
|
1295
1284
|
...(ownerState.variant === 'outlined' && {
|
|
1296
1285
|
borderColor: (theme.vars || theme).palette.primaryDark[700],
|
|
1297
|
-
backgroundColor:
|
|
1286
|
+
backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
|
|
1298
1287
|
'&[href]': {
|
|
1299
1288
|
textDecorationLine: 'none',
|
|
1300
|
-
boxShadow: `${
|
|
1289
|
+
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`,
|
|
1301
1290
|
'&:hover': {
|
|
1302
|
-
borderColor:
|
|
1303
|
-
boxShadow: `0px 2px 8px ${
|
|
1291
|
+
borderColor: alpha(theme.palette.primary[600], 0.5),
|
|
1292
|
+
boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
|
|
1304
1293
|
}
|
|
1305
1294
|
},
|
|
1306
1295
|
':is(a&), :is(button&)': {
|
|
@@ -1366,14 +1355,14 @@ function getThemedComponents() {
|
|
|
1366
1355
|
}, theme.applyDarkStyles({
|
|
1367
1356
|
borderColor: theme.palette.primaryDark[700],
|
|
1368
1357
|
'&:hover': {
|
|
1369
|
-
backgroundColor:
|
|
1358
|
+
backgroundColor: alpha(theme.palette.primaryDark[600], 0.2)
|
|
1370
1359
|
},
|
|
1371
1360
|
'&.Mui-selected': {
|
|
1372
1361
|
color: (theme.vars || theme).palette.primary[200],
|
|
1373
1362
|
borderColor: `${(theme.vars || theme).palette.primary[800]} !important`,
|
|
1374
|
-
backgroundColor:
|
|
1363
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.4),
|
|
1375
1364
|
'&:hover': {
|
|
1376
|
-
backgroundColor:
|
|
1365
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.8),
|
|
1377
1366
|
borderColor: `${(theme.vars || theme).palette.primary[400]} !important`
|
|
1378
1367
|
}
|
|
1379
1368
|
}
|
|
@@ -1407,7 +1396,7 @@ function getThemedComponents() {
|
|
|
1407
1396
|
padding: 0,
|
|
1408
1397
|
borderRadius: 10,
|
|
1409
1398
|
'&:has(input:focus-visible)': {
|
|
1410
|
-
outline: `3px solid ${
|
|
1399
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
1411
1400
|
outlineOffset: 2
|
|
1412
1401
|
},
|
|
1413
1402
|
'& .MuiSwitch-switchBase': {
|
|
@@ -1453,7 +1442,7 @@ function getThemedComponents() {
|
|
|
1453
1442
|
color: (theme.vars || theme).palette.text.primary,
|
|
1454
1443
|
fontWeight: theme.typography.fontWeightMedium,
|
|
1455
1444
|
border: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
1456
|
-
boxShadow: `0 4px 16px ${
|
|
1445
|
+
boxShadow: `0 4px 16px ${alpha(theme.palette.grey[400], 0.2)}`,
|
|
1457
1446
|
...theme.applyDarkStyles({
|
|
1458
1447
|
backgroundColor: (theme.vars || theme).palette.primaryDark[800],
|
|
1459
1448
|
boxShadow: '0 4px 16px hsl(0, 100%, 1%)'
|
|
@@ -1486,9 +1475,9 @@ function getThemedComponents() {
|
|
|
1486
1475
|
'&.Mui-selected': {
|
|
1487
1476
|
color: theme.palette.primary[100],
|
|
1488
1477
|
borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
|
|
1489
|
-
backgroundColor:
|
|
1478
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5),
|
|
1490
1479
|
'&:hover': {
|
|
1491
|
-
backgroundColor:
|
|
1480
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.8)
|
|
1492
1481
|
}
|
|
1493
1482
|
}
|
|
1494
1483
|
})]
|
|
@@ -1516,7 +1505,7 @@ function getThemedComponents() {
|
|
|
1516
1505
|
...(ownerState.variant === 'elevation' && {
|
|
1517
1506
|
border: '1px solid',
|
|
1518
1507
|
borderColor: (theme.vars || theme).palette.grey[100],
|
|
1519
|
-
boxShadow: `${
|
|
1508
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[300], 0.5)} 0 1px 8px 0`,
|
|
1520
1509
|
...theme.applyDarkStyles({
|
|
1521
1510
|
borderColor: (theme.vars || theme).palette.primaryDark[700],
|
|
1522
1511
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 8px 0`
|
|
@@ -1528,11 +1517,11 @@ function getThemedComponents() {
|
|
|
1528
1517
|
}
|
|
1529
1518
|
};
|
|
1530
1519
|
}
|
|
1531
|
-
const brandingDarkTheme =
|
|
1520
|
+
export const brandingDarkTheme = createTheme({
|
|
1532
1521
|
...getDesignTokens('dark'),
|
|
1533
1522
|
...getThemedComponents()
|
|
1534
1523
|
});
|
|
1535
|
-
const brandingLightTheme =
|
|
1524
|
+
export const brandingLightTheme = createTheme({
|
|
1536
1525
|
...getDesignTokens('light'),
|
|
1537
1526
|
...getThemedComponents()
|
|
1538
1527
|
});
|