@mui/docs 6.0.0-alpha.2 → 6.0.0-alpha.4

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 (51) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/CodeCopy/CodeCopy.d.ts +20 -0
  3. package/CodeCopy/CodeCopy.js +172 -0
  4. package/CodeCopy/CodeCopyButton.d.ts +5 -0
  5. package/CodeCopy/CodeCopyButton.js +50 -0
  6. package/CodeCopy/index.d.ts +3 -0
  7. package/CodeCopy/index.js +3 -0
  8. package/CodeCopy/package.json +6 -0
  9. package/CodeCopy/useClipboardCopy.d.ts +4 -0
  10. package/CodeCopy/useClipboardCopy.js +21 -0
  11. package/HighlightedCode/HighlightedCode.d.ts +12 -0
  12. package/HighlightedCode/HighlightedCode.js +45 -0
  13. package/HighlightedCode/index.d.ts +1 -0
  14. package/HighlightedCode/index.js +1 -0
  15. package/HighlightedCode/package.json +6 -0
  16. package/InfoCard/InfoCard.js +3 -3
  17. package/MarkdownElement/MarkdownElement.d.ts +6 -0
  18. package/MarkdownElement/MarkdownElement.js +826 -0
  19. package/MarkdownElement/index.d.ts +1 -0
  20. package/MarkdownElement/index.js +1 -0
  21. package/MarkdownElement/package.json +6 -0
  22. package/branding/brandingTheme.js +5 -5
  23. package/node/CodeCopy/CodeCopy.js +188 -0
  24. package/node/CodeCopy/CodeCopyButton.js +59 -0
  25. package/node/CodeCopy/index.js +40 -0
  26. package/node/CodeCopy/useClipboardCopy.js +30 -0
  27. package/node/HighlightedCode/HighlightedCode.js +54 -0
  28. package/node/HighlightedCode/index.js +16 -0
  29. package/node/InfoCard/InfoCard.js +3 -3
  30. package/node/MarkdownElement/MarkdownElement.js +838 -0
  31. package/node/MarkdownElement/index.js +16 -0
  32. package/node/branding/brandingTheme.js +5 -5
  33. package/package.json +4 -2
  34. package/tsconfig.build.tsbuildinfo +1 -1
  35. package/legacy/DocsProvider/DocsProvider.js +0 -25
  36. package/legacy/DocsProvider/index.js +0 -1
  37. package/legacy/InfoCard/InfoCard.js +0 -86
  38. package/legacy/InfoCard/index.js +0 -1
  39. package/legacy/Link/Link.js +0 -101
  40. package/legacy/Link/index.js +0 -1
  41. package/legacy/NProgressBar/NProgressBar.js +0 -80
  42. package/legacy/NProgressBar/index.js +0 -1
  43. package/legacy/branding/BrandingProvider.js +0 -17
  44. package/legacy/branding/brandingTheme.js +0 -1168
  45. package/legacy/branding/index.js +0 -2
  46. package/legacy/i18n/i18n.js +0 -105
  47. package/legacy/i18n/index.js +0 -1
  48. package/legacy/svgIcons/FileDownload.js +0 -14
  49. package/legacy/svgIcons/JavaScript.js +0 -14
  50. package/legacy/svgIcons/TypeScript.js +0 -14
  51. package/legacy/translations/index.js +0 -4
@@ -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 === 'light' ? `linear-gradient(to bottom right, ${(0, _styles.alpha)(blue[50], 0.3)} 25%, ${(0, _styles.alpha)(grey[50], 0.2)} 100%)` : `linear-gradient(to bottom right, ${(0, _styles.alpha)(blue[900], 0.1)} 25%, ${(0, _styles.alpha)(blueDark[800], 0.2)} 100%)`
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: {
@@ -719,7 +719,7 @@ function getThemedComponents() {
719
719
  }) => (0, _extends2.default)({
720
720
  borderColor: (theme.vars || theme).palette.grey[100]
721
721
  }, theme.applyDarkStyles({
722
- borderColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
722
+ borderColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.3)
723
723
  }))
724
724
  }
725
725
  },
@@ -802,7 +802,7 @@ function getThemedComponents() {
802
802
  borderColor: (theme.vars || theme).palette.primaryDark[600]
803
803
  })), variant === 'outlined' && color === 'primary' && (0, _extends2.default)({
804
804
  borderColor: (theme.vars || theme).palette.primary[100],
805
- backgroundColor: (theme.vars || theme).palette.primary[50]
805
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.2)
806
806
  }, theme.applyDarkStyles({
807
807
  color: (theme.vars || theme).palette.primary[300],
808
808
  borderColor: (0, _styles.alpha)(theme.palette.primary[500], 0.2),
@@ -1036,7 +1036,7 @@ function getThemedComponents() {
1036
1036
  }, {
1037
1037
  '&.Mui-selected': {
1038
1038
  color: (theme.vars || theme).palette.primary[700],
1039
- borderColor: `${(theme.vars || theme).palette.primary[500]} !important`,
1039
+ borderColor: `${(theme.vars || theme).palette.primary[200]} !important`,
1040
1040
  backgroundColor: (theme.vars || theme).palette.primary[50],
1041
1041
  '&:hover': {
1042
1042
  backgroundColor: (theme.vars || theme).palette.primary[100]
@@ -1049,7 +1049,7 @@ function getThemedComponents() {
1049
1049
  },
1050
1050
  '&.Mui-selected': {
1051
1051
  color: (theme.vars || theme).palette.primary[200],
1052
- borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1052
+ borderColor: `${(theme.vars || theme).palette.primary[800]} !important`,
1053
1053
  backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.4),
1054
1054
  '&:hover': {
1055
1055
  backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.8),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.0.0-alpha.2",
3
+ "version": "6.0.0-alpha.4",
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
+ "clipboard-copy": "^4.0.1",
27
28
  "clsx": "^2.1.0",
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": "*",