@mui/styled-engine-sc 5.9.3 → 5.10.0

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,66 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.10.0
4
+
5
+ <!-- generated comparing v5.9.3..master -->
6
+
7
+ _Aug 8, 2022_
8
+
9
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ✨ [Stack](https://mui.com/system/react-stack/) component is added to MUI System and Joy UI #33760 #33800 @mnajdova
12
+ - ✨ [Breadcrumbs](https://mui.com/joy-ui/react-breadcrumbs/) component is added to Joy UI (#32697) @hbjORbj
13
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
14
+
15
+ ### `@mui/material@5.10.0`
16
+
17
+ - [Grid] Prevent crash if spacing is set to zero in theme (#33777) @PunitSoniME
18
+ - [Grid] Export interface `RegularBreakpoints` to fix type error (#33751) @ZeeshanTamboli
19
+ - [Skeleton] Add `rounded` variant (#33687) @siriwatknp
20
+ - [Stepper] Fix classes for icon container (#33734) @pratikkarad
21
+ - [TableCell] Enable size prop overrides via module augmentation (#33816) @brentertz
22
+ - [Tooltip] Fix tooltip arrow css var background (#33753) @TimoWilhelm
23
+ - [useScrollTrigger] Add passive flag to scroll trigger event listener #32437 (#33749) @Dsalazar1685
24
+
25
+ ### `@mui/system@5.10.0`
26
+
27
+ - Fix unnecessary styles created from `sx` (#33752) @siriwatknp
28
+ - Fix duplicated styles in Box (#33774) @iamxukai
29
+ - Don't spread props to DOM for string tags (#33761) @siriwatknp
30
+ - Add `Stack` component (#33760) @mnajdova
31
+
32
+ ### `@mui/joy@5.0.0-alpha.40`
33
+
34
+ - [Stack] Add new component (#33800) @mnajdova
35
+ - [Breadcrumbs] Add `Breadcrumbs` component (#32697) @hbjORbj
36
+ - [Card] Fix wrong api description for `size` prop (#33862) @hbjORbj
37
+ - Miscellaneous fixes (#33796, #33750) @siriwatknp
38
+
39
+ ### Docs
40
+
41
+ - [docs] Create, revise, and expand System "Getting started" docs (#33503) @samuelsycamore
42
+ - [docs] Test new image best practice @oliviertassinari
43
+ - [docs] Fix typo in the ClickAwayListerner name (#33813) @pawelsmigielski
44
+ - [docs] Fix link to `Basics` section in `Trap Focus` docs (#33772) @ZeeshanTamboli
45
+ - [docs] z-index added in popper when used by split button (#33763) @PunitSoniME
46
+ - [docs] Improve the guide for using @mui/base with Tailwind CSS (#33670) @mnajdova
47
+ - [docs] Fix warnings related to Next.js' links (#33693) @mnajdova
48
+ - [docs] Add notification to aggregation blogpost (#33745) @joserodolfofreitas
49
+ - [docs] Add Grid version 2 docs (#33554) @siriwatknp
50
+ - [examples] Fix `NextLinkComposedProps` type error (#33842) @adham618
51
+
52
+ ### Core
53
+
54
+ - [blog] Add social card to Tenerife retreat post (#33764)
55
+ - [blog] Fix blue outline bug (#33707) @oliviertassinari
56
+ - [blog] Improve the width of the layout (#33706) @oliviertassinari@samuelsycamore
57
+ - [core] Remove unnecessary packageName attribute from pages (#33488) @cherniavskii
58
+ - [core] Remove duplicated CODE_OF_CONDUCT (#33702) @oliviertassinari
59
+ - [core] Update Playwright packages together (#33737) @michaldudak
60
+ - [website] Fix notifications not being marked as read in production (#33756) @cherniavskii
61
+
62
+ All contributors of this release in alphabetical order: @adham618, @brentertz, @cherniavskii, @Dsalazar1685, @hbjORbj, @iamxukai, @joserodolfofreitas, @michaldudak, @mnajdova, @oliviertassinari, @pawelsmigielski, @pratikkarad, @PunitSoniME, @siriwatknp, @TimoWilhelm, @ZeeshanTamboli
63
+
3
64
  ## 5.9.3
4
65
 
5
66
  <!-- generated comparing v5.9.2..master -->
@@ -6880,7 +6941,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
6880
6941
 
6881
6942
  While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
6882
6943
 
6883
- - 📚 Revamp the documentation for [the system](https://mui.com/system/basics/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
6944
+ - 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/overview/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
6884
6945
  - 👩‍🎨 Upgrade emotion to v11 (#23007) @mnajdova.
6885
6946
  - And many more 🐛 bug fixes and 📚 improvements.
6886
6947
 
@@ -7282,7 +7343,7 @@ Here are some highlights ✨:
7282
7343
  If you target IE11, you need to use the new bundle (`legacy`). We are treating IE11 as a second class-citizen, which is a continuation of the direction taken in #22873.
7283
7344
 
7284
7345
  - 🚀 Improve the internal benchmark suite (#22923, #23058) @mnajdova.
7285
- This was a prerequisite step to improve the [system](https://mui.com/system/basics/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
7346
+ This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/overview/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
7286
7347
  - ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
7287
7348
  - 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
7288
7349
  - And many more 🐛 bug fixes and 📚 improvements.
@@ -7623,7 +7684,7 @@ Here are some highlights ✨:
7623
7684
 
7624
7685
  The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
7625
7686
 
7626
- Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/basics/)).
7687
+ Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/overview/)).
7627
7688
 
7628
7689
  This change has been in our roadmap for more than a year.
7629
7690
  We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
@@ -8876,7 +8937,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
8876
8937
  />
8877
8938
  ```
8878
8939
 
8879
- - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/basics/) (#21413) @mnajdova.
8940
+ - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
8880
8941
 
8881
8942
  ```diff
8882
8943
  -import Typography from '@material-ui/core/Typography';
package/index.d.ts CHANGED
@@ -21,6 +21,15 @@ export { default as StyledEngineProvider } from './StyledEngineProvider';
21
21
  export { default as GlobalStyles } from './GlobalStyles';
22
22
  export * from './GlobalStyles';
23
23
 
24
+ /**
25
+ * For internal usage in `@mui/system` package
26
+ */
27
+ // eslint-disable-next-line @typescript-eslint/naming-convention
28
+ export function internal_processStyles(
29
+ tag: React.ElementType,
30
+ processor: (styles: any) => any,
31
+ ): void;
32
+
24
33
  // These are the same as the ones in @mui/styled-engine
25
34
  // CSS.PropertiesFallback are necessary so that we support spreading of the mixins. For example:
26
35
  // '@font-face'?: Fontface | Fontface[]
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -34,7 +34,18 @@ export default function styled(tag, options) {
34
34
  }
35
35
 
36
36
  return stylesFactory;
37
- }
37
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
38
+
39
+ export const internal_processStyles = (tag, processor) => {
40
+ // Styled-components attaches an instance to `componentStyle`.
41
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/StyledComponent.ts#L257
42
+ //
43
+ // The instance contains `rules` (the styles)
44
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/ComponentStyle.ts#L23
45
+ if (tag.componentStyle) {
46
+ tag.componentStyle.rules = processor(tag.componentStyle.rules);
47
+ }
48
+ };
38
49
  export { ThemeContext, keyframes, css } from 'styled-components';
39
50
  export { default as StyledEngineProvider } from './StyledEngineProvider';
40
51
  export { default as GlobalStyles } from './GlobalStyles';
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -40,7 +40,18 @@ export default function styled(tag, options) {
40
40
  }
41
41
 
42
42
  return stylesFactory;
43
- }
43
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
44
+
45
+ export var internal_processStyles = function internal_processStyles(tag, processor) {
46
+ // Styled-components attaches an instance to `componentStyle`.
47
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/StyledComponent.ts#L257
48
+ //
49
+ // The instance contains `rules` (the styles)
50
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/ComponentStyle.ts#L23
51
+ if (tag.componentStyle) {
52
+ tag.componentStyle.rules = processor(tag.componentStyle.rules);
53
+ }
54
+ };
44
55
  export { ThemeContext, keyframes, css } from 'styled-components';
45
56
  export { default as StyledEngineProvider } from './StyledEngineProvider';
46
57
  export { default as GlobalStyles } from './GlobalStyles';
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -34,7 +34,18 @@ export default function styled(tag, options) {
34
34
  }
35
35
 
36
36
  return stylesFactory;
37
- }
37
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
38
+
39
+ export const internal_processStyles = (tag, processor) => {
40
+ // Styled-components attaches an instance to `componentStyle`.
41
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/StyledComponent.ts#L257
42
+ //
43
+ // The instance contains `rules` (the styles)
44
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/ComponentStyle.ts#L23
45
+ if (tag.componentStyle) {
46
+ tag.componentStyle.rules = processor(tag.componentStyle.rules);
47
+ }
48
+ };
38
49
  export { ThemeContext, keyframes, css } from 'styled-components';
39
50
  export { default as StyledEngineProvider } from './StyledEngineProvider';
40
51
  export { default as GlobalStyles } from './GlobalStyles';
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -35,6 +35,7 @@ Object.defineProperty(exports, "css", {
35
35
  }
36
36
  });
37
37
  exports.default = styled;
38
+ exports.internal_processStyles = void 0;
38
39
  Object.defineProperty(exports, "keyframes", {
39
40
  enumerable: true,
40
41
  get: function () {
@@ -82,4 +83,18 @@ function styled(tag, options) {
82
83
  }
83
84
 
84
85
  return stylesFactory;
85
- }
86
+ } // eslint-disable-next-line @typescript-eslint/naming-convention
87
+
88
+
89
+ const internal_processStyles = (tag, processor) => {
90
+ // Styled-components attaches an instance to `componentStyle`.
91
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/StyledComponent.ts#L257
92
+ //
93
+ // The instance contains `rules` (the styles)
94
+ // https://github.com/styled-components/styled-components/blob/da8151762dcf72735ffba358173d4c097f6d5888/packages/styled-components/src/models/ComponentStyle.ts#L23
95
+ if (tag.componentStyle) {
96
+ tag.componentStyle.rules = processor(tag.componentStyle.rules);
97
+ }
98
+ };
99
+
100
+ exports.internal_processStyles = internal_processStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/styled-engine-sc",
3
- "version": "5.9.3",
3
+ "version": "5.10.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "styled() API wrapper package for styled-components.",