@mui/docs 6.0.0-alpha.7 → 6.0.0-alpha.9

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 CHANGED
@@ -1,5 +1,116 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.9
4
+
5
+ <!-- generated comparing v6.0.0-alpha.8..next -->
6
+
7
+ _May 29, 2024_
8
+
9
+ A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
12
+
13
+ ### `@mui/material@6.0.0-alpha.9`
14
+
15
+ - &#8203;<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
16
+ - &#8203;<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
17
+ - &#8203;<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
18
+ - &#8203;<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
19
+ - &#8203;<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
20
+ - &#8203;<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
21
+ - &#8203;<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
22
+ - &#8203;<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
23
+ - &#8203;<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
24
+ - &#8203;<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
25
+ - &#8203;<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
26
+
27
+ ### `@mui/system@6.0.0-alpha.9`
28
+
29
+ - &#8203;<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
30
+
31
+ ### `@mui/codemod@6.0.0-alpha.9`
32
+
33
+ - &#8203;<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
34
+ - &#8203;<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
35
+
36
+ ### Docs
37
+
38
+ - &#8203;<!-- 33 -->Remove unused images (#42324) @danilo-leal
39
+ - &#8203;<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
40
+ - &#8203;<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
41
+ - &#8203;<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
42
+ - &#8203;<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
43
+ - &#8203;<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
44
+ - &#8203;<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
45
+ - &#8203;<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
46
+ - &#8203;<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
47
+
48
+ ### Core
49
+
50
+ - &#8203;<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
51
+ - &#8203;<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
52
+ - &#8203;<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
53
+ - &#8203;<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
54
+ - &#8203;<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
55
+ - &#8203;<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
56
+ - &#8203;<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
57
+ - &#8203;<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
58
+ - &#8203;<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
59
+ - &#8203;<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
60
+ - &#8203;<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
61
+ - &#8203;<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
62
+ - &#8203;<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
63
+ - &#8203;<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
64
+ - &#8203;<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
65
+ - &#8203;<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
66
+ - &#8203;<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
67
+ - &#8203;<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
68
+ - &#8203;<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
69
+ - &#8203;<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
70
+ - &#8203;<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
71
+ - &#8203;<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
72
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
73
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
74
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
75
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
76
+
77
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @apedroferreira, @brijeshb42, @cherniavskii, @ChronicusUA, @danilo-leal, @DiegoAndai, @fedirjh, @j4marcos, @Janpot, @KenanYusuf, @lhilgert9, @lucasgmelo, @MatheusEli, @mihilt, @mnajdova, @nikitaa24, @oliviertassinari, @sayoubiaf, @siriwatknp, @tjcouch-sil, @ZeeshanTamboli
78
+
79
+ ## v6.0.0-alpha.8
80
+
81
+ <!-- generated comparing v6.0.0-alpha.7..next -->
82
+
83
+ _May 21, 2024_
84
+
85
+ A big thanks to the 7 contributors who made this release possible.
86
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
87
+
88
+ ### `@mui/material@6.0.0-alpha.7`
89
+
90
+ - &#8203;<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
91
+ - &#8203;<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
92
+ - &#8203;<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
93
+
94
+ ### Docs
95
+
96
+ - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
97
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
98
+ - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
99
+ - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
100
+
101
+ ### Core
102
+
103
+ - &#8203;<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
104
+ - &#8203;<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
105
+ - &#8203;<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
106
+ - &#8203;<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
107
+ - &#8203;<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
108
+ - &#8203;<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
109
+ - &#8203;<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
110
+ - &#8203;<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
111
+
112
+ All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
113
+
3
114
  ## v6.0.0-alpha.7
4
115
 
5
116
  <!-- generated comparing v6.0.0-alpha.6..next -->
@@ -53,7 +164,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @alexfauq
53
164
 
54
165
  _May 8, 2024_
55
166
 
56
- A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
167
+ A big thanks to the 10 contributors who made this release possible.
57
168
 
58
169
  ### `@mui/material@6.0.0-alpha.6`
59
170
 
@@ -101,7 +212,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @danilo-l
101
212
 
102
213
  _May 1, 2024_
103
214
 
104
- A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
215
+ A big thanks to the 9 contributors who made this release possible.
105
216
 
106
217
  ### `@mui/material@6.0.0-alpha.5`
107
218
 
@@ -1,15 +1,12 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
1
  var _span, _span2;
4
- const _excluded = ["code"];
5
2
  import * as React from 'react';
6
3
  import useClipboardCopy from './useClipboardCopy';
7
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
5
  export function CodeCopyButton(props) {
9
6
  const {
10
- code
11
- } = props,
12
- other = _objectWithoutPropertiesLoose(props, _excluded);
7
+ code,
8
+ ...other
9
+ } = props;
13
10
  const {
14
11
  copy,
15
12
  isCopied
@@ -19,7 +16,8 @@ export function CodeCopyButton(props) {
19
16
  const key = macOS ? '⌘' : 'Ctrl + ';
20
17
  return /*#__PURE__*/_jsx("div", {
21
18
  className: "MuiCode-copy-container",
22
- children: /*#__PURE__*/_jsxs("button", _extends({}, other, {
19
+ children: /*#__PURE__*/_jsxs("button", {
20
+ ...other,
23
21
  "aria-label": "Copy the code",
24
22
  type: "button",
25
23
  className: "MuiCode-copy",
@@ -38,6 +36,6 @@ export function CodeCopyButton(props) {
38
36
  children: ")"
39
37
  }))]
40
38
  })]
41
- }))
39
+ })
42
40
  });
43
41
  }
@@ -1,6 +1,3 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["copyButtonHidden", "copyButtonProps", "code", "language", "plainStyle", "parentComponent", "preComponent"];
4
1
  import * as React from 'react';
5
2
  import prism from '@mui/internal-markdown/prism';
6
3
  import { NoSsr } from '@mui/base/NoSsr';
@@ -20,39 +17,42 @@ const Pre = styled('pre')(({
20
17
  [theme.breakpoints.up('md')]: {
21
18
  maxWidth: 'calc(100vw - 32px - 16px)'
22
19
  },
23
- '& code': _extends({}, theme.typography.caption, {
20
+ '& code': {
21
+ // Avoid layout jump after hydration (style injected by Prism)
22
+ ...theme.typography.caption,
24
23
  fontFamily: theme.typography.fontFamilyCode,
25
24
  fontWeight: 400,
26
25
  WebkitFontSmoothing: 'subpixel-antialiased'
27
26
  // Reset for Safari
28
27
  // https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
29
- })
28
+ }
30
29
  }));
31
30
  export const HighlightedCode = /*#__PURE__*/React.forwardRef(function HighlightedCode(props, ref) {
32
31
  const {
33
- copyButtonHidden = false,
34
- copyButtonProps,
35
- code,
36
- language,
37
- plainStyle,
38
- parentComponent: Component = plainStyle ? 'div' : MarkdownElement,
39
- preComponent: PreComponent = plainStyle ? Pre : 'pre'
40
- } = props,
41
- other = _objectWithoutPropertiesLoose(props, _excluded);
32
+ copyButtonHidden = false,
33
+ copyButtonProps,
34
+ code,
35
+ language,
36
+ plainStyle,
37
+ parentComponent: Component = plainStyle ? 'div' : MarkdownElement,
38
+ preComponent: PreComponent = plainStyle ? Pre : 'pre',
39
+ ...other
40
+ } = props;
42
41
  const renderedCode = React.useMemo(() => {
43
42
  return prism(code.trim(), language);
44
43
  }, [code, language]);
45
44
  const handlers = useCodeCopy();
46
- return /*#__PURE__*/_jsx(Component, _extends({
47
- ref: ref
48
- }, other, {
49
- children: /*#__PURE__*/_jsxs("div", _extends({
50
- className: "MuiCode-root"
51
- }, handlers, {
45
+ return /*#__PURE__*/_jsx(Component, {
46
+ ref: ref,
47
+ ...other,
48
+ children: /*#__PURE__*/_jsxs("div", {
49
+ className: "MuiCode-root",
50
+ ...handlers,
52
51
  children: [copyButtonHidden ? null : /*#__PURE__*/_jsx(NoSsr, {
53
- children: /*#__PURE__*/_jsx(CodeCopyButton, _extends({
54
- code: code
55
- }, copyButtonProps))
52
+ children: /*#__PURE__*/_jsx(CodeCopyButton, {
53
+ code: code,
54
+ ...copyButtonProps
55
+ })
56
56
  }), /*#__PURE__*/_jsx(PreComponent, {
57
57
  children: /*#__PURE__*/_jsx("code", {
58
58
  className: `language-${language}`
@@ -63,6 +63,6 @@ export const HighlightedCode = /*#__PURE__*/React.forwardRef(function Highlighte
63
63
  }
64
64
  })
65
65
  })]
66
- }))
67
- }));
66
+ })
67
+ });
68
68
  });
@@ -1,6 +1,3 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["classNameDescription", "classNameTitle", "description", "icon", "link", "svg", "title", "titleProps"];
4
1
  import * as React from 'react';
5
2
  import { alpha } from '@mui/material/styles';
6
3
  import Box from '@mui/material/Box';
@@ -12,7 +9,7 @@ export function GlowingIconContainer({
12
9
  icon
13
10
  }) {
14
11
  return /*#__PURE__*/_jsx(Box, {
15
- sx: theme => _extends({
12
+ sx: theme => ({
16
13
  width: 36,
17
14
  height: 36,
18
15
  display: 'flex',
@@ -26,63 +23,65 @@ export function GlowingIconContainer({
26
23
  boxShadow: `0px 0 0 2px ${alpha(theme.palette.primary[500], 0.1)}, 0px 2px 12px 0px rgba(234, 237, 241, 0.3) inset`,
27
24
  '& .MuiSvgIcon-root': {
28
25
  fontSize: theme.typography.pxToRem(18)
29
- }
30
- }, theme.applyDarkStyles({
31
- borderColor: alpha(theme.palette.primary[400], 0.25),
32
- bgcolor: alpha(theme.palette.primary[900], 0.2),
33
- boxShadow: `0 0 0 2px ${alpha(theme.palette.primary[600], 0.1)}, 0px 2px 12px 0px rgba(0, 0, 0, 0.25) inset`
34
- })),
26
+ },
27
+ ...theme.applyDarkStyles({
28
+ borderColor: alpha(theme.palette.primary[400], 0.25),
29
+ bgcolor: alpha(theme.palette.primary[900], 0.2),
30
+ boxShadow: `0 0 0 2px ${alpha(theme.palette.primary[600], 0.1)}, 0px 2px 12px 0px rgba(0, 0, 0, 0.25) inset`
31
+ })
32
+ }),
35
33
  children: icon
36
34
  });
37
35
  }
38
36
  export function InfoCard(props) {
39
37
  const {
40
- classNameDescription,
41
- classNameTitle,
42
- description,
43
- icon,
44
- link,
45
- svg,
46
- title,
47
- titleProps
48
- } = props,
49
- other = _objectWithoutPropertiesLoose(props, _excluded);
50
- return /*#__PURE__*/_jsxs(Paper, _extends({
38
+ classNameDescription,
39
+ classNameTitle,
40
+ description,
41
+ icon,
42
+ link,
43
+ svg,
44
+ title,
45
+ titleProps,
46
+ ...other
47
+ } = props;
48
+ return /*#__PURE__*/_jsxs(Paper, {
51
49
  variant: "outlined",
52
50
  component: link ? Link : 'div',
53
- href: link
54
- }, link ? {
55
- noLinkStyle: true,
56
- // Fix overloading with prefetch={false}, only prefetch on hover.
57
- prefetch: false
58
- } : {}, {
59
- sx: theme => _extends({
51
+ href: link,
52
+ ...(link ? {
53
+ noLinkStyle: true,
54
+ // Fix overloading with prefetch={false}, only prefetch on hover.
55
+ prefetch: false
56
+ } : {}),
57
+ sx: theme => ({
60
58
  p: 2.5,
61
59
  height: '100%',
62
- background: `${(theme.vars || theme).palette.gradients.linearSubtle}`
63
- }, theme.applyDarkStyles({
64
- bgcolor: alpha(theme.palette.primaryDark[800], 0.25),
65
60
  background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
66
- borderColor: 'primaryDark.700'
67
- }))
68
- }, other, {
61
+ ...theme.applyDarkStyles({
62
+ bgcolor: alpha(theme.palette.primaryDark[800], 0.25),
63
+ background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
64
+ borderColor: 'primaryDark.700'
65
+ })
66
+ }),
67
+ ...other,
69
68
  children: [svg && svg, icon && /*#__PURE__*/_jsx(GlowingIconContainer, {
70
69
  icon: icon
71
- }), /*#__PURE__*/_jsx(Typography, _extends({
70
+ }), /*#__PURE__*/_jsx(Typography, {
72
71
  fontWeight: "semiBold",
73
72
  component: "h3",
74
73
  color: "text.primary",
75
74
  variant: "body2",
76
75
  mt: icon ? 2 : 0,
77
76
  mb: description ? 0.5 : 0,
78
- className: classNameTitle
79
- }, titleProps, {
77
+ className: classNameTitle,
78
+ ...titleProps,
80
79
  children: title
81
- })), /*#__PURE__*/_jsx(Typography, {
80
+ }), /*#__PURE__*/_jsx(Typography, {
82
81
  variant: "body2",
83
82
  color: "text.secondary",
84
83
  className: classNameDescription,
85
84
  children: description
86
85
  })]
87
- }));
86
+ });
88
87
  }
package/Link/Link.js CHANGED
@@ -1,7 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["to", "linkAs", "replace", "scroll", "shallow", "prefetch", "legacyBehavior", "locale"],
4
- _excluded2 = ["activeClassName", "as", "className", "href", "legacyBehavior", "linkAs", "locale", "noLinkStyle", "prefetch", "replace", "role", "scroll", "shallow"];
5
1
  import * as React from 'react';
6
2
  import clsx from 'clsx';
7
3
  import { useRouter } from 'next/router';
@@ -24,16 +20,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
20
  const Anchor = styled('a')({});
25
21
  const NextLinkComposed = /*#__PURE__*/React.forwardRef(function NextLinkComposed(props, ref) {
26
22
  const {
27
- to,
28
- linkAs,
29
- replace,
30
- scroll,
31
- shallow,
32
- prefetch,
33
- legacyBehavior = true,
34
- locale
35
- } = props,
36
- other = _objectWithoutPropertiesLoose(props, _excluded);
23
+ to,
24
+ linkAs,
25
+ replace,
26
+ scroll,
27
+ shallow,
28
+ prefetch,
29
+ legacyBehavior = true,
30
+ locale,
31
+ ...other
32
+ } = props;
37
33
  return /*#__PURE__*/_jsx(NextLink, {
38
34
  href: to,
39
35
  prefetch: prefetch,
@@ -44,31 +40,33 @@ const NextLinkComposed = /*#__PURE__*/React.forwardRef(function NextLinkComposed
44
40
  passHref: true,
45
41
  locale: locale,
46
42
  legacyBehavior: legacyBehavior,
47
- children: /*#__PURE__*/_jsx(Anchor, _extends({
43
+ children: /*#__PURE__*/_jsx(Anchor, {
48
44
  "data-no-markdown-link": "true",
49
- ref: ref
50
- }, other))
45
+ ref: ref,
46
+ ...other
47
+ })
51
48
  });
52
49
  });
53
50
  // A styled version of the Next.js Pages Router Link component:
54
51
  // https://nextjs.org/docs/pages/api-reference/components/link
55
52
  export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
56
53
  const {
57
- activeClassName = 'active',
58
- as,
59
- className: classNameProps,
60
- href,
61
- legacyBehavior,
62
- linkAs: linkAsProp,
63
- locale,
64
- noLinkStyle,
65
- prefetch,
66
- replace,
67
- // Link don't have roles.
68
- scroll,
69
- shallow
70
- } = props,
71
- other = _objectWithoutPropertiesLoose(props, _excluded2);
54
+ activeClassName = 'active',
55
+ as,
56
+ className: classNameProps,
57
+ href,
58
+ legacyBehavior,
59
+ linkAs: linkAsProp,
60
+ locale,
61
+ noLinkStyle,
62
+ prefetch,
63
+ replace,
64
+ role,
65
+ // Link don't have roles.
66
+ scroll,
67
+ shallow,
68
+ ...other
69
+ } = props;
72
70
  const router = useRouter();
73
71
  const pathname = typeof href === 'string' ? href : href?.pathname;
74
72
  const routerPathname = router.pathname.replace('/[docsTab]', '');
@@ -93,14 +91,18 @@ export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
93
91
  locale
94
92
  };
95
93
  if (noLinkStyle) {
96
- return /*#__PURE__*/_jsx(NextLinkComposed, _extends({
94
+ return /*#__PURE__*/_jsx(NextLinkComposed, {
97
95
  className: className,
98
- ref: ref
99
- }, nextjsProps, other));
96
+ ref: ref,
97
+ ...nextjsProps,
98
+ ...other
99
+ });
100
100
  }
101
- return /*#__PURE__*/_jsx(MuiLink, _extends({
101
+ return /*#__PURE__*/_jsx(MuiLink, {
102
102
  component: NextLinkComposed,
103
103
  className: className,
104
- ref: ref
105
- }, nextjsProps, other));
104
+ ref: ref,
105
+ ...nextjsProps,
106
+ ...other
107
+ });
106
108
  });
@@ -1,6 +1,3 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className", "renderedMarkdown"];
4
1
  import * as React from 'react';
5
2
  import clsx from 'clsx';
6
3
  import { alpha, darken, styled } from '@mui/material/styles';
@@ -8,7 +5,8 @@ import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from
8
5
  import { jsx as _jsx } from "react/jsx-runtime";
9
6
  const Root = styled('div')(({
10
7
  theme
11
- }) => _extends({}, lightTheme.typography.body1, {
8
+ }) => ({
9
+ ...lightTheme.typography.body1,
12
10
  lineHeight: 1.6,
13
11
  // Increased compared to the 1.5 default to make the docs easier to read.
14
12
  color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
@@ -41,11 +39,12 @@ const Root = styled('div')(({
41
39
  maxWidth: 'calc(100vw - 32px - 16px)'
42
40
  }
43
41
  },
44
- '& code': _extends({}, lightTheme.typography.body2, {
42
+ '& code': {
43
+ ...lightTheme.typography.body2,
45
44
  fontFamily: lightTheme.typography.fontFamilyCode,
46
45
  fontWeight: 400,
47
46
  WebkitFontSmoothing: 'subpixel-antialiased'
48
- }),
47
+ },
49
48
  '& pre > code': {
50
49
  // Reset for Safari
51
50
  // https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
@@ -63,47 +62,53 @@ const Root = styled('div')(({
63
62
  direction: 'ltr /*! @noflip */',
64
63
  boxDecorationBreak: 'clone'
65
64
  },
66
- '& h1': _extends({}, lightTheme.typography.h3, {
65
+ '& h1': {
66
+ ...lightTheme.typography.h3,
67
67
  fontSize: lightTheme.typography.pxToRem(36),
68
68
  fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
69
69
  margin: '10px 0',
70
70
  color: `var(--muidocs-palette-primaryDark-900, ${lightTheme.palette.primaryDark[900]})`,
71
71
  fontWeight: 600,
72
72
  letterSpacing: -0.2
73
- }),
74
- '& .description': _extends({}, lightTheme.typography.subtitle1, {
73
+ },
74
+ '& .description': {
75
+ ...lightTheme.typography.subtitle1,
75
76
  fontWeight: 400,
76
77
  margin: '0 0 24px'
77
- }),
78
+ },
78
79
  '& .component-tabs': {
79
80
  margin: '0 0 40px'
80
81
  },
81
- '& h2': _extends({}, lightTheme.typography.h5, {
82
+ '& h2': {
83
+ ...lightTheme.typography.h5,
82
84
  fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
83
85
  fontSize: theme.typography.pxToRem(26),
84
86
  fontWeight: lightTheme.typography.fontWeightSemiBold,
85
87
  color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
86
88
  margin: '40px 0 4px'
87
- }),
88
- '& h3': _extends({}, lightTheme.typography.h6, {
89
+ },
90
+ '& h3': {
91
+ ...lightTheme.typography.h6,
89
92
  fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
90
93
  fontSize: theme.typography.pxToRem(20),
91
94
  fontWeight: lightTheme.typography.fontWeightSemiBold,
92
95
  color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
93
96
  margin: '24px 0 4px'
94
- }),
95
- '& h4': _extends({}, lightTheme.typography.subtitle1, {
97
+ },
98
+ '& h4': {
99
+ ...lightTheme.typography.subtitle1,
96
100
  fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
97
101
  fontWeight: lightTheme.typography.fontWeightSemiBold,
98
102
  color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
99
103
  margin: '20px 0 6px'
100
- }),
101
- '& h5': _extends({}, lightTheme.typography.subtitle2, {
104
+ },
105
+ '& h5': {
106
+ ...lightTheme.typography.subtitle2,
102
107
  fontFamily: `"General Sans", ${lightTheme.typography.fontFamilySystem}`,
103
108
  fontWeight: lightTheme.typography.fontWeightSemiBold,
104
109
  color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
105
110
  margin: '20px 0 8px'
106
- }),
111
+ },
107
112
  '& p': {
108
113
  marginTop: 0,
109
114
  marginBottom: 16,
@@ -231,13 +236,14 @@ const Root = styled('div')(({
231
236
  borderBottom: `1px dotted var(--muidocs-palette-divider, ${lightTheme.palette.divider})`
232
237
  }
233
238
  },
234
- '& td': _extends({}, theme.typography.body2, {
239
+ '& td': {
240
+ ...theme.typography.body2,
235
241
  borderBottom: `1px solid var(--muidocs-palette-divider, ${lightTheme.palette.divider})`,
236
242
  paddingRight: 20,
237
243
  paddingTop: 16,
238
244
  paddingBottom: 16,
239
245
  color: `var(--muidocs-palette-text-secondary, ${lightTheme.palette.text.secondary})`
240
- }),
246
+ },
241
247
  '& td code': {
242
248
  lineHeight: 1.6
243
249
  },
@@ -798,10 +804,10 @@ const Root = styled('div')(({
798
804
  }));
799
805
  export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownElement(props, ref) {
800
806
  const {
801
- className,
802
- renderedMarkdown
803
- } = props,
804
- other = _objectWithoutPropertiesLoose(props, _excluded);
807
+ className,
808
+ renderedMarkdown,
809
+ ...other
810
+ } = props;
805
811
  const more = {};
806
812
  if (typeof renderedMarkdown === 'string') {
807
813
  // workaround for https://github.com/facebook/react/issues/17170
@@ -810,9 +816,10 @@ export const MarkdownElement = /*#__PURE__*/React.forwardRef(function MarkdownEl
810
816
  __html: renderedMarkdown
811
817
  };
812
818
  }
813
- return /*#__PURE__*/_jsx(Root, _extends({
814
- className: clsx('markdown-body', className)
815
- }, more, other, {
819
+ return /*#__PURE__*/_jsx(Root, {
820
+ className: clsx('markdown-body', className),
821
+ ...more,
822
+ ...other,
816
823
  ref: ref
817
- }));
824
+ });
818
825
  });
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import * as React from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import NProgress from 'nprogress';
@@ -38,7 +37,7 @@ function NProgressBar(props) {
38
37
  return /*#__PURE__*/_jsxs(NoSsr, {
39
38
  children: [props.children, /*#__PURE__*/_jsx(GlobalStyles, {
40
39
  styles: theme => ({
41
- '#nprogress': _extends({
40
+ '#nprogress': {
42
41
  direction: 'ltr',
43
42
  pointerEvents: 'none',
44
43
  position: 'fixed',
@@ -47,10 +46,10 @@ function NProgressBar(props) {
47
46
  right: 0,
48
47
  height: 2,
49
48
  zIndex: (theme.vars || theme).zIndex.tooltip,
50
- backgroundColor: (theme.vars || theme).palette.primary[200]
51
- }, theme.applyDarkStyles({
52
- backgroundColor: (theme.vars || theme).palette.primary[700]
53
- }), {
49
+ backgroundColor: (theme.vars || theme).palette.primary[200],
50
+ ...theme.applyDarkStyles({
51
+ backgroundColor: (theme.vars || theme).palette.primary[700]
52
+ }),
54
53
  '& .nprogress-bar': {
55
54
  position: 'fixed',
56
55
  backgroundColor: (theme.vars || theme).palette.primary.main,
@@ -79,7 +78,7 @@ function NProgressBar(props) {
79
78
  right: -80,
80
79
  clip: 'rect(-6px,90px,14px,-6px)'
81
80
  }
82
- })
81
+ }
83
82
  })
84
83
  })]
85
84
  });