@mui/styled-engine-sc 6.0.0-alpha.24 → 6.0.0-alpha.25

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,81 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.9
4
+
5
+ <!-- generated comparing v6.0.0-alpha.8..next -->
6
+
7
+ _May 29, 2024_
8
+
9
+ A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
12
+
13
+ ### `@mui/material@6.0.0-alpha.9`
14
+
15
+ - &#8203;<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
16
+ - &#8203;<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
17
+ - &#8203;<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
18
+ - &#8203;<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
19
+ - &#8203;<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
20
+ - &#8203;<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
21
+ - &#8203;<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
22
+ - &#8203;<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
23
+ - &#8203;<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
24
+ - &#8203;<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
25
+ - &#8203;<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
26
+
27
+ ### `@mui/system@6.0.0-alpha.9`
28
+
29
+ - &#8203;<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
30
+
31
+ ### `@mui/codemod@6.0.0-alpha.9`
32
+
33
+ - &#8203;<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
34
+ - &#8203;<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
35
+
36
+ ### Docs
37
+
38
+ - &#8203;<!-- 33 -->Remove unused images (#42324) @danilo-leal
39
+ - &#8203;<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
40
+ - &#8203;<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
41
+ - &#8203;<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
42
+ - &#8203;<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
43
+ - &#8203;<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
44
+ - &#8203;<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
45
+ - &#8203;<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
46
+ - &#8203;<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
47
+
48
+ ### Core
49
+
50
+ - &#8203;<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
51
+ - &#8203;<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
52
+ - &#8203;<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
53
+ - &#8203;<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
54
+ - &#8203;<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
55
+ - &#8203;<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
56
+ - &#8203;<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
57
+ - &#8203;<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
58
+ - &#8203;<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
59
+ - &#8203;<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
60
+ - &#8203;<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
61
+ - &#8203;<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
62
+ - &#8203;<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
63
+ - &#8203;<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
64
+ - &#8203;<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
65
+ - &#8203;<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
66
+ - &#8203;<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
67
+ - &#8203;<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
68
+ - &#8203;<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
69
+ - &#8203;<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
70
+ - &#8203;<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
71
+ - &#8203;<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
72
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
73
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
74
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
75
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
76
+
77
+ 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
78
+
3
79
  ## v6.0.0-alpha.8
4
80
 
5
81
  <!-- generated comparing v6.0.0-alpha.7..next -->
@@ -8,4 +8,4 @@ export interface GlobalStylesProps<Theme extends object = {}> {
8
8
 
9
9
  export default function Global<Theme extends object = {}>(
10
10
  props: GlobalStylesProps<Theme>,
11
- ): React.ReactElement;
11
+ ): React.ReactElement<any>;
@@ -5,4 +5,4 @@ export interface StyledEngineProviderProps {
5
5
  injectFirst?: boolean;
6
6
  }
7
7
 
8
- export default function StyledEngineProvider(props: StyledEngineProviderProps): JSX.Element;
8
+ export default function StyledEngineProvider(props: StyledEngineProviderProps): React.JSX.Element;
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 keyof JSX.IntrinsicElements[Tag] = keyof JSX.IntrinsicElements[Tag],
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> & MuiStyledOptions,
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<C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>> =
376
- JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>;
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine-sc v6.0.0-alpha.24
2
+ * @mui/styled-engine-sc v6.0.0-alpha.25
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.24
2
+ * @mui/styled-engine-sc v6.0.0-alpha.25
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.24
2
+ * @mui/styled-engine-sc v6.0.0-alpha.25
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.24",
3
+ "version": "6.0.0-alpha.25",
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.5",
29
+ "@babel/runtime": "^7.24.6",
30
30
  "csstype": "^3.1.3",
31
31
  "hoist-non-react-statics": "^3.3.2",
32
32
  "prop-types": "^15.8.1"