@mui/docs 6.0.0-alpha.3 → 6.0.0-alpha.5
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.
- package/CHANGELOG.md +93 -0
- package/CodeCopy/CodeCopy.d.ts +20 -0
- package/CodeCopy/CodeCopy.js +172 -0
- package/CodeCopy/CodeCopyButton.d.ts +5 -0
- package/CodeCopy/CodeCopyButton.js +50 -0
- package/CodeCopy/index.d.ts +3 -0
- package/CodeCopy/index.js +3 -0
- package/CodeCopy/package.json +6 -0
- package/CodeCopy/useClipboardCopy.d.ts +4 -0
- package/CodeCopy/useClipboardCopy.js +21 -0
- package/HighlightedCode/HighlightedCode.d.ts +14 -0
- package/HighlightedCode/HighlightedCode.js +68 -0
- package/HighlightedCode/index.d.ts +1 -0
- package/HighlightedCode/index.js +1 -0
- package/HighlightedCode/package.json +6 -0
- package/MarkdownElement/MarkdownElement.d.ts +6 -0
- package/MarkdownElement/MarkdownElement.js +826 -0
- package/MarkdownElement/index.d.ts +1 -0
- package/MarkdownElement/index.js +1 -0
- package/MarkdownElement/package.json +6 -0
- package/branding/brandingTheme.js +2 -5
- package/node/CodeCopy/CodeCopy.js +188 -0
- package/node/CodeCopy/CodeCopyButton.js +59 -0
- package/node/CodeCopy/index.js +40 -0
- package/node/CodeCopy/useClipboardCopy.js +30 -0
- package/node/HighlightedCode/HighlightedCode.js +77 -0
- package/node/HighlightedCode/index.js +16 -0
- package/node/MarkdownElement/MarkdownElement.js +838 -0
- package/node/MarkdownElement/index.js +16 -0
- package/node/branding/brandingTheme.js +2 -5
- package/package.json +5 -3
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _MarkdownElement = require("./MarkdownElement");
|
|
7
|
+
Object.keys(_MarkdownElement).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _MarkdownElement[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _MarkdownElement[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -152,7 +152,7 @@ const getDesignTokens = mode => ({
|
|
|
152
152
|
warning,
|
|
153
153
|
gradients: {
|
|
154
154
|
radioSubtle: mode === 'dark' ? `radial-gradient(100% 100% at 100% 100%, transparent 0, ${(0, _styles.alpha)(blue[900], 0.3)} 300%)` : `radial-gradient(100% 90% at 50% 0, transparent 0, ${(0, _styles.alpha)(blue[100], 0.3)} 300%)`,
|
|
155
|
-
linearSubtle: mode === '
|
|
155
|
+
linearSubtle: mode === 'dark' ? `linear-gradient(0deg, ${(0, _styles.alpha)(blue[900], 0.1)}, ${(0, _styles.alpha)(blueDark[900], 0.5)})` : `linear-gradient(0deg, ${(0, _styles.alpha)(blue[50], 0.4)}, ${(0, _styles.alpha)(grey[50], 0.1)})`
|
|
156
156
|
}
|
|
157
157
|
}),
|
|
158
158
|
shape: {
|
|
@@ -228,20 +228,17 @@ const getDesignTokens = mode => ({
|
|
|
228
228
|
},
|
|
229
229
|
body1: {
|
|
230
230
|
fontSize: defaultTheme.typography.pxToRem(16),
|
|
231
|
-
// 16px
|
|
232
231
|
lineHeight: 24 / 16,
|
|
233
232
|
letterSpacing: 0
|
|
234
233
|
},
|
|
235
234
|
body2: {
|
|
236
235
|
fontSize: defaultTheme.typography.pxToRem(14),
|
|
237
|
-
// 14px
|
|
238
236
|
lineHeight: 21 / 14,
|
|
239
237
|
letterSpacing: 0
|
|
240
238
|
},
|
|
241
239
|
caption: {
|
|
242
240
|
display: 'inline-block',
|
|
243
241
|
fontSize: defaultTheme.typography.pxToRem(12),
|
|
244
|
-
// 12px
|
|
245
242
|
lineHeight: 18 / 12,
|
|
246
243
|
letterSpacing: 0,
|
|
247
244
|
fontWeight: 700
|
|
@@ -391,7 +388,7 @@ function getThemedComponents() {
|
|
|
391
388
|
transform: 'translateX(2px)'
|
|
392
389
|
}
|
|
393
390
|
}, ownerState.size === 'small' && {
|
|
394
|
-
padding: theme.spacing('6px', 1),
|
|
391
|
+
padding: theme.spacing('6px', 1.5),
|
|
395
392
|
fontFamily: theme.typography.fontFamily,
|
|
396
393
|
fontSize: defaultTheme.typography.pxToRem(13),
|
|
397
394
|
fontWeight: theme.typography.fontWeightSemiBold,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/docs",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "MUI Docs - Documentation building blocks.",
|
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
"homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.24.4",
|
|
27
|
-
"
|
|
27
|
+
"clipboard-copy": "^4.0.1",
|
|
28
|
+
"clsx": "^2.1.1",
|
|
28
29
|
"nprogress": "^0.2.0",
|
|
29
|
-
"prop-types": "^15.8.1"
|
|
30
|
+
"prop-types": "^15.8.1",
|
|
31
|
+
"@mui/internal-markdown": "^1.0.3"
|
|
30
32
|
},
|
|
31
33
|
"peerDependencies": {
|
|
32
34
|
"@mui/base": "*",
|