@mui/styled-engine 9.0.0-alpha.0 → 9.0.0-alpha.1

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,51 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 9.0.0-alpha.1
4
+
5
+ <!-- generated comparing v9.0.0-alpha.0..master -->
6
+
7
+ _Feb 26, 2026_
8
+
9
+ A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ ### @mui/material@9.0.0-alpha.1
12
+
13
+ - [Autocomplete] Prevents Autocomplete menu from opening on right click (#47797) @silviuaavram
14
+ - [Backdrop] Remove aria-hidden by default (#47798) @silviuaavram
15
+ - [ButtonBase] Ensure that onClick propagates when non-native button is clicked (#47800) @silviuaavram
16
+ - [Dialog][Modal] Remove `disableEscapeKeyDown` prop (#47695) @silviuaavram
17
+ - [Grid] Remove system props support (#47846) @siriwatknp
18
+ - [TableCell][theme] Apply `alpha` before color mixing to border bottom color when nativeColor + cssVariables is used (#47762) @ZeeshanTamboli
19
+ - [theme] Remove MuiTouchRipple from theme component types (#47849) @siriwatknp
20
+ - [Tooltip] Fix error is thrown when wrapping an input which is disabled while focused (#47684) @ZeeshanTamboli
21
+ - [useAutocomplete] Improve isOptionEqualToValue value argument type (#47801) @silviuaavram
22
+
23
+ ### Docs
24
+
25
+ - [docs] Add updated community theme resource (#47847) @PeterTYLiu
26
+ - [docs] Few copy fixes (#47806) @pavan-sh
27
+ - [docs] Fix IPA reader link in blog post (#47796) @pavan-sh
28
+ - [docs] Fix JSX in Overriding component structure docs (#47799) @ZeeshanTamboli
29
+ - [docs] Fix the keyboard navigation in GroupedMenu example (#47842) @silviuaavram
30
+ - [docs] Fix Theme builder video (#47835) @oliviertassinari
31
+ - [docs] Update pricing sankey as done (#47795) @alexfauquette
32
+ - [docs][system] Update sizing docs to clarify `(0, 1]` behavior. (#47845) @matthias-ccri
33
+
34
+ ### Core
35
+
36
+ - [blog] Blogpost for upcoming price changes for MUI X (#47748) @DanailH
37
+ - [code-infra] Detect browser envs that don't support layout (#47813) @Janpot
38
+ - [code-infra] Enable undefined addition to optional properties (#47750) @brijeshb42
39
+ - [code-infra] Exclusively enable test mode in jsdom (#47812) @Janpot
40
+ - [code-infra] Fix console.warn during test (#47802) @Janpot
41
+ - [code-infra] Remove vale as a workspace dependency (#47860) @brijeshb42
42
+ - [code-infra] Setup flat build for packages (#47670) @brijeshb42
43
+ - [code-infra] Upgrade react-docgen to v8 (#47685) @JCQuintas
44
+ - [docs-infra] Reapply Cookie Banner with Design Fixes (#47744) @dav-is
45
+ - [internal] Remove legacy MUI Base API docs (#47804) @ZeeshanTamboli
46
+
47
+ All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @DanailH, @dav-is, @Janpot, @JCQuintas, @matthias-ccri, @oliviertassinari, @pavan-sh, @PeterTYLiu, @silviuaavram, @siriwatknp, @ZeeshanTamboli
48
+
3
49
  ## 9.0.0-alpha.0
4
50
 
5
51
  <!-- 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,2 @@
1
+ export { default } from "./GlobalStyles.mjs";
2
+ export * from "./GlobalStyles.mjs";
@@ -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,2 @@
1
+ export { default } from "./StyledEngineProvider.mjs";
2
+ export * from "./StyledEngineProvider.mjs";
@@ -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.js";
8
- export { default as GlobalStyles } from "./GlobalStyles/index.js";
9
- export * from "./GlobalStyles/index.js";
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.0
2
+ * @mui/styled-engine v9.0.0-alpha.1
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 v9.0.0-alpha.0
2
+ * @mui/styled-engine v9.0.0-alpha.1
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.js";
47
- export { default as GlobalStyles } from "./GlobalStyles/index.js";
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.0",
3
+ "version": "9.0.0-alpha.1",
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": "./esm/index.d.ts",
66
- "default": "./esm/index.js"
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": "./*/index.d.ts",
72
- "default": "./*/index.js"
77
+ "types": "./GlobalStyles/index.d.ts",
78
+ "default": "./GlobalStyles/index.js"
73
79
  },
74
80
  "default": {
75
- "types": "./esm/*/index.d.ts",
76
- "default": "./esm/*/index.js"
81
+ "types": "./GlobalStyles/index.d.mts",
82
+ "default": "./GlobalStyles/index.mjs"
77
83
  }
78
84
  },
79
- "./esm": null
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,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}