@mui/styled-engine 9.0.0-alpha.0 → 9.0.0-alpha.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 +74 -0
- package/{esm/GlobalStyles/GlobalStyles.d.ts → GlobalStyles/GlobalStyles.d.mts} +1 -1
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/GlobalStyles/index.d.mts +2 -0
- package/GlobalStyles/index.mjs +1 -0
- package/{esm/StyledEngineProvider/StyledEngineProvider.d.ts → StyledEngineProvider/StyledEngineProvider.d.mts} +2 -2
- package/StyledEngineProvider/StyledEngineProvider.d.ts +2 -2
- package/StyledEngineProvider/index.d.mts +2 -0
- package/StyledEngineProvider/index.mjs +1 -0
- package/{esm/index.d.ts → index.d.mts} +10 -10
- package/index.d.ts +7 -7
- package/index.js +1 -1
- package/{esm/index.js → index.mjs} +3 -3
- package/package.json +33 -12
- package/esm/GlobalStyles/index.d.ts +0 -2
- package/esm/GlobalStyles/index.js +0 -1
- package/esm/StyledEngineProvider/index.d.ts +0 -2
- package/esm/StyledEngineProvider/index.js +0 -1
- package/esm/package.json +0 -1
- /package/{esm/GlobalStyles/GlobalStyles.js → GlobalStyles/GlobalStyles.mjs} +0 -0
- /package/{esm/StyledEngineProvider/StyledEngineProvider.js → StyledEngineProvider/StyledEngineProvider.mjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 9.0.0-alpha.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v9.0.0-alpha.1..master -->
|
|
6
|
+
|
|
7
|
+
_Mar 5, 2026_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 4 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### @mui/material@9.0.0-alpha.2
|
|
12
|
+
|
|
13
|
+
- Clean up duplicated CSS rules (#47838) @sai6855
|
|
14
|
+
|
|
15
|
+
### @mui/system@9.0.0-alpha.2
|
|
16
|
+
|
|
17
|
+
- Refactor sortContainerQueries to define regex outside of sort function (#47817) @sai6855
|
|
18
|
+
|
|
19
|
+
### Docs
|
|
20
|
+
|
|
21
|
+
- Move shared components to @mui/docs package (#47672) @Janpot
|
|
22
|
+
- Fix small typo in NumberField page (#47877) @arthur-plazanet
|
|
23
|
+
|
|
24
|
+
### Core
|
|
25
|
+
|
|
26
|
+
- [code-infra] Reduce paths for attw checks (#47896) @brijeshb42
|
|
27
|
+
- [docs-infra] Run syncTeamMembers (#47900) @Janpot
|
|
28
|
+
|
|
29
|
+
All contributors of this release in alphabetical order: @arthur-plazanet, @brijeshb42, @Janpot, @sai6855
|
|
30
|
+
|
|
31
|
+
## 9.0.0-alpha.1
|
|
32
|
+
|
|
33
|
+
<!-- generated comparing v9.0.0-alpha.0..master -->
|
|
34
|
+
|
|
35
|
+
_Feb 26, 2026_
|
|
36
|
+
|
|
37
|
+
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
38
|
+
|
|
39
|
+
### @mui/material@9.0.0-alpha.1
|
|
40
|
+
|
|
41
|
+
- [Autocomplete] Prevents Autocomplete menu from opening on right click (#47797) @silviuaavram
|
|
42
|
+
- [Backdrop] Remove aria-hidden by default (#47798) @silviuaavram
|
|
43
|
+
- [ButtonBase] Ensure that onClick propagates when non-native button is clicked (#47800) @silviuaavram
|
|
44
|
+
- [Dialog][Modal] Remove `disableEscapeKeyDown` prop (#47695) @silviuaavram
|
|
45
|
+
- [Grid] Remove system props support (#47846) @siriwatknp
|
|
46
|
+
- [TableCell][theme] Apply `alpha` before color mixing to border bottom color when nativeColor + cssVariables is used (#47762) @ZeeshanTamboli
|
|
47
|
+
- [theme] Remove MuiTouchRipple from theme component types (#47849) @siriwatknp
|
|
48
|
+
- [Tooltip] Fix error is thrown when wrapping an input which is disabled while focused (#47684) @ZeeshanTamboli
|
|
49
|
+
- [useAutocomplete] Improve isOptionEqualToValue value argument type (#47801) @silviuaavram
|
|
50
|
+
|
|
51
|
+
### Docs
|
|
52
|
+
|
|
53
|
+
- [docs] Add updated community theme resource (#47847) @PeterTYLiu
|
|
54
|
+
- [docs] Few copy fixes (#47806) @pavan-sh
|
|
55
|
+
- [docs] Fix IPA reader link in blog post (#47796) @pavan-sh
|
|
56
|
+
- [docs] Fix JSX in Overriding component structure docs (#47799) @ZeeshanTamboli
|
|
57
|
+
- [docs] Fix the keyboard navigation in GroupedMenu example (#47842) @silviuaavram
|
|
58
|
+
- [docs] Fix Theme builder video (#47835) @oliviertassinari
|
|
59
|
+
- [docs] Update pricing sankey as done (#47795) @alexfauquette
|
|
60
|
+
- [docs][system] Update sizing docs to clarify `(0, 1]` behavior. (#47845) @matthias-ccri
|
|
61
|
+
|
|
62
|
+
### Core
|
|
63
|
+
|
|
64
|
+
- [blog] Blogpost for upcoming price changes for MUI X (#47748) @DanailH
|
|
65
|
+
- [code-infra] Detect browser envs that don't support layout (#47813) @Janpot
|
|
66
|
+
- [code-infra] Enable undefined addition to optional properties (#47750) @brijeshb42
|
|
67
|
+
- [code-infra] Exclusively enable test mode in jsdom (#47812) @Janpot
|
|
68
|
+
- [code-infra] Fix console.warn during test (#47802) @Janpot
|
|
69
|
+
- [code-infra] Remove vale as a workspace dependency (#47860) @brijeshb42
|
|
70
|
+
- [code-infra] Setup flat build for packages (#47670) @brijeshb42
|
|
71
|
+
- [code-infra] Upgrade react-docgen to v8 (#47685) @JCQuintas
|
|
72
|
+
- [docs-infra] Reapply Cookie Banner with Design Fixes (#47744) @dav-is
|
|
73
|
+
- [internal] Remove legacy MUI Base API docs (#47804) @ZeeshanTamboli
|
|
74
|
+
|
|
75
|
+
All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @DanailH, @dav-is, @Janpot, @JCQuintas, @matthias-ccri, @oliviertassinari, @pavan-sh, @PeterTYLiu, @silviuaavram, @siriwatknp, @ZeeshanTamboli
|
|
76
|
+
|
|
3
77
|
## 9.0.0-alpha.0
|
|
4
78
|
|
|
5
79
|
<!-- generated comparing v7.3.8..master -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Interpolation } from '@emotion/react';
|
|
3
3
|
export interface GlobalStylesProps<Theme = {}> {
|
|
4
|
-
defaultTheme?: object;
|
|
4
|
+
defaultTheme?: object | undefined;
|
|
5
5
|
styles: Interpolation<Theme>;
|
|
6
6
|
}
|
|
7
7
|
export default function GlobalStyles<Theme = {}>(props: GlobalStylesProps<Theme>): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Interpolation } from '@emotion/react';
|
|
3
3
|
export interface GlobalStylesProps<Theme = {}> {
|
|
4
|
-
defaultTheme?: object;
|
|
4
|
+
defaultTheme?: object | undefined;
|
|
5
5
|
styles: Interpolation<Theme>;
|
|
6
6
|
}
|
|
7
7
|
export default function GlobalStyles<Theme = {}>(props: GlobalStylesProps<Theme>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./GlobalStyles.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface StyledEngineProviderProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
enableCssLayer?: boolean;
|
|
5
|
-
injectFirst?: boolean;
|
|
4
|
+
enableCssLayer?: boolean | undefined;
|
|
5
|
+
injectFirst?: boolean | undefined;
|
|
6
6
|
}
|
|
7
7
|
export default function StyledEngineProvider(props: StyledEngineProviderProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface StyledEngineProviderProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
enableCssLayer?: boolean;
|
|
5
|
-
injectFirst?: boolean;
|
|
4
|
+
enableCssLayer?: boolean | undefined;
|
|
5
|
+
injectFirst?: boolean | undefined;
|
|
6
6
|
}
|
|
7
7
|
export default function StyledEngineProvider(props: StyledEngineProviderProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./StyledEngineProvider.mjs";
|
|
@@ -4,9 +4,9 @@ import { PropsOf } from '@emotion/react';
|
|
|
4
4
|
export * from '@emotion/styled';
|
|
5
5
|
export { default } from '@emotion/styled';
|
|
6
6
|
export { ThemeContext, keyframes, css } from '@emotion/react';
|
|
7
|
-
export { default as StyledEngineProvider } from "./StyledEngineProvider/index.
|
|
8
|
-
export { default as GlobalStyles } from "./GlobalStyles/index.
|
|
9
|
-
export * from "./GlobalStyles/index.
|
|
7
|
+
export { default as StyledEngineProvider } from "./StyledEngineProvider/index.mjs";
|
|
8
|
+
export { default as GlobalStyles } from "./GlobalStyles/index.mjs";
|
|
9
|
+
export * from "./GlobalStyles/index.mjs";
|
|
10
10
|
export type MUIStyledComponent<ComponentProps extends {}, SpecificComponentProps extends {} = {}, JSXProps extends {} = {}> = StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -20,8 +20,8 @@ export function internal_serializeStyles<P>(styles: Interpolation<P>): object;
|
|
|
20
20
|
export interface SerializedStyles {
|
|
21
21
|
name: string;
|
|
22
22
|
styles: string;
|
|
23
|
-
map?: string;
|
|
24
|
-
next?: SerializedStyles;
|
|
23
|
+
map?: string | undefined;
|
|
24
|
+
next?: SerializedStyles | undefined;
|
|
25
25
|
}
|
|
26
26
|
export type CSSProperties = CSS.PropertiesFallback<number | string>;
|
|
27
27
|
export type CSSPropertiesWithMultiValues = { [K in keyof CSSProperties]: CSSProperties[K] | ReadonlyArray<Extract<CSSProperties[K], string>> };
|
|
@@ -73,15 +73,15 @@ export type Interpolation<Props> = null | undefined | boolean | number | string
|
|
|
73
73
|
} ? {
|
|
74
74
|
theme: Props['theme'];
|
|
75
75
|
} : any) => CSSObject);
|
|
76
|
-
}
|
|
76
|
+
}> | undefined;
|
|
77
77
|
}) | ArrayInterpolation<Props> | FunctionInterpolation<Props>;
|
|
78
78
|
export function shouldForwardProp(propName: PropertyKey): boolean;
|
|
79
79
|
|
|
80
80
|
/** Same as StyledOptions but shouldForwardProp must be a type guard */
|
|
81
81
|
export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Props = keyof Props> {
|
|
82
|
-
label?: string;
|
|
82
|
+
label?: string | undefined;
|
|
83
83
|
shouldForwardProp?(propName: PropertyKey): propName is ForwardedProps;
|
|
84
|
-
target?: string;
|
|
84
|
+
target?: string | undefined;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -112,10 +112,10 @@ export interface CreateStyledComponent<ComponentProps extends {}, SpecificCompon
|
|
|
112
112
|
}
|
|
113
113
|
export interface CreateMUIStyled<MUIStyledCommonProps extends {}, MuiStyledOptions, Theme extends object> {
|
|
114
114
|
<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, {}, {
|
|
115
|
-
ref?: React.Ref<InstanceType<C
|
|
115
|
+
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
116
116
|
}, Theme>;
|
|
117
117
|
<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledOptions<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {
|
|
118
|
-
ref?: React.Ref<InstanceType<C
|
|
118
|
+
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
119
119
|
}, Theme>;
|
|
120
120
|
<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>;
|
|
121
121
|
<C extends React.JSXElementConstructor<React.ComponentProps<C>>>(component: C, options?: StyledOptions<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {}, Theme>;
|
package/index.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export function internal_serializeStyles<P>(styles: Interpolation<P>): object;
|
|
|
20
20
|
export interface SerializedStyles {
|
|
21
21
|
name: string;
|
|
22
22
|
styles: string;
|
|
23
|
-
map?: string;
|
|
24
|
-
next?: SerializedStyles;
|
|
23
|
+
map?: string | undefined;
|
|
24
|
+
next?: SerializedStyles | undefined;
|
|
25
25
|
}
|
|
26
26
|
export type CSSProperties = CSS.PropertiesFallback<number | string>;
|
|
27
27
|
export type CSSPropertiesWithMultiValues = { [K in keyof CSSProperties]: CSSProperties[K] | ReadonlyArray<Extract<CSSProperties[K], string>> };
|
|
@@ -73,15 +73,15 @@ export type Interpolation<Props> = null | undefined | boolean | number | string
|
|
|
73
73
|
} ? {
|
|
74
74
|
theme: Props['theme'];
|
|
75
75
|
} : any) => CSSObject);
|
|
76
|
-
}
|
|
76
|
+
}> | undefined;
|
|
77
77
|
}) | ArrayInterpolation<Props> | FunctionInterpolation<Props>;
|
|
78
78
|
export function shouldForwardProp(propName: PropertyKey): boolean;
|
|
79
79
|
|
|
80
80
|
/** Same as StyledOptions but shouldForwardProp must be a type guard */
|
|
81
81
|
export interface FilteringStyledOptions<Props, ForwardedProps extends keyof Props = keyof Props> {
|
|
82
|
-
label?: string;
|
|
82
|
+
label?: string | undefined;
|
|
83
83
|
shouldForwardProp?(propName: PropertyKey): propName is ForwardedProps;
|
|
84
|
-
target?: string;
|
|
84
|
+
target?: string | undefined;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -112,10 +112,10 @@ export interface CreateStyledComponent<ComponentProps extends {}, SpecificCompon
|
|
|
112
112
|
}
|
|
113
113
|
export interface CreateMUIStyled<MUIStyledCommonProps extends {}, MuiStyledOptions, Theme extends object> {
|
|
114
114
|
<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, {}, {
|
|
115
|
-
ref?: React.Ref<InstanceType<C
|
|
115
|
+
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
116
116
|
}, Theme>;
|
|
117
117
|
<C extends React.ComponentClass<React.ComponentProps<C>>>(component: C, options?: StyledOptions<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {
|
|
118
|
-
ref?: React.Ref<InstanceType<C
|
|
118
|
+
ref?: React.Ref<InstanceType<C>> | undefined;
|
|
119
119
|
}, Theme>;
|
|
120
120
|
<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>;
|
|
121
121
|
<C extends React.JSXElementConstructor<React.ComponentProps<C>>>(component: C, options?: StyledOptions<PropsOf<C> & MUIStyledCommonProps> & MuiStyledOptions): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {}, Theme>;
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/styled-engine v9.0.0-alpha.
|
|
2
|
+
* @mui/styled-engine v9.0.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -43,5 +43,5 @@ export function internal_serializeStyles(styles) {
|
|
|
43
43
|
return emSerializeStyles(wrapper);
|
|
44
44
|
}
|
|
45
45
|
export { ThemeContext, keyframes, css } from '@emotion/react';
|
|
46
|
-
export { default as StyledEngineProvider } from "./StyledEngineProvider/index.
|
|
47
|
-
export { default as GlobalStyles } from "./GlobalStyles/index.
|
|
46
|
+
export { default as StyledEngineProvider } from "./StyledEngineProvider/index.mjs";
|
|
47
|
+
export { default as GlobalStyles } from "./GlobalStyles/index.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/styled-engine",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "styled() API wrapper package for emotion.",
|
|
6
6
|
"keywords": [
|
|
@@ -52,30 +52,51 @@
|
|
|
52
52
|
"node": ">=14.0.0"
|
|
53
53
|
},
|
|
54
54
|
"type": "commonjs",
|
|
55
|
-
"main": "./index.js",
|
|
56
|
-
"types": "./index.d.ts",
|
|
57
55
|
"exports": {
|
|
58
56
|
"./package.json": "./package.json",
|
|
59
57
|
".": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./index.d.mts",
|
|
60
|
+
"default": "./index.mjs"
|
|
61
|
+
},
|
|
60
62
|
"require": {
|
|
61
63
|
"types": "./index.d.ts",
|
|
62
64
|
"default": "./index.js"
|
|
63
65
|
},
|
|
64
66
|
"default": {
|
|
65
|
-
"types": "./
|
|
66
|
-
"default": "./
|
|
67
|
+
"types": "./index.d.mts",
|
|
68
|
+
"default": "./index.mjs"
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
|
-
"
|
|
71
|
+
"./GlobalStyles": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./GlobalStyles/index.d.mts",
|
|
74
|
+
"default": "./GlobalStyles/index.mjs"
|
|
75
|
+
},
|
|
70
76
|
"require": {
|
|
71
|
-
"types": "
|
|
72
|
-
"default": "
|
|
77
|
+
"types": "./GlobalStyles/index.d.ts",
|
|
78
|
+
"default": "./GlobalStyles/index.js"
|
|
73
79
|
},
|
|
74
80
|
"default": {
|
|
75
|
-
"types": "./
|
|
76
|
-
"default": "./
|
|
81
|
+
"types": "./GlobalStyles/index.d.mts",
|
|
82
|
+
"default": "./GlobalStyles/index.mjs"
|
|
77
83
|
}
|
|
78
84
|
},
|
|
79
|
-
"./
|
|
80
|
-
|
|
85
|
+
"./StyledEngineProvider": {
|
|
86
|
+
"import": {
|
|
87
|
+
"types": "./StyledEngineProvider/index.d.mts",
|
|
88
|
+
"default": "./StyledEngineProvider/index.mjs"
|
|
89
|
+
},
|
|
90
|
+
"require": {
|
|
91
|
+
"types": "./StyledEngineProvider/index.d.ts",
|
|
92
|
+
"default": "./StyledEngineProvider/index.js"
|
|
93
|
+
},
|
|
94
|
+
"default": {
|
|
95
|
+
"types": "./StyledEngineProvider/index.d.mts",
|
|
96
|
+
"default": "./StyledEngineProvider/index.mjs"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"main": "./index.js",
|
|
101
|
+
"types": "./index.d.ts"
|
|
81
102
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./GlobalStyles.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./StyledEngineProvider.js";
|
package/esm/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module","sideEffects":false}
|
|
File without changes
|
|
File without changes
|