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