@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.
Files changed (261) hide show
  1. package/Ad/Ad.js +33 -42
  2. package/Ad/AdCarbon.js +18 -27
  3. package/Ad/AdDisplay.js +22 -29
  4. package/Ad/AdGuest.js +8 -15
  5. package/Ad/AdInHouse.js +4 -11
  6. package/Ad/AdManager.js +8 -17
  7. package/Ad/AdProvider.js +5 -13
  8. package/Ad/ad.styles.js +5 -13
  9. package/Ad/index.js +6 -62
  10. package/CHANGELOG.md +191 -0
  11. package/CodeCopy/CodeCopy.js +10 -19
  12. package/CodeCopy/CodeCopyButton.js +9 -16
  13. package/CodeCopy/index.js +3 -40
  14. package/CodeCopy/useClipboardCopy.js +4 -12
  15. package/ComponentLinkHeader/ComponentLinkHeader.js +46 -54
  16. package/ComponentLinkHeader/index.js +2 -24
  17. package/DemoContext/DemoContext.d.ts +86 -0
  18. package/DemoContext/DemoContext.js +13 -0
  19. package/DemoContext/index.d.ts +2 -0
  20. package/DemoContext/index.js +1 -0
  21. package/DocsApp/AnalyticsProvider.d.ts +17 -0
  22. package/DocsApp/AnalyticsProvider.js +225 -0
  23. package/DocsApp/DocsApp.d.ts +79 -0
  24. package/DocsApp/DocsApp.js +105 -0
  25. package/DocsApp/GoogleAnalytics.d.ts +9 -0
  26. package/DocsApp/GoogleAnalytics.js +129 -0
  27. package/DocsApp/StyledEngineProvider.d.ts +8 -0
  28. package/DocsApp/StyledEngineProvider.js +38 -0
  29. package/DocsApp/consoleBanner.d.ts +1 -0
  30. package/DocsApp/consoleBanner.js +19 -0
  31. package/DocsApp/createEmotionCache.d.ts +1 -0
  32. package/DocsApp/createEmotionCache.js +12 -0
  33. package/DocsApp/createGetInitialProps.d.ts +30 -0
  34. package/DocsApp/createGetInitialProps.js +29 -0
  35. package/DocsApp/index.d.ts +5 -0
  36. package/DocsApp/index.js +4 -0
  37. package/DocsApp/loadDependencies.d.ts +1 -0
  38. package/DocsApp/loadDependencies.js +11 -0
  39. package/DocsApp/reportWebVitals.d.ts +13 -0
  40. package/DocsApp/reportWebVitals.js +24 -0
  41. package/DocsApp/serviceWorker.d.ts +1 -0
  42. package/DocsApp/serviceWorker.js +61 -0
  43. package/DocsProvider/DocsProvider.js +9 -17
  44. package/DocsProvider/index.js +1 -16
  45. package/Document/Document.d.ts +16 -0
  46. package/Document/Document.js +147 -0
  47. package/Document/getInitialProps.d.ts +18 -0
  48. package/Document/getInitialProps.js +62 -0
  49. package/Document/index.d.ts +2 -0
  50. package/Document/index.js +2 -0
  51. package/HighlightedCode/HighlightedCode.js +18 -26
  52. package/HighlightedCode/index.js +1 -16
  53. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
  54. package/HighlightedCodeWithTabs/index.js +2 -24
  55. package/IconImage/IconImage.js +13 -21
  56. package/IconImage/index.js +1 -13
  57. package/InfoCard/InfoCard.js +20 -29
  58. package/InfoCard/index.js +1 -16
  59. package/Link/Link.js +17 -25
  60. package/Link/MarkdownLinks.d.ts +2 -0
  61. package/Link/MarkdownLinks.js +84 -0
  62. package/Link/SkipLink.d.ts +1 -0
  63. package/Link/SkipLink.js +66 -0
  64. package/Link/index.d.ts +3 -1
  65. package/Link/index.js +3 -16
  66. package/MarkdownElement/MarkdownElement.js +178 -186
  67. package/MarkdownElement/index.js +1 -16
  68. package/MuiPage/MuiPage.d.ts +67 -0
  69. package/MuiPage/MuiPage.js +1 -0
  70. package/MuiPage/index.d.ts +1 -0
  71. package/MuiPage/index.js +1 -0
  72. package/NextNProgressBar/NextNProgressBar.d.ts +1 -0
  73. package/NextNProgressBar/NextNProgressBar.js +44 -0
  74. package/NextNProgressBar/index.d.ts +1 -0
  75. package/NextNProgressBar/index.js +1 -0
  76. package/PageContext/PageContext.d.ts +32 -0
  77. package/PageContext/PageContext.js +6 -0
  78. package/PageContext/index.d.ts +2 -0
  79. package/PageContext/index.js +1 -0
  80. package/SectionHeadline/SectionHeadline.js +9 -17
  81. package/SectionHeadline/index.js +2 -25
  82. package/SectionTitle/SectionTitle.js +7 -13
  83. package/SectionTitle/index.js +1 -16
  84. package/ThemeContext/ThemeContext.js +26 -38
  85. package/ThemeContext/index.js +1 -42
  86. package/branding/BrandingCssVarsProvider.d.ts +27 -0
  87. package/branding/BrandingCssVarsProvider.js +170 -0
  88. package/branding/BrandingProvider.js +8 -15
  89. package/branding/brandingTheme.js +184 -188
  90. package/branding/index.d.ts +2 -1
  91. package/branding/index.js +3 -27
  92. package/codeStyling/codeStyling.d.ts +7 -0
  93. package/codeStyling/codeStyling.js +80 -0
  94. package/codeStyling/index.d.ts +1 -0
  95. package/codeStyling/index.js +1 -0
  96. package/codeVariant/codeVariant.d.ts +7 -0
  97. package/codeVariant/codeVariant.js +69 -0
  98. package/codeVariant/index.d.ts +1 -0
  99. package/codeVariant/index.js +1 -0
  100. package/constants/constants.d.ts +13 -0
  101. package/constants/constants.js +15 -0
  102. package/constants/index.d.ts +1 -0
  103. package/constants/index.js +1 -0
  104. package/findActivePage/findActivePage.d.ts +5 -0
  105. package/findActivePage/findActivePage.js +35 -0
  106. package/findActivePage/index.d.ts +1 -0
  107. package/findActivePage/index.js +1 -0
  108. package/getProductInfoFromUrl/getProductInfoFromUrl.d.ts +8 -0
  109. package/getProductInfoFromUrl/getProductInfoFromUrl.js +50 -0
  110. package/getProductInfoFromUrl/index.d.ts +2 -0
  111. package/getProductInfoFromUrl/index.js +1 -0
  112. package/globalSelector/globalSelector.d.ts +2 -0
  113. package/globalSelector/globalSelector.js +17 -0
  114. package/globalSelector/index.d.ts +1 -0
  115. package/globalSelector/index.js +1 -0
  116. package/helpers/helpers.d.ts +31 -0
  117. package/helpers/helpers.js +87 -0
  118. package/helpers/index.d.ts +2 -0
  119. package/helpers/index.js +1 -0
  120. package/i18n/i18n.js +17 -29
  121. package/i18n/index.js +1 -16
  122. package/mapApiPageTranslations/index.d.ts +1 -0
  123. package/mapApiPageTranslations/index.js +1 -0
  124. package/mapApiPageTranslations/mapApiPageTranslations.d.ts +11 -0
  125. package/mapApiPageTranslations/mapApiPageTranslations.js +46 -0
  126. package/nextFonts/index.js +8 -15
  127. package/package.json +217 -132
  128. package/svgIcons/BundleSizeIcon.js +5 -11
  129. package/svgIcons/FigmaIcon.js +8 -14
  130. package/svgIcons/FileDownload.js +5 -12
  131. package/svgIcons/JavaScript.js +5 -12
  132. package/svgIcons/MarkdownIcon.js +7 -14
  133. package/svgIcons/MaterialDesignIcon.js +6 -12
  134. package/svgIcons/SketchIcon.js +10 -16
  135. package/svgIcons/TypeScript.js +5 -12
  136. package/svgIcons/W3CIcon.js +6 -12
  137. package/translations/index.js +3 -10
  138. package/translations/translations.json +0 -1
  139. package/useLazyCSS/index.js +1 -13
  140. package/useLazyCSS/useLazyCSS.js +5 -11
  141. package/utils/index.d.ts +1 -0
  142. package/utils/index.js +2 -0
  143. package/utils/loadScript.js +1 -7
  144. package/webpack/index.d.ts +17 -0
  145. package/webpack/index.js +1 -0
  146. package/Ad/Ad.d.mts +0 -5
  147. package/Ad/Ad.mjs +0 -226
  148. package/Ad/AdCarbon.d.mts +0 -2
  149. package/Ad/AdCarbon.mjs +0 -125
  150. package/Ad/AdDisplay.d.mts +0 -16
  151. package/Ad/AdDisplay.mjs +0 -86
  152. package/Ad/AdGuest.d.mts +0 -10
  153. package/Ad/AdGuest.mjs +0 -29
  154. package/Ad/AdInHouse.d.mts +0 -4
  155. package/Ad/AdInHouse.mjs +0 -14
  156. package/Ad/AdManager.d.mts +0 -19
  157. package/Ad/AdManager.mjs +0 -36
  158. package/Ad/AdProvider.d.mts +0 -15
  159. package/Ad/AdProvider.mjs +0 -24
  160. package/Ad/ad.styles.d.mts +0 -4512
  161. package/Ad/ad.styles.mjs +0 -91
  162. package/Ad/index.d.mts +0 -5
  163. package/Ad/index.mjs +0 -7
  164. package/CodeCopy/CodeCopy.d.mts +0 -22
  165. package/CodeCopy/CodeCopy.mjs +0 -172
  166. package/CodeCopy/CodeCopyButton.d.mts +0 -4
  167. package/CodeCopy/CodeCopyButton.mjs +0 -40
  168. package/CodeCopy/index.d.mts +0 -3
  169. package/CodeCopy/index.mjs +0 -3
  170. package/CodeCopy/useClipboardCopy.d.mts +0 -4
  171. package/CodeCopy/useClipboardCopy.mjs +0 -21
  172. package/ComponentLinkHeader/ComponentLinkHeader.d.mts +0 -8
  173. package/ComponentLinkHeader/ComponentLinkHeader.mjs +0 -197
  174. package/ComponentLinkHeader/index.d.mts +0 -2
  175. package/ComponentLinkHeader/index.mjs +0 -2
  176. package/DocsProvider/DocsProvider.d.mts +0 -24
  177. package/DocsProvider/DocsProvider.mjs +0 -31
  178. package/DocsProvider/index.d.mts +0 -1
  179. package/DocsProvider/index.mjs +0 -1
  180. package/HighlightedCode/HighlightedCode.d.mts +0 -14
  181. package/HighlightedCode/HighlightedCode.mjs +0 -67
  182. package/HighlightedCode/index.d.mts +0 -1
  183. package/HighlightedCode/index.mjs +0 -1
  184. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.mts +0 -28
  185. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.mjs +0 -362
  186. package/HighlightedCodeWithTabs/index.d.mts +0 -2
  187. package/HighlightedCodeWithTabs/index.mjs +0 -2
  188. package/IconImage/IconImage.d.mts +0 -11
  189. package/IconImage/IconImage.mjs +0 -83
  190. package/IconImage/index.d.mts +0 -1
  191. package/IconImage/index.mjs +0 -1
  192. package/InfoCard/InfoCard.d.mts +0 -22
  193. package/InfoCard/InfoCard.mjs +0 -87
  194. package/InfoCard/index.d.mts +0 -1
  195. package/InfoCard/index.mjs +0 -1
  196. package/Link/Link.d.mts +0 -25
  197. package/Link/Link.mjs +0 -75
  198. package/Link/index.d.mts +0 -1
  199. package/Link/index.mjs +0 -1
  200. package/MarkdownElement/MarkdownElement.d.mts +0 -7
  201. package/MarkdownElement/MarkdownElement.mjs +0 -847
  202. package/MarkdownElement/index.d.mts +0 -1
  203. package/MarkdownElement/index.mjs +0 -1
  204. package/NProgressBar/NProgressBar.d.mts +0 -6
  205. package/NProgressBar/NProgressBar.js +0 -98
  206. package/NProgressBar/index.d.mts +0 -2
  207. package/NProgressBar/index.d.ts +0 -2
  208. package/NProgressBar/index.js +0 -13
  209. package/NProgressBar/index.mjs +0 -1
  210. package/SectionHeadline/SectionHeadline.d.mts +0 -13
  211. package/SectionHeadline/SectionHeadline.mjs +0 -81
  212. package/SectionHeadline/index.d.mts +0 -2
  213. package/SectionHeadline/index.mjs +0 -2
  214. package/SectionTitle/SectionTitle.d.mts +0 -6
  215. package/SectionTitle/SectionTitle.mjs +0 -29
  216. package/SectionTitle/index.d.mts +0 -1
  217. package/SectionTitle/index.mjs +0 -1
  218. package/ThemeContext/ThemeContext.d.mts +0 -92
  219. package/ThemeContext/ThemeContext.mjs +0 -200
  220. package/ThemeContext/index.d.mts +0 -1
  221. package/ThemeContext/index.mjs +0 -1
  222. package/branding/BrandingProvider.d.mts +0 -9
  223. package/branding/BrandingProvider.mjs +0 -17
  224. package/branding/brandingTheme.d.mts +0 -147
  225. package/branding/brandingTheme.mjs +0 -1527
  226. package/branding/index.d.mts +0 -2
  227. package/branding/index.mjs +0 -2
  228. package/i18n/i18n.d.mts +0 -27
  229. package/i18n/i18n.mjs +0 -111
  230. package/i18n/index.d.mts +0 -1
  231. package/i18n/index.mjs +0 -1
  232. package/nextFonts/index.d.mts +0 -6
  233. package/nextFonts/index.mjs +0 -59
  234. package/svgIcons/BundleSizeIcon.d.mts +0 -4
  235. package/svgIcons/BundleSizeIcon.mjs +0 -13
  236. package/svgIcons/FigmaIcon.d.mts +0 -4
  237. package/svgIcons/FigmaIcon.mjs +0 -22
  238. package/svgIcons/FileDownload.d.mts +0 -6
  239. package/svgIcons/FileDownload.mjs +0 -13
  240. package/svgIcons/JavaScript.d.mts +0 -6
  241. package/svgIcons/JavaScript.mjs +0 -13
  242. package/svgIcons/MarkdownIcon.d.mts +0 -2
  243. package/svgIcons/MarkdownIcon.mjs +0 -22
  244. package/svgIcons/MaterialDesignIcon.d.mts +0 -4
  245. package/svgIcons/MaterialDesignIcon.mjs +0 -18
  246. package/svgIcons/SketchIcon.d.mts +0 -4
  247. package/svgIcons/SketchIcon.mjs +0 -27
  248. package/svgIcons/TypeScript.d.mts +0 -6
  249. package/svgIcons/TypeScript.mjs +0 -13
  250. package/svgIcons/W3CIcon.d.mts +0 -4
  251. package/svgIcons/W3CIcon.mjs +0 -15
  252. package/translations/index.d.mts +0 -3
  253. package/translations/index.mjs +0 -4
  254. package/useLazyCSS/index.d.mts +0 -1
  255. package/useLazyCSS/index.mjs +0 -1
  256. package/useLazyCSS/useLazyCSS.d.mts +0 -11
  257. package/useLazyCSS/useLazyCSS.mjs +0 -70
  258. package/utils/loadScript.d.mts +0 -1
  259. package/utils/loadScript.mjs +0 -7
  260. /package/{NProgressBar → NextNProgressBar}/NProgressBar.d.ts +0 -0
  261. /package/{NProgressBar/NProgressBar.mjs → NextNProgressBar/NProgressBar.js} +0 -0
@@ -1,14 +1,5 @@
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");
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 = (0, _styles.createTheme)();
20
- const blue = exports.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 = exports.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 = exports.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 = exports.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 = exports.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 = exports.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
- exports.getMetaThemeColor = getMetaThemeColor;
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' ? (0, _styles.alpha)(blueDark[500], 0.3) : grey[100],
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: (0, _styles.alpha)(blueDark[800], 0.8)
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, ${(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)})`
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
- exports.getDesignTokens = getDesignTokens;
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 ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
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: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
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, ${(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`,
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: (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`,
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: (0, _styles.alpha)(theme.palette.primary[50], 0.2),
528
+ backgroundColor: alpha(theme.palette.primary[50], 0.2),
533
529
  borderColor: (theme.vars || theme).palette.primary[100],
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`,
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: (0, _styles.alpha)(theme.palette.primary[100], 0.7)
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: (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`,
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: (0, _styles.alpha)(theme.palette.primary[900], 0.5),
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: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
548
+ backgroundColor: alpha(theme.palette.primary[900], 0.3)
553
549
  },
554
550
  '&.Mui-disabled:not(.MuiButton-loading)': {
555
551
  background: 'none',
556
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
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 ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
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: `${(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`,
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: `${(0, _styles.alpha)(theme.palette.primary[900], 0.7)} 0 1px 0 1px inset`
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 ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
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: `${(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`,
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: `${(0, _styles.alpha)(theme.palette.primaryDark[900], 0.7)} 0 1px 0 1px inset`
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5)
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: (0, _styles.alpha)(theme.palette.primary[100], 0.3)
640
+ backgroundColor: alpha(theme.palette.primary[100], 0.3)
645
641
  },
646
642
  '&:active': {
647
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.5)
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: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
648
+ backgroundColor: alpha(theme.palette.primary[900], 0.3)
653
649
  },
654
650
  '&:active': {
655
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.1)
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: (0, _styles.alpha)(theme.palette.primary[50], 0.3),
728
+ backgroundColor: alpha(theme.palette.primary[50], 0.3),
733
729
  borderColor: (theme.vars || theme).palette.grey[200],
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)}`,
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: (0, _styles.alpha)(theme.palette.primary[800], 0.3)
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
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: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
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, ${(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`,
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: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
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: (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`,
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
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: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
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, ${(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`,
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: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
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: (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`,
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
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: (0, _styles.alpha)(theme.palette.primary[100], 0.6)
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: (0, _styles.alpha)(theme.palette.primary[900], 0.4)
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 ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
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: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4),
1028
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
1033
1029
  color: (theme.vars || theme).palette.grey[300],
1034
- borderColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.5),
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: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5),
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: (0, _styles.alpha)(theme.palette.primary[100], 0.2),
1049
+ backgroundColor: alpha(theme.palette.primary[100], 0.2),
1054
1050
  ...theme.applyDarkStyles({
1055
1051
  color: (theme.vars || theme).palette.primary[300],
1056
- borderColor: (0, _styles.alpha)(theme.palette.primary[500], 0.2),
1057
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[700], 0.2)
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: (0, _styles.alpha)(theme.palette.success[300], 0.2),
1067
- background: (0, _styles.alpha)(theme.palette.success[800], 0.2)
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: (0, _styles.alpha)(theme.palette.primary[100], 0.5),
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: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.8),
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: (0, _styles.alpha)(theme.palette.primary[100], 0.4),
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: (0, _styles.alpha)(theme.palette.primary[800], 0.5),
1099
+ backgroundColor: alpha(theme.palette.primary[800], 0.5),
1104
1100
  '&:hover': {
1105
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.5)
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: (0, _styles.alpha)(theme.palette.primary[100], 0.3),
1117
+ backgroundColor: alpha(theme.palette.primary[100], 0.3),
1122
1118
  ...theme.applyDarkStyles({
1123
1119
  color: (theme.vars || theme).palette.primary[200],
1124
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5)
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)
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: _ArrowDropDownRounded.default
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: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
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, ${(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`
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: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
1220
+ backgroundColor: alpha(theme.palette.primaryDark[700], 0.2),
1225
1221
  '& .MuiOutlinedInput-notchedOutline': {
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`
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: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
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, ${(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`,
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 ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
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: (0, _styles.alpha)(theme.palette.primaryDark[800], 0.6),
1293
+ backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
1298
1294
  '&[href]': {
1299
1295
  textDecorationLine: 'none',
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`,
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: (0, _styles.alpha)(theme.palette.primary[600], 0.5),
1303
- boxShadow: `0px 2px 8px ${(0, _styles.alpha)(theme.palette.primary[900], 0.6)}`
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: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.2)
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: (0, _styles.alpha)(theme.palette.primary[900], 0.4),
1370
+ backgroundColor: alpha(theme.palette.primary[900], 0.4),
1375
1371
  '&:hover': {
1376
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.8),
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 ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
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 ${(0, _styles.alpha)(theme.palette.grey[400], 0.2)}`,
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: (0, _styles.alpha)(theme.palette.primary[900], 0.5),
1485
+ backgroundColor: alpha(theme.palette.primary[900], 0.5),
1490
1486
  '&:hover': {
1491
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.8)
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: `${(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`,
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 = exports.brandingDarkTheme = (0, _styles.createTheme)({
1527
+ export const brandingDarkTheme = createTheme({
1532
1528
  ...getDesignTokens('dark'),
1533
1529
  ...getThemedComponents()
1534
1530
  });
1535
- const brandingLightTheme = exports.brandingLightTheme = (0, _styles.createTheme)({
1531
+ export const brandingLightTheme = createTheme({
1536
1532
  ...getDesignTokens('light'),
1537
1533
  ...getThemedComponents()
1538
1534
  });