@mui/docs 9.0.0-alpha.3 → 9.0.0-beta.0

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 (99) hide show
  1. package/ApiPage/ApiWarningAlert.d.ts +10 -0
  2. package/ApiPage/ApiWarningAlert.js +22 -0
  3. package/ApiPage/definitions/classes.d.ts +18 -0
  4. package/ApiPage/definitions/classes.js +54 -0
  5. package/ApiPage/definitions/index.d.ts +4 -0
  6. package/ApiPage/definitions/index.js +4 -0
  7. package/ApiPage/definitions/properties.d.ts +58 -0
  8. package/ApiPage/definitions/properties.js +110 -0
  9. package/ApiPage/definitions/slots.d.ts +16 -0
  10. package/ApiPage/definitions/slots.js +39 -0
  11. package/ApiPage/definitions/types.d.ts +53 -0
  12. package/ApiPage/definitions/types.js +1 -0
  13. package/ApiPage/index.d.ts +2 -0
  14. package/ApiPage/index.js +2 -0
  15. package/ApiPage/list/ClassesList.d.ts +11 -0
  16. package/ApiPage/list/ClassesList.js +103 -0
  17. package/ApiPage/list/ExpandableApiItem.d.ts +18 -0
  18. package/ApiPage/list/ExpandableApiItem.js +241 -0
  19. package/ApiPage/list/PropertiesList.d.ts +7 -0
  20. package/ApiPage/list/PropertiesList.js +263 -0
  21. package/ApiPage/list/SlotsList.d.ts +7 -0
  22. package/ApiPage/list/SlotsList.js +93 -0
  23. package/ApiPage/list/index.d.ts +1 -0
  24. package/ApiPage/list/index.js +1 -0
  25. package/ApiPage/private.d.ts +3 -0
  26. package/ApiPage/private.js +3 -0
  27. package/ApiPage/sections/ClassesSection.d.ts +34 -0
  28. package/ApiPage/sections/ClassesSection.js +76 -0
  29. package/ApiPage/sections/PropertiesSection.d.ts +45 -0
  30. package/ApiPage/sections/PropertiesSection.js +59 -0
  31. package/ApiPage/sections/SlotsSection.d.ts +24 -0
  32. package/ApiPage/sections/SlotsSection.js +61 -0
  33. package/ApiPage/sections/ToggleDisplayOption.d.ts +17 -0
  34. package/ApiPage/sections/ToggleDisplayOption.js +158 -0
  35. package/ApiPage/sections/index.d.ts +4 -0
  36. package/ApiPage/sections/index.js +4 -0
  37. package/ApiPage/table/ClassesTable.d.ts +7 -0
  38. package/ApiPage/table/ClassesTable.js +116 -0
  39. package/ApiPage/table/PropertiesTable.d.ts +6 -0
  40. package/ApiPage/table/PropertiesTable.js +286 -0
  41. package/ApiPage/table/SlotsTable.d.ts +6 -0
  42. package/ApiPage/table/SlotsTable.js +126 -0
  43. package/ApiPage/table/StyledTableContainer.d.ts +1 -0
  44. package/ApiPage/table/StyledTableContainer.js +42 -0
  45. package/ApiPage/types.d.ts +11 -0
  46. package/ApiPage/types.js +1 -0
  47. package/CHANGELOG.md +224 -3
  48. package/DemoContext/DemoContext.d.ts +1 -1
  49. package/{AnalyticsProvider → DocsApp}/AnalyticsProvider.js +10 -6
  50. package/DocsApp/DocsApp.d.ts +79 -0
  51. package/DocsApp/DocsApp.js +105 -0
  52. package/{GoogleAnalytics → DocsApp}/GoogleAnalytics.js +4 -4
  53. package/DocsApp/StyledEngineProvider.d.ts +8 -0
  54. package/{StyledEngineProvider → DocsApp}/StyledEngineProvider.js +2 -8
  55. package/DocsApp/consoleBanner.d.ts +1 -0
  56. package/DocsApp/consoleBanner.js +18 -0
  57. package/DocsApp/createGetInitialProps.d.ts +30 -0
  58. package/DocsApp/createGetInitialProps.js +29 -0
  59. package/DocsApp/index.d.ts +5 -0
  60. package/DocsApp/index.js +4 -0
  61. package/DocsApp/loadDependencies.d.ts +1 -0
  62. package/DocsApp/loadDependencies.js +9 -0
  63. package/DocsApp/reportWebVitals.d.ts +13 -0
  64. package/DocsApp/reportWebVitals.js +22 -0
  65. package/DocsApp/serviceWorker.d.ts +1 -0
  66. package/DocsApp/serviceWorker.js +59 -0
  67. package/Document/Document.js +2 -2
  68. package/Document/getInitialProps.js +3 -5
  69. package/InfoCard/InfoCard.js +9 -5
  70. package/Link/SkipLink.js +1 -3
  71. package/NextNProgressBar/NextNProgressBar.js +0 -2
  72. package/PageContext/PageContext.d.ts +6 -5
  73. package/branding/BrandingCssVarsProvider.d.ts +9 -5
  74. package/branding/BrandingCssVarsProvider.js +1 -1
  75. package/branding/brandingTheme.js +82 -75
  76. package/codeStyling/codeStyling.d.ts +7 -10
  77. package/codeStyling/codeStyling.js +0 -4
  78. package/codeVariant/codeVariant.d.ts +7 -10
  79. package/codeVariant/codeVariant.js +0 -4
  80. package/constants/constants.d.ts +10 -10
  81. package/constants/index.d.ts +1 -1
  82. package/constants/index.js +1 -1
  83. package/package.json +35 -44
  84. package/utils/index.js +0 -1
  85. package/webpack/index.d.ts +17 -0
  86. package/webpack/index.js +1 -0
  87. package/AnalyticsProvider/index.d.ts +0 -1
  88. package/AnalyticsProvider/index.js +0 -1
  89. package/GoogleAnalytics/index.d.ts +0 -1
  90. package/GoogleAnalytics/index.js +0 -1
  91. package/StyledEngineProvider/StyledEngineProvider.d.ts +0 -9
  92. package/StyledEngineProvider/index.d.ts +0 -1
  93. package/StyledEngineProvider/index.js +0 -1
  94. package/createEmotionCache/index.d.ts +0 -1
  95. package/createEmotionCache/index.js +0 -1
  96. /package/{AnalyticsProvider → DocsApp}/AnalyticsProvider.d.ts +0 -0
  97. /package/{GoogleAnalytics → DocsApp}/GoogleAnalytics.d.ts +0 -0
  98. /package/{createEmotionCache → DocsApp}/createEmotionCache.d.ts +0 -0
  99. /package/{createEmotionCache → DocsApp}/createEmotionCache.js +0 -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("span", {
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 {};