@mui/docs 9.0.0-alpha.1 → 9.0.0-alpha.3

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