@mui/system 5.15.8 → 5.15.9

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/Box/Box.d.ts CHANGED
@@ -9,9 +9,8 @@ import {
9
9
  AliasesCSSProperties,
10
10
  } from '../styleFunctionSx';
11
11
 
12
- export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props>
13
- ? Props
14
- : never;
12
+ export type PropsFor<SomeStyleFunction> =
13
+ SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
15
14
  export type StyleFunction<Props> = (props: Props) => any;
16
15
  export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<
17
16
  Partial<Record<PropKey, any>>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.15.9<!-- generated comparing v5.15.8..master -->
4
+
5
+ _Feb 8, 2024_
6
+
7
+ A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 🐛 A critical fix to remove non-published library usage in `@mui/material` peerDependencies.
10
+
11
+ ### `@mui/material@5.15.9`
12
+
13
+ - &#8203;<!-- 11 -->[autocomplete] Avoid spread operator (#40968) @oliviertassinari
14
+ - &#8203;<!-- 05 -->[material] Remove zero-runtime from peer dep (#41003) @brijeshb42
15
+
16
+ ### `@mui/base@5.0.0-beta.36`
17
+
18
+ - &#8203;<!-- 10 -->[base-ui] Update props using Array to ReadonlyArray type (#40754) @RaghavenderSingh
19
+
20
+ ### `@mui/system@5.15.9`
21
+
22
+ - &#8203;<!-- 02 -->[system] use `ReadonlyArray` for CSS related types (#40972) @siriwatknp
23
+ - &#8203;<!-- 01 -->[zero] Migrate to use wyw-in-js instead of linaria (#40866) @brijeshb42
24
+
25
+ ### Docs
26
+
27
+ - &#8203;<!-- 06 -->[docs] Polish codemod git diff format @oliviertassinari
28
+ - &#8203;<!-- 05 -->[material-ui][docs] Migrating from deprecated apis follow up (#40981) @DiegoAndai
29
+
30
+ ### Core
31
+
32
+ - &#8203;<!-- 09 -->[code-infra] Move next config to ESM (#40869) @Janpot
33
+ - &#8203;<!-- 08 -->[code-infra] Update prettier (#40772) @Janpot
34
+ - &#8203;<!-- 07 -->[code-infra] Add codemod for `light` prop removal (#40947) @sai6855
35
+
36
+ All contributors of this release in alphabetical order: @brijeshb42, @DiegoAndai, @Janpot, @oliviertassinari, @RaghavenderSingh, @sai6855, @siriwatknp
37
+
3
38
  ## v5.15.8<!-- generated comparing v5.15.7..master -->
4
39
 
5
40
  _Feb 6, 2024_
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v5.15.8
2
+ * @mui/system v5.15.9
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/system v5.15.8
2
+ * @mui/system v5.15.9
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/system v5.15.8
2
+ * @mui/system v5.15.9
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/system",
3
- "version": "5.15.8",
3
+ "version": "5.15.9",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.23.9",
30
30
  "clsx": "^2.1.0",
31
- "csstype": "^3.1.2",
31
+ "csstype": "^3.1.3",
32
32
  "prop-types": "^15.8.1",
33
- "@mui/private-theming": "^5.15.8",
34
- "@mui/styled-engine": "^5.15.8",
33
+ "@mui/private-theming": "^5.15.9",
35
34
  "@mui/types": "^7.2.13",
36
- "@mui/utils": "^5.15.8"
35
+ "@mui/styled-engine": "^5.15.9",
36
+ "@mui/utils": "^5.15.9"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@emotion/react": "^11.5.0",
package/spacing.d.ts CHANGED
@@ -5,11 +5,11 @@ export type SpacingProps = PropsFor<typeof spacing>;
5
5
  export function createUnarySpacing<Spacing>(theme: { spacing: Spacing }): Spacing extends number
6
6
  ? (abs: number | string) => number | number
7
7
  : Spacing extends any[]
8
- ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
9
- : Spacing extends (...args: unknown[]) => unknown
10
- ? Spacing
11
- : // warns in Dev
12
- () => undefined;
8
+ ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
9
+ : Spacing extends (...args: unknown[]) => unknown
10
+ ? Spacing
11
+ : // warns in Dev
12
+ () => undefined;
13
13
 
14
14
  export function createUnaryUnit<Spacing>(
15
15
  theme: { spacing: Spacing },
@@ -19,11 +19,11 @@ export function createUnaryUnit<Spacing>(
19
19
  ): Spacing extends number
20
20
  ? (abs: SpacingValueType) => number | number
21
21
  : Spacing extends any[]
22
- ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
23
- : Spacing extends (...args: unknown[]) => unknown
24
- ? Spacing
25
- : // warns in Dev
26
- () => undefined;
22
+ ? <Index extends number>(abs: Index | string) => Spacing[Index] | string
23
+ : Spacing extends (...args: unknown[]) => unknown
24
+ ? Spacing
25
+ : // warns in Dev
26
+ () => undefined;
27
27
 
28
28
  export const margin: SimpleStyleFunction<
29
29
  | 'm'
@@ -9,7 +9,7 @@ import { OverwriteCSSProperties } from './OverwriteCSSProperties';
9
9
  * Note that this extends to non-theme values also. For example `display=['none', 'block']`
10
10
  * will also works.
11
11
  */
12
- export type ResponsiveStyleValue<T> = T | Array<T | null> | { [key: string]: T | null };
12
+ export type ResponsiveStyleValue<T> = T | ReadonlyArray<T | null> | { [key: string]: T | null };
13
13
 
14
14
  /**
15
15
  * Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).