@mui/styled-engine-sc 9.0.0-alpha.0 → 9.0.0-beta.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,337 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 9.0.0-beta.0
4
+
5
+ <!-- generated comparing v9.0.0-alpha.4..master -->
6
+
7
+ _Mar 25, 2026_
8
+
9
+ A big thanks to the 8 contributors who made this release possible.
10
+
11
+ ### `@mui/material@9.0.0-beta.0`
12
+
13
+ #### Breaking Changes
14
+
15
+ - [linear-progress] Remove deprecated CSS classes (#48068) @mj12albert
16
+ - [list-item, list-item-text] Remove deprecated props (#48042) @siriwatknp
17
+ - [button-group] Remove deprecated classes (#48043) @siriwatknp
18
+ - [card] Remove deprecated CardHeader props (#47995) @silviuaavram
19
+ - [checkbox][radio][switch] Remove deprecated inputProps and inputRef (#48059) @siriwatknp
20
+ - [chip] Remove deprecated classes (#48046) @silviuaavram
21
+ - [dialog][modal][drawer][swipeabledrawer] Remove deprecated props and classes (#48039) @silviuaavram
22
+ - [divider] Remove deprecated CSS classes (#48075) @siriwatknp
23
+ - [drawer] Remove deprecated CSS classes (#48077) @siriwatknp
24
+ - [image-list-item-bar] Remove deprecated CSS classes (#48064) @siriwatknp
25
+ - [inputs] Remove deprecated props & classes (#48071) @mj12albert
26
+ - [material-ui] Remove unnecessary overridesResolvers from styled components (#48082) @ZeeshanTamboli
27
+ - [material-ui][system] Remove deprecated system props from Box, Stack, Typography (#48072) @siriwatknp
28
+ - [pagination-item] Remove deprecated CSS classes (#48076) @siriwatknp
29
+ - [pagination-item] Remove deprecated props (#48038) @siriwatknp
30
+ - [rating] Remove deprecated IconContainerComponent (#48019) @siriwatknp
31
+ - [select] Remove deprecated CSS classes (#48065) @mj12albert
32
+ - [slider] Remove deprecated CSS classes (#48074) @siriwatknp
33
+ - [step-connector][step-content][step-label] Remove deprecated props and classes (#48058) @siriwatknp
34
+ - [tabs][tab] Remove deprecated CSS classes (#48078) @siriwatknp
35
+ - [table-pagination][table-sort-label] Remove deprecated props and classes (#48060) @siriwatknp
36
+ - [toggle-button-group] Remove deprecated classes (#48061) @siriwatknp
37
+
38
+ #### Changes
39
+
40
+ - [system] Improve performance when using sx prop (#44254) @romgrk
41
+
42
+ ### `@mui/codemod@9.0.0-beta.0`
43
+
44
+ - [codemod] Add missing codemod links in upgrade guide (#48069) @silviuaavram
45
+
46
+ ### Docs
47
+
48
+ - Mention all breaking changes in changelog (#48091) @silviuaavram
49
+ - Fix link to upgrade-to-v9 docs in release CHANGELOG (#48081) @ZeeshanTamboli
50
+
51
+ ### Core
52
+
53
+ - Update browserslistrc (#48085) @silviuaavram
54
+ - [code-infra] Prevent major version updates of bundler/framework packages in bundling fixtures (#48062) @Copilot
55
+ - [code-infra][icons-material] Avoid material utils barrel in createSvgIcon (#48029) @anchmelev
56
+ - [docs-infra] Migrate more leaf components to mui-docs (#48018) @brijeshb42
57
+
58
+ All contributors of this release in alphabetical order: @anchmelev, @brijeshb42, @Copilot, @mj12albert, @romgrk, @silviuaavram, @siriwatknp, @ZeeshanTamboli
59
+
60
+ ## 9.0.0-alpha.4
61
+
62
+ <!-- generated comparing v9.0.0-alpha.3..master -->
63
+
64
+ _Mar 20, 2026_
65
+
66
+ A big thanks to the 11 contributors who made this release possible.
67
+
68
+ ### `@mui/material@9.0.0-alpha.4`
69
+
70
+ #### Breaking Changes
71
+
72
+ - [accordion] Remove deprecated props (#47963) @silviuaavram
73
+ - `TransitionComponent`
74
+ - `TransitionProps`
75
+ - [accordionsummary] Remove deprecated CSS class (#48006) @silviuaavram
76
+ - `contentGutters`
77
+ - [alert] Remove deprecated CSS classes (#48011) @silviuaavram
78
+ - `standardSuccess`
79
+ - `standardInfo`
80
+ - `standardWarning`
81
+ - `standardError`
82
+ - `outlinedSuccess`
83
+ - `outlinedInfo`
84
+ - `outlinedWarning`
85
+ - `outlinedError`
86
+ - `filledSuccess`
87
+ - `filledInfo`
88
+ - `filledWarning`
89
+ - `filledError`
90
+ - [alert] Remove deprecated props (#47965) @silviuaavram
91
+ - `components`
92
+ - `componentsProps`
93
+ - [autocomplete] Remove deprecated props (#47864) @ZeeshanTamboli
94
+ - `ChipProps`
95
+ - `componentsProps`
96
+ - `ListboxComponent`
97
+ - `ListboxProps`
98
+ - `PaperComponent`
99
+ - `PopperComponent`
100
+ - `renderTags`
101
+ - [avatar] Remove deprecated props (#47966) @silviuaavram
102
+ - `imgProps`
103
+ - [avatargroup] Remove deprecated props (#47968) @silviuaavram
104
+ - `componentsProps`
105
+ - [backdrop] Remove deprecated props (#47991) @silviuaavram
106
+ - `components`
107
+ - `componentsProps`
108
+ - `TransitionComponent`
109
+ - [badge] Remove deprecated props (#47993) @silviuaavram
110
+ - `components`
111
+ - `componentsProps`
112
+ - [button] Remove deprecated CSS classes (#48012) @silviuaavram
113
+ - Color variant classes: `textInherit`, `outlinedPrimary`, `containedSecondary`, etc.
114
+ - Size classes: `textSizeSmall`, `iconSizeMedium`, etc.
115
+ - [circularprogress] Remove deprecated CSS classes (#48014) @silviuaavram
116
+ - `circleDeterminate`
117
+ - `circleIndeterminate`
118
+ - [divider] Remove deprecated prop (#48013) @atharva3333
119
+ - `light`
120
+ - [formcontrollabel] Remove deprecated props (#48032) @atharva3333
121
+ - `componentsProps`
122
+ - [menu] Remove deprecated props (#48021) @siriwatknp
123
+ - `MenuListProps`
124
+ - `PaperProps`
125
+ - `TransitionProps`
126
+ - [mobilestepper] Remove deprecated props (#48041) @siriwatknp
127
+ - `LinearProgressProps`
128
+ - [popover] Remove deprecated props (#48021) @siriwatknp
129
+ - `BackdropComponent`
130
+ - `BackdropProps`
131
+ - `PaperProps`
132
+ - `TransitionComponent`
133
+ - `TransitionProps`
134
+ - [popper] Remove deprecated props (#48020) @siriwatknp
135
+ - `components`
136
+ - `componentsProps`
137
+ - [select] Remove deprecated props passed via `MenuProps` (#48021) @siriwatknp
138
+ - `MenuListProps`
139
+ - `PaperProps`
140
+ - `TransitionProps`
141
+ - [slider] Remove deprecated props (#47996) @siriwatknp
142
+ - `components`
143
+ - `componentsProps`
144
+ - [speeddial] Remove deprecated props (#47998) @siriwatknp
145
+ - `TransitionComponent`
146
+ - `TransitionProps`
147
+ - [speeddialaction] Remove deprecated props (#47998) @siriwatknp
148
+ - `FabProps`
149
+ - `tooltipTitle`
150
+ - `tooltipPlacement`
151
+ - `tooltipOpen`
152
+ - `TooltipClasses`
153
+ - [tabs] Remove deprecated props (#48017) @siriwatknp
154
+ - `ScrollButtonComponent`
155
+ - `TabIndicatorProps`
156
+ - `TabScrollButtonProps`
157
+ - `slots.StartScrollButtonIcon`
158
+ - `slots.EndScrollButtonIcon`
159
+ - [textfield] Remove deprecated props (#47878) @ZeeshanTamboli
160
+ - `InputProps`
161
+ - `inputProps`
162
+ - `SelectProps`
163
+ - `InputLabelProps`
164
+ - `FormHelperTextProps`
165
+ - [tooltip] Remove deprecated props (#47988) @siriwatknp
166
+ - `components`
167
+ - `componentsProps`
168
+ - `PopperComponent`
169
+ - `PopperProps`
170
+ - `TransitionComponent`
171
+ - `TransitionProps`
172
+ - [typography] Remove deprecated prop (#47986) @siriwatknp
173
+ - `paragraph`
174
+ - [buttonbase] Key handlers should not run on a disabled non-native button (#48003) @mj12albert
175
+ - [tablepagination] Format pagination numbers according to locale (#47803) @siriwatknp
176
+ - [textfield] Use non-native label for `<TextField select/>` (#47958) @mj12albert
177
+
178
+ Check out the [v9 upgrade guide](https://next.mui.com/material-ui/migration/upgrade-to-v9/).
179
+
180
+ #### Changes
181
+
182
+ - [autocomplete] Optimize selected option lookup (#47953) @anchmelev
183
+ - [buttonbase] Fix native button detection (#47985) @mj12albert
184
+ - [inputbase] Fix test using removed InputProps on TextField (#48000) @siriwatknp
185
+ - [popper] Add missing classes export (#48031) @mj12albert
186
+ - [select] Fix focus visible always set on menu item (#47912) @silviuaavram
187
+ - [slider] Fix focus visible styles incorrectly applied by pointer (#47894) @mj12albert
188
+ - [slider] Accept readonly array for the value prop (#47936) @pcorpet
189
+
190
+ ### `@mui/codemod@9.0.0-alpha.4`
191
+
192
+ - [codemod] Add slot key rename to `tabs-props` codemod and add to README (#48035) @siriwatknp
193
+ - [codemod] Add card-header-props migration guide (#48005) @siriwatknp
194
+
195
+ ### Docs
196
+
197
+ - [blog] Lowercase 2026-MUI-X-price-changes blog post URL (#47871) @Janpot
198
+ - [docs] Wide docs layout (#47950) @noraleonte
199
+ - [docs] Mention the list of props removed in upgrade guide (#48010) @silviuaavram
200
+ - [docs] Update Autocomplete deprecated props removal migration guide docs (#47990) @ZeeshanTamboli
201
+ - [docs-infra] Extract shared App component from \_app into @mui/docs (#47933) @brijeshb42
202
+ - [docs-infra] Expose global theme object (#47964) @Janpot
203
+ - [docs][system] Update `styled` API docs for easier understanding (#47957) @olivier-lxo
204
+
205
+ ### Core
206
+
207
+ - [code-infra] Add pkg-pr-new as dev dependency (#47992) @Janpot
208
+ - [code-infra] Remove CI coverage collection and upload to Codecov (#47930) @Janpot
209
+ - [core] Migrate to ESLint 10 (#47872) @brijeshb42
210
+ - [core] Remove GridLegacy component (#47956) @siriwatknp
211
+
212
+ All contributors of this release in alphabetical order: @anchmelev, @atharva3333, @brijeshb42, @Janpot, @mj12albert, @noraleonte, @olivier-lxo, @pcorpet, @silviuaavram, @siriwatknp, @ZeeshanTamboli
213
+
214
+ ## 9.0.0-alpha.3
215
+
216
+ <!-- generated comparing v9.0.0-alpha.2..master -->
217
+
218
+ _Mar 12, 2026_
219
+
220
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
221
+
222
+ - 📖 A new [Menubar](https://mui.com/material-ui/react-menubar/) component page integrated with [Base UI](https://base-ui.com/react/components/menubar)
223
+ - ♿️ Improved the Roving TabIndex keyboard navigation for the Stepper, Tabs and MenuList components.
224
+
225
+ ### `@mui/material@9.0.0-alpha.3`
226
+
227
+ #### Breaking Changes
228
+
229
+ - [stepper][menulist][tabs] Improve accessibility (#47687) @silviuaavram
230
+
231
+ #### Changes
232
+
233
+ - [autocomplete] Add `root` slot (#47852) @GerardasB
234
+ - [autocomplete] Fix popup reopening on window focus regain with openOnFocus (#47790) @aman44444
235
+ - [autocomplete] Support full slots for clearIndicator and popupIndicator (#47891) @silviuaavram
236
+ - [material-ui] Partially revert "[material-ui] Clean up duplicated CSS rules (#47838)" (#47927) @sai6855
237
+
238
+ ### Docs
239
+
240
+ - [docs][codemod] Add v7 migration docs for deprecated Autocomplete APIs and Autocomplete codemod (#47945) @ZeeshanTamboli
241
+ - [docs] Update faq about vendor chunks (#47747) @Janpot
242
+ - [docs] Use direct palette vars in Tailwind v4 snippet (#47940) @Ahmad-Alaziz
243
+ - [docs][menubar] Add Menubar component page (#47616) @siriwatknp
244
+
245
+ ### Core
246
+
247
+ - [core] Fix the release prepare steps (#47951) @silviuaavram
248
+ - [core] Remove Joy UI code and docs (#47939) @mnajdova
249
+ - [code-infra] Add previously missed export of themeCssVarsAugmentation (#47918) @brijeshb42
250
+ - [docs-infra] Import font module for nextjs transpilation (#47935) @brijeshb42
251
+ - [docs-infra] Migrate simpler modules from docs to mui-docs (#47897) @brijeshb42
252
+ - [test] Fix detached anchorEl elements in tests (#47929) @Janpot
253
+
254
+ All contributors of this release in alphabetical order: @Ahmad-Alaziz, @aman44444, @brijeshb42, @GerardasB, @Janpot, @mnajdova, @sai6855, @silviuaavram, @siriwatknp, @ZeeshanTamboli
255
+
256
+ ## 9.0.0-alpha.2
257
+
258
+ <!-- generated comparing v9.0.0-alpha.1..master -->
259
+
260
+ _Mar 5, 2026_
261
+
262
+ A big thanks to the 4 contributors who made this release possible.
263
+
264
+ ### @mui/material@9.0.0-alpha.2
265
+
266
+ - Clean up duplicated CSS rules (#47838) @sai6855
267
+
268
+ ### @mui/system@9.0.0-alpha.2
269
+
270
+ - Refactor sortContainerQueries to define regex outside of sort function (#47817) @sai6855
271
+
272
+ ### Docs
273
+
274
+ - Move shared components to @mui/docs package (#47672) @Janpot
275
+ - Fix small typo in NumberField page (#47877) @arthur-plazanet
276
+
277
+ ### Core
278
+
279
+ - [code-infra] Reduce paths for attw checks (#47896) @brijeshb42
280
+ - [docs-infra] Run syncTeamMembers (#47900) @Janpot
281
+
282
+ All contributors of this release in alphabetical order: @arthur-plazanet, @brijeshb42, @Janpot, @sai6855
283
+
284
+ ## 9.0.0-alpha.1
285
+
286
+ <!-- generated comparing v9.0.0-alpha.0..master -->
287
+
288
+ _Feb 26, 2026_
289
+
290
+ A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
291
+
292
+ ### @mui/material@9.0.0-alpha.1
293
+
294
+ #### Breaking Changes
295
+
296
+ - [Autocomplete] Prevents Autocomplete menu from opening on right click (#47797) @silviuaavram
297
+ - [Backdrop] Remove aria-hidden by default (#47798) @silviuaavram
298
+ - [ButtonBase] Ensure that onClick propagates when non-native button is clicked (#47800) @silviuaavram
299
+ - [Dialog][Modal] Remove `disableEscapeKeyDown` prop (#47695) @silviuaavram
300
+ - [Grid] Remove system props support (#47846) @siriwatknp
301
+ - [theme] Remove MuiTouchRipple from theme component types (#47849) @siriwatknp
302
+ - [useAutocomplete] Improve isOptionEqualToValue value argument type (#47801) @silviuaavram
303
+
304
+ #### Changes
305
+
306
+ - [TableCell][theme] Apply `alpha` before color mixing to border bottom color when nativeColor + cssVariables is used (#47762) @ZeeshanTamboli
307
+ - [Tooltip] Fix error is thrown when wrapping an input which is disabled while focused (#47684) @ZeeshanTamboli
308
+
309
+ ### Docs
310
+
311
+ - [docs] Add updated community theme resource (#47847) @PeterTYLiu
312
+ - [docs] Few copy fixes (#47806) @pavan-sh
313
+ - [docs] Fix IPA reader link in blog post (#47796) @pavan-sh
314
+ - [docs] Fix JSX in Overriding component structure docs (#47799) @ZeeshanTamboli
315
+ - [docs] Fix the keyboard navigation in GroupedMenu example (#47842) @silviuaavram
316
+ - [docs] Fix Theme builder video (#47835) @oliviertassinari
317
+ - [docs] Update pricing sankey as done (#47795) @alexfauquette
318
+ - [docs][system] Update sizing docs to clarify `(0, 1]` behavior. (#47845) @matthias-ccri
319
+
320
+ ### Core
321
+
322
+ - [blog] Blogpost for upcoming price changes for MUI X (#47748) @DanailH
323
+ - [code-infra] Detect browser envs that don't support layout (#47813) @Janpot
324
+ - [code-infra] Enable undefined addition to optional properties (#47750) @brijeshb42
325
+ - [code-infra] Exclusively enable test mode in jsdom (#47812) @Janpot
326
+ - [code-infra] Fix console.warn during test (#47802) @Janpot
327
+ - [code-infra] Remove vale as a workspace dependency (#47860) @brijeshb42
328
+ - [code-infra] Setup flat build for packages (#47670) @brijeshb42
329
+ - [code-infra] Upgrade react-docgen to v8 (#47685) @JCQuintas
330
+ - [docs-infra] Reapply Cookie Banner with Design Fixes (#47744) @dav-is
331
+ - [internal] Remove legacy MUI Base API docs (#47804) @ZeeshanTamboli
332
+
333
+ All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @DanailH, @dav-is, @Janpot, @JCQuintas, @matthias-ccri, @oliviertassinari, @pavan-sh, @PeterTYLiu, @silviuaavram, @siriwatknp, @ZeeshanTamboli
334
+
3
335
  ## 9.0.0-alpha.0
4
336
 
5
337
  <!-- generated comparing v7.3.8..master -->
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { CSSObject, StyleFunction } from 'styled-components';
3
3
  export interface GlobalStylesProps<Theme extends object = {}> {
4
- defaultTheme?: object;
4
+ defaultTheme?: object | undefined;
5
5
  styles: string | CSSObject | StyleFunction<Theme>;
6
6
  }
7
7
  export default function Global<Theme extends object = {}>(props: GlobalStylesProps<Theme>): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { CSSObject, StyleFunction } from 'styled-components';
3
3
  export interface GlobalStylesProps<Theme extends object = {}> {
4
- defaultTheme?: object;
4
+ defaultTheme?: object | undefined;
5
5
  styles: string | CSSObject | StyleFunction<Theme>;
6
6
  }
7
7
  export default function Global<Theme extends object = {}>(props: GlobalStylesProps<Theme>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./GlobalStyles.mjs";
2
+ export * from "./GlobalStyles.mjs";
@@ -0,0 +1 @@
1
+ export { default } from "./GlobalStyles.mjs";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface StyledEngineProviderProps {
3
3
  children?: React.ReactNode;
4
- injectFirst?: boolean;
4
+ injectFirst?: boolean | undefined;
5
5
  }
6
6
  export default function StyledEngineProvider(props: StyledEngineProviderProps): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface StyledEngineProviderProps {
3
3
  children?: React.ReactNode;
4
- injectFirst?: boolean;
4
+ injectFirst?: boolean | undefined;
5
5
  }
6
6
  export default function StyledEngineProvider(props: StyledEngineProviderProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./StyledEngineProvider.mjs";
2
+ export * from "./StyledEngineProvider.mjs";
@@ -0,0 +1 @@
1
+ export { default } from "./StyledEngineProvider.mjs";
@@ -46,9 +46,9 @@ export interface Keyframes {
46
46
  }
47
47
  export * from 'styled-components';
48
48
  export { default } from 'styled-components';
49
- export { default as StyledEngineProvider } from "./StyledEngineProvider/index.js";
50
- export { default as GlobalStyles } from "./GlobalStyles/index.js";
51
- export * from "./GlobalStyles/index.js";
49
+ export { default as StyledEngineProvider } from "./StyledEngineProvider/index.mjs";
50
+ export { default as GlobalStyles } from "./GlobalStyles/index.mjs";
51
+ export * from "./GlobalStyles/index.mjs";
52
52
 
53
53
  /**
54
54
  * For internal usage in `@mui/system` package
@@ -153,29 +153,29 @@ export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentPr
153
153
  // Config to be used with withConfig
154
154
  export interface StyledConfig<O extends object = {}> {
155
155
  // TODO: Add all types from the original StyledComponentWrapperProperties
156
- componentId?: string;
157
- displayName?: string;
158
- label?: string;
159
- target?: string;
156
+ componentId?: string | undefined;
157
+ displayName?: string | undefined;
158
+ label?: string | undefined;
159
+ target?: string | undefined;
160
160
  shouldForwardProp?: ((prop: keyof O, defaultValidatorFn: (prop: keyof O) => boolean) => boolean) | undefined;
161
161
  }
162
162
 
163
163
  /** Same as StyledConfig but shouldForwardProp must be a type guard */
164
164
  export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Props = keyof Props> {
165
- componentId?: string;
166
- displayName?: string;
167
- label?: string;
165
+ componentId?: string | undefined;
166
+ displayName?: string | undefined;
167
+ label?: string | undefined;
168
168
  shouldForwardProp?(propName: PropertyKey): propName is ForwardedProps;
169
- target?: string;
169
+ target?: string | undefined;
170
170
  }
171
171
 
172
172
  // same as ThemedBaseStyledInterface in styled-components, but with added options & common props for MUI components
173
173
  export interface ThemedBaseStyledInterface<MUIStyledCommonProps extends object, MuiStyledOptions extends object, Theme extends object> extends ThemedStyledComponentFactories<Theme> {
174
174
  <C extends React.ComponentClass<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps, {}, {
175
- ref?: React.Ref<InstanceType<C>>;
175
+ ref?: React.Ref<InstanceType<C>> | undefined;
176
176
  }, Theme>;
177
177
  <C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledConfig<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {
178
- ref?: React.Ref<InstanceType<C>>;
178
+ ref?: React.Ref<InstanceType<C>> | undefined;
179
179
  }, Theme>;
180
180
  <C extends React.JSXElementConstructor<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps, {}, {}, Theme>;
181
181
  <C extends React.JSXElementConstructor<React.ComponentProps<C>>>(component: C, options?: StyledConfig<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {}, Theme>;
@@ -186,7 +186,7 @@ export type CreateMUIStyled<MUIStyledCommonProps extends object = {}, MuiStyledO
186
186
  export type PropsOf<C extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
187
187
  export interface MUIStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}> extends React.FC<ComponentProps & SpecificComponentProps & JSXProps> {
188
188
  withComponent<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C): MUIStyledComponent<ComponentProps & PropsOf<C>, {}, {
189
- ref?: React.Ref<InstanceType<C>>;
189
+ ref?: React.Ref<InstanceType<C>> | undefined;
190
190
  }>;
191
191
  withComponent<C extends React.ComponentType<React.ComponentProps<C>>>(component: C): MUIStyledComponent<ComponentProps & PropsOf<C>>;
192
192
  withComponent<Tag extends keyof React.JSX.IntrinsicElements>(tag: Tag): MUIStyledComponent<ComponentProps, React.JSX.IntrinsicElements[Tag]>;
package/index.d.ts CHANGED
@@ -153,29 +153,29 @@ export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentPr
153
153
  // Config to be used with withConfig
154
154
  export interface StyledConfig<O extends object = {}> {
155
155
  // TODO: Add all types from the original StyledComponentWrapperProperties
156
- componentId?: string;
157
- displayName?: string;
158
- label?: string;
159
- target?: string;
156
+ componentId?: string | undefined;
157
+ displayName?: string | undefined;
158
+ label?: string | undefined;
159
+ target?: string | undefined;
160
160
  shouldForwardProp?: ((prop: keyof O, defaultValidatorFn: (prop: keyof O) => boolean) => boolean) | undefined;
161
161
  }
162
162
 
163
163
  /** Same as StyledConfig but shouldForwardProp must be a type guard */
164
164
  export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Props = keyof Props> {
165
- componentId?: string;
166
- displayName?: string;
167
- label?: string;
165
+ componentId?: string | undefined;
166
+ displayName?: string | undefined;
167
+ label?: string | undefined;
168
168
  shouldForwardProp?(propName: PropertyKey): propName is ForwardedProps;
169
- target?: string;
169
+ target?: string | undefined;
170
170
  }
171
171
 
172
172
  // same as ThemedBaseStyledInterface in styled-components, but with added options & common props for MUI components
173
173
  export interface ThemedBaseStyledInterface<MUIStyledCommonProps extends object, MuiStyledOptions extends object, Theme extends object> extends ThemedStyledComponentFactories<Theme> {
174
174
  <C extends React.ComponentClass<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps, {}, {
175
- ref?: React.Ref<InstanceType<C>>;
175
+ ref?: React.Ref<InstanceType<C>> | undefined;
176
176
  }, Theme>;
177
177
  <C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledConfig<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {
178
- ref?: React.Ref<InstanceType<C>>;
178
+ ref?: React.Ref<InstanceType<C>> | undefined;
179
179
  }, Theme>;
180
180
  <C extends React.JSXElementConstructor<React.ComponentProps<C>>, ForwardedProps extends keyof React.ComponentProps<C> = keyof React.ComponentProps<C>>(component: C, options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps, {}, {}, Theme>;
181
181
  <C extends React.JSXElementConstructor<React.ComponentProps<C>>>(component: C, options?: StyledConfig<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {}, Theme>;
@@ -186,7 +186,7 @@ export type CreateMUIStyled<MUIStyledCommonProps extends object = {}, MuiStyledO
186
186
  export type PropsOf<C extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
187
187
  export interface MUIStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}> extends React.FC<ComponentProps & SpecificComponentProps & JSXProps> {
188
188
  withComponent<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C): MUIStyledComponent<ComponentProps & PropsOf<C>, {}, {
189
- ref?: React.Ref<InstanceType<C>>;
189
+ ref?: React.Ref<InstanceType<C>> | undefined;
190
190
  }>;
191
191
  withComponent<C extends React.ComponentType<React.ComponentProps<C>>>(component: C): MUIStyledComponent<ComponentProps & PropsOf<C>>;
192
192
  withComponent<Tag extends keyof React.JSX.IntrinsicElements>(tag: Tag): MUIStyledComponent<ComponentProps, React.JSX.IntrinsicElements[Tag]>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v9.0.0-alpha.0
2
+ * @mui/styled-engine-sc v9.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v9.0.0-alpha.0
2
+ * @mui/styled-engine-sc v9.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -56,5 +56,5 @@ export function internal_serializeStyles(styles) {
56
56
  return styles;
57
57
  }
58
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";
59
+ export { default as StyledEngineProvider } from "./StyledEngineProvider/index.mjs";
60
+ export { default as GlobalStyles } from "./GlobalStyles/index.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/styled-engine-sc",
3
- "version": "9.0.0-alpha.0",
3
+ "version": "9.0.0-beta.0",
4
4
  "author": "MUI Team",
5
5
  "description": "styled() API wrapper package for styled-components.",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "url": "https://opencollective.com/mui-org"
25
25
  },
26
26
  "dependencies": {
27
- "@babel/runtime": "^7.28.6",
27
+ "@babel/runtime": "^7.29.2",
28
28
  "@types/hoist-non-react-statics": "^3.3.7",
29
29
  "csstype": "^3.2.3",
30
30
  "hoist-non-react-statics": "^3.3.2",
@@ -41,30 +41,51 @@
41
41
  "node": ">=14.0.0"
42
42
  },
43
43
  "type": "commonjs",
44
- "main": "./index.js",
45
- "types": "./index.d.ts",
46
44
  "exports": {
47
45
  "./package.json": "./package.json",
48
46
  ".": {
47
+ "import": {
48
+ "types": "./index.d.mts",
49
+ "default": "./index.mjs"
50
+ },
49
51
  "require": {
50
52
  "types": "./index.d.ts",
51
53
  "default": "./index.js"
52
54
  },
53
55
  "default": {
54
- "types": "./esm/index.d.ts",
55
- "default": "./esm/index.js"
56
+ "types": "./index.d.mts",
57
+ "default": "./index.mjs"
56
58
  }
57
59
  },
58
- "./*": {
60
+ "./GlobalStyles": {
61
+ "import": {
62
+ "types": "./GlobalStyles/index.d.mts",
63
+ "default": "./GlobalStyles/index.mjs"
64
+ },
59
65
  "require": {
60
- "types": "./*/index.d.ts",
61
- "default": "./*/index.js"
66
+ "types": "./GlobalStyles/index.d.ts",
67
+ "default": "./GlobalStyles/index.js"
62
68
  },
63
69
  "default": {
64
- "types": "./esm/*/index.d.ts",
65
- "default": "./esm/*/index.js"
70
+ "types": "./GlobalStyles/index.d.mts",
71
+ "default": "./GlobalStyles/index.mjs"
66
72
  }
67
73
  },
68
- "./esm": null
69
- }
74
+ "./StyledEngineProvider": {
75
+ "import": {
76
+ "types": "./StyledEngineProvider/index.d.mts",
77
+ "default": "./StyledEngineProvider/index.mjs"
78
+ },
79
+ "require": {
80
+ "types": "./StyledEngineProvider/index.d.ts",
81
+ "default": "./StyledEngineProvider/index.js"
82
+ },
83
+ "default": {
84
+ "types": "./StyledEngineProvider/index.d.mts",
85
+ "default": "./StyledEngineProvider/index.mjs"
86
+ }
87
+ }
88
+ },
89
+ "main": "./index.js",
90
+ "types": "./index.d.ts"
70
91
  }
@@ -1,2 +0,0 @@
1
- export { default } from "./GlobalStyles.js";
2
- export * from "./GlobalStyles.js";
@@ -1 +0,0 @@
1
- export { default } from "./GlobalStyles.js";
@@ -1,2 +0,0 @@
1
- export { default } from "./StyledEngineProvider.js";
2
- export * from "./StyledEngineProvider.js";
@@ -1 +0,0 @@
1
- export { default } from "./StyledEngineProvider.js";
package/esm/package.json DELETED
@@ -1 +0,0 @@
1
- {"type":"module","sideEffects":false}