@mui/docs 9.0.0-alpha.2 → 9.0.0-alpha.4
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/CHANGELOG.md +191 -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/DocsApp/AnalyticsProvider.d.ts +17 -0
- package/DocsApp/AnalyticsProvider.js +225 -0
- package/DocsApp/DocsApp.d.ts +79 -0
- package/DocsApp/DocsApp.js +105 -0
- package/DocsApp/GoogleAnalytics.d.ts +9 -0
- package/DocsApp/GoogleAnalytics.js +129 -0
- package/DocsApp/StyledEngineProvider.d.ts +8 -0
- package/DocsApp/StyledEngineProvider.js +38 -0
- package/DocsApp/consoleBanner.d.ts +1 -0
- package/DocsApp/consoleBanner.js +19 -0
- package/DocsApp/createEmotionCache.d.ts +1 -0
- package/DocsApp/createEmotionCache.js +12 -0
- package/DocsApp/createGetInitialProps.d.ts +30 -0
- package/DocsApp/createGetInitialProps.js +29 -0
- package/DocsApp/index.d.ts +5 -0
- package/DocsApp/index.js +4 -0
- package/DocsApp/loadDependencies.d.ts +1 -0
- package/DocsApp/loadDependencies.js +11 -0
- package/DocsApp/reportWebVitals.d.ts +13 -0
- package/DocsApp/reportWebVitals.js +24 -0
- package/DocsApp/serviceWorker.d.ts +1 -0
- package/DocsApp/serviceWorker.js +61 -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/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.js +13 -21
- package/IconImage/index.js +1 -13
- 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 +32 -0
- package/PageContext/PageContext.js +6 -0
- package/PageContext/index.d.ts +2 -0
- package/PageContext/index.js +1 -0
- package/SectionHeadline/SectionHeadline.js +9 -17
- package/SectionHeadline/index.js +2 -25
- package/SectionTitle/SectionTitle.js +7 -13
- package/SectionTitle/index.js +1 -16
- package/ThemeContext/ThemeContext.js +26 -38
- package/ThemeContext/index.js +1 -42
- package/branding/BrandingCssVarsProvider.d.ts +27 -0
- package/branding/BrandingCssVarsProvider.js +170 -0
- package/branding/BrandingProvider.js +8 -15
- package/branding/brandingTheme.js +184 -188
- package/branding/index.d.ts +2 -1
- package/branding/index.js +3 -27
- package/codeStyling/codeStyling.d.ts +7 -0
- package/codeStyling/codeStyling.js +80 -0
- package/codeStyling/index.d.ts +1 -0
- package/codeStyling/index.js +1 -0
- package/codeVariant/codeVariant.d.ts +7 -0
- package/codeVariant/codeVariant.js +69 -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/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 +217 -132
- 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.js +1 -13
- package/useLazyCSS/useLazyCSS.js +5 -11
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -0
- package/utils/loadScript.js +1 -7
- package/webpack/index.d.ts +17 -0
- package/webpack/index.js +1 -0
- 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/IconImage/IconImage.d.mts +0 -11
- package/IconImage/IconImage.mjs +0 -83
- package/IconImage/index.d.mts +0 -1
- package/IconImage/index.mjs +0 -1
- 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/SectionHeadline/SectionHeadline.d.mts +0 -13
- package/SectionHeadline/SectionHeadline.mjs +0 -81
- package/SectionHeadline/index.d.mts +0 -2
- package/SectionHeadline/index.mjs +0 -2
- 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/ThemeContext/ThemeContext.d.mts +0 -92
- package/ThemeContext/ThemeContext.mjs +0 -200
- package/ThemeContext/index.d.mts +0 -1
- package/ThemeContext/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/useLazyCSS/index.d.mts +0 -1
- package/useLazyCSS/index.mjs +0 -1
- package/useLazyCSS/useLazyCSS.d.mts +0 -11
- package/useLazyCSS/useLazyCSS.mjs +0 -70
- 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,13 +312,14 @@ 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: {
|
|
330
319
|
styleOverrides: {
|
|
331
|
-
root: {
|
|
320
|
+
root: ({
|
|
321
|
+
theme
|
|
322
|
+
}) => ({
|
|
332
323
|
padding: '16px',
|
|
333
324
|
gap: '12px',
|
|
334
325
|
fontSize: '1rem',
|
|
@@ -344,80 +335,85 @@ function getThemedComponents() {
|
|
|
344
335
|
},
|
|
345
336
|
'& .MuiAlert-message': {
|
|
346
337
|
padding: 0
|
|
347
|
-
}
|
|
348
|
-
|
|
338
|
+
},
|
|
339
|
+
variants: [{
|
|
340
|
+
// same styles from the MarkdownElement callout
|
|
341
|
+
props: {
|
|
342
|
+
variant: 'standard',
|
|
343
|
+
color: 'warning'
|
|
344
|
+
},
|
|
345
|
+
style: [{
|
|
346
|
+
backgroundColor: alpha(theme.palette.warning[50], 0.5),
|
|
347
|
+
color: (theme.vars || theme).palette.grey[900],
|
|
348
|
+
border: '1px solid',
|
|
349
|
+
borderColor: alpha(theme.palette.warning[700], 0.15),
|
|
350
|
+
'& .MuiAlert-icon': {
|
|
351
|
+
color: (theme.vars || theme).palette.warning[600]
|
|
352
|
+
},
|
|
353
|
+
'& * a': {
|
|
354
|
+
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
355
|
+
color: `${(theme.vars || theme).palette.warning[900]} !important`,
|
|
356
|
+
textDecorationColor: `${alpha(theme.palette.warning.main, 0.4)} !important`,
|
|
357
|
+
'&:hover': {
|
|
358
|
+
textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}, theme.applyDarkStyles({
|
|
362
|
+
backgroundColor: alpha(theme.palette.warning[700], 0.12),
|
|
363
|
+
color: (theme.vars || theme).palette.warning[50],
|
|
364
|
+
'& .MuiAlert-icon': {
|
|
365
|
+
color: (theme.vars || theme).palette.warning[400]
|
|
366
|
+
},
|
|
367
|
+
'& * a': {
|
|
368
|
+
color: `${(theme.vars || theme).palette.warning[100]} !important`,
|
|
369
|
+
textDecorationColor: `${alpha(theme.palette.warning[600], 0.4)} !important`,
|
|
370
|
+
'&:hover': {
|
|
371
|
+
textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
})]
|
|
375
|
+
}, {
|
|
376
|
+
// same styles from the MarkdownElement callout
|
|
377
|
+
props: {
|
|
378
|
+
variant: 'standard',
|
|
379
|
+
color: 'success'
|
|
380
|
+
},
|
|
381
|
+
style: [{
|
|
382
|
+
backgroundColor: alpha(theme.palette.success[50], 0.5),
|
|
383
|
+
color: (theme.vars || theme).palette.success[900],
|
|
384
|
+
border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
|
|
385
|
+
'& .MuiAlert-icon': {
|
|
386
|
+
color: (theme.vars || theme).palette.success[600]
|
|
387
|
+
},
|
|
388
|
+
'& * a': {
|
|
389
|
+
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
390
|
+
color: `${(theme.vars || theme).palette.success[900]} !important`,
|
|
391
|
+
textDecorationColor: `${alpha(theme.palette.success.main, 0.4)} !important`,
|
|
392
|
+
'&:hover': {
|
|
393
|
+
textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}, theme.applyDarkStyles({
|
|
397
|
+
backgroundColor: alpha(theme.palette.success[700], 0.12),
|
|
398
|
+
color: (theme.vars || theme).palette.success[50],
|
|
399
|
+
borderColor: alpha(theme.palette.success[400], 0.1),
|
|
400
|
+
'& .MuiAlert-icon': {
|
|
401
|
+
color: (theme.vars || theme).palette.success[500]
|
|
402
|
+
},
|
|
403
|
+
'& * a': {
|
|
404
|
+
color: `${(theme.vars || theme).palette.success[100]} !important`,
|
|
405
|
+
textDecorationColor: `${alpha(theme.palette.success[600], 0.4)} !important`,
|
|
406
|
+
'&:hover': {
|
|
407
|
+
textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
})]
|
|
411
|
+
}]
|
|
412
|
+
}),
|
|
349
413
|
icon: {
|
|
350
414
|
paddingTop: 10,
|
|
351
415
|
paddingBottom: 0
|
|
352
|
-
}
|
|
353
|
-
standardWarning: ({
|
|
354
|
-
theme
|
|
355
|
-
}) => [
|
|
356
|
-
// same styles from the MarkdownElement callout
|
|
357
|
-
{
|
|
358
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.warning[50], 0.5),
|
|
359
|
-
color: (theme.vars || theme).palette.grey[900],
|
|
360
|
-
border: '1px solid',
|
|
361
|
-
borderColor: (0, _styles.alpha)(theme.palette.warning[700], 0.15),
|
|
362
|
-
'& .MuiAlert-icon': {
|
|
363
|
-
color: (theme.vars || theme).palette.warning[600]
|
|
364
|
-
},
|
|
365
|
-
'& * a': {
|
|
366
|
-
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
367
|
-
color: `${(theme.vars || theme).palette.warning[900]} !important`,
|
|
368
|
-
textDecorationColor: `${(0, _styles.alpha)(theme.palette.warning.main, 0.4)} !important`,
|
|
369
|
-
'&:hover': {
|
|
370
|
-
textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}, theme.applyDarkStyles({
|
|
374
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.warning[700], 0.12),
|
|
375
|
-
color: (theme.vars || theme).palette.warning[50],
|
|
376
|
-
'& .MuiAlert-icon': {
|
|
377
|
-
color: (theme.vars || theme).palette.warning[400]
|
|
378
|
-
},
|
|
379
|
-
'& * a': {
|
|
380
|
-
color: `${(theme.vars || theme).palette.warning[100]} !important`,
|
|
381
|
-
textDecorationColor: `${(0, _styles.alpha)(theme.palette.warning[600], 0.4)} !important`,
|
|
382
|
-
'&:hover': {
|
|
383
|
-
textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
})],
|
|
387
|
-
standardSuccess: ({
|
|
388
|
-
theme
|
|
389
|
-
}) => [
|
|
390
|
-
// same styles from the MarkdownElement callout
|
|
391
|
-
{
|
|
392
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.success[50], 0.5),
|
|
393
|
-
color: (theme.vars || theme).palette.success[900],
|
|
394
|
-
border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
|
|
395
|
-
'& .MuiAlert-icon': {
|
|
396
|
-
color: (theme.vars || theme).palette.success[600]
|
|
397
|
-
},
|
|
398
|
-
'& * a': {
|
|
399
|
-
// !important is used here to override the anchor tag color coming from MarkdownElement
|
|
400
|
-
color: `${(theme.vars || theme).palette.success[900]} !important`,
|
|
401
|
-
textDecorationColor: `${(0, _styles.alpha)(theme.palette.success.main, 0.4)} !important`,
|
|
402
|
-
'&:hover': {
|
|
403
|
-
textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}, theme.applyDarkStyles({
|
|
407
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.success[700], 0.12),
|
|
408
|
-
color: (theme.vars || theme).palette.success[50],
|
|
409
|
-
borderColor: (0, _styles.alpha)(theme.palette.success[400], 0.1),
|
|
410
|
-
'& .MuiAlert-icon': {
|
|
411
|
-
color: (theme.vars || theme).palette.success[500]
|
|
412
|
-
},
|
|
413
|
-
'& * a': {
|
|
414
|
-
color: `${(theme.vars || theme).palette.success[100]} !important`,
|
|
415
|
-
textDecorationColor: `${(0, _styles.alpha)(theme.palette.success[600], 0.4)} !important`,
|
|
416
|
-
'&:hover': {
|
|
417
|
-
textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
})]
|
|
416
|
+
}
|
|
421
417
|
}
|
|
422
418
|
},
|
|
423
419
|
MuiButtonBase: {
|
|
@@ -431,7 +427,7 @@ function getThemedComponents() {
|
|
|
431
427
|
}) => ({
|
|
432
428
|
transition: 'all 100ms ease-in',
|
|
433
429
|
'&:focus-visible': {
|
|
434
|
-
outline: `3px solid ${
|
|
430
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
435
431
|
outlineOffset: 2
|
|
436
432
|
}
|
|
437
433
|
})
|
|
@@ -501,9 +497,9 @@ function getThemedComponents() {
|
|
|
501
497
|
}),
|
|
502
498
|
...(ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
|
|
503
499
|
color: (theme.vars || theme).palette.text.primary,
|
|
504
|
-
backgroundColor:
|
|
500
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
505
501
|
borderColor: (theme.vars || theme).palette.primaryDark[100],
|
|
506
|
-
boxShadow: `#FFF 0 1px 0 1px inset, ${
|
|
502
|
+
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
503
|
'&:hover': {
|
|
508
504
|
backgroundColor: (theme.vars || theme).palette.grey[50]
|
|
509
505
|
},
|
|
@@ -512,9 +508,9 @@ function getThemedComponents() {
|
|
|
512
508
|
},
|
|
513
509
|
...theme.applyDarkStyles({
|
|
514
510
|
color: (theme.vars || theme).palette.primaryDark[100],
|
|
515
|
-
borderColor:
|
|
516
|
-
backgroundColor:
|
|
517
|
-
boxShadow: `${
|
|
511
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
512
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
513
|
+
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
514
|
'&:hover': {
|
|
519
515
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
|
|
520
516
|
borderColor: (theme.vars || theme).palette.primaryDark[600]
|
|
@@ -529,43 +525,43 @@ function getThemedComponents() {
|
|
|
529
525
|
}),
|
|
530
526
|
...(ownerState.variant === 'outlined' && ownerState.color === 'primary' && {
|
|
531
527
|
color: (theme.vars || theme).palette.primary[600],
|
|
532
|
-
backgroundColor:
|
|
528
|
+
backgroundColor: alpha(theme.palette.primary[50], 0.2),
|
|
533
529
|
borderColor: (theme.vars || theme).palette.primary[100],
|
|
534
|
-
boxShadow: `${
|
|
530
|
+
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
531
|
'&:hover': {
|
|
536
532
|
backgroundColor: (theme.vars || theme).palette.primary[50],
|
|
537
533
|
borderColor: (theme.vars || theme).palette.primary[200]
|
|
538
534
|
},
|
|
539
535
|
'&:active': {
|
|
540
|
-
backgroundColor:
|
|
536
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.7)
|
|
541
537
|
},
|
|
542
538
|
...theme.applyDarkStyles({
|
|
543
539
|
color: (theme.vars || theme).palette.primary[200],
|
|
544
|
-
borderColor:
|
|
545
|
-
backgroundColor:
|
|
546
|
-
boxShadow: `${
|
|
540
|
+
borderColor: alpha(theme.palette.primary[900], 0.7),
|
|
541
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.2),
|
|
542
|
+
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
543
|
'&:hover': {
|
|
548
|
-
backgroundColor:
|
|
544
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5),
|
|
549
545
|
borderColor: (theme.vars || theme).palette.primary[900]
|
|
550
546
|
},
|
|
551
547
|
'&:active': {
|
|
552
|
-
backgroundColor:
|
|
548
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.3)
|
|
553
549
|
},
|
|
554
550
|
'&.Mui-disabled:not(.MuiButton-loading)': {
|
|
555
551
|
background: 'none',
|
|
556
|
-
backgroundColor:
|
|
552
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
557
553
|
color: theme.palette.grey[500]
|
|
558
554
|
}
|
|
559
555
|
})
|
|
560
556
|
}),
|
|
561
557
|
...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
|
|
562
558
|
color: '#fff',
|
|
563
|
-
textShadow: `0 1px 1px ${
|
|
559
|
+
textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
|
|
564
560
|
backgroundColor: (theme.vars || theme).palette.primary[500],
|
|
565
561
|
backgroundImage: 'transparent',
|
|
566
562
|
border: '1px solid ',
|
|
567
563
|
borderColor: (theme.vars || theme).palette.primary[600],
|
|
568
|
-
boxShadow: `${
|
|
564
|
+
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
565
|
'&:hover': {
|
|
570
566
|
backgroundColor: (theme.vars || theme).palette.primary[700],
|
|
571
567
|
borderColor: (theme.vars || theme).palette.primary[800]
|
|
@@ -573,7 +569,7 @@ function getThemedComponents() {
|
|
|
573
569
|
'&:active': {
|
|
574
570
|
backgroundColor: (theme.vars || theme).palette.primary[800],
|
|
575
571
|
borderColor: (theme.vars || theme).palette.primary[600],
|
|
576
|
-
boxShadow: `${
|
|
572
|
+
boxShadow: `${alpha(theme.palette.primary[900], 0.7)} 0 1px 0 1px inset`
|
|
577
573
|
},
|
|
578
574
|
'&.Mui-disabled': {
|
|
579
575
|
color: theme.palette.grey[700],
|
|
@@ -590,12 +586,12 @@ function getThemedComponents() {
|
|
|
590
586
|
}),
|
|
591
587
|
...(ownerState.variant === 'contained' && ownerState.color === 'secondary' && {
|
|
592
588
|
color: '#fff',
|
|
593
|
-
textShadow: `0 1px 1px ${
|
|
589
|
+
textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
|
|
594
590
|
backgroundColor: (theme.vars || theme).palette.primaryDark[500],
|
|
595
591
|
backgroundImage: 'transparent',
|
|
596
592
|
border: '1px solid ',
|
|
597
593
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
598
|
-
boxShadow: `${
|
|
594
|
+
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
595
|
'&:hover': {
|
|
600
596
|
backgroundColor: (theme.vars || theme).palette.primaryDark[600],
|
|
601
597
|
borderColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -603,7 +599,7 @@ function getThemedComponents() {
|
|
|
603
599
|
'&:active': {
|
|
604
600
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
|
|
605
601
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
606
|
-
boxShadow: `${
|
|
602
|
+
boxShadow: `${alpha(theme.palette.primaryDark[900], 0.7)} 0 1px 0 1px inset`
|
|
607
603
|
},
|
|
608
604
|
'&.Mui-disabled': {
|
|
609
605
|
color: theme.palette.grey[700],
|
|
@@ -628,7 +624,7 @@ function getThemedComponents() {
|
|
|
628
624
|
},
|
|
629
625
|
...theme.applyDarkStyles({
|
|
630
626
|
'&:hover': {
|
|
631
|
-
backgroundColor:
|
|
627
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
|
|
632
628
|
},
|
|
633
629
|
'&:active': {
|
|
634
630
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -641,18 +637,18 @@ function getThemedComponents() {
|
|
|
641
637
|
...(ownerState.variant === 'text' && ownerState.color === 'primary' && {
|
|
642
638
|
color: (theme.vars || theme).palette.primary[600],
|
|
643
639
|
'&:hover': {
|
|
644
|
-
backgroundColor:
|
|
640
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.3)
|
|
645
641
|
},
|
|
646
642
|
'&:active': {
|
|
647
|
-
backgroundColor:
|
|
643
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.5)
|
|
648
644
|
},
|
|
649
645
|
...theme.applyDarkStyles({
|
|
650
646
|
color: (theme.vars || theme).palette.primary[300],
|
|
651
647
|
'&:hover': {
|
|
652
|
-
backgroundColor:
|
|
648
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.3)
|
|
653
649
|
},
|
|
654
650
|
'&:active': {
|
|
655
|
-
backgroundColor:
|
|
651
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.1)
|
|
656
652
|
},
|
|
657
653
|
'&.Mui-disabled:not(.MuiButton-loading)': {
|
|
658
654
|
color: theme.palette.grey[500]
|
|
@@ -729,9 +725,9 @@ function getThemedComponents() {
|
|
|
729
725
|
position: 'relative',
|
|
730
726
|
border: '1px solid',
|
|
731
727
|
color: (theme.vars || theme).palette.grey[900],
|
|
732
|
-
backgroundColor:
|
|
728
|
+
backgroundColor: alpha(theme.palette.primary[50], 0.3),
|
|
733
729
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
734
|
-
boxShadow: `0px 2px 2px ${
|
|
730
|
+
boxShadow: `0px 2px 2px ${alpha(theme.palette.primary[100], 0.2)}, inset 0px 4px 4px ${alpha(theme.palette.primary[100], 0.2)}`,
|
|
735
731
|
fontFamily: theme.typography.fontFamilyCode,
|
|
736
732
|
fontWeight: 400,
|
|
737
733
|
fontSize: defaultTheme.typography.pxToRem(12),
|
|
@@ -788,7 +784,7 @@ function getThemedComponents() {
|
|
|
788
784
|
...theme.applyDarkStyles({
|
|
789
785
|
color: (theme.vars || theme).palette.primary[300],
|
|
790
786
|
'&:hover': {
|
|
791
|
-
backgroundColor:
|
|
787
|
+
backgroundColor: alpha(theme.palette.primary[800], 0.3)
|
|
792
788
|
}
|
|
793
789
|
})
|
|
794
790
|
})
|
|
@@ -807,7 +803,7 @@ function getThemedComponents() {
|
|
|
807
803
|
background: (theme.vars || theme).palette.grey[50],
|
|
808
804
|
...theme.applyDarkStyles({
|
|
809
805
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
810
|
-
background:
|
|
806
|
+
background: alpha(theme.palette.primaryDark[700], 0.8)
|
|
811
807
|
})
|
|
812
808
|
},
|
|
813
809
|
'&:active': {
|
|
@@ -833,25 +829,25 @@ function getThemedComponents() {
|
|
|
833
829
|
theme
|
|
834
830
|
}) => [{
|
|
835
831
|
color: (theme.vars || theme).palette.primary.main,
|
|
836
|
-
backgroundColor:
|
|
832
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
837
833
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
838
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
834
|
+
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
835
|
'&:hover': {
|
|
840
836
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
841
837
|
background: (theme.vars || theme).palette.grey[50],
|
|
842
|
-
boxShadow: `${
|
|
838
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
843
839
|
},
|
|
844
840
|
'&:active': {
|
|
845
841
|
background: (theme.vars || theme).palette.grey[100]
|
|
846
842
|
}
|
|
847
843
|
}, theme.applyDarkStyles({
|
|
848
844
|
color: (theme.vars || theme).palette.primary[300],
|
|
849
|
-
borderColor:
|
|
850
|
-
backgroundColor:
|
|
851
|
-
boxShadow: `${
|
|
845
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
846
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
847
|
+
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
848
|
'&:hover': {
|
|
853
849
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
854
|
-
background:
|
|
850
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
855
851
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
856
852
|
},
|
|
857
853
|
'&:active': {
|
|
@@ -866,25 +862,25 @@ function getThemedComponents() {
|
|
|
866
862
|
theme
|
|
867
863
|
}) => [{
|
|
868
864
|
color: (theme.vars || theme).palette.text.secondary,
|
|
869
|
-
backgroundColor:
|
|
865
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
870
866
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
871
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
867
|
+
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
868
|
'&:hover': {
|
|
873
869
|
color: (theme.vars || theme).palette.text.primary,
|
|
874
870
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
875
871
|
background: (theme.vars || theme).palette.grey[50],
|
|
876
|
-
boxShadow: `${
|
|
872
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
877
873
|
},
|
|
878
874
|
'&:active': {
|
|
879
875
|
background: (theme.vars || theme).palette.grey[100]
|
|
880
876
|
}
|
|
881
877
|
}, theme.applyDarkStyles({
|
|
882
|
-
borderColor:
|
|
883
|
-
backgroundColor:
|
|
884
|
-
boxShadow: `${
|
|
878
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
879
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
880
|
+
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
881
|
'&:hover': {
|
|
886
882
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
887
|
-
background:
|
|
883
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
888
884
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
889
885
|
},
|
|
890
886
|
'&:active': {
|
|
@@ -928,7 +924,7 @@ function getThemedComponents() {
|
|
|
928
924
|
'&.Mui-selected': {
|
|
929
925
|
fontWeight: 500,
|
|
930
926
|
color: (theme.vars || theme).palette.primary[600],
|
|
931
|
-
backgroundColor:
|
|
927
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.6)
|
|
932
928
|
}
|
|
933
929
|
}
|
|
934
930
|
}, theme.applyDarkStyles({
|
|
@@ -940,7 +936,7 @@ function getThemedComponents() {
|
|
|
940
936
|
},
|
|
941
937
|
'&.Mui-selected': {
|
|
942
938
|
color: (theme.vars || theme).palette.primary[200],
|
|
943
|
-
backgroundColor:
|
|
939
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.4)
|
|
944
940
|
}
|
|
945
941
|
}
|
|
946
942
|
})]
|
|
@@ -985,7 +981,7 @@ function getThemedComponents() {
|
|
|
985
981
|
marginLeft: 2
|
|
986
982
|
},
|
|
987
983
|
'&:focus-visible': {
|
|
988
|
-
outline: `3px solid ${
|
|
984
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
989
985
|
outlineOffset: 2
|
|
990
986
|
}
|
|
991
987
|
})
|
|
@@ -1021,7 +1017,7 @@ function getThemedComponents() {
|
|
|
1021
1017
|
fontWeight: theme.typography.fontWeightSemiBold,
|
|
1022
1018
|
paddingBottom: 0.2,
|
|
1023
1019
|
...(variant === 'outlined' && color === 'default' && {
|
|
1024
|
-
backgroundColor:
|
|
1020
|
+
backgroundColor: alpha(theme.palette.grey[50], 0.5),
|
|
1025
1021
|
color: (theme.vars || theme).palette.grey[900],
|
|
1026
1022
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
1027
1023
|
'&:hover': {
|
|
@@ -1029,9 +1025,9 @@ function getThemedComponents() {
|
|
|
1029
1025
|
color: (theme.vars || theme).palette.grey[900]
|
|
1030
1026
|
},
|
|
1031
1027
|
...theme.applyDarkStyles({
|
|
1032
|
-
backgroundColor:
|
|
1028
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
|
|
1033
1029
|
color: (theme.vars || theme).palette.grey[300],
|
|
1034
|
-
borderColor:
|
|
1030
|
+
borderColor: alpha(theme.palette.primaryDark[500], 0.5),
|
|
1035
1031
|
'&:hover': {
|
|
1036
1032
|
color: (theme.vars || theme).palette.grey[300],
|
|
1037
1033
|
backgroundColor: (theme.vars || theme).palette.primaryDark[700]
|
|
@@ -1039,22 +1035,22 @@ function getThemedComponents() {
|
|
|
1039
1035
|
})
|
|
1040
1036
|
}),
|
|
1041
1037
|
...(variant === 'outlined' && color === 'info' && {
|
|
1042
|
-
backgroundColor:
|
|
1038
|
+
backgroundColor: alpha(theme.palette.grey[50], 0.5),
|
|
1043
1039
|
color: (theme.vars || theme).palette.grey[900],
|
|
1044
1040
|
borderColor: (theme.vars || theme).palette.grey[200],
|
|
1045
1041
|
...theme.applyDarkStyles({
|
|
1046
1042
|
color: (theme.vars || theme).palette.grey[300],
|
|
1047
|
-
backgroundColor:
|
|
1043
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
|
|
1048
1044
|
borderColor: (theme.vars || theme).palette.primaryDark[600]
|
|
1049
1045
|
})
|
|
1050
1046
|
}),
|
|
1051
1047
|
...(variant === 'outlined' && color === 'primary' && {
|
|
1052
1048
|
borderColor: (theme.vars || theme).palette.primary[100],
|
|
1053
|
-
backgroundColor:
|
|
1049
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.2),
|
|
1054
1050
|
...theme.applyDarkStyles({
|
|
1055
1051
|
color: (theme.vars || theme).palette.primary[300],
|
|
1056
|
-
borderColor:
|
|
1057
|
-
backgroundColor:
|
|
1052
|
+
borderColor: alpha(theme.palette.primary[500], 0.2),
|
|
1053
|
+
backgroundColor: alpha(theme.palette.primary[700], 0.2)
|
|
1058
1054
|
})
|
|
1059
1055
|
}),
|
|
1060
1056
|
...(variant === 'outlined' && color === 'success' && {
|
|
@@ -1063,21 +1059,21 @@ function getThemedComponents() {
|
|
|
1063
1059
|
color: (theme.vars || theme).palette.success[900],
|
|
1064
1060
|
...theme.applyDarkStyles({
|
|
1065
1061
|
color: (theme.vars || theme).palette.success[300],
|
|
1066
|
-
borderColor:
|
|
1067
|
-
background:
|
|
1062
|
+
borderColor: alpha(theme.palette.success[300], 0.2),
|
|
1063
|
+
background: alpha(theme.palette.success[800], 0.2)
|
|
1068
1064
|
})
|
|
1069
1065
|
}),
|
|
1070
1066
|
...(variant === 'filled' && {
|
|
1071
1067
|
...(color === 'default' && {
|
|
1072
1068
|
border: '1px solid transparent',
|
|
1073
1069
|
color: (theme.vars || theme).palette.primary[700],
|
|
1074
|
-
backgroundColor:
|
|
1070
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.5),
|
|
1075
1071
|
'&:hover': {
|
|
1076
1072
|
backgroundColor: (theme.vars || theme).palette.primary[100]
|
|
1077
1073
|
},
|
|
1078
1074
|
...theme.applyDarkStyles({
|
|
1079
1075
|
color: '#fff',
|
|
1080
|
-
backgroundColor:
|
|
1076
|
+
backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
|
|
1081
1077
|
'&:hover': {
|
|
1082
1078
|
backgroundColor: (theme.vars || theme).palette.primaryDark[600]
|
|
1083
1079
|
}
|
|
@@ -1085,7 +1081,7 @@ function getThemedComponents() {
|
|
|
1085
1081
|
}),
|
|
1086
1082
|
...(color === 'primary' && {
|
|
1087
1083
|
color: (theme.vars || theme).palette.primary[600],
|
|
1088
|
-
backgroundColor:
|
|
1084
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.4),
|
|
1089
1085
|
'&:hover': {
|
|
1090
1086
|
backgroundColor: (theme.vars || theme).palette.primary[100]
|
|
1091
1087
|
},
|
|
@@ -1100,9 +1096,9 @@ function getThemedComponents() {
|
|
|
1100
1096
|
},
|
|
1101
1097
|
...theme.applyDarkStyles({
|
|
1102
1098
|
color: (theme.vars || theme).palette.primary[100],
|
|
1103
|
-
backgroundColor:
|
|
1099
|
+
backgroundColor: alpha(theme.palette.primary[800], 0.5),
|
|
1104
1100
|
'&:hover': {
|
|
1105
|
-
backgroundColor:
|
|
1101
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5)
|
|
1106
1102
|
},
|
|
1107
1103
|
'& .MuiChip-deleteIcon': {
|
|
1108
1104
|
color: (theme.vars || theme).palette.primary[100],
|
|
@@ -1118,10 +1114,10 @@ function getThemedComponents() {
|
|
|
1118
1114
|
...(variant === 'light' && {
|
|
1119
1115
|
...(color === 'default' && {
|
|
1120
1116
|
color: (theme.vars || theme).palette.primary[700],
|
|
1121
|
-
backgroundColor:
|
|
1117
|
+
backgroundColor: alpha(theme.palette.primary[100], 0.3),
|
|
1122
1118
|
...theme.applyDarkStyles({
|
|
1123
1119
|
color: (theme.vars || theme).palette.primary[200],
|
|
1124
|
-
backgroundColor:
|
|
1120
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5)
|
|
1125
1121
|
})
|
|
1126
1122
|
}),
|
|
1127
1123
|
...(color === 'warning' && {
|
|
@@ -1178,7 +1174,7 @@ function getThemedComponents() {
|
|
|
1178
1174
|
}, theme.applyDarkStyles({
|
|
1179
1175
|
color: theme.palette.grey[300],
|
|
1180
1176
|
'&:hover': {
|
|
1181
|
-
backgroundColor:
|
|
1177
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4)
|
|
1182
1178
|
},
|
|
1183
1179
|
'&.Mui-selected': {
|
|
1184
1180
|
color: '#fff',
|
|
@@ -1193,7 +1189,7 @@ function getThemedComponents() {
|
|
|
1193
1189
|
},
|
|
1194
1190
|
MuiSelect: {
|
|
1195
1191
|
defaultProps: {
|
|
1196
|
-
IconComponent:
|
|
1192
|
+
IconComponent: ArrowDropDownRounded
|
|
1197
1193
|
},
|
|
1198
1194
|
styleOverrides: {
|
|
1199
1195
|
iconFilled: {
|
|
@@ -1207,27 +1203,27 @@ function getThemedComponents() {
|
|
|
1207
1203
|
variant: 'outlined'
|
|
1208
1204
|
},
|
|
1209
1205
|
style: {
|
|
1210
|
-
backgroundColor:
|
|
1206
|
+
backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
|
|
1211
1207
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1212
1208
|
border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
|
|
1213
|
-
boxShadow: `#FFF 0 1px 0 inset, ${
|
|
1209
|
+
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
1210
|
},
|
|
1215
1211
|
'&:not(.Mui-focused):hover': {
|
|
1216
1212
|
background: (theme.vars || theme).palette.grey[50],
|
|
1217
1213
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1218
1214
|
borderColor: (theme.vars || theme).palette.grey[300],
|
|
1219
|
-
boxShadow: `${
|
|
1215
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
|
|
1220
1216
|
}
|
|
1221
1217
|
},
|
|
1222
1218
|
...theme.applyDarkStyles({
|
|
1223
1219
|
color: (theme.vars || theme).palette.primary[300],
|
|
1224
|
-
backgroundColor:
|
|
1220
|
+
backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
|
|
1225
1221
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1226
|
-
borderColor:
|
|
1227
|
-
boxShadow: `${
|
|
1222
|
+
borderColor: alpha(theme.palette.primaryDark[600], 0.5),
|
|
1223
|
+
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
1224
|
},
|
|
1229
1225
|
'&:not(.Mui-focused):hover': {
|
|
1230
|
-
background:
|
|
1226
|
+
background: alpha(theme.palette.primaryDark[700], 0.8),
|
|
1231
1227
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
1232
1228
|
borderColor: (theme.vars || theme).palette.primaryDark[600],
|
|
1233
1229
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
|
|
@@ -1273,13 +1269,13 @@ function getThemedComponents() {
|
|
|
1273
1269
|
borderColor: (theme.vars || theme).palette.grey[100],
|
|
1274
1270
|
'&[href]': {
|
|
1275
1271
|
textDecorationLine: 'none',
|
|
1276
|
-
boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${
|
|
1272
|
+
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
1273
|
'&:hover': {
|
|
1278
1274
|
borderColor: (theme.vars || theme).palette.primary[200],
|
|
1279
1275
|
boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
|
|
1280
1276
|
},
|
|
1281
1277
|
'&:focus-visible': {
|
|
1282
|
-
outline: `3px solid ${
|
|
1278
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
1283
1279
|
outlineOffset: 2
|
|
1284
1280
|
}
|
|
1285
1281
|
},
|
|
@@ -1294,13 +1290,13 @@ function getThemedComponents() {
|
|
|
1294
1290
|
backgroundColor: (theme.vars || theme).palette.primaryDark[900],
|
|
1295
1291
|
...(ownerState.variant === 'outlined' && {
|
|
1296
1292
|
borderColor: (theme.vars || theme).palette.primaryDark[700],
|
|
1297
|
-
backgroundColor:
|
|
1293
|
+
backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
|
|
1298
1294
|
'&[href]': {
|
|
1299
1295
|
textDecorationLine: 'none',
|
|
1300
|
-
boxShadow: `${
|
|
1296
|
+
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
1297
|
'&:hover': {
|
|
1302
|
-
borderColor:
|
|
1303
|
-
boxShadow: `0px 2px 8px ${
|
|
1298
|
+
borderColor: alpha(theme.palette.primary[600], 0.5),
|
|
1299
|
+
boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
|
|
1304
1300
|
}
|
|
1305
1301
|
},
|
|
1306
1302
|
':is(a&), :is(button&)': {
|
|
@@ -1366,14 +1362,14 @@ function getThemedComponents() {
|
|
|
1366
1362
|
}, theme.applyDarkStyles({
|
|
1367
1363
|
borderColor: theme.palette.primaryDark[700],
|
|
1368
1364
|
'&:hover': {
|
|
1369
|
-
backgroundColor:
|
|
1365
|
+
backgroundColor: alpha(theme.palette.primaryDark[600], 0.2)
|
|
1370
1366
|
},
|
|
1371
1367
|
'&.Mui-selected': {
|
|
1372
1368
|
color: (theme.vars || theme).palette.primary[200],
|
|
1373
1369
|
borderColor: `${(theme.vars || theme).palette.primary[800]} !important`,
|
|
1374
|
-
backgroundColor:
|
|
1370
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.4),
|
|
1375
1371
|
'&:hover': {
|
|
1376
|
-
backgroundColor:
|
|
1372
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.8),
|
|
1377
1373
|
borderColor: `${(theme.vars || theme).palette.primary[400]} !important`
|
|
1378
1374
|
}
|
|
1379
1375
|
}
|
|
@@ -1407,7 +1403,7 @@ function getThemedComponents() {
|
|
|
1407
1403
|
padding: 0,
|
|
1408
1404
|
borderRadius: 10,
|
|
1409
1405
|
'&:has(input:focus-visible)': {
|
|
1410
|
-
outline: `3px solid ${
|
|
1406
|
+
outline: `3px solid ${alpha(theme.palette.primary[500], 0.5)}`,
|
|
1411
1407
|
outlineOffset: 2
|
|
1412
1408
|
},
|
|
1413
1409
|
'& .MuiSwitch-switchBase': {
|
|
@@ -1453,7 +1449,7 @@ function getThemedComponents() {
|
|
|
1453
1449
|
color: (theme.vars || theme).palette.text.primary,
|
|
1454
1450
|
fontWeight: theme.typography.fontWeightMedium,
|
|
1455
1451
|
border: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
1456
|
-
boxShadow: `0 4px 16px ${
|
|
1452
|
+
boxShadow: `0 4px 16px ${alpha(theme.palette.grey[400], 0.2)}`,
|
|
1457
1453
|
...theme.applyDarkStyles({
|
|
1458
1454
|
backgroundColor: (theme.vars || theme).palette.primaryDark[800],
|
|
1459
1455
|
boxShadow: '0 4px 16px hsl(0, 100%, 1%)'
|
|
@@ -1486,9 +1482,9 @@ function getThemedComponents() {
|
|
|
1486
1482
|
'&.Mui-selected': {
|
|
1487
1483
|
color: theme.palette.primary[100],
|
|
1488
1484
|
borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
|
|
1489
|
-
backgroundColor:
|
|
1485
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.5),
|
|
1490
1486
|
'&:hover': {
|
|
1491
|
-
backgroundColor:
|
|
1487
|
+
backgroundColor: alpha(theme.palette.primary[900], 0.8)
|
|
1492
1488
|
}
|
|
1493
1489
|
}
|
|
1494
1490
|
})]
|
|
@@ -1516,7 +1512,7 @@ function getThemedComponents() {
|
|
|
1516
1512
|
...(ownerState.variant === 'elevation' && {
|
|
1517
1513
|
border: '1px solid',
|
|
1518
1514
|
borderColor: (theme.vars || theme).palette.grey[100],
|
|
1519
|
-
boxShadow: `${
|
|
1515
|
+
boxShadow: `${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[300], 0.5)} 0 1px 8px 0`,
|
|
1520
1516
|
...theme.applyDarkStyles({
|
|
1521
1517
|
borderColor: (theme.vars || theme).palette.primaryDark[700],
|
|
1522
1518
|
boxShadow: `${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 8px 0`
|
|
@@ -1528,11 +1524,11 @@ function getThemedComponents() {
|
|
|
1528
1524
|
}
|
|
1529
1525
|
};
|
|
1530
1526
|
}
|
|
1531
|
-
const brandingDarkTheme =
|
|
1527
|
+
export const brandingDarkTheme = createTheme({
|
|
1532
1528
|
...getDesignTokens('dark'),
|
|
1533
1529
|
...getThemedComponents()
|
|
1534
1530
|
});
|
|
1535
|
-
const brandingLightTheme =
|
|
1531
|
+
export const brandingLightTheme = createTheme({
|
|
1536
1532
|
...getDesignTokens('light'),
|
|
1537
1533
|
...getThemedComponents()
|
|
1538
1534
|
});
|