@mui/styled-engine-sc 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 +46 -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} +1 -1
- package/StyledEngineProvider/StyledEngineProvider.d.ts +1 -1
- package/StyledEngineProvider/index.d.mts +2 -0
- package/StyledEngineProvider/index.mjs +1 -0
- package/{esm/index.d.ts → index.d.mts} +14 -14
- package/index.d.ts +11 -11
- 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,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 { 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 @@
|
|
|
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 @@
|
|
|
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.
|
|
50
|
-
export { default as GlobalStyles } from "./GlobalStyles/index.
|
|
51
|
-
export * from "./GlobalStyles/index.
|
|
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.
|
|
2
|
+
* @mui/styled-engine-sc 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
|
|
@@ -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.
|
|
60
|
-
export { default as GlobalStyles } from "./GlobalStyles/index.
|
|
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.
|
|
3
|
+
"version": "9.0.0-alpha.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "styled() API wrapper package for styled-components.",
|
|
6
6
|
"keywords": [
|
|
@@ -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": "./
|
|
55
|
-
"default": "./
|
|
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": "
|
|
61
|
-
"default": "
|
|
66
|
+
"types": "./GlobalStyles/index.d.ts",
|
|
67
|
+
"default": "./GlobalStyles/index.js"
|
|
62
68
|
},
|
|
63
69
|
"default": {
|
|
64
|
-
"types": "./
|
|
65
|
-
"default": "./
|
|
70
|
+
"types": "./GlobalStyles/index.d.mts",
|
|
71
|
+
"default": "./GlobalStyles/index.mjs"
|
|
66
72
|
}
|
|
67
73
|
},
|
|
68
|
-
"./
|
|
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 +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
|