@mui/styled-engine-sc 6.0.0-alpha.24 → 6.0.0-alpha.26
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 +202 -3
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/StyledEngineProvider/StyledEngineProvider.d.ts +1 -1
- package/index.d.ts +20 -17
- package/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,204 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.11
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.10..next -->
|
|
6
|
+
|
|
7
|
+
_Jun 11, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 18 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.0.0-alpha.11`
|
|
12
|
+
|
|
13
|
+
- ​<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
|
|
14
|
+
- ​<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
|
|
15
|
+
- ​<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
|
|
16
|
+
- ​<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
|
|
17
|
+
- ​<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
|
|
18
|
+
- ​<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
|
|
19
|
+
- ​<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
|
|
20
|
+
- ​<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
|
|
21
|
+
|
|
22
|
+
### `@mui/system@6.0.0-alpha.11`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
|
|
25
|
+
- ​<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
|
|
26
|
+
|
|
27
|
+
### `@mui/utils@6.0.0-alpha.11`
|
|
28
|
+
|
|
29
|
+
- ​<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
|
|
30
|
+
|
|
31
|
+
### `@mui/codemod@6.0.0-alpha.11`
|
|
32
|
+
|
|
33
|
+
- ​<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
|
|
34
|
+
- ​<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
|
|
35
|
+
|
|
36
|
+
### `@mui/private-theming@6.0.0-alpha.11`
|
|
37
|
+
|
|
38
|
+
- ​<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
|
|
39
|
+
|
|
40
|
+
### Docs
|
|
41
|
+
|
|
42
|
+
- ​<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
|
|
43
|
+
- ​<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
|
|
44
|
+
- ​<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
|
|
45
|
+
- ​<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
|
|
46
|
+
- ​<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
|
|
47
|
+
- ​<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
|
|
48
|
+
- ​<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
|
|
49
|
+
- ​<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
|
|
50
|
+
- ​<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
|
|
51
|
+
- ​<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
|
|
52
|
+
- ​<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
|
|
53
|
+
- ​<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
|
|
54
|
+
- ​<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- ​<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
|
|
59
|
+
- ​<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
|
|
60
|
+
- ​<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
|
|
61
|
+
- ​<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
|
|
62
|
+
- ​<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
|
|
63
|
+
- ​<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
|
|
64
|
+
- ​<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
|
|
65
|
+
- ​<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
|
|
66
|
+
- ​<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
|
|
67
|
+
- ​<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
|
|
68
|
+
- ​<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
|
|
69
|
+
- ​<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
|
|
70
|
+
- ​<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
|
|
71
|
+
- ​<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
|
|
72
|
+
- ​<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
|
|
73
|
+
- ​<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
|
|
74
|
+
- ​<!-- 02 -->[website] Remove blank line @oliviertassinari
|
|
75
|
+
- ​<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
|
|
76
|
+
|
|
77
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @DanailH, @danilo-leal, @devnyxie, @DiegoAndai, @iammminzzy, @jacobmoshipco, @michaldudak, @necatiozmen, @oliviertassinari, @sai6855, @shrilsharma, @siriwatknp, @tonygravell, @zanivan, @ZeeshanTamboli
|
|
78
|
+
|
|
79
|
+
## v6.0.0-alpha.10
|
|
80
|
+
|
|
81
|
+
<!-- generated comparing v6.0.0-alpha.9..next -->
|
|
82
|
+
|
|
83
|
+
_Jun 4, 2024_
|
|
84
|
+
|
|
85
|
+
A big thanks to the 7 contributors who made this release possible.
|
|
86
|
+
|
|
87
|
+
### `@mui/material@6.0.0-alpha.10`
|
|
88
|
+
|
|
89
|
+
- ​<!-- 26 -->[Backdrop] Deprecate `components` and `componentsProps` (#42468) @DiegoAndai
|
|
90
|
+
- ​<!-- 25 -->[Collapse] Bound max transition time (#42390) @oliviertassinari
|
|
91
|
+
- ​<!-- 12 -->[FilledInput] Remove unapplied classes from filledInputClasses interface and add missing classes to root (#42082) @sai6855
|
|
92
|
+
- ​<!-- 11 -->[InputBase] Deprecate components and componentProps props for v6 (#42093) @ChronicusUA
|
|
93
|
+
- ​<!-- 10 -->Remove remaining IE11 code (#42283) @DiegoAndai
|
|
94
|
+
- ​<!-- 09 -->[Modal] Deprecate `components` and `componentsProps` (#42469) @DiegoAndai
|
|
95
|
+
- ​<!-- 08 -->[Popover] Migrate useSlotProps to useSlot (#42369) @sai6855
|
|
96
|
+
- ​<!-- 07 -->[useMediaQuery] Remove unused useMediaQueryTheme (#42367) @aarongarciah
|
|
97
|
+
|
|
98
|
+
### `@mui/system@6.0.0-alpha.10`
|
|
99
|
+
|
|
100
|
+
- ​<!-- 06 -->Remove IE11 code (#42436) @DiegoAndai
|
|
101
|
+
|
|
102
|
+
### Docs
|
|
103
|
+
|
|
104
|
+
- ​<!-- 23 -->Reflect Base UI and MUI System in a different repository @oliviertassinari
|
|
105
|
+
- ​<!-- 22 -->Update twitter.com to x.com @oliviertassinari
|
|
106
|
+
- ​<!-- 21 -->Simplify Example projects page @oliviertassinari
|
|
107
|
+
- ​<!-- 17 -->[icons] Update README and docs page (#41938) @danilo-leal
|
|
108
|
+
- ​<!-- 16 -->[material-ui] Add changelog section to the design kits page (#42449) @danilo-leal
|
|
109
|
+
- ​<!-- 15 -->[material-ui] Fix sentence in the All components page (#42336) @danilo-leal
|
|
110
|
+
- ​<!-- 14 -->[material-ui] Update Figma design kit doc redirect link (#42448) @danilo-leal
|
|
111
|
+
- ​<!-- 13 -->[system] Add "dynamic values" section to sx prop page (#42239) @aarongarciah
|
|
112
|
+
|
|
113
|
+
### Core
|
|
114
|
+
|
|
115
|
+
- ​<!-- 20 -->[docs-infra] Update the OG card image design (#42470) @danilo-leal
|
|
116
|
+
- ​<!-- 19 -->[docs-infra] Add small design polish (#42455) @danilo-leal
|
|
117
|
+
- ​<!-- 18 -->[docs-infra] Update the Material logo + add copy functionality (#42435) @danilo-leal
|
|
118
|
+
- ​<!-- 05 -->[website] Update DoiT description and link in Sponsors section (#42505) @erezstmn-doit
|
|
119
|
+
- ​<!-- 04 -->[website] Clean up the docs-infra job ad (#42504) @danilo-leal
|
|
120
|
+
- ​<!-- 03 -->[website] Fix FlashCode position (#42139) @oliviertassinari
|
|
121
|
+
- ​<!-- 02 -->[website] Open Docs-infra engineer role (#42101) @danilo-leal
|
|
122
|
+
- ​<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
|
|
123
|
+
|
|
124
|
+
All contributors of this release in alphabetical order: @aarongarciah, @ChronicusUA, @danilo-leal, @DiegoAndai, @erezstmn-doit, @oliviertassinari, @sai6855
|
|
125
|
+
|
|
126
|
+
## v6.0.0-alpha.9
|
|
127
|
+
|
|
128
|
+
<!-- generated comparing v6.0.0-alpha.8..next -->
|
|
129
|
+
|
|
130
|
+
_May 29, 2024_
|
|
131
|
+
|
|
132
|
+
A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
|
|
133
|
+
|
|
134
|
+
- 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
|
|
135
|
+
|
|
136
|
+
### `@mui/material@6.0.0-alpha.9`
|
|
137
|
+
|
|
138
|
+
- ​<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
|
|
139
|
+
- ​<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
|
|
140
|
+
- ​<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
|
|
141
|
+
- ​<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
|
|
142
|
+
- ​<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
|
|
143
|
+
- ​<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
|
|
144
|
+
- ​<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
|
|
145
|
+
- ​<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
|
|
146
|
+
- ​<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
|
|
147
|
+
- ​<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
|
|
148
|
+
- ​<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
|
|
149
|
+
|
|
150
|
+
### `@mui/system@6.0.0-alpha.9`
|
|
151
|
+
|
|
152
|
+
- ​<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
|
|
153
|
+
|
|
154
|
+
### `@mui/codemod@6.0.0-alpha.9`
|
|
155
|
+
|
|
156
|
+
- ​<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
|
|
157
|
+
- ​<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
|
|
158
|
+
|
|
159
|
+
### Docs
|
|
160
|
+
|
|
161
|
+
- ​<!-- 33 -->Remove unused images (#42324) @danilo-leal
|
|
162
|
+
- ​<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
|
|
163
|
+
- ​<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
|
|
164
|
+
- ​<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
|
|
165
|
+
- ​<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
|
|
166
|
+
- ​<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
|
|
167
|
+
- ​<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
|
|
168
|
+
- ​<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
|
|
169
|
+
- ​<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
|
|
170
|
+
|
|
171
|
+
### Core
|
|
172
|
+
|
|
173
|
+
- ​<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
|
|
174
|
+
- ​<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
|
|
175
|
+
- ​<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
|
|
176
|
+
- ​<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
|
|
177
|
+
- ​<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
|
|
178
|
+
- ​<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
|
|
179
|
+
- ​<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
|
|
180
|
+
- ​<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
|
|
181
|
+
- ​<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
|
|
182
|
+
- ​<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
|
|
183
|
+
- ​<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
|
|
184
|
+
- ​<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
|
|
185
|
+
- ​<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
|
|
186
|
+
- ​<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
|
|
187
|
+
- ​<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
|
|
188
|
+
- ​<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
|
|
189
|
+
- ​<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
|
|
190
|
+
- ​<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
|
|
191
|
+
- ​<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
|
|
192
|
+
- ​<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
|
|
193
|
+
- ​<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
|
|
194
|
+
- ​<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
|
|
195
|
+
- ​<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
|
|
196
|
+
- ​<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
|
|
197
|
+
- ​<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
|
|
198
|
+
- ​<!-- 01 -->[website] Improve about page @oliviertassinari
|
|
199
|
+
|
|
200
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @apedroferreira, @brijeshb42, @cherniavskii, @ChronicusUA, @danilo-leal, @DiegoAndai, @fedirjh, @j4marcos, @Janpot, @KenanYusuf, @lhilgert9, @lucasgmelo, @MatheusEli, @mihilt, @mnajdova, @nikitaa24, @oliviertassinari, @sayoubiaf, @siriwatknp, @tjcouch-sil, @ZeeshanTamboli
|
|
201
|
+
|
|
3
202
|
## v6.0.0-alpha.8
|
|
4
203
|
|
|
5
204
|
<!-- generated comparing v6.0.0-alpha.7..next -->
|
|
@@ -18,7 +217,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
|
|
|
18
217
|
### Docs
|
|
19
218
|
|
|
20
219
|
- ​<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
|
|
21
|
-
- ​<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind
|
|
220
|
+
- ​<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
|
|
22
221
|
- ​<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
|
|
23
222
|
- ​<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
|
|
24
223
|
|
|
@@ -8730,7 +8929,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
8730
8929
|
|
|
8731
8930
|
- ​<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
|
|
8732
8931
|
|
|
8733
|
-
Based on the results of the [poll](https://
|
|
8932
|
+
Based on the results of the [poll](https://x.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
|
|
8734
8933
|
|
|
8735
8934
|
The new name better reflects the purpose of the package: it contains unstyled components, hooks, and utilities that serve as a **base** to build on.
|
|
8736
8935
|
|
|
@@ -13147,7 +13346,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
13147
13346
|
```
|
|
13148
13347
|
|
|
13149
13348
|
- [Autocomplete] Remove `debug` in favor of `open` and dev tools (#23377) @eps1lon
|
|
13150
|
-
There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://
|
|
13349
|
+
There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
|
|
13151
13350
|
|
|
13152
13351
|
#### Changes
|
|
13153
13352
|
|
package/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ type Defaultize<P, D> = P extends any
|
|
|
23
23
|
Partial<PickU<D, Exclude<keyof D, keyof P>>>
|
|
24
24
|
: never;
|
|
25
25
|
|
|
26
|
-
export type IntrinsicElementsKeys = keyof JSX.IntrinsicElements;
|
|
26
|
+
export type IntrinsicElementsKeys = keyof React.JSX.IntrinsicElements;
|
|
27
27
|
type ReactDefaultizedProps<C, P> = C extends { defaultProps: infer D } ? Defaultize<P, D> : P;
|
|
28
28
|
|
|
29
29
|
type MakeAttrsOptional<
|
|
@@ -156,7 +156,7 @@ type StyledComponentPropsWithAs<
|
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
export type StyledComponent<
|
|
159
|
-
C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
|
|
159
|
+
C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>,
|
|
160
160
|
T extends object = {},
|
|
161
161
|
O extends object = {},
|
|
162
162
|
A extends keyof any = never,
|
|
@@ -217,7 +217,7 @@ export interface StyledComponentBase<
|
|
|
217
217
|
O & StyledComponentInnerOtherProps<WithC>,
|
|
218
218
|
A | StyledComponentInnerAttrs<WithC>
|
|
219
219
|
>;
|
|
220
|
-
withComponent<WithC extends keyof JSX.IntrinsicElements | React.ComponentType<any>>(
|
|
220
|
+
withComponent<WithC extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>>(
|
|
221
221
|
component: WithC,
|
|
222
222
|
): StyledComponent<WithC, T, O, A>;
|
|
223
223
|
}
|
|
@@ -232,18 +232,18 @@ type StyledComponentInterpolation =
|
|
|
232
232
|
type AnyIfEmpty<T extends object> = keyof T extends never ? any : T;
|
|
233
233
|
|
|
234
234
|
type ThemedStyledComponentFactories<T extends object> = {
|
|
235
|
-
[TTag in keyof JSX.IntrinsicElements]: ThemedStyledFunctionBase<TTag, T>;
|
|
235
|
+
[TTag in keyof React.JSX.IntrinsicElements]: ThemedStyledFunctionBase<TTag, T>;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
238
|
export type StyledComponentPropsWithRef<
|
|
239
|
-
C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
|
|
239
|
+
C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>,
|
|
240
240
|
> = C extends AnyStyledComponent
|
|
241
241
|
? React.ComponentPropsWithRef<StyledComponentInnerComponent<C>>
|
|
242
242
|
: React.ComponentPropsWithRef<C>;
|
|
243
243
|
|
|
244
244
|
// Same as in styled-components, but copied here so that it would use the Interpolation & CSS typings from above
|
|
245
245
|
export interface ThemedStyledFunctionBase<
|
|
246
|
-
C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
|
|
246
|
+
C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>,
|
|
247
247
|
T extends object,
|
|
248
248
|
O extends object = {},
|
|
249
249
|
A extends keyof any = never,
|
|
@@ -267,7 +267,7 @@ export interface ThemedStyledFunctionBase<
|
|
|
267
267
|
|
|
268
268
|
// same as ThemedStyledFunction in styled-components, but without attrs, and withConfig
|
|
269
269
|
export interface ThemedStyledFunction<
|
|
270
|
-
C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
|
|
270
|
+
C extends keyof React.JSX.IntrinsicElements | React.ComponentType<any>,
|
|
271
271
|
T extends object,
|
|
272
272
|
O extends object = {},
|
|
273
273
|
A extends keyof any = never,
|
|
@@ -348,22 +348,24 @@ export interface ThemedBaseStyledInterface<
|
|
|
348
348
|
): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps, {}, {}, Theme>;
|
|
349
349
|
|
|
350
350
|
<
|
|
351
|
-
Tag extends keyof JSX.IntrinsicElements,
|
|
352
|
-
ForwardedProps extends
|
|
351
|
+
Tag extends keyof React.JSX.IntrinsicElements,
|
|
352
|
+
ForwardedProps extends
|
|
353
|
+
keyof React.JSX.IntrinsicElements[Tag] = keyof React.JSX.IntrinsicElements[Tag],
|
|
353
354
|
>(
|
|
354
355
|
tag: Tag,
|
|
355
|
-
options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> &
|
|
356
|
+
options: FilteringStyledOptions<React.JSX.IntrinsicElements[Tag], ForwardedProps> &
|
|
357
|
+
MuiStyledOptions,
|
|
356
358
|
): CreateStyledComponent<
|
|
357
359
|
MUIStyledCommonProps,
|
|
358
|
-
Pick<JSX.IntrinsicElements[Tag], ForwardedProps>,
|
|
360
|
+
Pick<React.JSX.IntrinsicElements[Tag], ForwardedProps>,
|
|
359
361
|
{},
|
|
360
362
|
Theme
|
|
361
363
|
>;
|
|
362
364
|
|
|
363
|
-
<Tag extends keyof JSX.IntrinsicElements>(
|
|
365
|
+
<Tag extends keyof React.JSX.IntrinsicElements>(
|
|
364
366
|
tag: Tag,
|
|
365
367
|
options?: StyledConfig<MUIStyledCommonProps> & MuiStyledOptions,
|
|
366
|
-
): CreateStyledComponent<MUIStyledCommonProps, JSX.IntrinsicElements[Tag], {}, Theme>;
|
|
368
|
+
): CreateStyledComponent<MUIStyledCommonProps, React.JSX.IntrinsicElements[Tag], {}, Theme>;
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
export type CreateMUIStyled<
|
|
@@ -372,8 +374,9 @@ export type CreateMUIStyled<
|
|
|
372
374
|
T extends object = {},
|
|
373
375
|
> = ThemedBaseStyledInterface<MUIStyledCommonProps, MuiStyledOptions, AnyIfEmpty<T>>;
|
|
374
376
|
|
|
375
|
-
export type PropsOf<
|
|
376
|
-
JSX.
|
|
377
|
+
export type PropsOf<
|
|
378
|
+
C extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>,
|
|
379
|
+
> = React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
|
|
377
380
|
|
|
378
381
|
export interface MUIStyledComponent<
|
|
379
382
|
ComponentProps extends {},
|
|
@@ -386,7 +389,7 @@ export interface MUIStyledComponent<
|
|
|
386
389
|
withComponent<C extends React.ComponentType<React.ComponentProps<C>>>(
|
|
387
390
|
component: C,
|
|
388
391
|
): MUIStyledComponent<ComponentProps & PropsOf<C>>;
|
|
389
|
-
withComponent<Tag extends keyof JSX.IntrinsicElements>(
|
|
392
|
+
withComponent<Tag extends keyof React.JSX.IntrinsicElements>(
|
|
390
393
|
tag: Tag,
|
|
391
|
-
): MUIStyledComponent<ComponentProps, JSX.IntrinsicElements[Tag]>;
|
|
394
|
+
): MUIStyledComponent<ComponentProps, React.JSX.IntrinsicElements[Tag]>;
|
|
392
395
|
}
|
package/index.js
CHANGED
package/modern/index.js
CHANGED
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/styled-engine-sc",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "styled() API wrapper package for styled-components.",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://opencollective.com/mui-org"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.24.
|
|
29
|
+
"@babel/runtime": "^7.24.7",
|
|
30
30
|
"csstype": "^3.1.3",
|
|
31
31
|
"hoist-non-react-statics": "^3.3.2",
|
|
32
32
|
"prop-types": "^15.8.1"
|