@mui/docs 6.0.0-beta.3 → 6.0.0-beta.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.
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.adBodyInlineStyles = exports.adBodyImageStyles = void 0;
7
+ var _styles = require("@mui/material/styles");
8
+ const adBodyImageStyles = theme => ({
9
+ root: {
10
+ display: 'block',
11
+ overflow: 'hidden',
12
+ border: '1px dashed',
13
+ borderColor: theme.palette.divider,
14
+ borderRadius: theme.shape.borderRadius,
15
+ padding: '8px 8px 8px calc(8px + 130px)',
16
+ [theme.breakpoints.up('sm')]: {
17
+ padding: '12px 12px 12px calc(12px + 130px)'
18
+ }
19
+ },
20
+ imgWrapper: {
21
+ float: 'left',
22
+ marginLeft: -130,
23
+ width: 130,
24
+ height: 100
25
+ },
26
+ img: {
27
+ verticalAlign: 'middle'
28
+ },
29
+ a: {
30
+ color: theme.palette.text.primary,
31
+ textDecoration: 'none'
32
+ },
33
+ description: {
34
+ ...theme.typography.body2,
35
+ [theme.breakpoints.up('sm')]: {
36
+ ...theme.typography.body1
37
+ },
38
+ display: 'block',
39
+ marginLeft: theme.spacing(1.5)
40
+ },
41
+ poweredby: {
42
+ ...theme.typography.caption,
43
+ marginLeft: theme.spacing(1.5),
44
+ color: theme.palette.text.secondary,
45
+ display: 'block',
46
+ marginTop: theme.spacing(0.5),
47
+ fontWeight: theme.typography.fontWeightRegular
48
+ }
49
+ });
50
+ exports.adBodyImageStyles = adBodyImageStyles;
51
+ const adBodyInlineStyles = theme => {
52
+ const baseline = adBodyImageStyles(theme);
53
+ return {
54
+ ...baseline,
55
+ root: {
56
+ display: 'block',
57
+ paddingTop: 8
58
+ },
59
+ imgWrapper: {
60
+ display: 'none'
61
+ },
62
+ description: {
63
+ ...baseline.description,
64
+ marginLeft: 0,
65
+ '&::before': {
66
+ border: '1px solid #3e8e41',
67
+ color: '#3e8e41',
68
+ marginRight: 6,
69
+ padding: '1px 5px',
70
+ borderRadius: 3,
71
+ content: '"Ad"',
72
+ fontSize: theme.typography.pxToRem(14)
73
+ },
74
+ '&::after': {
75
+ // Link
76
+ marginLeft: 4,
77
+ content: '"Get started"',
78
+ // Style taken from the Link component & MarkdownElement.
79
+ color: theme.palette.primary[600],
80
+ textDecoration: 'underline',
81
+ textDecorationColor: (0, _styles.alpha)(theme.palette.primary.main, 0.4),
82
+ ...theme.applyStyles('dark', {
83
+ color: theme.palette.primary[300]
84
+ })
85
+ }
86
+ },
87
+ poweredby: {
88
+ ...baseline.poweredby,
89
+ marginTop: 2,
90
+ marginLeft: 0
91
+ },
92
+ link: {
93
+ display: 'none'
94
+ }
95
+ };
96
+ };
97
+ exports.adBodyInlineStyles = adBodyInlineStyles;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ AdCarbonInline: true
8
+ };
9
+ Object.defineProperty(exports, "AdCarbonInline", {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _AdCarbon.AdCarbonInline;
13
+ }
14
+ });
15
+ var _Ad = require("./Ad");
16
+ Object.keys(_Ad).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _Ad[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _Ad[key];
24
+ }
25
+ });
26
+ });
27
+ var _AdManager = require("./AdManager");
28
+ Object.keys(_AdManager).forEach(function (key) {
29
+ if (key === "default" || key === "__esModule") return;
30
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
31
+ if (key in exports && exports[key] === _AdManager[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _AdManager[key];
36
+ }
37
+ });
38
+ });
39
+ var _AdProvider = require("./AdProvider");
40
+ Object.keys(_AdProvider).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
43
+ if (key in exports && exports[key] === _AdProvider[key]) return;
44
+ Object.defineProperty(exports, key, {
45
+ enumerable: true,
46
+ get: function () {
47
+ return _AdProvider[key];
48
+ }
49
+ });
50
+ });
51
+ var _AdGuest = require("./AdGuest");
52
+ Object.keys(_AdGuest).forEach(function (key) {
53
+ if (key === "default" || key === "__esModule") return;
54
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
55
+ if (key in exports && exports[key] === _AdGuest[key]) return;
56
+ Object.defineProperty(exports, key, {
57
+ enumerable: true,
58
+ get: function () {
59
+ return _AdGuest[key];
60
+ }
61
+ });
62
+ });
63
+ var _AdCarbon = require("./AdCarbon");
@@ -7,22 +7,27 @@ exports.DocsProvider = DocsProvider;
7
7
  exports.useDocsConfig = useDocsConfig;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  var _i18n = require("../i18n");
10
+ var _Ad = require("../Ad");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
14
  const DocsConfigContext = /*#__PURE__*/React.createContext(null);
14
15
  function DocsProvider({
15
16
  config,
17
+ adConfig,
16
18
  defaultUserLanguage,
17
19
  translations,
18
20
  children
19
21
  }) {
20
22
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(DocsConfigContext.Provider, {
21
23
  value: config,
22
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.UserLanguageProvider, {
23
- defaultUserLanguage: defaultUserLanguage,
24
- translations: translations,
25
- children: children
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Ad.AdProvider, {
25
+ config: adConfig,
26
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.UserLanguageProvider, {
27
+ defaultUserLanguage: defaultUserLanguage,
28
+ translations: translations,
29
+ children: children
30
+ })
26
31
  })
27
32
  });
28
33
  }
@@ -449,9 +449,9 @@ function getThemedComponents() {
449
449
  transition: 'all 120ms ease-in',
450
450
  ...(ownerState.size === 'large' && {
451
451
  ...theme.typography.body1,
452
- lineHeight: 21 / 16,
453
- padding: theme.spacing('8px', '10px', '10px', '12px'),
452
+ lineHeight: 1.5,
454
453
  fontWeight: theme.typography.fontWeightMedium,
454
+ padding: theme.spacing('8px', '12px', '8px', '14px'),
455
455
  borderRadius: 10,
456
456
  '& > span': {
457
457
  transition: '0.2s',
@@ -463,9 +463,10 @@ function getThemedComponents() {
463
463
  }),
464
464
  ...(ownerState.size === 'medium' && {
465
465
  fontSize: defaultTheme.typography.pxToRem(15),
466
- padding: theme.spacing('8px', '12px', '8px', '14px'),
467
466
  fontWeight: theme.typography.fontWeightMedium,
468
- borderRadius: 8,
467
+ lineHeight: 1.25,
468
+ padding: theme.spacing('8px', '10px', '10px', '12px'),
469
+ borderRadius: 10,
469
470
  '& > span': {
470
471
  transition: '0.2s',
471
472
  marginLeft: 4
@@ -475,11 +476,11 @@ function getThemedComponents() {
475
476
  }
476
477
  }),
477
478
  ...(ownerState.size === 'small' && {
478
- padding: '6px 8px',
479
+ padding: '6px 10px',
479
480
  fontFamily: theme.typography.fontFamily,
480
481
  fontSize: defaultTheme.typography.pxToRem(13),
481
482
  fontWeight: theme.typography.fontWeightMedium,
482
- borderRadius: 8,
483
+ borderRadius: 10,
483
484
  '& .MuiButton-startIcon': {
484
485
  transition: '0.15s',
485
486
  marginRight: 4,
@@ -502,18 +503,24 @@ function getThemedComponents() {
502
503
  color: (theme.vars || theme).palette.text.primary,
503
504
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
504
505
  borderColor: (theme.vars || theme).palette.primaryDark[100],
505
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
506
+ boxShadow: `#FFF 0 1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
506
507
  '&:hover': {
507
508
  backgroundColor: (theme.vars || theme).palette.grey[50]
508
509
  },
510
+ '&:active': {
511
+ backgroundColor: (theme.vars || theme).palette.grey[100]
512
+ },
509
513
  ...theme.applyDarkStyles({
510
514
  color: (theme.vars || theme).palette.primaryDark[100],
511
515
  borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
512
516
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
513
- boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
517
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[700], 0.3)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
514
518
  '&:hover': {
515
519
  backgroundColor: (theme.vars || theme).palette.primaryDark[700],
516
520
  borderColor: (theme.vars || theme).palette.primaryDark[600]
521
+ },
522
+ '&:active': {
523
+ backgroundColor: (theme.vars || theme).palette.primaryDark[800]
517
524
  }
518
525
  })
519
526
  }),
@@ -521,19 +528,25 @@ function getThemedComponents() {
521
528
  color: (theme.vars || theme).palette.primary[600],
522
529
  backgroundColor: (0, _styles.alpha)(theme.palette.primary[50], 0.2),
523
530
  borderColor: (theme.vars || theme).palette.primary[100],
524
- boxShadow: `${(0, _styles.alpha)(theme.palette.primary[50], 0.8)} 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.4)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
531
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[100], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
525
532
  '&:hover': {
526
533
  backgroundColor: (theme.vars || theme).palette.primary[50],
527
534
  borderColor: (theme.vars || theme).palette.primary[200]
528
535
  },
536
+ '&:active': {
537
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.7)
538
+ },
529
539
  ...theme.applyDarkStyles({
530
540
  color: (theme.vars || theme).palette.primary[200],
531
541
  borderColor: (0, _styles.alpha)(theme.palette.primary[900], 0.7),
532
542
  backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.2),
533
- boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
543
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.2)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
534
544
  '&:hover': {
535
- backgroundColor: (theme.vars || theme).palette.primary[900],
536
- borderColor: (theme.vars || theme).palette.primary[700]
545
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.5),
546
+ borderColor: (theme.vars || theme).palette.primary[900]
547
+ },
548
+ '&:active': {
549
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
537
550
  }
538
551
  })
539
552
  }),
@@ -541,13 +554,36 @@ function getThemedComponents() {
541
554
  color: '#fff',
542
555
  textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
543
556
  backgroundColor: (theme.vars || theme).palette.primary[500],
544
- backgroundImage: `linear-gradient(180deg, ${(0, _styles.alpha)(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
545
- boxShadow: `${theme.palette.primary[400]} 0 2px 0 inset, ${theme.palette.primary[700]} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
557
+ backgroundImage: 'transparent',
558
+ border: '1px solid ',
559
+ borderColor: (theme.vars || theme).palette.primary[600],
560
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[400], 0.5)} 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[800], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
546
561
  '&:hover': {
547
- backgroundColor: (theme.vars || theme).palette.primary[700]
562
+ backgroundColor: (theme.vars || theme).palette.primary[700],
563
+ borderColor: (theme.vars || theme).palette.primary[800]
548
564
  },
549
565
  '&:active': {
550
- backgroundColor: (theme.vars || theme).palette.primaryDark[700]
566
+ backgroundColor: (theme.vars || theme).palette.primary[800],
567
+ borderColor: (theme.vars || theme).palette.primary[600],
568
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.7)} 0 1px 0 1px inset`
569
+ }
570
+ }),
571
+ ...(ownerState.variant === 'contained' && ownerState.color === 'secondary' && {
572
+ color: '#fff',
573
+ textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
574
+ backgroundColor: (theme.vars || theme).palette.primaryDark[500],
575
+ backgroundImage: 'transparent',
576
+ border: '1px solid ',
577
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
578
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[400], 0.5)} 0 1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.primaryDark[800], 0.7)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
579
+ '&:hover': {
580
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600],
581
+ borderColor: (theme.vars || theme).palette.primaryDark[700]
582
+ },
583
+ '&:active': {
584
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
585
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
586
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[900], 0.7)} 0 1px 0 1px inset`
551
587
  }
552
588
  }),
553
589
  ...(ownerState.variant === 'text' && ownerState.color === 'secondary' && {
@@ -569,8 +605,20 @@ function getThemedComponents() {
569
605
  }),
570
606
  ...(ownerState.variant === 'text' && ownerState.color === 'primary' && {
571
607
  color: (theme.vars || theme).palette.primary[600],
608
+ '&:hover': {
609
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.3)
610
+ },
611
+ '&:active': {
612
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.5)
613
+ },
572
614
  ...theme.applyDarkStyles({
573
- color: (theme.vars || theme).palette.primary[300]
615
+ color: (theme.vars || theme).palette.primary[300],
616
+ '&:hover': {
617
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
618
+ },
619
+ '&:active': {
620
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.1)
621
+ }
574
622
  })
575
623
  })
576
624
  })
@@ -724,6 +772,12 @@ function getThemedComponents() {
724
772
  background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
725
773
  })
726
774
  },
775
+ '&:active': {
776
+ background: (theme.vars || theme).palette.grey[100],
777
+ ...theme.applyDarkStyles({
778
+ background: theme.palette.primaryDark[800]
779
+ })
780
+ },
727
781
  ...(ownerState.size === 'small' && {
728
782
  height: 32,
729
783
  width: 32,
@@ -746,7 +800,11 @@ function getThemedComponents() {
746
800
  boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
747
801
  '&:hover': {
748
802
  borderColor: (theme.vars || theme).palette.grey[300],
749
- background: (theme.vars || theme).palette.grey[50]
803
+ background: (theme.vars || theme).palette.grey[50],
804
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
805
+ },
806
+ '&:active': {
807
+ background: (theme.vars || theme).palette.grey[100]
750
808
  }
751
809
  }, theme.applyDarkStyles({
752
810
  color: (theme.vars || theme).palette.primary[300],
@@ -755,7 +813,11 @@ function getThemedComponents() {
755
813
  boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
756
814
  '&:hover': {
757
815
  borderColor: (theme.vars || theme).palette.primaryDark[600],
758
- background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
816
+ background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
817
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
818
+ },
819
+ '&:active': {
820
+ background: theme.palette.primaryDark[800]
759
821
  }
760
822
  })]
761
823
  }, {
@@ -772,7 +834,11 @@ function getThemedComponents() {
772
834
  '&:hover': {
773
835
  color: (theme.vars || theme).palette.text.primary,
774
836
  borderColor: (theme.vars || theme).palette.grey[300],
775
- background: (theme.vars || theme).palette.grey[50]
837
+ background: (theme.vars || theme).palette.grey[50],
838
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
839
+ },
840
+ '&:active': {
841
+ background: (theme.vars || theme).palette.grey[100]
776
842
  }
777
843
  }, theme.applyDarkStyles({
778
844
  borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
@@ -780,7 +846,11 @@ function getThemedComponents() {
780
846
  boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
781
847
  '&:hover': {
782
848
  borderColor: (theme.vars || theme).palette.primaryDark[600],
783
- background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
849
+ background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
850
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
851
+ },
852
+ '&:active': {
853
+ background: theme.palette.primaryDark[800]
784
854
  }
785
855
  })]
786
856
  }]
@@ -1343,6 +1413,24 @@ function getThemedComponents() {
1343
1413
  // scrollbarGutter: 'stable',
1344
1414
  }
1345
1415
  }
1416
+ },
1417
+ MuiCard: {
1418
+ styleOverrides: {
1419
+ root: ({
1420
+ theme,
1421
+ ownerState
1422
+ }) => ({
1423
+ ...(ownerState.variant === 'elevation' && {
1424
+ border: '1px solid',
1425
+ borderColor: (theme.vars || theme).palette.grey[100],
1426
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[300], 0.5)} 0 1px 8px 0`,
1427
+ ...theme.applyDarkStyles({
1428
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
1429
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 8px 0`
1430
+ })
1431
+ })
1432
+ })
1433
+ }
1346
1434
  }
1347
1435
  }
1348
1436
  };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = loadScript;
7
+ function loadScript(src, position) {
8
+ const script = document.createElement('script');
9
+ script.setAttribute('async', '');
10
+ script.src = src;
11
+ if (position) {
12
+ position.appendChild(script);
13
+ }
14
+ return script;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.0.0-beta.3",
3
+ "version": "6.0.0-beta.4",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.24.8",
26
+ "@babel/runtime": "^7.25.0",
27
27
  "clipboard-copy": "^4.0.1",
28
28
  "clsx": "^2.1.1",
29
29
  "nprogress": "^0.2.0",
@@ -38,7 +38,8 @@
38
38
  "@types/react": "^17.0.0 || ^18.0.0",
39
39
  "chai": "^4.4.1",
40
40
  "next": "^13.5.1 || ^14",
41
- "react": "^17.0.0 || ^18.0.0"
41
+ "react": "^17.0.0 || ^18.0.0",
42
+ "csstype": "^3.1.3"
42
43
  },
43
44
  "peerDependenciesMeta": {
44
45
  "@types/react": {