@mui/styled-engine-sc 6.0.0-alpha.1 → 6.0.0-alpha.3

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,151 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.14.15
4
+
5
+ <!-- generated comparing v5.14.14..master -->
6
+
7
+ _Oct 24, 2023_
8
+
9
+ A big thanks to the 17 contributors who made this release possible.
10
+
11
+ ### `@mui/material@5.14.15`
12
+
13
+ - &#8203;<!-- 24 -->[Checkbox][Radio] Fix theme style overrides not working for different sizes (#39377) @gitstart
14
+ - &#8203;<!-- 12 -->[InputLabel] InputLabel supports ownerState.focused for styleOverrides (#39470) @mj12albert
15
+ - &#8203;<!-- 07 -->[ToggleButton] Add `fullWidth` to `toggleButtonClasses` and `toggleButtonGroupClasses` (#39536) @Semigradsky
16
+
17
+ ### `@mui/base@5.0.0-beta.21`
18
+
19
+ - &#8203;<!-- 29 -->[useAutocomplete] Correct keyboard navigation with multiple disabled options (#38788) @VadimZvf
20
+ - &#8203;<!-- 28 -->[Select] Standardize box shadow on demos (#39509) @zanivan
21
+ - &#8203;<!-- 27 -->[Slider] Refine demos (#39526) @zanivan
22
+ - &#8203;<!-- 34 -->[Input] Update and port additional tests from material-ui (#39584) @mj12albert
23
+
24
+ ### `@mui/material-next@6.0.0-alpha.107`
25
+
26
+ - &#8203;<!-- 16 -->[FilledInput] Add FilledInput component (#39307) @mj12albert
27
+ - &#8203;<!-- 13 -->[InputAdornment] Fix unstable_capitalize import (#39510) @DiegoAndai
28
+ - &#8203;<!-- 08 -->[Snackbar] copy files to mui-material-next (#39232) @Best-Sardar
29
+ - &#8203;<!-- 33 -->[Menu] Use useMenu hook (#38934) @mnajdova
30
+
31
+ ### `@mui/joy@5.0.0-beta.12`
32
+
33
+ - &#8203;<!-- 26 -->[Button] Fix button size being a decorator (#39529) @siriwatknp
34
+ - &#8203;<!-- 25 -->[CardOverflow] Remove conditional CSS to support Next.js App dir (#39101) @siriwatknp
35
+ - &#8203;<!-- 11 -->[Link] Apply `userSelect: none` only when it's a button (#39486) @mwskwong
36
+
37
+ ### `@mui/lab@5.0.0-alpha.150`
38
+
39
+ - &#8203;<!-- 09 -->Update peer dep of @mui/material (#39398) @brijeshb42
40
+
41
+ ### `@mui/zero-runtime@0.0.1-alpha.0`
42
+
43
+ - &#8203;<!-- 06 -->Implement typings for public runtime API (#39215) @brijeshb42
44
+
45
+ ### `@mui/zero-vite-plugin@0.0.1-alpha.0`
46
+
47
+ - &#8203;<!-- 05 -->Modify plugin to transform node_modules (#39517) @brijeshb42
48
+
49
+ ### Docs
50
+
51
+ - &#8203;<!-- 31 -->[base-ui] Standardize grey palette across demos (#39504) @zanivan
52
+ - &#8203;<!-- 30 -->[base-ui] Overall demos design review (#38820) @zanivan
53
+ - &#8203;<!-- 19 -->[joy-ui] Adjust the responsiveness of the template card (#39534) @danilo-leal
54
+ - &#8203;<!-- 18 -->[material-ui] Typo fixes in overview page (#39540) @Evan151
55
+ - &#8203;<!-- 35 -->[material-ui] Add stray design tweaks to the templates collection (#39583) @danilo-leal
56
+ - &#8203;<!-- 17 -->[system] Revise the Box page (#39159) @danilo-leal
57
+ - &#8203;<!-- 22 -->Fix git diff format @oliviertassinari
58
+ - &#8203;<!-- 15 -->[I10n] Add Norwegian (nynorsk) (nn-NO) locale (#39481) @hjalti-lifekeys
59
+ - &#8203;<!-- 10 -->[l10n] Fix double space typo in ar-EG @oliviertassinari
60
+ - &#8203;<!-- 14 -->[I10n] Additions to Icelandic (is-IS) locale (#39480) @hjalti-lifekeys
61
+
62
+ ### Core
63
+
64
+ - &#8203;<!-- 23 -->[core] Replace a `useCallback` by `useRef` in useEventCallback (#39078) @romgrk
65
+ - &#8203;<!-- 21 -->[docs-infra] Prevent docs crash (#39214) @alexfauquette
66
+ - &#8203;<!-- 20 -->[docs-infra] Fix no-op autoprefixer warning (#39385) @oliviertassinari
67
+ - &#8203;<!-- 32 -->[docs-infra] Refine the API page design (#39520) @alexfauquette
68
+ - &#8203;<!-- 25 -->[docs-infra] Fix cut-off sponsors (#39572) @oliviertassinari
69
+ - &#8203;<!-- 04 -->[website] Add missing h1 on page @oliviertassinari
70
+ - &#8203;<!-- 03 -->[website] Fix unrecognized prop warning @oliviertassinari
71
+ - &#8203;<!-- 02 -->[website] Store Engineer role filled @oliviertassinari
72
+ - &#8203;<!-- 01 -->[website] Add stray design adjustments (#39496) @danilo-leal
73
+
74
+ All contributors of this release in alphabetical order: @alexfauquette, @Best-Sardar, @brijeshb42, @danilo-leal, @DiegoAndai, @Evan151, @gitstart, @hjalti-lifekeys, @mj12albert, @mnajdova, @mwskwong, @oliviertassinari, @romgrk, @Semigradsky, @siriwatknp, @VadimZvf, @zanivan
75
+
76
+ ## 5.14.14
77
+
78
+ <!-- generated comparing v5.14.13..master -->
79
+
80
+ _Oct 17, 2023_
81
+
82
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
83
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
84
+
85
+ ### `@mui/material@5.14.14`
86
+
87
+ - &#8203;<!-- 29 -->[material-ui][AppBar] Support all default palette colors in TypeScript (#39389) @BreakBB
88
+ - &#8203;<!-- 28 -->[material-ui][AvatarGroup] Add `renderSurplus` prop (#39283) @uuxxx
89
+ - &#8203;<!-- 25 -->[material-ui][Box] Fix system properties has incorrect `Theme` interface when applied directly (#39404) @Semigradsky
90
+ - &#8203;<!-- 04 -->[material-ui][Pagination] Update `type` parameter of `getItemAriaLabel` prop (#39390) @Simer13
91
+ - &#8203;<!-- 06 -->[material][tab] Show/hide scroll buttons for dynamically added children (#39415) @brijeshb42
92
+
93
+ ### `@mui/base@5.0.0-beta.20`
94
+
95
+ - &#8203;<!-- 26 -->[base-ui][Menu] Do not reopen the menu after clicking on a trigger in Safari (#39393) @michaldudak
96
+
97
+ ### `@mui/material-next@6.0.0-alpha.106`
98
+
99
+ - &#8203;<!-- 23 -->[Divider][material-next] Add Divider component (#39179) @Best-Sardar
100
+
101
+ ### `@mui/joy@5.0.0-beta.11`
102
+
103
+ - &#8203;<!-- 08 -->[joy-ui][List] Add the `marker` prop (#39313) @siriwatknp
104
+ - &#8203;<!-- 07 -->[joy-ui][Skeleton] Fix semi-transparent scenario when with surface components and color inversion (#39400) @TheNatkat
105
+ - &#8203;<!-- 06 -->[joy-ui][Textarea] Fix focus ring for error state (#39391) @vineetjk
106
+
107
+ ### `@mui/icons-material@5.14.14`
108
+
109
+ - &#8203;<!-- 09 -->[icons] Fix VoiceChatOutlined showing the wrong icon (#39418) @devuser200
110
+
111
+ ### `@mui/system@5.14.14`
112
+
113
+ - &#8203;<!-- 03 -->[mui-system][style] bug fix for style value check color in nullable object (#39457) @DarhkVoyd
114
+
115
+ ### `@mui/styled-engine-sc@6.0.0-alpha.2`
116
+
117
+ - &#8203;<!-- 05 -->[styled-engine-sc] Fix TS issues because of missing types (#39395) @mnajdova
118
+
119
+ ### Docs
120
+
121
+ - &#8203;<!-- 27 -->[docs][base-ui] Renaming demos to BaseXxx (#39104) @christophermorin
122
+ - &#8203;<!-- 26 -->[docs] Accessibility in Base UI (#39264) @michaldudak
123
+ - &#8203;<!-- 22 -->[docs] Fix 301 redirection @oliviertassinari
124
+ - &#8203;<!-- 21 -->[docs] Improve Base UI table of contents for APIs (#39412) @ZeeshanTamboli
125
+ - &#8203;<!-- 20 -->[docs] Adjust design kits-related content (#39367) @danilo-leal
126
+ - &#8203;<!-- 19 -->[docs] Revise the Contributing Guide (#39190) @samuelsycamore
127
+ - &#8203;<!-- 12 -->[docs][joy-ui] Fix row hover prop name in the Table page (#39431) @adrienbrault
128
+ - &#8203;<!-- 11 -->[docs][joy-ui] Fix color inversion demos (#39403) @danilo-leal
129
+ - &#8203;<!-- 10 -->[docs][material-ui] Remove irrelevant TODO from Snackbar demo (#39396) @ZeeshanTamboli
130
+ - &#8203;<!-- 06 -->[docs][material-ui][Table] Bug in "Sorting & Selecting" demo (#39426) @codewithrabeeh
131
+ - &#8203;<!-- 05 -->[docs][joy-ui][typography] Update docs after lineHeight changes (#39366) @zanivan
132
+
133
+ ### Core
134
+
135
+ - &#8203;<!-- 24 -->[core] Fix multiple typos across the repo (#39422) @parikshitadhikari
136
+ - &#8203;<!-- 18 -->[docs-infra] Add refinements to the API content design (#39425) @danilo-leal
137
+ - &#8203;<!-- 17 -->[docs-infra] Add a min height to the layout component (#39416) @danilo-leal
138
+ - &#8203;<!-- 16 -->[docs-infra] Prevent horizontal scroll in the TOC (#39417) @danilo-leal
139
+ - &#8203;<!-- 15 -->[docs-infra] Add a collapsible list & table views to the API content display (#38265) @alexfauquette
140
+ - &#8203;<!-- 14 -->[docs-infra] Adjust the `kbd` tag styles (#39397) @danilo-leal
141
+ - &#8203;<!-- 13 -->[docs-infra] Fix strong style regression (#39384) @oliviertassinari
142
+ - &#8203;<!-- 04 -->[website] Add the LinkedIn profile to the contributors section on the About page (#39455) @chhawinder
143
+ - &#8203;<!-- 03 -->[website] Update new role template (#39386) @oliviertassinari
144
+ - &#8203;<!-- 02 -->[website] Add stray design fine-tunning to the Pricing page (#39472) @danilo-leal
145
+ - &#8203;<!-- 01 -->[website] Fix career anchor link to perks & benefits @oliviertassinari
146
+
147
+ 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
148
+
3
149
  ## 5.14.13
4
150
 
5
151
  <!-- 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.3
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.3
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.3
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.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -46,8 +46,8 @@ Object.defineProperty(exports, "keyframes", {
46
46
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
47
47
  var _StyledEngineProvider = _interopRequireDefault(require("./StyledEngineProvider"));
48
48
  var _GlobalStyles = _interopRequireDefault(require("./GlobalStyles"));
49
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
50
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
49
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
50
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
51
51
  function styled(tag, options) {
52
52
  let stylesFactory;
53
53
  if (options) {
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.3",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "styled() API wrapper package for styled-components.",
@@ -26,8 +26,9 @@
26
26
  "url": "https://opencollective.com/mui"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.23.1",
29
+ "@babel/runtime": "^7.23.2",
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": {