@mui/docs 6.4.4 → 7.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/Ad/Ad.d.ts +1 -1
  2. package/Ad/Ad.js +42 -33
  3. package/Ad/AdCarbon.d.ts +1 -1
  4. package/Ad/AdCarbon.js +27 -18
  5. package/Ad/AdDisplay.d.ts +10 -10
  6. package/Ad/AdDisplay.js +28 -21
  7. package/Ad/AdGuest.d.ts +6 -6
  8. package/Ad/AdGuest.js +15 -8
  9. package/Ad/AdInHouse.d.ts +3 -3
  10. package/Ad/AdInHouse.js +13 -5
  11. package/Ad/AdManager.d.ts +12 -9
  12. package/Ad/AdManager.js +17 -8
  13. package/Ad/AdProvider.d.ts +9 -9
  14. package/Ad/AdProvider.js +13 -5
  15. package/Ad/ad.styles.d.ts +4322 -4322
  16. package/Ad/ad.styles.js +13 -5
  17. package/Ad/index.d.ts +5 -5
  18. package/Ad/index.js +62 -6
  19. package/CHANGELOG.md +71 -2258
  20. package/CodeCopy/CodeCopy.d.ts +5 -3
  21. package/CodeCopy/CodeCopy.js +19 -10
  22. package/CodeCopy/CodeCopyButton.d.ts +2 -2
  23. package/CodeCopy/CodeCopyButton.js +18 -10
  24. package/CodeCopy/index.d.ts +3 -3
  25. package/CodeCopy/index.js +40 -3
  26. package/CodeCopy/useClipboardCopy.d.ts +3 -3
  27. package/CodeCopy/useClipboardCopy.js +12 -4
  28. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +5 -5
  29. package/ComponentLinkHeader/ComponentLinkHeader.js +48 -40
  30. package/ComponentLinkHeader/index.d.ts +2 -2
  31. package/ComponentLinkHeader/index.js +24 -2
  32. package/DocsProvider/DocsProvider.d.ts +19 -13
  33. package/DocsProvider/DocsProvider.js +17 -9
  34. package/DocsProvider/index.d.ts +1 -1
  35. package/DocsProvider/index.js +16 -1
  36. package/HighlightedCode/HighlightedCode.d.ts +9 -9
  37. package/HighlightedCode/HighlightedCode.js +26 -18
  38. package/HighlightedCode/index.d.ts +1 -1
  39. package/HighlightedCode/index.js +16 -1
  40. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +18 -18
  41. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +31 -22
  42. package/HighlightedCodeWithTabs/index.d.ts +2 -2
  43. package/HighlightedCodeWithTabs/index.js +24 -2
  44. package/InfoCard/InfoCard.d.ts +15 -13
  45. package/InfoCard/InfoCard.js +29 -20
  46. package/InfoCard/index.d.ts +1 -1
  47. package/InfoCard/index.js +16 -1
  48. package/Link/Link.d.ts +14 -8
  49. package/Link/Link.js +26 -29
  50. package/Link/index.d.ts +1 -1
  51. package/Link/index.js +16 -1
  52. package/MarkdownElement/MarkdownElement.d.ts +4 -4
  53. package/MarkdownElement/MarkdownElement.js +186 -178
  54. package/MarkdownElement/index.d.ts +1 -1
  55. package/MarkdownElement/index.js +16 -1
  56. package/NProgressBar/NProgressBar.d.ts +1 -3
  57. package/NProgressBar/NProgressBar.js +23 -15
  58. package/NProgressBar/index.d.ts +2 -2
  59. package/NProgressBar/index.js +13 -1
  60. package/README.md +4 -4
  61. package/SectionTitle/SectionTitle.d.ts +4 -4
  62. package/SectionTitle/SectionTitle.js +15 -8
  63. package/SectionTitle/index.d.ts +1 -1
  64. package/SectionTitle/index.js +16 -1
  65. package/branding/BrandingProvider.d.ts +6 -6
  66. package/branding/BrandingProvider.js +15 -8
  67. package/branding/brandingTheme.d.ts +118 -119
  68. package/branding/brandingTheme.js +126 -115
  69. package/branding/index.d.ts +2 -2
  70. package/branding/index.js +27 -2
  71. package/esm/Ad/Ad.d.ts +6 -0
  72. package/{node → esm}/Ad/Ad.js +33 -42
  73. package/esm/Ad/AdCarbon.d.ts +3 -0
  74. package/{node → esm}/Ad/AdCarbon.js +18 -27
  75. package/esm/Ad/AdDisplay.d.ts +16 -0
  76. package/{node → esm}/Ad/AdDisplay.js +21 -28
  77. package/esm/Ad/AdGuest.d.ts +10 -0
  78. package/esm/Ad/AdGuest.js +29 -0
  79. package/esm/Ad/AdInHouse.d.ts +5 -0
  80. package/esm/Ad/AdInHouse.js +15 -0
  81. package/esm/Ad/AdManager.d.ts +19 -0
  82. package/esm/Ad/AdManager.js +36 -0
  83. package/esm/Ad/AdProvider.d.ts +15 -0
  84. package/esm/Ad/AdProvider.js +24 -0
  85. package/esm/Ad/ad.styles.d.ts +4329 -0
  86. package/{node → esm}/Ad/ad.styles.js +5 -13
  87. package/esm/Ad/index.d.ts +5 -0
  88. package/esm/Ad/index.js +7 -0
  89. package/esm/CodeCopy/CodeCopy.d.ts +22 -0
  90. package/{node → esm}/CodeCopy/CodeCopy.js +10 -19
  91. package/esm/CodeCopy/CodeCopyButton.d.ts +5 -0
  92. package/esm/CodeCopy/CodeCopyButton.js +41 -0
  93. package/esm/CodeCopy/index.d.ts +3 -0
  94. package/esm/CodeCopy/index.js +3 -0
  95. package/esm/CodeCopy/useClipboardCopy.d.ts +4 -0
  96. package/esm/CodeCopy/useClipboardCopy.js +21 -0
  97. package/esm/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  98. package/{node → esm}/ComponentLinkHeader/ComponentLinkHeader.js +40 -48
  99. package/esm/ComponentLinkHeader/index.d.ts +2 -0
  100. package/esm/ComponentLinkHeader/index.js +2 -0
  101. package/esm/DocsProvider/DocsProvider.d.ts +24 -0
  102. package/esm/DocsProvider/DocsProvider.js +31 -0
  103. package/esm/DocsProvider/index.d.ts +1 -0
  104. package/esm/DocsProvider/index.js +1 -0
  105. package/esm/HighlightedCode/HighlightedCode.d.ts +14 -0
  106. package/esm/HighlightedCode/HighlightedCode.js +67 -0
  107. package/esm/HighlightedCode/index.d.ts +1 -0
  108. package/esm/HighlightedCode/index.js +1 -0
  109. package/esm/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  110. package/{node → esm}/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +22 -31
  111. package/esm/HighlightedCodeWithTabs/index.d.ts +2 -0
  112. package/esm/HighlightedCodeWithTabs/index.js +2 -0
  113. package/esm/InfoCard/InfoCard.d.ts +22 -0
  114. package/esm/InfoCard/InfoCard.js +87 -0
  115. package/esm/InfoCard/index.d.ts +1 -0
  116. package/esm/InfoCard/index.js +1 -0
  117. package/esm/Link/Link.d.ts +22 -0
  118. package/{node → esm}/Link/Link.js +19 -37
  119. package/esm/Link/index.d.ts +1 -0
  120. package/esm/Link/index.js +1 -0
  121. package/esm/MarkdownElement/MarkdownElement.d.ts +7 -0
  122. package/{node → esm}/MarkdownElement/MarkdownElement.js +178 -186
  123. package/esm/MarkdownElement/index.d.ts +1 -0
  124. package/esm/MarkdownElement/index.js +1 -0
  125. package/esm/NProgressBar/NProgressBar.d.ts +6 -0
  126. package/{node → esm}/NProgressBar/NProgressBar.js +15 -23
  127. package/esm/NProgressBar/index.d.ts +2 -0
  128. package/esm/NProgressBar/index.js +1 -0
  129. package/esm/SectionTitle/SectionTitle.d.ts +7 -0
  130. package/esm/SectionTitle/SectionTitle.js +30 -0
  131. package/esm/SectionTitle/index.d.ts +1 -0
  132. package/esm/SectionTitle/index.js +1 -0
  133. package/esm/branding/BrandingProvider.d.ts +9 -0
  134. package/esm/branding/BrandingProvider.js +17 -0
  135. package/esm/branding/brandingTheme.d.ts +151 -0
  136. package/{node → esm}/branding/brandingTheme.js +115 -126
  137. package/esm/branding/index.d.ts +2 -0
  138. package/esm/branding/index.js +2 -0
  139. package/esm/i18n/i18n.d.ts +27 -0
  140. package/{node → esm}/i18n/i18n.js +17 -29
  141. package/esm/i18n/index.d.ts +1 -0
  142. package/esm/i18n/index.js +1 -0
  143. package/esm/package.json +1 -0
  144. package/esm/svgIcons/BundleSizeIcon.d.ts +4 -0
  145. package/esm/svgIcons/BundleSizeIcon.js +14 -0
  146. package/esm/svgIcons/FigmaIcon.d.ts +4 -0
  147. package/esm/svgIcons/FigmaIcon.js +23 -0
  148. package/esm/svgIcons/FileDownload.d.ts +7 -0
  149. package/esm/svgIcons/FileDownload.js +14 -0
  150. package/esm/svgIcons/JavaScript.d.ts +7 -0
  151. package/{node → esm}/svgIcons/JavaScript.js +6 -14
  152. package/esm/svgIcons/MaterialDesignIcon.d.ts +4 -0
  153. package/esm/svgIcons/MaterialDesignIcon.js +19 -0
  154. package/esm/svgIcons/SketchIcon.d.ts +4 -0
  155. package/esm/svgIcons/SketchIcon.js +28 -0
  156. package/esm/svgIcons/TypeScript.d.ts +7 -0
  157. package/esm/svgIcons/TypeScript.js +14 -0
  158. package/esm/svgIcons/W3CIcon.d.ts +4 -0
  159. package/{node → esm}/svgIcons/W3CIcon.js +7 -14
  160. package/esm/translations/index.d.ts +3 -0
  161. package/esm/translations/index.js +4 -0
  162. package/esm/utils/loadScript.d.ts +1 -0
  163. package/{node → esm}/utils/loadScript.js +1 -7
  164. package/i18n/i18n.d.ts +12 -14
  165. package/i18n/i18n.js +29 -17
  166. package/i18n/index.d.ts +1 -1
  167. package/i18n/index.js +16 -1
  168. package/modern/Ad/Ad.d.ts +6 -0
  169. package/modern/Ad/AdCarbon.d.ts +3 -0
  170. package/modern/Ad/AdDisplay.d.ts +16 -0
  171. package/modern/Ad/AdGuest.d.ts +10 -0
  172. package/modern/Ad/AdInHouse.d.ts +5 -0
  173. package/modern/Ad/AdManager.d.ts +19 -0
  174. package/modern/Ad/AdProvider.d.ts +15 -0
  175. package/modern/Ad/ad.styles.d.ts +4329 -0
  176. package/modern/Ad/index.d.ts +5 -0
  177. package/modern/CodeCopy/CodeCopy.d.ts +22 -0
  178. package/modern/CodeCopy/CodeCopyButton.d.ts +5 -0
  179. package/modern/CodeCopy/index.d.ts +3 -0
  180. package/modern/CodeCopy/useClipboardCopy.d.ts +4 -0
  181. package/modern/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  182. package/modern/ComponentLinkHeader/index.d.ts +2 -0
  183. package/modern/DocsProvider/DocsProvider.d.ts +24 -0
  184. package/modern/DocsProvider/index.d.ts +1 -0
  185. package/modern/HighlightedCode/HighlightedCode.d.ts +14 -0
  186. package/modern/HighlightedCode/index.d.ts +1 -0
  187. package/modern/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  188. package/modern/HighlightedCodeWithTabs/index.d.ts +2 -0
  189. package/modern/InfoCard/InfoCard.d.ts +22 -0
  190. package/modern/InfoCard/index.d.ts +1 -0
  191. package/modern/Link/Link.d.ts +22 -0
  192. package/modern/Link/index.d.ts +1 -0
  193. package/modern/MarkdownElement/MarkdownElement.d.ts +7 -0
  194. package/modern/MarkdownElement/index.d.ts +1 -0
  195. package/modern/NProgressBar/NProgressBar.d.ts +6 -0
  196. package/modern/NProgressBar/index.d.ts +2 -0
  197. package/modern/SectionTitle/SectionTitle.d.ts +7 -0
  198. package/modern/SectionTitle/index.d.ts +1 -0
  199. package/modern/branding/BrandingProvider.d.ts +9 -0
  200. package/modern/branding/brandingTheme.d.ts +151 -0
  201. package/modern/branding/index.d.ts +2 -0
  202. package/modern/i18n/i18n.d.ts +27 -0
  203. package/modern/i18n/index.d.ts +1 -0
  204. package/modern/svgIcons/BundleSizeIcon.d.ts +4 -0
  205. package/modern/svgIcons/FigmaIcon.d.ts +4 -0
  206. package/modern/svgIcons/FileDownload.d.ts +7 -0
  207. package/modern/svgIcons/JavaScript.d.ts +7 -0
  208. package/modern/svgIcons/MaterialDesignIcon.d.ts +4 -0
  209. package/modern/svgIcons/SketchIcon.d.ts +4 -0
  210. package/modern/svgIcons/TypeScript.d.ts +7 -0
  211. package/modern/svgIcons/W3CIcon.d.ts +4 -0
  212. package/modern/translations/index.d.ts +3 -0
  213. package/modern/utils/loadScript.d.ts +1 -0
  214. package/package.json +34 -4
  215. package/svgIcons/BundleSizeIcon.d.ts +2 -2
  216. package/svgIcons/BundleSizeIcon.js +13 -6
  217. package/svgIcons/FigmaIcon.d.ts +2 -2
  218. package/svgIcons/FigmaIcon.js +16 -9
  219. package/svgIcons/FileDownload.d.ts +2 -2
  220. package/svgIcons/FileDownload.js +14 -6
  221. package/svgIcons/JavaScript.d.ts +2 -2
  222. package/svgIcons/JavaScript.js +14 -6
  223. package/svgIcons/MaterialDesignIcon.d.ts +2 -2
  224. package/svgIcons/MaterialDesignIcon.js +14 -7
  225. package/svgIcons/SketchIcon.d.ts +2 -2
  226. package/svgIcons/SketchIcon.js +18 -11
  227. package/svgIcons/TypeScript.d.ts +2 -2
  228. package/svgIcons/TypeScript.js +14 -6
  229. package/svgIcons/W3CIcon.d.ts +2 -2
  230. package/svgIcons/W3CIcon.js +14 -7
  231. package/translations/index.d.ts +2 -2
  232. package/translations/index.js +10 -3
  233. package/tsconfig.build.tsbuildinfo +1 -1
  234. package/utils/loadScript.d.ts +1 -1
  235. package/utils/loadScript.js +7 -1
  236. package/Ad/package.json +0 -6
  237. package/CodeCopy/package.json +0 -6
  238. package/ComponentLinkHeader/package.json +0 -6
  239. package/DocsProvider/package.json +0 -6
  240. package/HighlightedCode/package.json +0 -6
  241. package/HighlightedCodeWithTabs/package.json +0 -6
  242. package/InfoCard/package.json +0 -6
  243. package/Link/package.json +0 -6
  244. package/MarkdownElement/package.json +0 -6
  245. package/NProgressBar/package.json +0 -6
  246. package/SectionTitle/package.json +0 -6
  247. package/branding/package.json +0 -6
  248. package/i18n/package.json +0 -6
  249. package/node/Ad/AdGuest.js +0 -36
  250. package/node/Ad/AdInHouse.js +0 -23
  251. package/node/Ad/AdManager.js +0 -45
  252. package/node/Ad/AdProvider.js +0 -32
  253. package/node/Ad/index.js +0 -63
  254. package/node/CodeCopy/CodeCopyButton.js +0 -49
  255. package/node/CodeCopy/index.js +0 -40
  256. package/node/CodeCopy/useClipboardCopy.js +0 -29
  257. package/node/ComponentLinkHeader/index.js +0 -24
  258. package/node/DocsProvider/DocsProvider.js +0 -39
  259. package/node/DocsProvider/index.js +0 -16
  260. package/node/HighlightedCode/HighlightedCode.js +0 -75
  261. package/node/HighlightedCode/index.js +0 -16
  262. package/node/HighlightedCodeWithTabs/index.js +0 -24
  263. package/node/InfoCard/InfoCard.js +0 -96
  264. package/node/InfoCard/index.js +0 -16
  265. package/node/Link/index.js +0 -16
  266. package/node/MarkdownElement/index.js +0 -16
  267. package/node/NProgressBar/index.js +0 -13
  268. package/node/SectionTitle/SectionTitle.js +0 -37
  269. package/node/SectionTitle/index.js +0 -16
  270. package/node/branding/BrandingProvider.js +0 -24
  271. package/node/branding/index.js +0 -27
  272. package/node/i18n/index.js +0 -16
  273. package/node/svgIcons/BundleSizeIcon.js +0 -21
  274. package/node/svgIcons/FigmaIcon.js +0 -30
  275. package/node/svgIcons/FileDownload.js +0 -22
  276. package/node/svgIcons/MaterialDesignIcon.js +0 -26
  277. package/node/svgIcons/SketchIcon.js +0 -35
  278. package/node/svgIcons/TypeScript.js +0 -22
  279. package/node/translations/index.js +0 -11
  280. package/translations/package.json +0 -6
@@ -1,22 +1,30 @@
1
- import * as React from 'react';
2
- import clsx from 'clsx';
3
- import { alpha, darken, styled } from '@mui/material/styles';
4
- import useForkRef from '@mui/utils/useForkRef';
5
- import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../branding/index.js";
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const Root = styled('div')(({
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.MarkdownElement = void 0;
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _clsx = _interopRequireDefault(require("clsx"));
11
+ var _styles = require("@mui/material/styles");
12
+ var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
13
+ var _branding = require("../branding");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ const Root = (0, _styles.styled)('div')(({
8
16
  theme
9
17
  }) => ({
10
- ...lightTheme.typography.body1,
18
+ ..._branding.brandingLightTheme.typography.body1,
11
19
  lineHeight: 1.625,
12
20
  // Rounds up to 26px-increased compared to the 1.5 default to make the docs easier to read.
13
- color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
21
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
14
22
  '& :focus-visible': {
15
- outline: `3px solid ${alpha(lightTheme.palette.primary[500], 0.5)}`,
23
+ outline: `3px solid ${(0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[500], 0.5)}`,
16
24
  outlineOffset: 2
17
25
  },
18
26
  '& strong': {
19
- color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`
27
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`
20
28
  },
21
29
  wordBreak: 'break-word',
22
30
  '& pre': {
@@ -28,17 +36,17 @@ const Root = styled('div')(({
28
36
  // a special, one-off, color tailored for the code blocks using MUI's branding theme blue palette as the starting point. It has a less saturaded color but still maintaining a bit of the blue tint.
29
37
  color: 'hsl(60, 30%, 96%)',
30
38
  colorScheme: 'dark',
31
- borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? lightTheme.shape.borderRadius}px)`,
39
+ borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
32
40
  border: '1px solid',
33
- borderColor: `var(--muidocs-palette-primaryDark-700, ${lightTheme.palette.primaryDark[700]})`,
41
+ borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
34
42
  overflow: 'auto',
35
43
  WebkitOverflowScrolling: 'touch',
36
- fontSize: lightTheme.typography.pxToRem(13),
44
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(13),
37
45
  maxHeight: '400px'
38
46
  },
39
47
  '& code': {
40
- ...lightTheme.typography.body2,
41
- fontFamily: lightTheme.typography.fontFamilyCode,
48
+ ..._branding.brandingLightTheme.typography.body2,
49
+ fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
42
50
  fontWeight: 400,
43
51
  WebkitFontSmoothing: 'subpixel-antialiased'
44
52
  },
@@ -50,26 +58,26 @@ const Root = styled('div')(({
50
58
  // inline code block
51
59
  '& :not(pre) > code': {
52
60
  padding: '2px 4px',
53
- color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
54
- backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`,
61
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
62
+ backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
55
63
  border: '1px solid',
56
- borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
64
+ borderColor: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
57
65
  borderRadius: 6,
58
- fontSize: lightTheme.typography.pxToRem(13),
66
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(13),
59
67
  direction: 'ltr /*! @noflip */',
60
68
  boxDecorationBreak: 'clone'
61
69
  },
62
70
  '& h1': {
63
- ...lightTheme.typography.h3,
64
- fontSize: lightTheme.typography.pxToRem(36),
65
- fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
71
+ ..._branding.brandingLightTheme.typography.h3,
72
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(36),
73
+ fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
66
74
  margin: '10px 0',
67
- color: `var(--muidocs-palette-primaryDark-900, ${lightTheme.palette.primaryDark[900]})`,
75
+ color: `var(--muidocs-palette-primaryDark-900, ${_branding.brandingLightTheme.palette.primaryDark[900]})`,
68
76
  fontWeight: 600,
69
77
  letterSpacing: -0.2
70
78
  },
71
79
  '& .description': {
72
- ...lightTheme.typography.subtitle1,
80
+ ..._branding.brandingLightTheme.typography.subtitle1,
73
81
  fontWeight: 400,
74
82
  margin: '0 0 24px'
75
83
  },
@@ -77,39 +85,39 @@ const Root = styled('div')(({
77
85
  margin: '0 0 40px'
78
86
  },
79
87
  '& h2': {
80
- ...lightTheme.typography.h5,
81
- fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
88
+ ..._branding.brandingLightTheme.typography.h5,
89
+ fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
82
90
  fontSize: theme.typography.pxToRem(26),
83
- fontWeight: lightTheme.typography.fontWeightSemiBold,
84
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
91
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
92
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
85
93
  margin: '40px 0 4px'
86
94
  },
87
95
  '& h3': {
88
- ...lightTheme.typography.h6,
89
- fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
96
+ ..._branding.brandingLightTheme.typography.h6,
97
+ fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
90
98
  fontSize: theme.typography.pxToRem(20),
91
- fontWeight: lightTheme.typography.fontWeightSemiBold,
92
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
99
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
100
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
93
101
  margin: '24px 0 4px'
94
102
  },
95
103
  '& h4': {
96
- ...lightTheme.typography.subtitle1,
97
- fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
98
- fontWeight: lightTheme.typography.fontWeightSemiBold,
99
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
104
+ ..._branding.brandingLightTheme.typography.subtitle1,
105
+ fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
106
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
107
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
100
108
  margin: '20px 0 6px'
101
109
  },
102
110
  '& h5': {
103
- ...lightTheme.typography.subtitle2,
104
- fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
105
- fontWeight: lightTheme.typography.fontWeightSemiBold,
106
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
111
+ ..._branding.brandingLightTheme.typography.subtitle2,
112
+ fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
113
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
114
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
107
115
  margin: '20px 0 8px'
108
116
  },
109
117
  '& p': {
110
118
  marginTop: 0,
111
119
  marginBottom: 16,
112
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`
120
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`
113
121
  },
114
122
  '& ul, & ol': {
115
123
  paddingLeft: 30,
@@ -146,16 +154,16 @@ const Root = styled('div')(({
146
154
  },
147
155
  '& a': {
148
156
  // Style taken from the Link component
149
- color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
157
+ color: `var(--muidocs-palette-primary-600, ${_branding.brandingLightTheme.palette.primary[600]})`,
150
158
  fontWeight: theme.typography.fontWeightMedium,
151
159
  textDecoration: 'underline',
152
- textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4),
160
+ textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary.main, 0.4),
153
161
  '&:hover': {
154
162
  textDecorationColor: 'inherit'
155
163
  }
156
164
  },
157
165
  '& a code': {
158
- color: darken(lightTheme.palette.primary.main, 0.2)
166
+ color: (0, _styles.darken)(_branding.brandingLightTheme.palette.primary.main, 0.2)
159
167
  },
160
168
  '& h1, & h2, & h3, & h4': {
161
169
  display: 'flex',
@@ -191,7 +199,7 @@ const Root = styled('div')(({
191
199
  marginLeft: 8,
192
200
  height: 26,
193
201
  width: 26,
194
- color: `var(--muidocs-palette-grey-600, ${lightTheme.palette.grey[600]})`,
202
+ color: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`,
195
203
  backgroundColor: 'transparent',
196
204
  border: '1px solid transparent',
197
205
  borderRadius: 8,
@@ -199,9 +207,9 @@ const Root = styled('div')(({
199
207
  duration: theme.transitions.duration.shortest
200
208
  }),
201
209
  '&:hover': {
202
- backgroundColor: alpha(lightTheme.palette.primary[100], 0.4),
203
- borderColor: `var(--muidocs-palette-primary-100, ${lightTheme.palette.primary[100]})`,
204
- color: `var(--muidocs-palette-primary-main, ${lightTheme.palette.primary.main})`
210
+ backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[100], 0.4),
211
+ borderColor: `var(--muidocs-palette-primary-100, ${_branding.brandingLightTheme.palette.primary[100]})`,
212
+ color: `var(--muidocs-palette-primary-main, ${_branding.brandingLightTheme.palette.primary.main})`
205
213
  },
206
214
  '& svg': {
207
215
  height: 14,
@@ -228,17 +236,17 @@ const Root = styled('div')(({
228
236
  }
229
237
  },
230
238
  '& h1 code, & h2 code, & h3 code': {
231
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`
239
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`
232
240
  },
233
241
  '& h1 code': {
234
- fontWeight: lightTheme.typography.fontWeightSemiBold
242
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
235
243
  },
236
244
  '& h2 code': {
237
- fontSize: lightTheme.typography.pxToRem(24),
238
- fontWeight: lightTheme.typography.fontWeightSemiBold
245
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(24),
246
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
239
247
  },
240
248
  '& h3 code': {
241
- fontSize: lightTheme.typography.pxToRem(18)
249
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(18)
242
250
  },
243
251
  '& table': {
244
252
  // Trade display table for scroll overflow
@@ -251,9 +259,9 @@ const Root = styled('div')(({
251
259
  borderSpacing: 0,
252
260
  '& .prop-name, & .prop-type, & .prop-default, & .slot-name, & .slot-defaultClass, & .slot-default': {
253
261
  fontWeight: 400,
254
- fontFamily: lightTheme.typography.fontFamilyCode,
262
+ fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
255
263
  WebkitFontSmoothing: 'subpixel-antialiased',
256
- fontSize: lightTheme.typography.pxToRem(13)
264
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(13)
257
265
  },
258
266
  '& .required': {
259
267
  color: '#006500'
@@ -265,16 +273,16 @@ const Root = styled('div')(({
265
273
  color: '#932981'
266
274
  },
267
275
  '& .prop-default, & .slot-default': {
268
- borderBottom: `1px dotted var(--muidocs-palette-divider, ${lightTheme.palette.divider})`
276
+ borderBottom: `1px dotted var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
269
277
  }
270
278
  },
271
279
  '& td': {
272
280
  ...theme.typography.body2,
273
- borderBottom: `1px solid var(--muidocs-palette-divider, ${lightTheme.palette.divider})`,
281
+ borderBottom: `1px solid var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
274
282
  paddingRight: 20,
275
283
  paddingTop: 16,
276
284
  paddingBottom: 16,
277
- color: `var(--muidocs-palette-text-secondary, ${lightTheme.palette.text.secondary})`
285
+ color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`
278
286
  },
279
287
  '& td code': {
280
288
  lineHeight: 1.6
@@ -283,9 +291,9 @@ const Root = styled('div')(({
283
291
  fontSize: theme.typography.pxToRem(14),
284
292
  lineHeight: theme.typography.pxToRem(24),
285
293
  fontWeight: 500,
286
- color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
294
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
287
295
  whiteSpace: 'pre',
288
- borderBottom: `1px solid var(--muidocs-palette-divider, ${lightTheme.palette.divider})`,
296
+ borderBottom: `1px solid var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
289
297
  paddingRight: 20,
290
298
  paddingTop: 12,
291
299
  paddingBottom: 12
@@ -295,11 +303,11 @@ const Root = styled('div')(({
295
303
  padding: '0 16px',
296
304
  margin: 0,
297
305
  borderLeft: '1.5px solid',
298
- borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
306
+ borderColor: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
299
307
  '& p': {
300
308
  fontSize: theme.typography.pxToRem(12.5),
301
- fontFamily: lightTheme.typography.fontFamilyCode,
302
- fontWeight: lightTheme.typography.fontWeightMedium,
309
+ fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
310
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
303
311
  lineHeight: theme.typography.pxToRem(24),
304
312
  textIndent: 20
305
313
  },
@@ -307,7 +315,7 @@ const Root = styled('div')(({
307
315
  position: 'absolute',
308
316
  // eslint-disable-next-line material-ui/straight-quotes
309
317
  content: '"“"',
310
- color: `var(--muidocs-palette-grey-300, ${lightTheme.palette.grey[300]})`,
318
+ color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
311
319
  fontSize: '2.5rem',
312
320
  top: 8,
313
321
  marginLeft: -6,
@@ -320,9 +328,9 @@ const Root = styled('div')(({
320
328
  padding: '12px',
321
329
  margin: '16px 0',
322
330
  border: '1px solid',
323
- color: `var(--muidocs-palette-text-secondary, ${lightTheme.palette.text.secondary})`,
324
- borderColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[100]})`,
325
- borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? lightTheme.shape.borderRadius}px)`,
331
+ color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`,
332
+ borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
333
+ borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
326
334
  '& .MuiCallout-content': {
327
335
  minWidth: 0,
328
336
  // Allows content to shrink. Useful when callout contains code block
@@ -330,8 +338,8 @@ const Root = styled('div')(({
330
338
  },
331
339
  '& code': {
332
340
  height: 'fit-content',
333
- backgroundColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[100]})`,
334
- borderColor: `var(--muidocs-palette-grey-300, ${lightTheme.palette.grey[300]})`
341
+ backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
342
+ borderColor: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`
335
343
  },
336
344
  '& p': {
337
345
  marginBottom: '8px',
@@ -348,7 +356,7 @@ const Root = styled('div')(({
348
356
  '& pre': {
349
357
  margin: '4px 0 0 0',
350
358
  borderRadius: '12px 12px 6px 12px',
351
- borderColor: alpha(lightTheme.palette.primaryDark[600], 0.6),
359
+ borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.6),
352
360
  '& code': {
353
361
  backgroundColor: 'transparent'
354
362
  }
@@ -376,65 +384,65 @@ const Root = styled('div')(({
376
384
  color: 'inherit'
377
385
  },
378
386
  '&.MuiCallout-error': {
379
- color: `var(--muidocs-palette-error-900, ${lightTheme.palette.error[900]})`,
380
- backgroundColor: `var(--muidocs-palette-error-50, ${lightTheme.palette.error[50]})`,
381
- borderColor: `var(--muidocs-palette-error-100, ${lightTheme.palette.error[100]})`,
387
+ color: `var(--muidocs-palette-error-900, ${_branding.brandingLightTheme.palette.error[900]})`,
388
+ backgroundColor: `var(--muidocs-palette-error-50, ${_branding.brandingLightTheme.palette.error[50]})`,
389
+ borderColor: `var(--muidocs-palette-error-100, ${_branding.brandingLightTheme.palette.error[100]})`,
382
390
  '& strong': {
383
- color: `var(--muidocs-palette-error-800, ${lightTheme.palette.error[800]})`
391
+ color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`
384
392
  },
385
393
  '& svg': {
386
- fill: `var(--muidocs-palette-error-500, ${lightTheme.palette.error[600]})`
394
+ fill: `var(--muidocs-palette-error-500, ${_branding.brandingLightTheme.palette.error[600]})`
387
395
  },
388
396
  '& a': {
389
- color: `var(--muidocs-palette-error-800, ${lightTheme.palette.error[800]})`,
390
- textDecorationColor: alpha(lightTheme.palette.error.main, 0.4),
397
+ color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`,
398
+ textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.error.main, 0.4),
391
399
  '&:hover': {
392
400
  textDecorationColor: 'inherit'
393
401
  }
394
402
  }
395
403
  },
396
404
  '&.MuiCallout-info': {
397
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
398
- backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`,
399
- borderColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[100]})`,
405
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
406
+ backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
407
+ borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
400
408
  '& strong': {
401
- color: `var(--muidocs-palette-primary-800, ${lightTheme.palette.primary[800]})`
409
+ color: `var(--muidocs-palette-primary-800, ${_branding.brandingLightTheme.palette.primary[800]})`
402
410
  },
403
411
  '& svg': {
404
- fill: `var(--muidocs-palette-grey-600, ${lightTheme.palette.grey[600]})`
412
+ fill: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`
405
413
  }
406
414
  },
407
415
  '&.MuiCallout-success': {
408
- color: `var(--muidocs-palette-success-900, ${lightTheme.palette.success[900]})`,
409
- backgroundColor: `var(--muidocs-palette-success-50, ${lightTheme.palette.success[50]})`,
410
- borderColor: `var(--muidocs-palette-success-100, ${lightTheme.palette.success[100]})`,
416
+ color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`,
417
+ backgroundColor: `var(--muidocs-palette-success-50, ${_branding.brandingLightTheme.palette.success[50]})`,
418
+ borderColor: `var(--muidocs-palette-success-100, ${_branding.brandingLightTheme.palette.success[100]})`,
411
419
  '& strong': {
412
- color: `var(--muidocs-palette-success-900, ${lightTheme.palette.success[900]})`
420
+ color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`
413
421
  },
414
422
  '& svg': {
415
- fill: `var(--muidocs-palette-success-600, ${lightTheme.palette.success[600]})`
423
+ fill: `var(--muidocs-palette-success-600, ${_branding.brandingLightTheme.palette.success[600]})`
416
424
  },
417
425
  '& a': {
418
- color: `var(--muidocs-palette-success-900, ${lightTheme.palette.success[900]})`,
419
- textDecorationColor: alpha(lightTheme.palette.success.main, 0.4),
426
+ color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`,
427
+ textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.success.main, 0.4),
420
428
  '&:hover': {
421
429
  textDecorationColor: 'inherit'
422
430
  }
423
431
  }
424
432
  },
425
433
  '&.MuiCallout-warning': {
426
- color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
427
- backgroundColor: alpha(lightTheme.palette.warning[50], 0.5),
428
- borderColor: alpha(lightTheme.palette.warning[700], 0.15),
434
+ color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
435
+ backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[50], 0.5),
436
+ borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[700], 0.15),
429
437
  '& strong': {
430
- color: `var(--muidocs-palette-warning-800, ${lightTheme.palette.warning[800]})`
438
+ color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`
431
439
  },
432
440
  '& svg': {
433
- fill: `var(--muidocs-palette-warning-600, ${lightTheme.palette.warning[600]})`
441
+ fill: `var(--muidocs-palette-warning-600, ${_branding.brandingLightTheme.palette.warning[600]})`
434
442
  },
435
443
  '& a': {
436
- color: `var(--muidocs-palette-warning-800, ${lightTheme.palette.warning[800]})`,
437
- textDecorationColor: alpha(lightTheme.palette.warning.main, 0.4),
444
+ color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`,
445
+ textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning.main, 0.4),
438
446
  '&:hover': {
439
447
  textDecorationColor: 'inherit'
440
448
  }
@@ -459,30 +467,30 @@ const Root = styled('div')(({
459
467
  margin: theme.spacing(5, 0),
460
468
  border: 0,
461
469
  flexShrink: 0,
462
- backgroundColor: `var(--muidocs-palette-divider, ${lightTheme.palette.divider})`
470
+ backgroundColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
463
471
  },
464
472
  '& kbd.key': {
465
473
  padding: 6,
466
474
  display: 'inline-block',
467
475
  whiteSpace: 'nowrap',
468
476
  margin: '0 1px',
469
- fontFamily: lightTheme.typography.fontFamilyCode,
470
- fontSize: lightTheme.typography.pxToRem(11),
471
- color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
477
+ fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
478
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(11),
479
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
472
480
  lineHeight: '10px',
473
481
  verticalAlign: 'middle',
474
482
  borderRadius: 6,
475
- border: `1px solid var(--muidocs-palette-grey-300, ${lightTheme.palette.grey[300]})`,
476
- backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`,
477
- boxShadow: `inset 0 -2px 0 var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`
483
+ border: `1px solid var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
484
+ backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
485
+ boxShadow: `inset 0 -2px 0 var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`
478
486
  },
479
487
  '& details': {
480
488
  width: '100%',
481
489
  padding: theme.spacing(1),
482
490
  marginBottom: theme.spacing(1.5),
483
491
  border: '1px solid',
484
- borderColor: `var(--muidocs-palette-divider, ${lightTheme.palette.divider})`,
485
- borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? lightTheme.shape.borderRadius}px)`,
492
+ borderColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
493
+ borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
486
494
  '& pre': {
487
495
  marginTop: theme.spacing(1)
488
496
  }
@@ -508,7 +516,7 @@ const Root = styled('div')(({
508
516
  backgroundColor: 'currentColor'
509
517
  },
510
518
  '&:hover': {
511
- backgroundColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[50]})`
519
+ backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[50]})`
512
520
  }
513
521
  },
514
522
  '& details[open] > summary::after': {
@@ -522,7 +530,7 @@ const Root = styled('div')(({
522
530
  fontSize: 10,
523
531
  '&:has(.MuiCode-title)': {
524
532
  margin: theme.spacing(2, 'auto'),
525
- border: `1px solid var(--muidocs-palette-primaryDark-700, ${lightTheme.palette.primaryDark[700]})`,
533
+ border: `1px solid var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
526
534
  borderRadius: theme.shape.borderRadius,
527
535
  overflow: 'clip',
528
536
  '& .MuiCode-copy': {
@@ -547,14 +555,14 @@ const Root = styled('div')(({
547
555
  padding: theme.spacing(0.5),
548
556
  paddingBottom: '5px',
549
557
  // optical alignment
550
- fontFamily: lightTheme.typography.fontFamily,
551
- fontWeight: lightTheme.typography.fontWeightMedium,
552
- fontSize: lightTheme.typography.pxToRem(12),
558
+ fontFamily: _branding.brandingLightTheme.typography.fontFamily,
559
+ fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
560
+ fontSize: _branding.brandingLightTheme.typography.pxToRem(12),
553
561
  borderRadius: 6,
554
562
  border: '1px solid',
555
- borderColor: alpha(lightTheme.palette.primaryDark[600], 0.5),
556
- backgroundColor: alpha(lightTheme.palette.primaryDark[800], 0.5),
557
- color: `var(--muidocs-palette-grey-300, ${lightTheme.palette.grey[300]})`,
563
+ borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.5),
564
+ backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[800], 0.5),
565
+ color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
558
566
  transition: theme.transitions.create(['background', 'borderColor', 'display'], {
559
567
  duration: theme.transitions.duration.shortest
560
568
  }),
@@ -565,8 +573,8 @@ const Root = styled('div')(({
565
573
  display: 'none'
566
574
  },
567
575
  '&:hover, &:focus': {
568
- borderColor: `var(--muidocs-palette-primaryDark-400, ${lightTheme.palette.primaryDark[400]})`,
569
- backgroundColor: `var(--muidocs-palette-primaryDark-700, ${lightTheme.palette.primaryDark[700]})`,
576
+ borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
577
+ backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
570
578
  color: '#FFF',
571
579
  '& .MuiCode-copyKeypress': {
572
580
  display: 'block',
@@ -583,8 +591,8 @@ const Root = styled('div')(({
583
591
  right: 34
584
592
  },
585
593
  '&[data-copied]': {
586
- borderColor: `var(--muidocs-palette-primaryDark-400, ${lightTheme.palette.primaryDark[400]})`,
587
- backgroundColor: `var(--muidocs-palette-primaryDark-700, ${lightTheme.palette.primaryDark[700]})`,
594
+ borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
595
+ backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
588
596
  color: '#fff',
589
597
  '& .MuiCode-copyKeypress': {
590
598
  opacity: 0
@@ -636,12 +644,12 @@ const Root = styled('div')(({
636
644
  display: 'flex',
637
645
  alignItems: 'center',
638
646
  gap: theme.spacing(1.5),
639
- borderBottom: `1px solid var(--muidocs-palette-primaryDark-700, ${lightTheme.palette.primaryDark[700]})`,
640
- backgroundColor: `var(--muidocs-palette-primaryDark-900, ${lightTheme.palette.primaryDark[900]})`,
647
+ borderBottom: `1px solid var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
648
+ backgroundColor: `var(--muidocs-palette-primaryDark-900, ${_branding.brandingLightTheme.palette.primaryDark[900]})`,
641
649
  fontFamily: theme.typography.fontFamilyCode,
642
650
  fontSize: theme.typography.pxToRem(12),
643
651
  fontWeight: theme.typography.fontWeightBold,
644
- color: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
652
+ color: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
645
653
  '::before': {
646
654
  content: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3333 3.99996H8L7.06 3.05996C6.80667 2.80663 6.46667 2.66663 6.11334 2.66663H2.66667C1.93334 2.66663 1.34 3.26663 1.34 3.99996L1.33334 12C1.33334 12.7333 1.93334 13.3333 2.66667 13.3333H13.3333C14.0667 13.3333 14.6667 12.7333 14.6667 12V5.33329C14.6667 4.59996 14.0667 3.99996 13.3333 3.99996ZM12.6667 12H3.33334C2.96667 12 2.66667 11.7 2.66667 11.3333V5.99996C2.66667 5.63329 2.96667 5.33329 3.33334 5.33329H12.6667C13.0333 5.33329 13.3333 5.63329 13.3333 5.99996V11.3333C13.3333 11.7 13.0333 12 12.6667 12Z' fill='%2399CCF3'/%3E%3C/svg%3E%0A");`,
647
655
  width: '16px',
@@ -660,38 +668,38 @@ const Root = styled('div')(({
660
668
  color: 'rgb(255, 255, 255)',
661
669
  '& :not(pre) > code': {
662
670
  // inline code block
663
- color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
664
- borderColor: alpha(darkTheme.palette.primaryDark[600], 0.6),
665
- backgroundColor: `var(--muidocs-palette-grey-900, ${darkTheme.palette.grey[900]})`
671
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingDarkTheme.palette.text.primary})`,
672
+ borderColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.primaryDark[600], 0.6),
673
+ backgroundColor: `var(--muidocs-palette-grey-900, ${_branding.brandingDarkTheme.palette.grey[900]})`
666
674
  },
667
675
  '& strong': {
668
- color: `var(--muidocs-palette-grey-200, ${darkTheme.palette.grey[200]})`
676
+ color: `var(--muidocs-palette-grey-200, ${_branding.brandingDarkTheme.palette.grey[200]})`
669
677
  },
670
678
  '& hr': {
671
- backgroundColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
679
+ backgroundColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
672
680
  },
673
681
  '& a': {
674
- color: `var(--muidocs-palette-primary-300, ${darkTheme.palette.primary[300]})`
682
+ color: `var(--muidocs-palette-primary-300, ${_branding.brandingDarkTheme.palette.primary[300]})`
675
683
  },
676
684
  '& a code': {
677
- color: `var(--muidocs-palette-primary-light, ${darkTheme.palette.primary.light})`
685
+ color: `var(--muidocs-palette-primary-light, ${_branding.brandingDarkTheme.palette.primary.light})`
678
686
  },
679
687
  '& h1, & h2, & h3, & h4, & h5': {
680
- color: `var(--muidocs-palette-grey-50, ${darkTheme.palette.grey[50]})`,
688
+ color: `var(--muidocs-palette-grey-50, ${_branding.brandingDarkTheme.palette.grey[50]})`,
681
689
  '& .anchor-icon, & .comment-link': {
682
- color: `var(--muidocs-palette-primary-300, ${darkTheme.palette.primaryDark[400]})`,
690
+ color: `var(--muidocs-palette-primary-300, ${_branding.brandingDarkTheme.palette.primaryDark[400]})`,
683
691
  '&:hover': {
684
- color: `var(--muidocs-palette-primary-100, ${darkTheme.palette.primary[100]})`,
685
- borderColor: `var(--muidocs-palette-primary-900, ${darkTheme.palette.primary[900]})`,
686
- backgroundColor: alpha(darkTheme.palette.primary[900], 0.6)
692
+ color: `var(--muidocs-palette-primary-100, ${_branding.brandingDarkTheme.palette.primary[100]})`,
693
+ borderColor: `var(--muidocs-palette-primary-900, ${_branding.brandingDarkTheme.palette.primary[900]})`,
694
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.primary[900], 0.6)
687
695
  }
688
696
  }
689
697
  },
690
698
  '& p, & ul, & ol': {
691
- color: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`
699
+ color: `var(--muidocs-palette-grey-400, ${_branding.brandingDarkTheme.palette.grey[400]})`
692
700
  },
693
701
  '& h1 code, & h2 code, & h3 code': {
694
- color: `var(--muidocs-palette-grey-100, ${darkTheme.palette.grey[100]})`
702
+ color: `var(--muidocs-palette-grey-100, ${_branding.brandingDarkTheme.palette.grey[100]})`
695
703
  },
696
704
  '& table': {
697
705
  '& .required': {
@@ -704,95 +712,95 @@ const Root = styled('div')(({
704
712
  color: '#ffb6ec'
705
713
  },
706
714
  '& .prop-default, & .slot-default': {
707
- borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
715
+ borderColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
708
716
  }
709
717
  },
710
718
  '& td': {
711
- color: `var(--muidocs-palette-text-secondary, ${darkTheme.palette.text.secondary})`,
712
- borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
719
+ color: `var(--muidocs-palette-text-secondary, ${_branding.brandingDarkTheme.palette.text.secondary})`,
720
+ borderColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
713
721
  },
714
722
  '& th': {
715
- color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
716
- borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
723
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingDarkTheme.palette.text.primary})`,
724
+ borderColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
717
725
  },
718
726
  '& blockquote': {
719
- borderColor: `var(--muidocs-palette-primaryDark-700, ${darkTheme.palette.primaryDark[700]})`,
727
+ borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingDarkTheme.palette.primaryDark[700]})`,
720
728
  '&::before': {
721
- color: `var(--muidocs-palette-primaryDark-500, ${darkTheme.palette.primaryDark[500]})`
729
+ color: `var(--muidocs-palette-primaryDark-500, ${_branding.brandingDarkTheme.palette.primaryDark[500]})`
722
730
  }
723
731
  },
724
732
  '& .MuiCallout-root': {
725
- borderColor: `var(--muidocs-palette-primaryDark-700, ${darkTheme.palette.primaryDark[700]})`,
733
+ borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingDarkTheme.palette.primaryDark[700]})`,
726
734
  '& code': {
727
- backgroundColor: `var(--muidocs-palette-primaryDark-600, ${darkTheme.palette.primaryDark[600]})`,
728
- borderColor: `var(--muidocs-palette-primaryDark-500, ${darkTheme.palette.primaryDark[500]})`
735
+ backgroundColor: `var(--muidocs-palette-primaryDark-600, ${_branding.brandingDarkTheme.palette.primaryDark[600]})`,
736
+ borderColor: `var(--muidocs-palette-primaryDark-500, ${_branding.brandingDarkTheme.palette.primaryDark[500]})`
729
737
  },
730
738
  '&.MuiCallout-error': {
731
- color: `var(--muidocs-palette-error-50, ${darkTheme.palette.error[50]})`,
732
- backgroundColor: alpha(darkTheme.palette.error[700], 0.15),
733
- borderColor: alpha(darkTheme.palette.error[400], 0.1),
739
+ color: `var(--muidocs-palette-error-50, ${_branding.brandingDarkTheme.palette.error[50]})`,
740
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.error[700], 0.15),
741
+ borderColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.error[400], 0.1),
734
742
  '& strong': {
735
- color: `var(--muidocs-palette-error-300, ${darkTheme.palette.error[300]})`
743
+ color: `var(--muidocs-palette-error-300, ${_branding.brandingDarkTheme.palette.error[300]})`
736
744
  },
737
745
  '& svg': {
738
- fill: `var(--muidocs-palette-error-500, ${darkTheme.palette.error[500]})`
746
+ fill: `var(--muidocs-palette-error-500, ${_branding.brandingDarkTheme.palette.error[500]})`
739
747
  },
740
748
  '& a': {
741
- color: `var(--muidocs-palette-error-200, ${darkTheme.palette.error[200]})`
749
+ color: `var(--muidocs-palette-error-200, ${_branding.brandingDarkTheme.palette.error[200]})`
742
750
  }
743
751
  },
744
752
  '&.MuiCallout-info': {
745
- color: `var(--muidocs-palette-grey-50, ${darkTheme.palette.grey[50]})`,
746
- backgroundColor: alpha(darkTheme.palette.grey[700], 0.15),
747
- borderColor: alpha(darkTheme.palette.grey[800], 0.5),
753
+ color: `var(--muidocs-palette-grey-50, ${_branding.brandingDarkTheme.palette.grey[50]})`,
754
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.grey[700], 0.15),
755
+ borderColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.grey[800], 0.5),
748
756
  '& strong': {
749
- color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
757
+ color: `var(--muidocs-palette-primary-200, ${_branding.brandingDarkTheme.palette.primary[200]})`
750
758
  },
751
759
  '& svg': {
752
- fill: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`
760
+ fill: `var(--muidocs-palette-grey-400, ${_branding.brandingDarkTheme.palette.grey[400]})`
753
761
  }
754
762
  },
755
763
  '&.MuiCallout-success': {
756
- color: `var(--muidocs-palette-success-50, ${darkTheme.palette.success[50]})`,
757
- backgroundColor: alpha(darkTheme.palette.success[700], 0.12),
758
- borderColor: alpha(lightTheme.palette.success[400], 0.1),
764
+ color: `var(--muidocs-palette-success-50, ${_branding.brandingDarkTheme.palette.success[50]})`,
765
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.success[700], 0.12),
766
+ borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.success[400], 0.1),
759
767
  '& strong': {
760
- color: `var(--muidocs-palette-success-200, ${darkTheme.palette.success[200]})`
768
+ color: `var(--muidocs-palette-success-200, ${_branding.brandingDarkTheme.palette.success[200]})`
761
769
  },
762
770
  '& svg': {
763
- fill: `var(--muidocs-palette-success-500, ${darkTheme.palette.success[500]})`
771
+ fill: `var(--muidocs-palette-success-500, ${_branding.brandingDarkTheme.palette.success[500]})`
764
772
  },
765
773
  '& a': {
766
- color: `var(--muidocs-palette-success-100, ${darkTheme.palette.success[100]})`
774
+ color: `var(--muidocs-palette-success-100, ${_branding.brandingDarkTheme.palette.success[100]})`
767
775
  }
768
776
  },
769
777
  '&.MuiCallout-warning': {
770
- color: `var(--muidocs-palette-warning-50, ${darkTheme.palette.warning[50]})`,
771
- backgroundColor: alpha(darkTheme.palette.warning[700], 0.12),
772
- borderColor: alpha(darkTheme.palette.warning[400], 0.1),
778
+ color: `var(--muidocs-palette-warning-50, ${_branding.brandingDarkTheme.palette.warning[50]})`,
779
+ backgroundColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.warning[700], 0.12),
780
+ borderColor: (0, _styles.alpha)(_branding.brandingDarkTheme.palette.warning[400], 0.1),
773
781
  '& strong': {
774
- color: `var(--muidocs-palette-warning-200, ${darkTheme.palette.warning[200]})`
782
+ color: `var(--muidocs-palette-warning-200, ${_branding.brandingDarkTheme.palette.warning[200]})`
775
783
  },
776
784
  '& svg': {
777
- fill: `var(--muidocs-palette-warning-400, ${darkTheme.palette.warning[400]})`
785
+ fill: `var(--muidocs-palette-warning-400, ${_branding.brandingDarkTheme.palette.warning[400]})`
778
786
  },
779
787
  '& a': {
780
- color: `var(--muidocs-palette-warning-100, ${darkTheme.palette.warning[100]})`
788
+ color: `var(--muidocs-palette-warning-100, ${_branding.brandingDarkTheme.palette.warning[100]})`
781
789
  }
782
790
  }
783
791
  },
784
792
  '& kbd.key': {
785
- color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
786
- backgroundColor: `var(--muidocs-palette-primaryDark-800, ${darkTheme.palette.primaryDark[800]})`,
787
- border: `1px solid var(--muidocs-palette-primaryDark-600, ${darkTheme.palette.primaryDark[600]})`,
788
- boxShadow: `inset 0 -2px 0 var(--muidocs-palette-primaryDark-700, ${darkTheme.palette.primaryDark[700]})`
793
+ color: `var(--muidocs-palette-text-primary, ${_branding.brandingDarkTheme.palette.text.primary})`,
794
+ backgroundColor: `var(--muidocs-palette-primaryDark-800, ${_branding.brandingDarkTheme.palette.primaryDark[800]})`,
795
+ border: `1px solid var(--muidocs-palette-primaryDark-600, ${_branding.brandingDarkTheme.palette.primaryDark[600]})`,
796
+ boxShadow: `inset 0 -2px 0 var(--muidocs-palette-primaryDark-700, ${_branding.brandingDarkTheme.palette.primaryDark[700]})`
789
797
  },
790
798
  '& details': {
791
- borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
799
+ borderColor: `var(--muidocs-palette-divider, ${_branding.brandingDarkTheme.palette.divider})`
792
800
  },
793
801
  '& summary': {
794
802
  '&:hover': {
795
- backgroundColor: `var(--muidocs-palette-primaryDark-800, ${darkTheme.palette.primaryDark[800]})`
803
+ backgroundColor: `var(--muidocs-palette-primaryDark-800, ${_branding.brandingDarkTheme.palette.primaryDark[800]})`
796
804
  }
797
805
  },
798
806
  '& .feature-list': {
@@ -814,14 +822,14 @@ function handleHeaderClick(event) {
814
822
  event.preventDefault();
815
823
  }
816
824
  }
817
- export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownElement(props, ref) {
825
+ const MarkdownElement = exports.MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownElement(props, ref) {
818
826
  const {
819
827
  className,
820
828
  renderedMarkdown,
821
829
  ...other
822
830
  } = props;
823
831
  const rootRef = React.useRef(null);
824
- const handleRef = useForkRef(rootRef, ref);
832
+ const handleRef = (0, _useForkRef.default)(rootRef, ref);
825
833
  React.useEffect(() => {
826
834
  const elements = rootRef.current.getElementsByClassName('title-link-to-anchor');
827
835
  for (let i = 0; i < elements.length; i += 1) {
@@ -838,8 +846,8 @@ export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownEl
838
846
  __html: renderedMarkdown
839
847
  };
840
848
  }
841
- return /*#__PURE__*/_jsx(Root, {
842
- className: clsx('markdown-body', className),
849
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
850
+ className: (0, _clsx.default)('markdown-body', className),
843
851
  ...more,
844
852
  ...other,
845
853
  ref: handleRef