@mui/styled-engine-sc 5.9.3 → 5.10.3

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,242 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.10.3
4
+
5
+ <!-- generated comparing v5.10.2..master -->
6
+
7
+ _Aug 29, 2022_
8
+
9
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ⚡ @mnajdova implemented an alternative to OverridableComponent to achieve better dev-time performance (#32735)
12
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
13
+
14
+ ### `@mui/material@5.10.3`
15
+
16
+ - [Autocomplete][material] Fix value overflow when `disableClearable` is used (#34053) @mnajdova
17
+ - [Autocomplete] Update unstyled demo to not import Material UI (#34060) @oliviertassinari
18
+ - [Slider] Remove SliderInput export from d.ts (#34055) @pieetrus
19
+ - [TablePagination] Fix select variant not working (#33974) @ZeeshanTamboli
20
+
21
+ ### `@mui/system@5.10.3`
22
+
23
+ - [system] Fix mode blink when open multiple sessions (#33877) @siriwatknp
24
+
25
+ ### `@mui/base@5.0.0-alpha.95`
26
+
27
+ - [Button][base] Prevent too many ref updates (#33882) @michaldudak
28
+ - [Select][base] Fix typo in listbox blur event handler (#34120) @ZeeshanTamboli
29
+ - [TrapFocus] Improve tab test and simplify demo (#34008) @EthanStandel
30
+
31
+ ### `@mui/joy@5.0.0-alpha.43`
32
+
33
+ - [Joy] Fix `role` proptypes (#34119) @siriwatknp
34
+ - [Joy] Refine `componentsProps` for all components (#34077) @siriwatknp
35
+ - [Radio][joy] support `componentsProps` as a function (#34022) @siriwatknp
36
+ - [Select][joy] Improve the a11y on the select field demo (#34073) @mnajdova
37
+ - [Textarea][joy] Add `Textarea` component (#33975) @siriwatknp
38
+
39
+ ### Docs
40
+
41
+ - [blog] Add Grid v2 announcement (#33926) @siriwatknp
42
+ - [blog] Making customizable components (#33183) @alexfauquette
43
+ - [blog] Improve SEO metadata (#33954) @oliviertassinari
44
+ - [docs] Add introduction Base component demos & general uplift (#33896) @danilo-leal
45
+ - [docs] Fix Gatsby sample config in CSS variables (#34024) @bicstone
46
+ - [docs] Fix 404 link from Joy to React Router (#34115) @oliviertassinari
47
+ - [docs] Fix typo in `Select` component (#34091) @HexM7
48
+ - [docs] Fix 301 links to tss's docs @oliviertassinari
49
+ - [docs] Fixing Joy UI usage snippet (#34049) @JonathanAsbury-SPS
50
+ - [docs] Fix missing JSX closing tag in Tooltip docs (#34064) @hoangph271
51
+ - [website] Add Toolpad to Navigation (#33937) @bharatkashyap
52
+ - [website] Improve SEO meta description for MUI X @oliviertassinari
53
+ - [website] Improve visual look of code demos (#34070) @oliviertassinari
54
+ - [website] Fix `DatePicker` component demo on the home page (#34054) @NaveenPantra
55
+
56
+ ### Core
57
+
58
+ - [core] Offer alternative to `OverridableComponent` via module augmentation for better performance (#32735) @mnajdova
59
+ - [core] Fix prop-type warning in regression tests (#34086) @oliviertassinari
60
+ - [core] Specify code owners (#33995) @michaldudak
61
+ - [core] Fix scroll restoration (#34037) @oliviertassinari
62
+
63
+ All contributors of this release in alphabetical order: @alexfauquette, @bharatkashyap, @bicstone, @danilo-leal, @EthanStandel, @HexM7, @hoangph271, @JonathanAsbury-SPS, @michaldudak, @mnajdova, @NaveenPantra, @oliviertassinari, @pieetrus, @renovate[bot], @siriwatknp, @ZeeshanTamboli
64
+
65
+ ## 5.10.2
66
+
67
+ <!-- generated comparing v5.10.1..master -->
68
+
69
+ _Aug 22, 2022_
70
+
71
+ A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
72
+
73
+ - ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).
74
+ A couple of icons changed their appearance. See the difference [on this Argos build](https://app.argos-ci.com/mui/material-ui/builds/4428]).
75
+
76
+ ### `@mui/material@5.10.2`
77
+
78
+ - &#8203;<!-- 16 -->[Autocomplete] Fix `keepMounted` Popper prop not working (#33957) @ZeeshanTamboli
79
+ - &#8203;<!-- 10 -->[IconButton] Fix hover effect when CSS Variables are enabled (#33971) @TheUnlocked
80
+ - &#8203;<!-- 07 -->[LoadingButton] Add support for CSS variables (#34001) @ZeeshanTamboli
81
+ - &#8203;<!-- 05 -->[TimelineConnector] Add support for CSS variables (#34002) @ZeeshanTamboli
82
+ - &#8203;<!-- 04 -->[TimelineDot] Add support for CSS variables (#34003) @ZeeshanTamboli
83
+ - &#8203;<!-- 03 -->[TreeItem] Add support for CSS variables (#34004) @ZeeshanTamboli
84
+
85
+ ### `@mui/system@5.10.2`
86
+
87
+ - &#8203;<!-- 06 -->[system] catch localStorage errors (#34027) @jsakas
88
+
89
+ ### `@mui/joy@5.0.0-alpha.42`
90
+
91
+ - &#8203;<!-- 08 -->[Joy] Add missing global exports (#33982) @tomasz-sodzawiczny
92
+
93
+ ### `@mui/icons-material@5.8.5`
94
+
95
+ - &#8203;<!-- 09 -->[icons] Sync the Material Icons (#33988) @michaldudak
96
+
97
+ ### Docs
98
+
99
+ - &#8203;<!-- 21 -->[docs] Fix typo in using-joy-ui-and-material-ui.md (#33997) @djohalo2 @danilo-leal
100
+ - &#8203;<!-- 20 -->[docs] Fix typo in the Transition docs (#34040) @alirezahekmati
101
+ - &#8203;<!-- 19 -->[docs] Typo fix in Joy UI Aspect Ratio doc (#33984) @AjeetSingh2016
102
+ - &#8203;<!-- 15 -->[docs] Fix broken Joy UI codesandbox export (#34007) @oliviertassinari
103
+ - &#8203;<!-- 14 -->[docs] Fix typos in `test` folder's README (#33976) @ropereraLK
104
+ - &#8203;<!-- 13 -->[docs] Fix interior section links in Base docs that feature hooks (#33948) @samuelsycamore
105
+ - &#8203;<!-- 12 -->[docs] Fix typo in Joy UI's List Component docs (#33956) @Cerebro92
106
+ - &#8203;<!-- 11 -->[docs] Fix typo in Joy UI's docs (#33938) @AjeetSingh2016
107
+
108
+ ### Core
109
+
110
+ - &#8203;<!-- 18 -->[website] Optimize meta description length (#34006) @oliviertassinari
111
+ - &#8203;<!-- 17 -->Revert "[core] Replace `getInitialProps` with `getStaticProps`" (#33991) @mnajdova
112
+ - &#8203;<!-- 02 -->[website] Move the React Engineer - X to next roles (#34030) @mnajdova
113
+ - &#8203;<!-- 01 -->[website] Add Icons8 gold sponsor (#33978) @michaldudak
114
+
115
+ All contributors of this release in alphabetical order: @AjeetSingh2016, @alirezahekmati, @Cerebro92, @danilo-leal, @djohalo2, @jsakas, @michaldudak, @mnajdova, @oliviertassinari, @ropereraLK, @samuelsycamore, @TheUnlocked, @tomasz-sodzawiczny, @ZeeshanTamboli
116
+
117
+ ## 5.10.1
118
+
119
+ <!-- generated comparing v5.10.0..master -->
120
+
121
+ _Aug 15, 2022_
122
+
123
+ A big thanks to the 18 contributors who made this release possible. This release was mostly around 🐛 bug fixes and 📚 documentation improvements.
124
+
125
+ ### `@mui/material@5.10.1`
126
+
127
+ - &#8203;<!-- 04 -->[TableCell] Enable variant overrides via TypeScript module augmentation (#33856) @arjunvijayanathakurup
128
+
129
+ ### `@mui/system@5.10.1`
130
+
131
+ - &#8203;<!-- 05 -->[system] Fix `ContainerProps` export (#33923) @bugzpodder
132
+
133
+ ### `@mui/base@5.0.0-alpha.93`
134
+
135
+ - &#8203;<!-- 31 -->[TrapFocus] Removes invisible tabbable elements from (#33543) @EthanStandel
136
+ - &#8203;<!-- 30 -->[Input][base] Pass the rows prop to the underlying textarea (#33873) @michaldudak
137
+ - &#8203;<!-- 06 -->[SelectUnstyled] Add ability to post the select's value when submitting a form (#33697) @michaldudak
138
+
139
+ ### `@mui/joy@5.0.0-alpha.41`
140
+
141
+ - &#8203;<!-- 07 -->[IconButton][joy] Fix large IconButton scaling (#33885) @cherewaty
142
+
143
+ ### Docs
144
+
145
+ - &#8203;<!-- 23 -->[docs] Expand on a11y section for Material UI `Link` component (#32839) @TKrishnasamy
146
+ - &#8203;<!-- 22 -->[docs] Fix typo in Joy UI's `AspectRatio` docs (#33895) @IsaacInsoll
147
+ - &#8203;<!-- 21 -->[docs] Improve the Base Usage page (#33272) @samuelsycamore
148
+ - &#8203;<!-- 20 -->[docs] Avoid refreshing the page when button on demo is clicked (#33852) @PunitSoniME
149
+ - &#8203;<!-- 19 -->[docs] Improve the HorizontalNonLinearStepper demo styling (#33886) @hayawata3626
150
+ - &#8203;<!-- 18 -->[docs] Remove dead NoSsr in the demos (#33910) @oliviertassinari
151
+ - &#8203;<!-- 17 -->[docs] Fix the reopening menu problem in MenuUnstyled demo (#33890) @michaldudak
152
+ - &#8203;<!-- 24 -->[docs] Fix a few link issues (#33909) @oliviertassinari
153
+ - &#8203;<!-- 16 -->[docs] Explain the icons package dependencies (#33592) @michaldudak
154
+ - &#8203;<!-- 15 -->[docs] Fix reported SEO issues (#33818) @oliviertassinari
155
+ - &#8203;<!-- 14 -->[docs] Add permanent notifications back (#33843) @oliviertassinari
156
+ - &#8203;<!-- 13 -->[docs] Enforce description for all pages (#33698) @oliviertassinari
157
+ - &#8203;<!-- 12 -->[docs] Clarify difference in startup times between named and default imports (#33109) @cmdcolin
158
+ - &#8203;<!-- 11 -->[docs] Update transform function in the sx prop sizing docs (#33850) @ZeeshanTamboli
159
+ - &#8203;<!-- 10 -->[docs] Adding missing accessibility labels (#33782) @PunitSoniME
160
+ - &#8203;<!-- 09 -->[docs] Fix `/system/getting-started/advanced/` does not exist (#33867) @MonstraG
161
+ - &#8203;<!-- 32 -->[docs] New Crowdin updates (#32213) @l10nbot
162
+ - &#8203;<!-- 08 -->[examples] Fix broken path to favicon.ico (#33906) @mmostafavi
163
+ - &#8203;<!-- 02 -->[website] Add new FAQ to pricing page (#33553) @oliviertassinari
164
+ - &#8203;<!-- 03 -->[website] Miscellaneous improvements to the marketing pages (#33897) @danilo-leal
165
+
166
+ ### Core
167
+
168
+ - &#8203;<!-- 29 -->[core] Add the download tracker package (#33899) @michaldudak
169
+ - &#8203;<!-- 28 -->[core] Use proper external build id for Argos uploads (#33929) @cherniavskii
170
+ - &#8203;<!-- 27 -->[core] Enforce 70 as the max width on the title on the docs (#33819) @oliviertassinari
171
+ - &#8203;<!-- 26 -->[core] Clear yarn installation warning (#33776) @michaldudak
172
+ - &#8203;<!-- 25 -->[core] Bump yarn to 1.22.19 (#33656) @michaldudak
173
+ - &#8203;<!-- 24 -->[core] Remove outdated Next.js options (#33845) @oliviertassinari
174
+ - &#8203;<!-- 34 -->[core] Add the download tracker build script (#33941) @michaldudak
175
+ - &#8203;<!-- 01 -->[website] Allow /r/store- redirection pattern @oliviertassinari
176
+
177
+ All contributors of this release in alphabetical order: @arjunvijayanathakurup, @bugzpodder, @cherewaty, @cherniavskii, @cmdcolin, @danilo-leal, @EthanStandel, @hayawata3626, @IsaacInsoll, @l10nbot, @michaldudak, @mmostafavi, @MonstraG, @oliviertassinari, @PunitSoniME, @samuelsycamore, @TKrishnasamy, @ZeeshanTamboli
178
+
179
+ ## 5.10.0
180
+
181
+ <!-- generated comparing v5.9.3..master -->
182
+
183
+ _Aug 8, 2022_
184
+
185
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
186
+
187
+ - ✨ [Stack](https://mui.com/system/react-stack/) component is added to MUI System and Joy UI #33760 #33800 @mnajdova
188
+ - ✨ [Breadcrumbs](https://mui.com/joy-ui/react-breadcrumbs/) component is added to Joy UI (#32697) @hbjORbj
189
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
190
+
191
+ ### `@mui/material@5.10.0`
192
+
193
+ - [Grid] Prevent crash if spacing is set to zero in theme (#33777) @PunitSoniME
194
+ - [Grid] Export interface `RegularBreakpoints` to fix type error (#33751) @ZeeshanTamboli
195
+ - [Skeleton] Add `rounded` variant (#33687) @siriwatknp
196
+ - [Stepper] Fix classes for icon container (#33734) @pratikkarad
197
+ - [TableCell] Enable size prop overrides via module augmentation (#33816) @brentertz
198
+ - [Tooltip] Fix tooltip arrow css var background (#33753) @TimoWilhelm
199
+ - [useScrollTrigger] Add passive flag to scroll trigger event listener #32437 (#33749) @Dsalazar1685
200
+
201
+ ### `@mui/system@5.10.0`
202
+
203
+ - Fix unnecessary styles created from `sx` (#33752) @siriwatknp
204
+ - Fix duplicated styles in Box (#33774) @iamxukai
205
+ - Don't spread props to DOM for string tags (#33761) @siriwatknp
206
+ - Add `Stack` component (#33760) @mnajdova
207
+
208
+ ### `@mui/joy@5.0.0-alpha.40`
209
+
210
+ - [Stack] Add new component (#33800) @mnajdova
211
+ - [Breadcrumbs] Add `Breadcrumbs` component (#32697) @hbjORbj
212
+ - [Card] Fix wrong api description for `size` prop (#33862) @hbjORbj
213
+ - Miscellaneous fixes (#33796, #33750) @siriwatknp
214
+
215
+ ### Docs
216
+
217
+ - [docs] Create, revise, and expand System "Getting started" docs (#33503) @samuelsycamore
218
+ - [docs] Test new image best practice @oliviertassinari
219
+ - [docs] Fix typo in the ClickAwayListerner name (#33813) @pawelsmigielski
220
+ - [docs] Fix link to `Basics` section in `Trap Focus` docs (#33772) @ZeeshanTamboli
221
+ - [docs] z-index added in popper when used by split button (#33763) @PunitSoniME
222
+ - [docs] Improve the guide for using @mui/base with Tailwind CSS (#33670) @mnajdova
223
+ - [docs] Fix warnings related to Next.js' links (#33693) @mnajdova
224
+ - [docs] Add notification to aggregation blogpost (#33745) @joserodolfofreitas
225
+ - [docs] Add Grid version 2 docs (#33554) @siriwatknp
226
+ - [examples] Fix `NextLinkComposedProps` type error (#33842) @adham618
227
+
228
+ ### Core
229
+
230
+ - [blog] Add social card to Tenerife retreat post (#33764)
231
+ - [blog] Fix blue outline bug (#33707) @oliviertassinari
232
+ - [blog] Improve the width of the layout (#33706) @oliviertassinari@samuelsycamore
233
+ - [core] Remove unnecessary packageName attribute from pages (#33488) @cherniavskii
234
+ - [core] Remove duplicated CODE_OF_CONDUCT (#33702) @oliviertassinari
235
+ - [core] Update Playwright packages together (#33737) @michaldudak
236
+ - [website] Fix notifications not being marked as read in production (#33756) @cherniavskii
237
+
238
+ All contributors of this release in alphabetical order: @adham618, @brentertz, @cherniavskii, @Dsalazar1685, @hbjORbj, @iamxukai, @joserodolfofreitas, @michaldudak, @mnajdova, @oliviertassinari, @pawelsmigielski, @pratikkarad, @PunitSoniME, @siriwatknp, @TimoWilhelm, @ZeeshanTamboli
239
+
3
240
  ## 5.9.3
4
241
 
5
242
  <!-- generated comparing v5.9.2..master -->
@@ -6880,7 +7117,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
6880
7117
 
6881
7118
  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
7119
 
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.
7120
+ - 📚 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
7121
  - 👩‍🎨 Upgrade emotion to v11 (#23007) @mnajdova.
6885
7122
  - And many more 🐛 bug fixes and 📚 improvements.
6886
7123
 
@@ -7282,7 +7519,7 @@ Here are some highlights ✨:
7282
7519
  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
7520
 
7284
7521
  - 🚀 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.
7522
+ 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
7523
  - ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
7287
7524
  - 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
7288
7525
  - And many more 🐛 bug fixes and 📚 improvements.
@@ -7623,7 +7860,7 @@ Here are some highlights ✨:
7623
7860
 
7624
7861
  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
7862
 
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/)).
7863
+ 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
7864
 
7628
7865
  This change has been in our roadmap for more than a year.
7629
7866
  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 +9113,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
8876
9113
  />
8877
9114
  ```
8878
9115
 
8879
- - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/basics/) (#21413) @mnajdova.
9116
+ - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
8880
9117
 
8881
9118
  ```diff
8882
9119
  -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.3
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.3
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.3
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.3
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.3",
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"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.17.2",
29
+ "@babel/runtime": "^7.18.9",
30
30
  "prop-types": "^15.8.1"
31
31
  },
32
32
  "peerDependencies": {