@mui/styled-engine-sc 9.3.0 → 9.4.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 +87 -0
- package/index.d.mts +6 -2
- package/index.d.ts +6 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# [Versions](https://mui.com/material-ui/getting-started/versions/)
|
|
2
2
|
|
|
3
|
+
## 9.4.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v9.3.1..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 27, 2026_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ♿️ Opt in to a consistent [keyboard focus ring](https://mui.com/material-ui/customization/focus-visible/) across components with the new `theme.focusVisible`.
|
|
12
|
+
- ♿️ The [Tooltip](https://mui.com/material-ui/react-tooltip/) now supports disabled button triggers without an extra wrapper element.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@9.4.0`
|
|
15
|
+
|
|
16
|
+
- [theme] Add `theme.focusVisible` opt-in keyboard focus ring (#48743) @siriwatknp
|
|
17
|
+
- [buttongroup] Prevent sticky hover border on touch devices (#48993) @petr-kratochvil
|
|
18
|
+
- [l10n] Complete Traditional Chinese localization (#48946) @nrps9909
|
|
19
|
+
- [menulist] Preserve custom list padding when adjusting for the scrollbar (#48707) @creazyfrog
|
|
20
|
+
- [pagination] Manage focus whenever first / last / next / previous buttons become disabled (#48877) @silviuaavram
|
|
21
|
+
- [tooltip] Improve support for disabled button triggers (#48622) @mayank99
|
|
22
|
+
|
|
23
|
+
### `@mui/utils@9.4.0`
|
|
24
|
+
|
|
25
|
+
- Fix resolveProps to correctly merge slotProps defined as functions (#48955) @mnajdova
|
|
26
|
+
- Replace deprecated `clip` CSS property with `clip-path` (#48966) @ZeeshanTamboli
|
|
27
|
+
|
|
28
|
+
### `@mui/styled-engine-sc@9.4.0`
|
|
29
|
+
|
|
30
|
+
- Fix types for components extended with styled (#45988) @megos
|
|
31
|
+
|
|
32
|
+
### Docs
|
|
33
|
+
|
|
34
|
+
- Bump @docsearch/react to ^4.7.0 (#48886) @LukasTy
|
|
35
|
+
- Fix broken links reported by Ahrefs (#48949) @brijeshb42
|
|
36
|
+
- Manage focus on Open in Chat button click (#48942) @silviuaavram
|
|
37
|
+
- Move focus to the main content with the skip link (#48944) @lazerg
|
|
38
|
+
- Use relative link for LICENSE in README (#49040) @loulanyue
|
|
39
|
+
- [autocomplete] Remove the "aria-owns" reference (#48958) @silviuaavram
|
|
40
|
+
- [table] Fix wrong number of rows reported to screen readers (#47653) @seomsoo
|
|
41
|
+
- [table] Reference DataGrid link in the row header section (#48988) @silviuaavram
|
|
42
|
+
- [table] Use and document the row header cells (#48965) @silviuaavram
|
|
43
|
+
- [tabs] Make tab panel focusable and show keep mounted examples (#48939) @silviuaavram
|
|
44
|
+
- [templates] Remove focusable links from hidden carousel slides (#49003) @gonzoblasco
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- [code-infra] Fix team sync review requests (#48914) @brijeshb42
|
|
49
|
+
- [code-infra] Import the test globals from vitest (#49033) @JCQuintas
|
|
50
|
+
- [code-infra] Point the support validator link at frontend-public (#49041) @Janpot
|
|
51
|
+
- [code-infra] Update CircleCI orb (#49030) @Janpot
|
|
52
|
+
- [code-infra] Use ESM current directory syntax for Vitest config (#49032) @ZeeshanTamboli
|
|
53
|
+
- [core] Use @typescript/typescript6 for the docs tooling (#49025) @Janpot
|
|
54
|
+
- [core-docs] Remove the `globalSelector` stylis middleware (#49029) @Janpot
|
|
55
|
+
- [test] Add an `assertions` mode to the axe regression harness (#48915) @michelengelen
|
|
56
|
+
- [test] Automate the CSS-dependent WCAG criteria (#48936) @michelengelen
|
|
57
|
+
- [test] Fail the regression run when a webfont does not load (#48948) @LukasTy
|
|
58
|
+
- [test] Fix typo 'overriden' -> 'overridden' in Alert test comment (#48987) @FirmaSpring
|
|
59
|
+
- [test] Replace webfontloader with the CSS Font Loading API (#48995) @LukasTy
|
|
60
|
+
- [test] Skip the CrudDashboard VRT on React 18 (#49027) @Janpot
|
|
61
|
+
- [test] Use the shared loadFonts from @mui/internal-test-utils (#49007) @LukasTy
|
|
62
|
+
- [test] Use the Vitest global expect instead of importing chai (#48996) @JCQuintas
|
|
63
|
+
- [test][tooltip] Keep the disabled trigger away from the real pointer (#48947) @LukasTy
|
|
64
|
+
|
|
65
|
+
All contributors of this release in alphabetical order: @brijeshb42, @creazyfrog, @FirmaSpring, @gonzoblasco, @Janpot, @JCQuintas, @lazerg, @loulanyue, @LukasTy, @mayank99, @megos, @michelengelen, @mnajdova, @nrps9909, @petr-kratochvil, @seomsoo, @silviuaavram, @siriwatknp, @ZeeshanTamboli
|
|
66
|
+
|
|
67
|
+
## 9.3.1
|
|
68
|
+
|
|
69
|
+
<!-- generated comparing v9.3.0..master -->
|
|
70
|
+
|
|
71
|
+
_Aug 6, 2026_
|
|
72
|
+
|
|
73
|
+
A big thanks to the 4 contributors who made this release possible.
|
|
74
|
+
|
|
75
|
+
### `@mui/material@9.3.1`
|
|
76
|
+
|
|
77
|
+
- [transitions] Prevent exit transitions from getting stuck (#48881) @ZeeshanTamboli
|
|
78
|
+
|
|
79
|
+
### `@mui/codemod@9.3.1`
|
|
80
|
+
|
|
81
|
+
- Include transforms in published package (#48934) @brijeshb42
|
|
82
|
+
|
|
83
|
+
### Core
|
|
84
|
+
|
|
85
|
+
- [blog] Clarify early bird renewal discount scope (#48906) @DanailH
|
|
86
|
+
- [test][pagination] Add more unit tests (#48927) @silviuaavram
|
|
87
|
+
|
|
88
|
+
All contributors of this release in alphabetical order: @brijeshb42, @DanailH, @silviuaavram, @ZeeshanTamboli
|
|
89
|
+
|
|
3
90
|
## 9.3.0
|
|
4
91
|
|
|
5
92
|
<!-- generated comparing v9.2.0..master -->
|
package/index.d.mts
CHANGED
|
@@ -72,10 +72,12 @@ type StyledComponentPropsWithAs<C extends string | React.ComponentType<any>, T e
|
|
|
72
72
|
forwardedAs?: FAsC | undefined;
|
|
73
73
|
};
|
|
74
74
|
export type StyledComponent<C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>, T extends object = {}, O extends object = {}, A extends keyof any = never> = string & StyledComponentBase<C, T, O, A> & hoistNonReactStatics.NonReactStatics<C extends React.ComponentType<any> ? C : never>;
|
|
75
|
-
export type AnyStyledComponent =
|
|
75
|
+
export type AnyStyledComponent = StyledComponentInstance | React.FunctionComponent<any> | React.ComponentType<any>;
|
|
76
|
+
type StyledComponentInstance = StyledComponent<any, any, any, any> | StyledComponent<any, any, any>;
|
|
76
77
|
export type StyledComponentInnerComponent<C extends AnyStyledComponent> = C extends StyledComponent<infer I, any, any, any> ? I : C extends StyledComponent<infer I, any, any> ? I : C;
|
|
77
78
|
export type StyledComponentInnerOtherProps<C extends AnyStyledComponent> = C extends StyledComponent<any, any, infer O, any> ? O : C extends StyledComponent<any, any, infer O> ? O : never;
|
|
78
79
|
export type StyledComponentInnerAttrs<C extends AnyStyledComponent> = C extends StyledComponent<any, any, any, infer A> ? A : never;
|
|
80
|
+
export type StyledComponentInnerProps<C extends StyledComponentInstance, T extends object> = StyledComponentProps<StyledComponentInnerComponent<C>, T, StyledComponentInnerOtherProps<C>, StyledComponentInnerAttrs<C>>;
|
|
79
81
|
export interface StyledComponentBase<C extends string | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> extends ForwardRefExoticBase<StyledComponentProps<C, T, O, A>> {
|
|
80
82
|
(props: StyledComponentProps<C, T, O, A> & {
|
|
81
83
|
as?: never | undefined;
|
|
@@ -95,7 +97,7 @@ export interface ThemedStyledFunctionBase<C extends keyof React.JSX.IntrinsicEle
|
|
|
95
97
|
<U extends object>(first: TemplateStringsArray | CSSObject | InterpolationFunction<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>, ...other: Array<Interpolation<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>>): StyledComponent<C, T, O & U, A>;
|
|
96
98
|
}
|
|
97
99
|
export interface ThemedStyledFunction<C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> extends ThemedStyledFunctionBase<C, T, O, A> {}
|
|
98
|
-
export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}, T extends object = {}> = ThemedStyledFunction<React.ComponentType<ComponentProps>, T, SpecificComponentProps & JSXProps>;
|
|
100
|
+
export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}, T extends object = {}, A extends keyof any = never> = ThemedStyledFunction<React.ComponentType<ComponentProps>, T, SpecificComponentProps & JSXProps, A>;
|
|
99
101
|
export interface StyledConfig<O extends object = {}> {
|
|
100
102
|
componentId?: string | undefined;
|
|
101
103
|
displayName?: string | undefined;
|
|
@@ -112,6 +114,8 @@ export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Prop
|
|
|
112
114
|
target?: string | undefined;
|
|
113
115
|
}
|
|
114
116
|
export interface ThemedBaseStyledInterface<MUIStyledCommonProps extends object, MuiStyledOptions extends object, Theme extends object> extends ThemedStyledComponentFactories<Theme> {
|
|
117
|
+
<C extends StyledComponentInstance, ForwardedProps extends keyof StyledComponentInnerProps<C, Theme> = keyof StyledComponentInnerProps<C, Theme>>(component: C, options: FilteringStyledOptions<StyledComponentInnerProps<C, Theme>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<StyledComponentInnerProps<C, Theme>, ForwardedProps> & MUIStyledCommonProps, StyledComponentInnerOtherProps<C>, {}, Theme, StyledComponentInnerAttrs<C>>;
|
|
118
|
+
<C extends StyledComponentInstance>(component: C, options?: StyledConfig<StyledComponentInnerProps<C, Theme> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<StyledComponentInnerProps<C, Theme> & MUIStyledCommonProps, StyledComponentInnerOtherProps<C>, {}, Theme, StyledComponentInnerAttrs<C>>;
|
|
115
119
|
<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, {}, {
|
|
116
120
|
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
117
121
|
}, Theme>;
|
package/index.d.ts
CHANGED
|
@@ -72,10 +72,12 @@ type StyledComponentPropsWithAs<C extends string | React.ComponentType<any>, T e
|
|
|
72
72
|
forwardedAs?: FAsC | undefined;
|
|
73
73
|
};
|
|
74
74
|
export type StyledComponent<C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>, T extends object = {}, O extends object = {}, A extends keyof any = never> = string & StyledComponentBase<C, T, O, A> & hoistNonReactStatics.NonReactStatics<C extends React.ComponentType<any> ? C : never>;
|
|
75
|
-
export type AnyStyledComponent =
|
|
75
|
+
export type AnyStyledComponent = StyledComponentInstance | React.FunctionComponent<any> | React.ComponentType<any>;
|
|
76
|
+
type StyledComponentInstance = StyledComponent<any, any, any, any> | StyledComponent<any, any, any>;
|
|
76
77
|
export type StyledComponentInnerComponent<C extends AnyStyledComponent> = C extends StyledComponent<infer I, any, any, any> ? I : C extends StyledComponent<infer I, any, any> ? I : C;
|
|
77
78
|
export type StyledComponentInnerOtherProps<C extends AnyStyledComponent> = C extends StyledComponent<any, any, infer O, any> ? O : C extends StyledComponent<any, any, infer O> ? O : never;
|
|
78
79
|
export type StyledComponentInnerAttrs<C extends AnyStyledComponent> = C extends StyledComponent<any, any, any, infer A> ? A : never;
|
|
80
|
+
export type StyledComponentInnerProps<C extends StyledComponentInstance, T extends object> = StyledComponentProps<StyledComponentInnerComponent<C>, T, StyledComponentInnerOtherProps<C>, StyledComponentInnerAttrs<C>>;
|
|
79
81
|
export interface StyledComponentBase<C extends string | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> extends ForwardRefExoticBase<StyledComponentProps<C, T, O, A>> {
|
|
80
82
|
(props: StyledComponentProps<C, T, O, A> & {
|
|
81
83
|
as?: never | undefined;
|
|
@@ -95,7 +97,7 @@ export interface ThemedStyledFunctionBase<C extends keyof React.JSX.IntrinsicEle
|
|
|
95
97
|
<U extends object>(first: TemplateStringsArray | CSSObject | InterpolationFunction<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>, ...other: Array<Interpolation<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>>): StyledComponent<C, T, O & U, A>;
|
|
96
98
|
}
|
|
97
99
|
export interface ThemedStyledFunction<C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> extends ThemedStyledFunctionBase<C, T, O, A> {}
|
|
98
|
-
export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}, T extends object = {}> = ThemedStyledFunction<React.ComponentType<ComponentProps>, T, SpecificComponentProps & JSXProps>;
|
|
100
|
+
export type CreateStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}, T extends object = {}, A extends keyof any = never> = ThemedStyledFunction<React.ComponentType<ComponentProps>, T, SpecificComponentProps & JSXProps, A>;
|
|
99
101
|
export interface StyledConfig<O extends object = {}> {
|
|
100
102
|
componentId?: string | undefined;
|
|
101
103
|
displayName?: string | undefined;
|
|
@@ -112,6 +114,8 @@ export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Prop
|
|
|
112
114
|
target?: string | undefined;
|
|
113
115
|
}
|
|
114
116
|
export interface ThemedBaseStyledInterface<MUIStyledCommonProps extends object, MuiStyledOptions extends object, Theme extends object> extends ThemedStyledComponentFactories<Theme> {
|
|
117
|
+
<C extends StyledComponentInstance, ForwardedProps extends keyof StyledComponentInnerProps<C, Theme> = keyof StyledComponentInnerProps<C, Theme>>(component: C, options: FilteringStyledOptions<StyledComponentInnerProps<C, Theme>, ForwardedProps> & MuiStyledOptions): CreateStyledComponent<Pick<StyledComponentInnerProps<C, Theme>, ForwardedProps> & MUIStyledCommonProps, StyledComponentInnerOtherProps<C>, {}, Theme, StyledComponentInnerAttrs<C>>;
|
|
118
|
+
<C extends StyledComponentInstance>(component: C, options?: StyledConfig<StyledComponentInnerProps<C, Theme> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<StyledComponentInnerProps<C, Theme> & MUIStyledCommonProps, StyledComponentInnerOtherProps<C>, {}, Theme, StyledComponentInnerAttrs<C>>;
|
|
115
119
|
<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, {}, {
|
|
116
120
|
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
117
121
|
}, Theme>;
|
package/index.js
CHANGED
package/index.mjs
CHANGED