@mui/internal-core-docs 0.0.1 → 9.0.0-canary.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 (269) hide show
  1. package/Ad/Ad.d.ts +5 -0
  2. package/Ad/Ad.js +226 -0
  3. package/Ad/AdCarbon.d.ts +2 -0
  4. package/Ad/AdCarbon.js +125 -0
  5. package/Ad/AdDisplay.d.ts +16 -0
  6. package/Ad/AdDisplay.js +86 -0
  7. package/Ad/AdGuest.d.ts +10 -0
  8. package/Ad/AdGuest.js +29 -0
  9. package/Ad/AdInHouse.d.ts +4 -0
  10. package/Ad/AdInHouse.js +14 -0
  11. package/Ad/AdManager.d.ts +19 -0
  12. package/Ad/AdManager.js +36 -0
  13. package/Ad/AdProvider.d.ts +15 -0
  14. package/Ad/AdProvider.js +24 -0
  15. package/Ad/ad.styles.d.ts +4 -0
  16. package/Ad/ad.styles.js +91 -0
  17. package/Ad/index.d.ts +5 -0
  18. package/Ad/index.js +7 -0
  19. package/ApiPage/ApiWarningAlert.d.ts +10 -0
  20. package/ApiPage/ApiWarningAlert.js +22 -0
  21. package/ApiPage/definitions/classes.d.ts +18 -0
  22. package/ApiPage/definitions/classes.js +54 -0
  23. package/ApiPage/definitions/index.d.ts +4 -0
  24. package/ApiPage/definitions/index.js +4 -0
  25. package/ApiPage/definitions/properties.d.ts +58 -0
  26. package/ApiPage/definitions/properties.js +110 -0
  27. package/ApiPage/definitions/slots.d.ts +16 -0
  28. package/ApiPage/definitions/slots.js +39 -0
  29. package/ApiPage/definitions/types.d.ts +53 -0
  30. package/ApiPage/definitions/types.js +1 -0
  31. package/ApiPage/index.d.ts +2 -0
  32. package/ApiPage/index.js +2 -0
  33. package/ApiPage/list/ClassesList.d.ts +11 -0
  34. package/ApiPage/list/ClassesList.js +103 -0
  35. package/ApiPage/list/ExpandableApiItem.d.ts +18 -0
  36. package/ApiPage/list/ExpandableApiItem.js +241 -0
  37. package/ApiPage/list/PropertiesList.d.ts +7 -0
  38. package/ApiPage/list/PropertiesList.js +263 -0
  39. package/ApiPage/list/SlotsList.d.ts +7 -0
  40. package/ApiPage/list/SlotsList.js +93 -0
  41. package/ApiPage/list/index.d.ts +1 -0
  42. package/ApiPage/list/index.js +1 -0
  43. package/ApiPage/private.d.ts +3 -0
  44. package/ApiPage/private.js +3 -0
  45. package/ApiPage/sections/ClassesSection.d.ts +34 -0
  46. package/ApiPage/sections/ClassesSection.js +76 -0
  47. package/ApiPage/sections/PropertiesSection.d.ts +45 -0
  48. package/ApiPage/sections/PropertiesSection.js +59 -0
  49. package/ApiPage/sections/SlotsSection.d.ts +24 -0
  50. package/ApiPage/sections/SlotsSection.js +61 -0
  51. package/ApiPage/sections/ToggleDisplayOption.d.ts +17 -0
  52. package/ApiPage/sections/ToggleDisplayOption.js +161 -0
  53. package/ApiPage/sections/index.d.ts +4 -0
  54. package/ApiPage/sections/index.js +4 -0
  55. package/ApiPage/table/ClassesTable.d.ts +7 -0
  56. package/ApiPage/table/ClassesTable.js +116 -0
  57. package/ApiPage/table/PropertiesTable.d.ts +6 -0
  58. package/ApiPage/table/PropertiesTable.js +286 -0
  59. package/ApiPage/table/SlotsTable.d.ts +6 -0
  60. package/ApiPage/table/SlotsTable.js +126 -0
  61. package/ApiPage/table/StyledTableContainer.d.ts +1 -0
  62. package/ApiPage/table/StyledTableContainer.js +42 -0
  63. package/ApiPage/types.d.ts +11 -0
  64. package/ApiPage/types.js +1 -0
  65. package/CHANGELOG.md +1651 -0
  66. package/CodeCopy/CodeCopy.d.ts +22 -0
  67. package/CodeCopy/CodeCopy.js +172 -0
  68. package/CodeCopy/CodeCopyButton.d.ts +4 -0
  69. package/CodeCopy/CodeCopyButton.js +40 -0
  70. package/CodeCopy/index.d.ts +3 -0
  71. package/CodeCopy/index.js +3 -0
  72. package/CodeCopy/useClipboardCopy.d.ts +4 -0
  73. package/CodeCopy/useClipboardCopy.js +21 -0
  74. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +8 -0
  75. package/ComponentLinkHeader/ComponentLinkHeader.js +197 -0
  76. package/ComponentLinkHeader/index.d.ts +2 -0
  77. package/ComponentLinkHeader/index.js +2 -0
  78. package/DemoContext/DemoContext.d.ts +86 -0
  79. package/DemoContext/DemoContext.js +13 -0
  80. package/DemoContext/index.d.ts +2 -0
  81. package/DemoContext/index.js +1 -0
  82. package/DocsApp/AnalyticsProvider.d.ts +17 -0
  83. package/DocsApp/AnalyticsProvider.js +229 -0
  84. package/DocsApp/DocsApp.d.ts +79 -0
  85. package/DocsApp/DocsApp.js +105 -0
  86. package/DocsApp/GoogleAnalytics.d.ts +9 -0
  87. package/DocsApp/GoogleAnalytics.js +129 -0
  88. package/DocsApp/StyledEngineProvider.d.ts +8 -0
  89. package/DocsApp/StyledEngineProvider.js +38 -0
  90. package/DocsApp/consoleBanner.d.ts +1 -0
  91. package/DocsApp/consoleBanner.js +18 -0
  92. package/DocsApp/createEmotionCache.d.ts +1 -0
  93. package/DocsApp/createEmotionCache.js +12 -0
  94. package/DocsApp/createGetInitialProps.d.ts +30 -0
  95. package/DocsApp/createGetInitialProps.js +29 -0
  96. package/DocsApp/index.d.ts +5 -0
  97. package/DocsApp/index.js +4 -0
  98. package/DocsApp/loadDependencies.d.ts +1 -0
  99. package/DocsApp/loadDependencies.js +9 -0
  100. package/DocsApp/reportWebVitals.d.ts +13 -0
  101. package/DocsApp/reportWebVitals.js +22 -0
  102. package/DocsApp/serviceWorker.d.ts +1 -0
  103. package/DocsApp/serviceWorker.js +59 -0
  104. package/DocsProvider/DocsProvider.d.ts +24 -0
  105. package/DocsProvider/DocsProvider.js +31 -0
  106. package/DocsProvider/index.d.ts +1 -0
  107. package/DocsProvider/index.js +1 -0
  108. package/Document/Document.d.ts +16 -0
  109. package/Document/Document.js +147 -0
  110. package/Document/getInitialProps.d.ts +18 -0
  111. package/Document/getInitialProps.js +60 -0
  112. package/Document/index.d.ts +2 -0
  113. package/Document/index.js +2 -0
  114. package/HighlightedCode/HighlightedCode.d.ts +14 -0
  115. package/HighlightedCode/HighlightedCode.js +67 -0
  116. package/HighlightedCode/index.d.ts +1 -0
  117. package/HighlightedCode/index.js +1 -0
  118. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +28 -0
  119. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +362 -0
  120. package/HighlightedCodeWithTabs/index.d.ts +2 -0
  121. package/HighlightedCodeWithTabs/index.js +2 -0
  122. package/IconImage/IconImage.d.ts +11 -0
  123. package/IconImage/IconImage.js +83 -0
  124. package/IconImage/index.d.ts +1 -0
  125. package/IconImage/index.js +1 -0
  126. package/InfoCard/InfoCard.d.ts +22 -0
  127. package/InfoCard/InfoCard.js +91 -0
  128. package/InfoCard/index.d.ts +1 -0
  129. package/InfoCard/index.js +1 -0
  130. package/LICENSE +21 -0
  131. package/Link/Link.d.ts +25 -0
  132. package/Link/Link.js +75 -0
  133. package/Link/MarkdownLinks.d.ts +2 -0
  134. package/Link/MarkdownLinks.js +84 -0
  135. package/Link/SkipLink.d.ts +1 -0
  136. package/Link/SkipLink.js +64 -0
  137. package/Link/index.d.ts +3 -0
  138. package/Link/index.js +3 -0
  139. package/MarkdownElement/MarkdownElement.d.ts +7 -0
  140. package/MarkdownElement/MarkdownElement.js +847 -0
  141. package/MarkdownElement/index.d.ts +1 -0
  142. package/MarkdownElement/index.js +1 -0
  143. package/MuiPage/MuiPage.d.ts +67 -0
  144. package/MuiPage/MuiPage.js +1 -0
  145. package/MuiPage/index.d.ts +1 -0
  146. package/MuiPage/index.js +1 -0
  147. package/NextNProgressBar/NProgressBar.d.ts +6 -0
  148. package/NextNProgressBar/NProgressBar.js +91 -0
  149. package/NextNProgressBar/NextNProgressBar.d.ts +1 -0
  150. package/NextNProgressBar/NextNProgressBar.js +42 -0
  151. package/NextNProgressBar/index.d.ts +1 -0
  152. package/NextNProgressBar/index.js +1 -0
  153. package/PageContext/PageContext.d.ts +32 -0
  154. package/PageContext/PageContext.js +6 -0
  155. package/PageContext/index.d.ts +2 -0
  156. package/PageContext/index.js +1 -0
  157. package/README.md +26 -0
  158. package/SectionHeadline/SectionHeadline.d.ts +13 -0
  159. package/SectionHeadline/SectionHeadline.js +81 -0
  160. package/SectionHeadline/index.d.ts +2 -0
  161. package/SectionHeadline/index.js +2 -0
  162. package/SectionTitle/SectionTitle.d.ts +6 -0
  163. package/SectionTitle/SectionTitle.js +29 -0
  164. package/SectionTitle/index.d.ts +1 -0
  165. package/SectionTitle/index.js +1 -0
  166. package/ThemeContext/ThemeContext.d.ts +92 -0
  167. package/ThemeContext/ThemeContext.js +200 -0
  168. package/ThemeContext/index.d.ts +1 -0
  169. package/ThemeContext/index.js +1 -0
  170. package/branding/BrandingCssVarsProvider.d.ts +27 -0
  171. package/branding/BrandingCssVarsProvider.js +170 -0
  172. package/branding/BrandingProvider.d.ts +9 -0
  173. package/branding/BrandingProvider.js +17 -0
  174. package/branding/brandingTheme.d.ts +147 -0
  175. package/branding/brandingTheme.js +1534 -0
  176. package/branding/index.d.ts +3 -0
  177. package/branding/index.js +3 -0
  178. package/codeStyling/codeStyling.d.ts +7 -0
  179. package/codeStyling/codeStyling.js +80 -0
  180. package/codeStyling/index.d.ts +1 -0
  181. package/codeStyling/index.js +1 -0
  182. package/codeVariant/codeVariant.d.ts +7 -0
  183. package/codeVariant/codeVariant.js +69 -0
  184. package/codeVariant/index.d.ts +1 -0
  185. package/codeVariant/index.js +1 -0
  186. package/constants/constants.d.ts +13 -0
  187. package/constants/constants.js +15 -0
  188. package/constants/index.d.ts +1 -0
  189. package/constants/index.js +1 -0
  190. package/findActivePage/findActivePage.d.ts +5 -0
  191. package/findActivePage/findActivePage.js +35 -0
  192. package/findActivePage/index.d.ts +1 -0
  193. package/findActivePage/index.js +1 -0
  194. package/getProductInfoFromUrl/getProductInfoFromUrl.d.ts +8 -0
  195. package/getProductInfoFromUrl/getProductInfoFromUrl.js +50 -0
  196. package/getProductInfoFromUrl/index.d.ts +2 -0
  197. package/getProductInfoFromUrl/index.js +1 -0
  198. package/globalSelector/globalSelector.d.ts +2 -0
  199. package/globalSelector/globalSelector.js +17 -0
  200. package/globalSelector/index.d.ts +1 -0
  201. package/globalSelector/index.js +1 -0
  202. package/helpers/helpers.d.ts +31 -0
  203. package/helpers/helpers.js +87 -0
  204. package/helpers/index.d.ts +2 -0
  205. package/helpers/index.js +1 -0
  206. package/i18n/i18n.d.ts +27 -0
  207. package/i18n/i18n.js +111 -0
  208. package/i18n/index.d.ts +1 -0
  209. package/i18n/index.js +1 -0
  210. package/mapApiPageTranslations/index.d.ts +1 -0
  211. package/mapApiPageTranslations/index.js +1 -0
  212. package/mapApiPageTranslations/mapApiPageTranslations.d.ts +11 -0
  213. package/mapApiPageTranslations/mapApiPageTranslations.js +46 -0
  214. package/nextFonts/fonts/GeneralSans-Bold.ttf +0 -0
  215. package/nextFonts/fonts/GeneralSans-Bold.woff2 +0 -0
  216. package/nextFonts/fonts/GeneralSans-Medium.ttf +0 -0
  217. package/nextFonts/fonts/GeneralSans-Medium.woff2 +0 -0
  218. package/nextFonts/fonts/GeneralSans-Regular.ttf +0 -0
  219. package/nextFonts/fonts/GeneralSans-Regular.woff2 +0 -0
  220. package/nextFonts/fonts/GeneralSans-Semibold-subset.woff2 +0 -0
  221. package/nextFonts/fonts/GeneralSans-Semibold.ttf +0 -0
  222. package/nextFonts/fonts/GeneralSans-Semibold.woff2 +0 -0
  223. package/nextFonts/fonts/IBMPlexSans-Bold.ttf +0 -0
  224. package/nextFonts/fonts/IBMPlexSans-Bold.woff +0 -0
  225. package/nextFonts/fonts/IBMPlexSans-Bold.woff2 +0 -0
  226. package/nextFonts/fonts/IBMPlexSans-Medium.ttf +0 -0
  227. package/nextFonts/fonts/IBMPlexSans-Medium.woff +0 -0
  228. package/nextFonts/fonts/IBMPlexSans-Medium.woff2 +0 -0
  229. package/nextFonts/fonts/IBMPlexSans-Regular-subset.woff2 +0 -0
  230. package/nextFonts/fonts/IBMPlexSans-Regular.ttf +0 -0
  231. package/nextFonts/fonts/IBMPlexSans-Regular.woff +0 -0
  232. package/nextFonts/fonts/IBMPlexSans-Regular.woff2 +0 -0
  233. package/nextFonts/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  234. package/nextFonts/fonts/IBMPlexSans-SemiBold.woff +0 -0
  235. package/nextFonts/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
  236. package/nextFonts/index.d.ts +6 -0
  237. package/nextFonts/index.js +59 -0
  238. package/package.json +426 -3
  239. package/svgIcons/BundleSizeIcon.d.ts +4 -0
  240. package/svgIcons/BundleSizeIcon.js +13 -0
  241. package/svgIcons/FigmaIcon.d.ts +4 -0
  242. package/svgIcons/FigmaIcon.js +22 -0
  243. package/svgIcons/FileDownload.d.ts +6 -0
  244. package/svgIcons/FileDownload.js +13 -0
  245. package/svgIcons/JavaScript.d.ts +6 -0
  246. package/svgIcons/JavaScript.js +13 -0
  247. package/svgIcons/MarkdownIcon.d.ts +2 -0
  248. package/svgIcons/MarkdownIcon.js +22 -0
  249. package/svgIcons/MaterialDesignIcon.d.ts +4 -0
  250. package/svgIcons/MaterialDesignIcon.js +18 -0
  251. package/svgIcons/SketchIcon.d.ts +4 -0
  252. package/svgIcons/SketchIcon.js +27 -0
  253. package/svgIcons/TypeScript.d.ts +6 -0
  254. package/svgIcons/TypeScript.js +13 -0
  255. package/svgIcons/W3CIcon.d.ts +4 -0
  256. package/svgIcons/W3CIcon.js +15 -0
  257. package/translations/index.d.ts +3 -0
  258. package/translations/index.js +4 -0
  259. package/translations/translations.json +222 -0
  260. package/useLazyCSS/index.d.ts +1 -0
  261. package/useLazyCSS/index.js +1 -0
  262. package/useLazyCSS/useLazyCSS.d.ts +11 -0
  263. package/useLazyCSS/useLazyCSS.js +70 -0
  264. package/utils/index.d.ts +1 -0
  265. package/utils/index.js +1 -0
  266. package/utils/loadScript.d.ts +1 -0
  267. package/utils/loadScript.js +7 -0
  268. package/webpack/index.d.ts +17 -0
  269. package/webpack/index.js +1 -0
@@ -0,0 +1,286 @@
1
+ var _th, _th2, _th3, _th4, _a, _a2;
2
+ /* eslint-disable react/no-danger */
3
+ import * as React from 'react';
4
+ import { styled, alpha } from '@mui/material/styles';
5
+ import Tooltip from '@mui/material/Tooltip';
6
+ import { useTranslate } from "../../i18n/index.js";
7
+ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../../branding/index.js";
8
+ import { StyledTableContainer } from "./StyledTableContainer.js";
9
+ import { ApiWarningAlert } from "../ApiWarningAlert.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const StyledTable = styled('table')(({
12
+ theme
13
+ }) => ({
14
+ // Override docs/src/modules/components/MarkdownElement styles
15
+ '&&': {
16
+ display: 'table',
17
+ width: '100%'
18
+ },
19
+ '& .type-column': {
20
+ minWidth: '20%'
21
+ },
22
+ '& .default-column': {
23
+ minWidth: '20%'
24
+ },
25
+ '& .MuiApi-table-item-title': {
26
+ minWidth: '20%',
27
+ fontFamily: theme.typography.fontFamilyCode,
28
+ fontWeight: theme.typography.fontWeightSemiBold,
29
+ fontSize: theme.typography.pxToRem(13),
30
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`
31
+ },
32
+ '& .MuiApi-table-item-type': {
33
+ ...theme.typography.caption,
34
+ fontFamily: theme.typography.fontFamilyCode,
35
+ fontWeight: theme.typography.fontWeightRegular,
36
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
37
+ padding: '1px 4px',
38
+ borderRadius: 6,
39
+ border: '1px solid',
40
+ borderColor: alpha(darkTheme.palette.primary[100], 0.8),
41
+ backgroundColor: `var(--muidocs-palette-primary-50, ${lightTheme.palette.primary[50]})`
42
+ },
43
+ '& .MuiApi-table-item-signature-type': {
44
+ textDecoration: 'underline',
45
+ textDecorationStyle: 'dotted',
46
+ textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4),
47
+ fontWeight: theme.typography.fontWeightMedium,
48
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
49
+ '&:hover': {
50
+ textDecorationColor: 'inherit'
51
+ },
52
+ cursor: 'help'
53
+ },
54
+ '& .MuiApi-table-item-default': {
55
+ ...theme.typography.caption,
56
+ fontFamily: theme.typography.fontFamilyCode,
57
+ fontWeight: theme.typography.fontWeightRegular,
58
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
59
+ padding: '1px 4px',
60
+ borderRadius: 6,
61
+ border: '1px solid',
62
+ borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
63
+ backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`
64
+ },
65
+ '& .MuiPropTable-description-column': {
66
+ width: '40%',
67
+ paddingRight: 8,
68
+ '& .prop-table-description': {
69
+ marginBottom: 0
70
+ },
71
+ '& .prop-table-additional-description': {
72
+ marginTop: 12,
73
+ marginBottom: 0
74
+ },
75
+ '& .prop-table-alert': {
76
+ '& .MuiAlert-icon': {
77
+ margin: 0
78
+ }
79
+ }
80
+ },
81
+ '& .prop-table-signature': {
82
+ marginTop: 12,
83
+ marginBottom: 0,
84
+ display: 'flex',
85
+ flexDirection: 'column',
86
+ gap: 16,
87
+ '& .prop-table-title': {
88
+ fontWeight: theme.typography.fontWeightMedium
89
+ }
90
+ }
91
+ }), ({
92
+ theme
93
+ }) => ({
94
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
95
+ '& .MuiApi-table-item-title': {
96
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
97
+ },
98
+ '& .MuiApi-table-item-type': {
99
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
100
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`,
101
+ backgroundColor: alpha(darkTheme.palette.primary[900], 0.3)
102
+ },
103
+ '& .MuiApi-table-item-signature-type': {
104
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`,
105
+ textDecorationColor: alpha(darkTheme.palette.primary.main, 0.6)
106
+ },
107
+ '& .MuiApi-table-item-default': {
108
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
109
+ backgroundColor: `var(--muidocs-palette-grey-900, ${darkTheme.palette.grey[900]})`,
110
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
111
+ },
112
+ '& .prop-table-signature': {
113
+ '& .prop-table-title': {
114
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`
115
+ }
116
+ }
117
+ }
118
+ }));
119
+ function PropDescription({
120
+ description
121
+ }) {
122
+ const isUlPresent = description.includes('<ul>');
123
+ const ComponentToRender = isUlPresent ? 'div' : 'p';
124
+ return /*#__PURE__*/_jsx(ComponentToRender, {
125
+ className: "prop-table-description" // This className is used by Algolia
126
+ ,
127
+ dangerouslySetInnerHTML: {
128
+ __html: description
129
+ }
130
+ });
131
+ }
132
+ export default function PropertiesTable(props) {
133
+ const {
134
+ properties
135
+ } = props;
136
+ const hasDefaultColumn = properties.some(item => item.propDefault !== undefined);
137
+ const t = useTranslate();
138
+ return /*#__PURE__*/_jsx(StyledTableContainer, {
139
+ children: /*#__PURE__*/_jsxs(StyledTable, {
140
+ children: [/*#__PURE__*/_jsx("thead", {
141
+ children: /*#__PURE__*/_jsxs("tr", {
142
+ children: [_th || (_th = /*#__PURE__*/_jsx("th", {
143
+ children: 'Name'
144
+ })), _th2 || (_th2 = /*#__PURE__*/_jsx("th", {
145
+ children: 'Type'
146
+ })), hasDefaultColumn && (_th3 || (_th3 = /*#__PURE__*/_jsx("th", {
147
+ children: 'Default'
148
+ }))), _th4 || (_th4 = /*#__PURE__*/_jsx("th", {
149
+ children: 'Description'
150
+ }))]
151
+ })
152
+ }), /*#__PURE__*/_jsx("tbody", {
153
+ children: properties.map(params => {
154
+ const {
155
+ propName,
156
+ description,
157
+ seeMoreDescription,
158
+ requiresRef,
159
+ isOptional,
160
+ isRequired,
161
+ isProPlan,
162
+ isPremiumPlan,
163
+ isDeprecated,
164
+ deprecationInfo,
165
+ typeName,
166
+ propDefault,
167
+ additionalInfo,
168
+ signature,
169
+ signatureArgs,
170
+ signatureReturnDescription,
171
+ hash
172
+ } = params;
173
+ return /*#__PURE__*/_jsxs("tr", {
174
+ id: hash,
175
+ children: [/*#__PURE__*/_jsxs("td", {
176
+ className: "MuiApi-table-item-title algolia-lvl3",
177
+ children: [propName, isRequired ? '*' : '', isOptional ? '?' : '', isProPlan && (_a || (_a = /*#__PURE__*/_jsx("a", {
178
+ href: "/x/introduction/licensing/#pro-plan",
179
+ "aria-label": "Pro plan",
180
+ children: /*#__PURE__*/_jsx("span", {
181
+ className: "plan-pro"
182
+ })
183
+ }))), isPremiumPlan && (_a2 || (_a2 = /*#__PURE__*/_jsx("a", {
184
+ href: "/x/introduction/licensing/#premium-plan",
185
+ "aria-label": "Premium plan",
186
+ children: /*#__PURE__*/_jsx("span", {
187
+ className: "plan-premium"
188
+ })
189
+ })))]
190
+ }), /*#__PURE__*/_jsx("td", {
191
+ className: "type-column",
192
+ children: /*#__PURE__*/_jsx("span", {
193
+ className: "MuiApi-table-item-type",
194
+ dangerouslySetInnerHTML: {
195
+ __html: typeName
196
+ }
197
+ })
198
+ }), hasDefaultColumn && /*#__PURE__*/_jsx("td", {
199
+ className: "default-column",
200
+ children: propDefault ? /*#__PURE__*/_jsx("span", {
201
+ className: "MuiApi-table-item-default",
202
+ children: propDefault
203
+ }) : '-'
204
+ }), /*#__PURE__*/_jsxs("td", {
205
+ className: "MuiPropTable-description-column algolia-content",
206
+ children: [description && /*#__PURE__*/_jsx(PropDescription, {
207
+ description: description
208
+ }), seeMoreDescription && /*#__PURE__*/_jsx("p", {
209
+ dangerouslySetInnerHTML: {
210
+ __html: seeMoreDescription
211
+ },
212
+ className: "prop-table-additional-description"
213
+ }), additionalInfo?.map(key => /*#__PURE__*/_jsx("p", {
214
+ className: "prop-table-additional-description",
215
+ dangerouslySetInnerHTML: {
216
+ __html: t(`api-docs.additional-info.${key}`)
217
+ }
218
+ }, key)), requiresRef && /*#__PURE__*/_jsx(ApiWarningAlert, {
219
+ className: "prop-table-alert",
220
+ children: /*#__PURE__*/_jsx("div", {
221
+ dangerouslySetInnerHTML: {
222
+ __html: t('api-docs.requires-ref')
223
+ }
224
+ })
225
+ }), isDeprecated && /*#__PURE__*/_jsxs(ApiWarningAlert, {
226
+ children: [/*#__PURE__*/_jsx("b", {
227
+ children: t('api-docs.deprecated')
228
+ }), deprecationInfo && /*#__PURE__*/_jsxs(React.Fragment, {
229
+ children: ['-', /*#__PURE__*/_jsx("span", {
230
+ dangerouslySetInnerHTML: {
231
+ __html: deprecationInfo
232
+ }
233
+ })]
234
+ })]
235
+ }), signature && /*#__PURE__*/_jsxs("div", {
236
+ className: "prop-table-signature",
237
+ children: [/*#__PURE__*/_jsxs("span", {
238
+ className: "prop-table-title",
239
+ children: [t('api-docs.signature'), ":"]
240
+ }), /*#__PURE__*/_jsx("code", {
241
+ children: signature
242
+ }), signatureArgs && /*#__PURE__*/_jsx("div", {
243
+ children: /*#__PURE__*/_jsx("ul", {
244
+ children: signatureArgs.map(({
245
+ argName,
246
+ argDescription,
247
+ argType,
248
+ argTypeDescription
249
+ }) => /*#__PURE__*/_jsxs("li", {
250
+ className: "prop-signature-list",
251
+ children: [/*#__PURE__*/_jsxs("code", {
252
+ children: [argName, argType && argTypeDescription && /*#__PURE__*/_jsx(Tooltip, {
253
+ title: /*#__PURE__*/_jsx("span", {
254
+ dangerouslySetInnerHTML: {
255
+ __html: argTypeDescription
256
+ }
257
+ }),
258
+ children: /*#__PURE__*/_jsxs("span", {
259
+ children: [":", ' ', /*#__PURE__*/_jsx("span", {
260
+ className: "MuiApi-table-item-signature-type",
261
+ children: argType
262
+ })]
263
+ })
264
+ })]
265
+ }), ' ', argDescription && /*#__PURE__*/_jsx("span", {
266
+ dangerouslySetInnerHTML: {
267
+ __html: argDescription
268
+ }
269
+ })]
270
+ }, argName))
271
+ })
272
+ }), signatureReturnDescription && /*#__PURE__*/_jsxs("p", {
273
+ children: [t('api-docs.returns'), /*#__PURE__*/_jsx("span", {
274
+ dangerouslySetInnerHTML: {
275
+ __html: signatureReturnDescription
276
+ }
277
+ })]
278
+ })]
279
+ })]
280
+ })]
281
+ }, propName);
282
+ })
283
+ })]
284
+ })
285
+ });
286
+ }
@@ -0,0 +1,6 @@
1
+ import { SlotDefinition } from "../definitions/types.js";
2
+ interface SlotsTableProps {
3
+ slots: SlotDefinition[];
4
+ }
5
+ export default function SlotsTable(props: SlotsTableProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,126 @@
1
+ import { styled, alpha } from '@mui/material/styles';
2
+ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from "../../branding/index.js";
3
+ import { useTranslate } from "../../i18n/index.js";
4
+ import { StyledTableContainer } from "./StyledTableContainer.js";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const StyledTable = styled('table')(({
7
+ theme
8
+ }) => ({
9
+ // Override docs/src/modules/components/MarkdownElement styles
10
+ '&&': {
11
+ display: 'table',
12
+ width: '100%'
13
+ },
14
+ '& .slot-name': {
15
+ fontFamily: theme.typography.fontFamilyCode,
16
+ fontWeight: theme.typography.fontWeightSemiBold,
17
+ fontSize: theme.typography.pxToRem(13),
18
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`
19
+ },
20
+ '& .class-name': {
21
+ ...theme.typography.caption,
22
+ fontFamily: theme.typography.fontFamilyCode,
23
+ fontWeight: theme.typography.fontWeightRegular,
24
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
25
+ padding: '1px 4px',
26
+ borderRadius: 6,
27
+ border: '1px solid',
28
+ borderColor: alpha(darkTheme.palette.primary[100], 0.8),
29
+ backgroundColor: `var(--muidocs-palette-primary-50, ${lightTheme.palette.primary[50]})`
30
+ },
31
+ '& .item-default': {
32
+ ...theme.typography.caption,
33
+ fontFamily: theme.typography.fontFamilyCode,
34
+ fontWeight: theme.typography.fontWeightRegular,
35
+ color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
36
+ padding: '1px 4px',
37
+ borderRadius: 6,
38
+ border: '1px solid',
39
+ borderColor: `var(--muidocs-palette-grey-200, ${lightTheme.palette.grey[200]})`,
40
+ backgroundColor: `var(--muidocs-palette-grey-50, ${lightTheme.palette.grey[50]})`
41
+ },
42
+ '& .description-column': {
43
+ width: '40%',
44
+ paddingRight: 8
45
+ }
46
+ }), ({
47
+ theme
48
+ }) => ({
49
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
50
+ '& .slot-name': {
51
+ color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
52
+ },
53
+ '& .class-name': {
54
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
55
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`,
56
+ backgroundColor: alpha(darkTheme.palette.primary[900], 0.5)
57
+ },
58
+ '& .item-default': {
59
+ color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
60
+ backgroundColor: `var(--muidocs-palette-grey-900, ${darkTheme.palette.grey[900]})`,
61
+ borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
62
+ }
63
+ }
64
+ }));
65
+ export default function SlotsTable(props) {
66
+ const {
67
+ slots
68
+ } = props;
69
+ const t = useTranslate();
70
+ return /*#__PURE__*/_jsx(StyledTableContainer, {
71
+ children: /*#__PURE__*/_jsxs(StyledTable, {
72
+ children: [/*#__PURE__*/_jsx("thead", {
73
+ children: /*#__PURE__*/_jsxs("tr", {
74
+ children: [/*#__PURE__*/_jsx("th", {
75
+ children: t('api-docs.slotName')
76
+ }), /*#__PURE__*/_jsx("th", {
77
+ children: t('api-docs.className')
78
+ }), /*#__PURE__*/_jsx("th", {
79
+ children: t('api-docs.defaultComponent')
80
+ }), /*#__PURE__*/_jsx("th", {
81
+ children: t('api-docs.description')
82
+ })]
83
+ })
84
+ }), /*#__PURE__*/_jsx("tbody", {
85
+ children: slots.map(params => {
86
+ const {
87
+ description,
88
+ className,
89
+ name,
90
+ defaultValue,
91
+ hash
92
+ } = params;
93
+ return /*#__PURE__*/_jsxs("tr", {
94
+ id: hash,
95
+ children: [/*#__PURE__*/_jsx("td", {
96
+ className: "slot-name",
97
+ style: {
98
+ fontWeight: '600'
99
+ },
100
+ children: name
101
+ }), /*#__PURE__*/_jsx("td", {
102
+ className: "MuiApi-table-class-name",
103
+ children: className && /*#__PURE__*/_jsx("span", {
104
+ className: "class-name",
105
+ children: `.${className}`
106
+ })
107
+ }), /*#__PURE__*/_jsx("td", {
108
+ children: defaultValue && /*#__PURE__*/_jsx("code", {
109
+ className: "item-default",
110
+ children: defaultValue
111
+ })
112
+ }), /*#__PURE__*/_jsx("td", {
113
+ className: "description-column",
114
+ children: /*#__PURE__*/_jsx("span", {
115
+ // eslint-disable-next-line react/no-danger
116
+ dangerouslySetInnerHTML: {
117
+ __html: description || ''
118
+ }
119
+ })
120
+ })]
121
+ }, `${className}-${hash}`);
122
+ })
123
+ })]
124
+ })
125
+ });
126
+ }
@@ -0,0 +1 @@
1
+ export declare const StyledTableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,42 @@
1
+ import { styled, alpha } from '@mui/material/styles';
2
+ import { brandingDarkTheme as darkTheme } from "../../branding/index.js";
3
+ export const StyledTableContainer = styled('div')(({
4
+ theme
5
+ }) => ({
6
+ borderRadius: 12,
7
+ overflowX: 'auto',
8
+ '& table': {
9
+ marginLeft: -1,
10
+ marginRight: -1,
11
+ background: ['linear-gradient(to right, rgb(255, 255, 255) 5%, transparent 90%) local', 'linear-gradient(to right, transparent, rgb(255, 255, 255) 100%) 100% center local', `linear-gradient(to right, ${alpha(theme.palette.grey[500], 0.5)}, transparent 5%) scroll`, `linear-gradient(to left, ${alpha(theme.palette.grey[500], 0.2)}, transparent 5%) scroll`].join(', ')
12
+ },
13
+ '&& th': {
14
+ paddingTop: 8,
15
+ paddingBottom: 8,
16
+ textAlign: 'left',
17
+ fontWeight: theme.typography.fontWeightSemiBold,
18
+ fontSize: theme.typography.pxToRem(14)
19
+ },
20
+ '& tr': {
21
+ scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
22
+ '&:hover': {
23
+ backgroundColor: alpha(darkTheme.palette.grey[50], 0.5)
24
+ },
25
+ '& .MuiPropTable-description-column': {
26
+ minWidth: 300
27
+ }
28
+ }
29
+ }), ({
30
+ theme
31
+ }) => ({
32
+ [`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
33
+ '& table': {
34
+ background: [`linear-gradient(to right, ${theme.palette.primaryDark[900]} 5%, transparent 80%) local`, `linear-gradient(to right, transparent, ${theme.palette.primaryDark[900]} 100%) 100% center local`, `linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 10%) scroll`, 'linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent 10%) scroll'].join(', ')
35
+ },
36
+ '& tr': {
37
+ '&:hover': {
38
+ backgroundColor: alpha(darkTheme.palette.primaryDark[800], 0.5)
39
+ }
40
+ }
41
+ }
42
+ }));
@@ -0,0 +1,11 @@
1
+ import type { TableOfContentsEntry } from '@mui/internal-markdown';
2
+ export interface TableOfContentsParams {
3
+ children: (TableOfContentsParams | TableOfContentsEntry)[];
4
+ hash: string;
5
+ text: string;
6
+ }
7
+ export interface LayoutStorageKeys {
8
+ slots: string;
9
+ props: string;
10
+ classes: string;
11
+ }
@@ -0,0 +1 @@
1
+ export {};