@mui/styled-engine-sc 6.0.0-alpha.1 → 6.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 CHANGED
@@ -1,5 +1,78 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.14.14
4
+
5
+ <!-- generated comparing v5.14.13..master -->
6
+
7
+ _Oct 17, 2023_
8
+
9
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
10
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
+
12
+ ### `@mui/material@5.14.14`
13
+
14
+ - &#8203;<!-- 29 -->[material-ui][AppBar] Support all default palette colors in TypeScript (#39389) @BreakBB
15
+ - &#8203;<!-- 28 -->[material-ui][AvatarGroup] Add `renderSurplus` prop (#39283) @uuxxx
16
+ - &#8203;<!-- 25 -->[material-ui][Box] Fix system properties has incorrect `Theme` interface when applied directly (#39404) @Semigradsky
17
+ - &#8203;<!-- 04 -->[material-ui][Pagination] Update `type` parameter of `getItemAriaLabel` prop (#39390) @Simer13
18
+ - &#8203;<!-- 06 -->[material][tab] Show/hide scroll buttons for dynamically added children (#39415) @brijeshb42
19
+
20
+ ### `@mui/base@5.0.0-beta.20`
21
+
22
+ - &#8203;<!-- 26 -->[base-ui][Menu] Do not reopen the menu after clicking on a trigger in Safari (#39393) @michaldudak
23
+
24
+ ### `@mui/material-next@6.0.0-alpha.106`
25
+
26
+ - &#8203;<!-- 23 -->[Divider][material-next] Add Divider component (#39179) @Best-Sardar
27
+
28
+ ### `@mui/joy@5.0.0-beta.11`
29
+
30
+ - &#8203;<!-- 08 -->[joy-ui][List] Add the `marker` prop (#39313) @siriwatknp
31
+ - &#8203;<!-- 07 -->[joy-ui][Skeleton] Fix semi-transparent scenario when with surface components and color inversion (#39400) @TheNatkat
32
+ - &#8203;<!-- 06 -->[joy-ui][Textarea] Fix focus ring for error state (#39391) @vineetjk
33
+
34
+ ### `@mui/icons-material@5.14.14`
35
+
36
+ - &#8203;<!-- 09 -->[icons] Fix VoiceChatOutlined showing the wrong icon (#39418) @devuser200
37
+
38
+ ### `@mui/system@5.14.14`
39
+
40
+ - &#8203;<!-- 03 -->[mui-system][style] bug fix for style value check color in nullable object (#39457) @DarhkVoyd
41
+
42
+ ### `@mui/styled-engine-sc@6.0.0-alpha.2`
43
+
44
+ - &#8203;<!-- 05 -->[styled-engine-sc] Fix TS issues because of missing types (#39395) @mnajdova
45
+
46
+ ### Docs
47
+
48
+ - &#8203;<!-- 27 -->[docs][base-ui] Renaming demos to BaseXxx (#39104) @christophermorin
49
+ - &#8203;<!-- 26 -->[docs] Accessibility in Base UI (#39264) @michaldudak
50
+ - &#8203;<!-- 22 -->[docs] Fix 301 redirection @oliviertassinari
51
+ - &#8203;<!-- 21 -->[docs] Improve Base UI table of contents for APIs (#39412) @ZeeshanTamboli
52
+ - &#8203;<!-- 20 -->[docs] Adjust design kits-related content (#39367) @danilo-leal
53
+ - &#8203;<!-- 19 -->[docs] Revise the Contributing Guide (#39190) @samuelsycamore
54
+ - &#8203;<!-- 12 -->[docs][joy-ui] Fix row hover prop name in the Table page (#39431) @adrienbrault
55
+ - &#8203;<!-- 11 -->[docs][joy-ui] Fix color inversion demos (#39403) @danilo-leal
56
+ - &#8203;<!-- 10 -->[docs][material-ui] Remove irrelevant TODO from Snackbar demo (#39396) @ZeeshanTamboli
57
+ - &#8203;<!-- 06 -->[docs][material-ui][Table] Bug in "Sorting & Selecting" demo (#39426) @codewithrabeeh
58
+ - &#8203;<!-- 05 -->[docs][joy-ui][typography] Update docs after lineHeight changes (#39366) @zanivan
59
+
60
+ ### Core
61
+
62
+ - &#8203;<!-- 24 -->[core] Fix multiple typos across the repo (#39422) @parikshitadhikari
63
+ - &#8203;<!-- 18 -->[docs-infra] Add refinements to the API content design (#39425) @danilo-leal
64
+ - &#8203;<!-- 17 -->[docs-infra] Add a min height to the layout component (#39416) @danilo-leal
65
+ - &#8203;<!-- 16 -->[docs-infra] Prevent horizontal scroll in the TOC (#39417) @danilo-leal
66
+ - &#8203;<!-- 15 -->[docs-infra] Add a collapsible list & table views to the API content display (#38265) @alexfauquette
67
+ - &#8203;<!-- 14 -->[docs-infra] Adjust the `kbd` tag styles (#39397) @danilo-leal
68
+ - &#8203;<!-- 13 -->[docs-infra] Fix strong style regression (#39384) @oliviertassinari
69
+ - &#8203;<!-- 04 -->[website] Add the LinkedIn profile to the contributors section on the About page (#39455) @chhawinder
70
+ - &#8203;<!-- 03 -->[website] Update new role template (#39386) @oliviertassinari
71
+ - &#8203;<!-- 02 -->[website] Add stray design fine-tunning to the Pricing page (#39472) @danilo-leal
72
+ - &#8203;<!-- 01 -->[website] Fix career anchor link to perks & benefits @oliviertassinari
73
+
74
+ All contributors of this release in alphabetical order: @adrienbrault, @alexfauquette, @Best-Sardar, @BreakBB, @brijeshb42, @chhawinder, @christophermorin, @codewithrabeeh, @danilo-leal, @DarhkVoyd, @devuser200, @michaldudak, @mnajdova, @oliviertassinari, @parikshitadhikari, @samuelsycamore, @Semigradsky, @Simer13, @siriwatknp, @TheNatkat, @uuxxx, @vineetjk, @zanivan, @ZeeshanTamboli
75
+
3
76
  ## 5.14.13
4
77
 
5
78
  <!-- generated comparing v5.14.12..master -->
package/index.d.ts CHANGED
@@ -154,7 +154,7 @@ type StyledComponentPropsWithAs<
154
154
 
155
155
  export type StyledComponent<
156
156
  C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
157
- T extends object,
157
+ T extends object = {},
158
158
  O extends object = {},
159
159
  A extends keyof any = never,
160
160
  > = // the "string" allows this to be used as an object key
@@ -166,14 +166,20 @@ export type StyledComponent<
166
166
  // any doesn't count as assignable to never in the extends clause, and we default A to never
167
167
  export type AnyStyledComponent =
168
168
  | StyledComponent<any, any, any, any>
169
- | StyledComponent<any, any, any>;
169
+ | StyledComponent<any, any, any>
170
+ | React.FunctionComponent<any>
171
+ | React.ComponentType<any>;
170
172
 
171
- export type StyledComponentInnerComponent<C extends React.ComponentType<any>> =
172
- C extends StyledComponent<infer I, any, any, any>
173
- ? I
174
- : C extends StyledComponent<infer I, any, any>
175
- ? I
176
- : C;
173
+ export type StyledComponentInnerComponent<C extends AnyStyledComponent> = C extends StyledComponent<
174
+ infer I,
175
+ any,
176
+ any,
177
+ any
178
+ >
179
+ ? I
180
+ : C extends StyledComponent<infer I, any, any>
181
+ ? I
182
+ : C;
177
183
 
178
184
  export type StyledComponentInnerOtherProps<C extends AnyStyledComponent> =
179
185
  C extends StyledComponent<any, any, infer O, any>
@@ -274,6 +280,13 @@ export interface ThemedStyledFunction<
274
280
  A extends keyof any = never,
275
281
  > extends ThemedStyledFunctionBase<C, T, O, A> {}
276
282
 
283
+ export type CreateStyledComponent<
284
+ ComponentProps extends {},
285
+ SpecificComponentProps extends {} = {},
286
+ JSXProps extends {} = {},
287
+ T extends object = {},
288
+ > = ThemedStyledFunction<React.ComponentType<ComponentProps>, T, SpecificComponentProps & JSXProps>;
289
+
277
290
  // Config to be used with withConfig
278
291
  export interface StyledConfig<O extends object = {}> {
279
292
  // TODO: Add all types from the original StyledComponentWrapperProperties
@@ -312,3 +325,22 @@ export type CreateMUIStyled<
312
325
  MuiStyledOptions extends object = {},
313
326
  T extends object = {},
314
327
  > = ThemedBaseStyledInterface<MUIStyledCommonProps, MuiStyledOptions, AnyIfEmpty<T>>;
328
+
329
+ export type PropsOf<C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>> =
330
+ JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
331
+
332
+ export interface MUIStyledComponent<
333
+ ComponentProps extends {},
334
+ SpecificComponentProps extends {} = {},
335
+ JSXProps extends {} = {},
336
+ > extends React.FC<ComponentProps & SpecificComponentProps & JSXProps> {
337
+ withComponent<C extends React.ComponentClass<React.ComponentProps<C>>>(
338
+ component: C,
339
+ ): MUIStyledComponent<ComponentProps & PropsOf<C>, {}, { ref?: React.Ref<InstanceType<C>> }>;
340
+ withComponent<C extends React.ComponentType<React.ComponentProps<C>>>(
341
+ component: C,
342
+ ): MUIStyledComponent<ComponentProps & PropsOf<C>>;
343
+ withComponent<Tag extends keyof JSX.IntrinsicElements>(
344
+ tag: Tag,
345
+ ): MUIStyledComponent<ComponentProps, JSX.IntrinsicElements[Tag]>;
346
+ }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v6.0.0-alpha.1
2
+ * @mui/styled-engine-sc v6.0.0-alpha.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v6.0.0-alpha.1
2
+ * @mui/styled-engine-sc v6.0.0-alpha.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v6.0.0-alpha.1
2
+ * @mui/styled-engine-sc v6.0.0-alpha.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v6.0.0-alpha.1
2
+ * @mui/styled-engine-sc v6.0.0-alpha.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/styled-engine-sc",
3
- "version": "6.0.0-alpha.1",
3
+ "version": "6.0.0-alpha.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "styled() API wrapper package for styled-components.",
@@ -28,6 +28,7 @@
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.23.1",
30
30
  "csstype": "^3.1.2",
31
+ "hoist-non-react-statics": "^3.3.2",
31
32
  "prop-types": "^15.8.1"
32
33
  },
33
34
  "peerDependencies": {