@mui/styled-engine-sc 7.0.0 → 7.0.2

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,105 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.2
4
+
5
+ _Apr 9, 2025_
6
+
7
+ A big thanks to the 12 contributors who made this release possible.
8
+
9
+ ### `@mui/material@7.0.2`
10
+
11
+ - [Autocomplete] Add ability to render custom single value (#45387) @ZeeshanTamboli
12
+ - [Autocomplete] Prevent shrink animation in controlled Autocomplete when initial `value` is provided (#45734) @imadx
13
+ - [AvatarGroup] Fix `spacing` prop ignoring value `0` (#45799) @Kartik-Murthy
14
+ - [Dialog] Deprecate composed classes (#45418) @sai6855
15
+
16
+ ### `@mui/material-nextjs@7.0.2`
17
+
18
+ - Fix nonce issues (#45794) @Janpot
19
+ - Add warnings to nextjs router integration (#45778) @Janpot
20
+
21
+ ### `@mui/styled-engine@7.0.2`
22
+
23
+ - Added caching to `StyledEngineProvider` to improve performance for running tests with Jest (#45846) @siriwatknp
24
+
25
+ ### Core
26
+
27
+ - [blog] Improve upvote video (0646444) @oliviertassinari
28
+ - [code-infra] Remove webpack aliases (#45841) @Janpot
29
+ - [code-infra] Remove .tsbuildinfo from build folder (#45727) @Janpot
30
+ - [code-infra] Stabilize theme viewer screenshot tests (#45768) @Janpot
31
+ - [code-infra] Remove modern bundles (#45808) @Janpot
32
+ - Update buildTypes script to optionally remove css imports (#45835) @brijeshb42
33
+ - Allow repo to be accepted as an argument for releaseTag (#45801) @brijeshb42
34
+ - Update scripts to support base-ui (#45784) @brijeshb42
35
+ - Sync scorecards.yml across codebase (4de5076) @oliviertassinari
36
+ - Remove baseUrl and skipLibCheck (#45806) @Janpot
37
+ - [docs-infra] Fix redirect styles pages (#45848) @siriwatknp
38
+ - [docs-infra] Remove false-positive Vale rules (#45843) @oliviertassinari
39
+ - [docs-infra] Make sure Next.js can find package.json through its aliases (#45840) @Janpot
40
+ - [docs-infra] Fix Next.js brand name coverage (6915f8d) @oliviertassinari
41
+ - [docs-infra] Fix layout shift between MIT and commercial pages (#45760) @oliviertassinari
42
+ - [docs-infra] Non breaking space for ESM (#45758) @oliviertassinari
43
+ - [support-infra] Remove dead 'workflow_call:' (#45736) @oliviertassinari
44
+ - [utils] Support cleanup callbacks in useForkRef (#45621) @DiegoAndai
45
+
46
+ ### Docs
47
+
48
+ - Fix pigment vite integration example (#44746) @brijeshb42
49
+ - Update migration instructions and codemod references for deprecated APIs (#45793) @sai6855
50
+ - Add TanStack Router routing example (#44930) @vetledv
51
+ - Fix layout shifting in icons page (#45779) @sai6855
52
+ - Fix migration instructions (#45762) @oliviertassinari
53
+ - Fix wrong TypeScript support version (#45761) @oliviertassinari
54
+ - Fix link to mui-joy/src/styles/components.d.ts (#45763) @oliviertassinari
55
+ - Fix 301 link (ae94c40) @oliviertassinari
56
+ - Fix 301 links (abd8f63) @oliviertassinari
57
+ - Fix 301 redirection (c7658de) @oliviertassinari
58
+ - [nextjs] Migrate from deprecated "legacyBehavior" prop (#44871) @oliviertassinari
59
+ - [nextjs] Document CSP for Next.js Pages Router (#45798) @Grohden
60
+
61
+ All contributors of this release in alphabetical order: @brijeshb42, @DiegoAndai, @Grohden, @imadx, @Janpot, @Kartik-Murthy, @oliviertassinari, @renovate[bot], @sai6855, @siriwatknp, @vetledv, @ZeeshanTamboli
62
+
63
+ ## 7.0.1
64
+
65
+ <!-- generated comparing v7.0.0..master -->
66
+
67
+ _Mar 28, 2025_
68
+
69
+ A big thanks to the 7 contributors who made this release possible.
70
+
71
+ ### `@mui/material@7.0.1`
72
+
73
+ - Export ThemeProviderProps (#45701) @aarongarciah
74
+ - [Fab] Fix default variant text color when using CSS vars (#45714) @aarongarciah
75
+ - Remove mention of v7 in deprecation messages (#45708) @DiegoAndai
76
+ - [Popover] Allow `null` in `anchorEl` function return type (#45045) @eduter
77
+ - Fix missing CSSProperties/MixinOptions types (#45706) @Janpot
78
+
79
+ ### `@mui/icons-material@7.0.1`
80
+
81
+ - [code-infra] Fix icon-material type resolution under `moduleResolution: "node"` (#45704) @Janpot
82
+ - Bring back individual icon dts (#45711) @Janpot
83
+
84
+ ### Core
85
+
86
+ - Improve the release instructions (#45688) @mnajdova
87
+
88
+ ### Docs
89
+
90
+ - Fix Masonry and Toolpad dark mode demos (#45721) @siriwatknp
91
+ - Update v7 related copy (#45716) @aarongarciah
92
+ - Avoid unwanted undefined in page title (#45718) @aarongarciah
93
+ - Fix joy templates error (#45715) @siriwatknp
94
+ - Rename GitHub icon import (#45709) @micttyoid
95
+ - Fix Safari issue in dark mode (#45696) @mnajdova
96
+ - Fix `Grid`, `GridLegacy`, `Stack`, `Badge`, `Select`, `Autocomplete` demos CSS variables (#45693) @DiegoAndai
97
+ - Add "Material UI v7 is here" to the notifications (#45694) @DiegoAndai
98
+ - Fix `Breadcrumbs`, `List`, `Divider`, and `Typography` dark mode demos (#45692) @siriwatknp
99
+ - Fix Material Icons page in dark mode (#45691) @mnajdova
100
+
101
+ All contributors of this release in alphabetical order: @aarongarciah, @DiegoAndai, @eduter, @Janpot, @micttyoid, @mnajdova, @siriwatknp
102
+
3
103
  ## 7.0.0
4
104
 
5
105
  <!-- generated comparing v7.0.0-rc.0..master -->
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v7.0.0
2
+ * @mui/styled-engine-sc v7.0.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v7.0.0
2
+ * @mui/styled-engine-sc v7.0.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/styled-engine-sc",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "styled() API wrapper package for styled-components.",
@@ -26,7 +26,7 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.26.10",
29
+ "@babel/runtime": "^7.27.0",
30
30
  "@types/hoist-non-react-statics": "^3.3.6",
31
31
  "csstype": "^3.1.3",
32
32
  "hoist-non-react-statics": "^3.3.2",
@@ -54,10 +54,6 @@
54
54
  "import": {
55
55
  "types": "./esm/index.d.ts",
56
56
  "default": "./esm/index.js"
57
- },
58
- "mui-modern": {
59
- "types": "./modern/index.d.ts",
60
- "default": "./modern/index.js"
61
57
  }
62
58
  },
63
59
  "./*": {
@@ -68,10 +64,6 @@
68
64
  "import": {
69
65
  "types": "./esm/*/index.d.ts",
70
66
  "default": "./esm/*/index.js"
71
- },
72
- "mui-modern": {
73
- "types": "./modern/*/index.d.ts",
74
- "default": "./modern/*/index.js"
75
67
  }
76
68
  },
77
69
  "./esm": null,
@@ -1,20 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { createGlobalStyle } from 'styled-components';
3
- function isEmpty(obj) {
4
- return obj === undefined || obj === null || Object.keys(obj).length === 0;
5
- }
6
- const GlobalStyles = createGlobalStyle(props => {
7
- const {
8
- styles,
9
- defaultTheme = {}
10
- } = props;
11
- if (typeof styles === 'function') {
12
- return styles(isEmpty(props.theme) ? defaultTheme : props.theme);
13
- }
14
- return styles;
15
- });
16
- export default GlobalStyles;
17
- GlobalStyles.propTypes = {
18
- defaultTheme: PropTypes.object,
19
- styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])
20
- };
@@ -1 +0,0 @@
1
- export { default } from "./GlobalStyles.js";
@@ -1,28 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export default function StyledEngineProvider(props) {
3
- const {
4
- injectFirst,
5
- children
6
- } = props;
7
- if (injectFirst && typeof window !== 'undefined') {
8
- const head = document.head;
9
- if (!head.querySelector('[data-styled="active"]')) {
10
- const injectFirstNode = document.createElement('style');
11
- injectFirstNode.setAttribute('data-styled', 'active');
12
- head.insertBefore(injectFirstNode, head.firstChild);
13
- }
14
- }
15
- return children;
16
- }
17
- StyledEngineProvider.propTypes = {
18
- /**
19
- * Your component tree.
20
- */
21
- children: PropTypes.node,
22
- /**
23
- * By default, the styles are injected last in the <head> element of the page.
24
- * As a result, they gain more specificity than any other style sheet.
25
- * If you want to override MUI's styles, set this prop.
26
- */
27
- injectFirst: PropTypes.bool
28
- };
@@ -1 +0,0 @@
1
- export { default } from "./StyledEngineProvider.js";
package/modern/index.js DELETED
@@ -1,60 +0,0 @@
1
- /**
2
- * @mui/styled-engine-sc v7.0.0
3
- *
4
- * @license MIT
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
- import scStyled from 'styled-components';
9
- export default function styled(tag, options) {
10
- let stylesFactory;
11
- if (options) {
12
- stylesFactory = scStyled(tag).withConfig({
13
- displayName: options.label,
14
- shouldForwardProp: options.shouldForwardProp
15
- });
16
- } else {
17
- stylesFactory = scStyled(tag);
18
- }
19
- if (process.env.NODE_ENV !== 'production') {
20
- const fn = (...styles) => {
21
- const component = typeof tag === 'string' ? `"${tag}"` : 'component';
22
- if (styles.length === 0) {
23
- console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join('\n'));
24
- } else if (styles.some(style => style === undefined)) {
25
- console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
26
- }
27
- return stylesFactory(...styles);
28
- };
29
- fn.withConfig = stylesFactory.withConfig;
30
- return fn;
31
- }
32
- return stylesFactory;
33
- }
34
-
35
- // eslint-disable-next-line @typescript-eslint/naming-convention
36
- export function internal_mutateStyles(tag, processor) {
37
- // Styled-components attaches an instance to `componentStyle`.
38
- // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/StyledComponent.ts#L257
39
- //
40
- // The instance contains `rules` (the styles)
41
- // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/ComponentStyle.ts#L23
42
- if (tag.componentStyle) {
43
- tag.componentStyle.rules = processor(tag.componentStyle.rules);
44
- }
45
- }
46
-
47
- // Not needed anymore, but fixes https://github.com/mui/material-ui/issues/44112
48
- // TODO: Remove it in v7
49
- // eslint-disable-next-line @typescript-eslint/naming-convention
50
- export function internal_processStyles(tag, processor) {
51
- return internal_mutateStyles(tag, processor);
52
- }
53
-
54
- // eslint-disable-next-line @typescript-eslint/naming-convention
55
- export function internal_serializeStyles(styles) {
56
- return styles;
57
- }
58
- export { ThemeContext, keyframes, css } from 'styled-components';
59
- export { default as StyledEngineProvider } from "./StyledEngineProvider/index.js";
60
- export { default as GlobalStyles } from "./GlobalStyles/index.js";
@@ -1 +0,0 @@
1
- {"type":"module","sideEffects":false}