@mui/private-theming 7.0.0-beta.0 → 7.0.0-beta.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,35 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0-beta.2
4
+
5
+ <!-- generated comparing v7.0.0-beta.1..master -->
6
+
7
+ _Feb 27, 2025_
8
+
9
+ A big thanks to the 2 contributors who made this release possible.
10
+
11
+ ### Core
12
+
13
+ - [code-infra] Add package.json export (#45433) @Janpot
14
+ - [blog] React 19 migration for MUI X (#45348) @arminmeh
15
+
16
+ All contributors of this release in alphabetical order: @arminmeh, @Janpot
17
+
18
+ ## 7.0.0-beta.1
19
+
20
+ <!-- generated comparing v7.0.0-beta.0..master -->
21
+
22
+ _Feb 27, 2025_
23
+
24
+ This release fixes incorrect build output from the previous release (`beta.0`).
25
+
26
+ ### Core
27
+
28
+ - [code-infra] Fix build:types script omitting folders with a dot in their name (#45422) @Janpot
29
+ - [release] Fix versions (#45420) @mj12albert
30
+
31
+ All contributors of this release in alphabetical order: @Janpot, @mj12albert
32
+
3
33
  ## 7.0.0-beta.0
4
34
 
5
35
  <!-- generated comparing v7.0.0-alpha.2..master -->
@@ -0,0 +1,6 @@
1
+ import { DefaultTheme } from "../defaultTheme/index.js";
2
+ export interface ThemeProviderProps<Theme = DefaultTheme> {
3
+ children?: React.ReactNode;
4
+ theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
5
+ }
6
+ export default function ThemeProvider<T = DefaultTheme>(props: ThemeProviderProps<T>): React.ReactElement<ThemeProviderProps<T>>;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ThemeProvider.js";
2
+ export * from "./ThemeProvider.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The default theme interface, augment this to avoid having to set the theme type everywhere.
3
+ * Our [TypeScript guide on theme customization](https://mui.com/material-ui/customization/theming/#custom-variables) explains in detail how you would add custom properties.
4
+ */
5
+ export interface DefaultTheme {}
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v7.0.0-beta.0
2
+ * @mui/private-theming v7.0.0-beta.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { default as ThemeProvider } from "./ThemeProvider/index.js";
2
+ export * from "./ThemeProvider/index.js";
3
+ export { default as useTheme } from "./useTheme/index.js";
4
+ export * from "./useTheme/index.js";
5
+ export * from "./defaultTheme/index.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v7.0.0-beta.0
2
+ * @mui/private-theming v7.0.0-beta.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -0,0 +1,6 @@
1
+ import { DefaultTheme } from "../defaultTheme/index.js";
2
+ export interface ThemeProviderProps<Theme = DefaultTheme> {
3
+ children?: React.ReactNode;
4
+ theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
5
+ }
6
+ export default function ThemeProvider<T = DefaultTheme>(props: ThemeProviderProps<T>): React.ReactElement<ThemeProviderProps<T>>;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ThemeProvider.js";
2
+ export * from "./ThemeProvider.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The default theme interface, augment this to avoid having to set the theme type everywhere.
3
+ * Our [TypeScript guide on theme customization](https://mui.com/material-ui/customization/theming/#custom-variables) explains in detail how you would add custom properties.
4
+ */
5
+ export interface DefaultTheme {}
@@ -0,0 +1,5 @@
1
+ export { default as ThemeProvider } from "./ThemeProvider/index.js";
2
+ export * from "./ThemeProvider/index.js";
3
+ export { default as useTheme } from "./useTheme/index.js";
4
+ export * from "./useTheme/index.js";
5
+ export * from "./defaultTheme/index.js";
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v7.0.0-beta.0
2
+ * @mui/private-theming v7.0.0-beta.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -0,0 +1,2 @@
1
+ export { default } from "./useTheme.js";
2
+ export * from "./useTheme.js";
@@ -0,0 +1,2 @@
1
+ import { DefaultTheme } from "../defaultTheme/index.js";
2
+ export default function useTheme<T = DefaultTheme>(): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/private-theming",
3
- "version": "7.0.0-beta.0",
3
+ "version": "7.0.0-beta.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.26.9",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/utils": "7.0.0-alpha.2"
31
+ "@mui/utils": "7.0.0-beta.2"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -49,6 +49,7 @@
49
49
  },
50
50
  "module": "./esm/index.js",
51
51
  "exports": {
52
+ "./package.json": "./package.json",
52
53
  ".": {
53
54
  "require": {
54
55
  "types": "./index.d.ts",
@@ -79,5 +80,6 @@
79
80
  },
80
81
  "./esm": null,
81
82
  "./modern": null
82
- }
83
+ },
84
+ "types": "./index.d.ts"
83
85
  }
@@ -0,0 +1,2 @@
1
+ export { default } from "./useTheme.js";
2
+ export * from "./useTheme.js";
@@ -0,0 +1,2 @@
1
+ import { DefaultTheme } from "../defaultTheme/index.js";
2
+ export default function useTheme<T = DefaultTheme>(): T;