@mui/private-theming 7.0.0-alpha.2 → 7.0.0-beta.1

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,62 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0-beta.1
4
+
5
+ <!-- generated comparing v7.0.0-beta.0..master -->
6
+
7
+ _Feb 27, 2025_
8
+
9
+ This release fixes incorrect build output from the previous release (`beta.0`).
10
+
11
+ ### Core
12
+
13
+ - [code-infra] Fix build:types script omitting folders with a dot in their name (#45422) @Janpot
14
+ - [release] Fix versions (#45420) @mj12albert
15
+
16
+ All contributors of this release in alphabetical order: @Janpot, @mj12albert
17
+
18
+ ## 7.0.0-beta.0
19
+
20
+ <!-- generated comparing v7.0.0-alpha.2..master -->
21
+
22
+ _Feb 26, 2025_
23
+
24
+ A big thanks to the 8 contributors who made this release possible.
25
+
26
+ ### `@mui/material@7.0.0-beta.0`
27
+
28
+ - [Modal][Dialog] Remove deprecated `onBackdropClick` (#45395) @DiegoAndai
29
+ - [Grid] Improve Grid2 upgrade experience (#45304) @DiegoAndai
30
+ - [Grid] Rename to GridLegacy (#45363) @DiegoAndai
31
+ - [Grid2] Rename to Grid (#45381) @DiegoAndai
32
+ - Remove SvgIcon data-testid in production (#45333) @Janpot
33
+ - Allow nested theme creation with `vars` (#45335) @siriwatknp
34
+ - [Rating] Deprecate \*Props and complete `slots`, `slotProps` (#45295) @harry-whorlow
35
+ - [Slider] Fix css class selector in migration guide (#45402) @sai6855
36
+ - [Slider] Fix spacings in .md files (#45388) @sai6855
37
+ - [styles] Remove deprecated exports (#45397) @DiegoAndai
38
+ - [Menu] Deprecate \*Props and complete `slots`, `slotProps` (#44913) @siriwatknp
39
+ - [StepButton] Remove StepIconButton type (#45396) @DiegoAndai
40
+
41
+ ### Docs
42
+
43
+ - [Autocomplete] Remove unnecessary renderTags prop from Sizes demo (#45401) @ZeeshanTamboli
44
+ - Add `overriding-component-structure` doc to Material UI (#45186) @siriwatknp
45
+ - Fix typo in slider docs (#45390) @sai6855
46
+ - Fix Context Menu selection lost on Safari (#44903) @NooBat
47
+
48
+ ### Core
49
+
50
+ - [code-infra] Fix types for @mui/styled-engine (#45413) @Janpot
51
+ - [docs-infra] Fix theme toggle call (#45400) @siriwatknp
52
+ - [docs-infra] Add `color-scheme` to document in iframe demos (#45406) @KenanYusuf
53
+ - [docs-infra] Revert to use deprecated `CssVarsProvider` for MUI X (#45371) @siriwatknp
54
+ - [docs-infra] Fix dark mode flicker for API pages (#45354) @siriwatknp
55
+ - [examples] Remove unnecessary comma in Material UI Vite JS example (#45370) @ZeeshanTamboli
56
+ - [test] Remove unused renderTags prop and fix key warning in Autocomplete regression test (#45410) @ZeeshanTamboli
57
+
58
+ All contributors of this release in alphabetical order: @DiegoAndai, @harry-whorlow, @Janpot, @KenanYusuf, @NooBat, @sai6855, @siriwatknp, @ZeeshanTamboli
59
+
3
60
  ## 7.0.0-alpha.2
4
61
 
5
62
  <!-- generated comparing v7.0.0-alpha.1..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 {}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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 @@
1
+ export {};
package/esm/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/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v7.0.0-alpha.2
2
+ * @mui/private-theming v7.0.0-beta.1
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/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-alpha.2
2
+ * @mui/private-theming v7.0.0-beta.1
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 @@
1
+ export {};
@@ -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-alpha.2
2
+ * @mui/private-theming v7.0.0-beta.1
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-alpha.2",
3
+ "version": "7.0.0-beta.1",
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`.",
@@ -79,5 +79,6 @@
79
79
  },
80
80
  "./esm": null,
81
81
  "./modern": null
82
- }
82
+ },
83
+ "types": "./index.d.ts"
83
84
  }
@@ -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;