@mui/private-theming 7.0.2 → 7.1.0
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 +97 -0
- package/ThemeProvider/ThemeProvider.js +2 -2
- package/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -4
- package/modern/ThemeProvider/ThemeProvider.d.ts +0 -6
- package/modern/ThemeProvider/index.d.ts +0 -2
- package/modern/defaultTheme/index.d.ts +0 -5
- package/modern/index.d.ts +0 -5
- package/modern/useTheme/index.d.ts +0 -2
- package/modern/useTheme/useTheme.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,102 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v7.0.2..master -->
|
|
6
|
+
|
|
7
|
+
_May 6, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🎉 Material UI now works with **Tailwind CSS v4**! Check out the [setup guide](https://mui.com/material-ui/integrations/tailwindcss/tailwindcss-v4/).
|
|
12
|
+
|
|
13
|
+
### `@mui/material@7.1.0`
|
|
14
|
+
|
|
15
|
+
- [InputBase] Text cursor jumps several lines up when inserting text fragment with new line at the end (#45246) @yermartee
|
|
16
|
+
- [OutlinedInput] Add missing `notchedOutline` slot (#45917) @siriwatknp
|
|
17
|
+
- [Snackbar] Skip default `onClickAway` behavior when `defaultMuiPrevented` is provided (#45629) @sai6855
|
|
18
|
+
- [Avatar] Fix img slot types and add missing slots (#45483) @siriwatknp
|
|
19
|
+
- [Badge] Replace useSlotProps with useSlot hook (#45871) @sai6855
|
|
20
|
+
- [BottomNavigationAction] Add slots and slotProps (#45776) @sai6855
|
|
21
|
+
- [CardActionArea] Add slots and slotProps (#45866) @sai6855
|
|
22
|
+
- [useMediaQuery] Add warning and docs for using `useMediaQuery('print')` (#44790) @good-jinu
|
|
23
|
+
- Remove unnecessary clsx usages (#46084) @sai6855
|
|
24
|
+
- Corrected generic type definition in `SelectChangeEvent` (#45941) @SuyashShukla0007
|
|
25
|
+
- Fix theme object changes between renders (#45863) @siriwatknp
|
|
26
|
+
|
|
27
|
+
### `@mui/material-nextjs@7.1.0`
|
|
28
|
+
|
|
29
|
+
- Add option to enable CSS layers for pages router (#45596) @siriwatknp
|
|
30
|
+
- Do not wrap `@layer` order rules in App Router (#45864) @Nayeem-XTREME
|
|
31
|
+
|
|
32
|
+
### `@mui/system@7.1.0`
|
|
33
|
+
|
|
34
|
+
- Fix `@mui/system` types organization (#45860) @Janpot
|
|
35
|
+
|
|
36
|
+
### `@mui/styled-engine@7.1.0`
|
|
37
|
+
|
|
38
|
+
- Infer `ownerState` from props in `styled` (#46083) @siriwatknp
|
|
39
|
+
- Fix style overrides variants type (#45478) @siriwatknp
|
|
40
|
+
|
|
41
|
+
### Docs
|
|
42
|
+
|
|
43
|
+
- [Avatar] Add avatar upload demo (#45986) @Demianeen
|
|
44
|
+
- [Dialog] Remove deprecated props usage in demos (#45923) @sai6855
|
|
45
|
+
- [Menu] Update `paper` slot JSDoc default from `Paper` to `PopoverPaper` (#45722) @andreachiera
|
|
46
|
+
- [examples] Remove create-react-app usages (#45426) @CodeLeom
|
|
47
|
+
- Add `AccordionSummary` to the v5 breaking change migration (#45947) @siriwatknp
|
|
48
|
+
- Update CSS variable usage in migration guide for Pigment CSS (#46033) @sai6855
|
|
49
|
+
- Fix docs API dark mode color (#46086) @alexfauquette
|
|
50
|
+
- Add a guide for extending Material UI classes in Tailwind CSS (#46039) @siriwatknp
|
|
51
|
+
- Add `InitColorSchemeScript` docs and API (#45927) @siriwatknp
|
|
52
|
+
- Add Tailwind CSS v4 integration guide (#45906) @siriwatknp
|
|
53
|
+
- Fix 301 links to the system v6 (#45931) @oliviertassinari
|
|
54
|
+
- Add notification for MUI X v8 announcement (#45942) @joserodolfofreitas
|
|
55
|
+
- Fix som 301 redirections (ae84b35) @oliviertassinari
|
|
56
|
+
- Fix some 301 redirections (057384e) @oliviertassinari
|
|
57
|
+
- Fix logo is not centered on small screens (#45920) @crabsim
|
|
58
|
+
- Fix line break typo (a2a62d5) @oliviertassinari
|
|
59
|
+
- Fix markdown typo in templates.md (#45914) @scyzoryck
|
|
60
|
+
- Add Next.js App Router guide for custom classnames (#45852) @siriwatknp
|
|
61
|
+
|
|
62
|
+
### Core
|
|
63
|
+
|
|
64
|
+
- [code-infra] Give a stable name to dev tool app (3889ded) @oliviertassinari
|
|
65
|
+
- [code-infra] Normalize author package in org (8135638) @oliviertassinari
|
|
66
|
+
- [code-infra] Correct some manually curated .d.ts files (#46054) @Janpot
|
|
67
|
+
- [code-infra] Align deps versions (#46048) @Janpot
|
|
68
|
+
- [code-infra] Fix dynamic import in imports resolver (#46046) @Janpot
|
|
69
|
+
- [code-infra] Eliminate `@mui/utils` deep imports (#46004) @Janpot
|
|
70
|
+
- [code-infra] Expand renovate.json for react types (#45935) @Janpot
|
|
71
|
+
- [code-infra] Make Argos upload script reusable (#45883) @Janpot
|
|
72
|
+
- [code-infra] Disallow redundant window prefixes for globals (#45880) @Janpot
|
|
73
|
+
- [code-infra] Remove type generation of modern build (#45912) @Janpot
|
|
74
|
+
- [code-infra] Clean up bundle size checker (#45622) @Janpot
|
|
75
|
+
- [code-infra] Fix `StrictMode` effects not being called twice in React 19 tests (#45812) @bernardobelchior
|
|
76
|
+
- [code-infra] Convert `@mui/utils` to typescript (#45671) @Janpot
|
|
77
|
+
- [docs-infra] Improve export into sandbox package.json (#46044) @oliviertassinari
|
|
78
|
+
- [docs-infra] Update feedback Node.js to v22 (#46064) @oliviertassinari
|
|
79
|
+
- [docs-infra] Normalize netlify.toml in org (b101d5c) @oliviertassinari
|
|
80
|
+
- [docs-infra] Uniformize Vale between repositories (0f79796) @oliviertassinari
|
|
81
|
+
- [docs-infra] Fix Vale no longer working (#46029) @oliviertassinari
|
|
82
|
+
- [docs-infra] Remove demo styling switch (#45926) @Janpot
|
|
83
|
+
- [docs-infra] StackBlitz WebContainer demos (#45924) @Janpot
|
|
84
|
+
- [docs-infra] Fix feedback management (#45872) @alexfauquette
|
|
85
|
+
- [test] Replace `playwright` with `@playwright/test` (#45998) @ZeeshanTamboli
|
|
86
|
+
- Fix internal version duplication (#46051) @oliviertassinari
|
|
87
|
+
- Avoid the need for `@mui/material/themeCssVarsAugmentation` (#46053) @Janpot
|
|
88
|
+
- Add security label to dependabot PRs (0a5c027) @oliviertassinari
|
|
89
|
+
- Remove unecessary versions (#46034) @oliviertassinari
|
|
90
|
+
- Remove redundant overrides resolver (#45970) @romgrk
|
|
91
|
+
- Fix duplicate branch reference (#45915) @oliviertassinari
|
|
92
|
+
- Fix outdated <link rel="shortcut icon" (#45916) @oliviertassinari
|
|
93
|
+
- Fix redirection chains (#45930) @oliviertassinari
|
|
94
|
+
- Run pnpm docs:sync-team (beee09f) @oliviertassinari
|
|
95
|
+
- Add `pkg.pr.new` publishing (#42984) @Aslemammad
|
|
96
|
+
- Remove @mui/base from the master branch (#45857) @mnajdova
|
|
97
|
+
|
|
98
|
+
All contributors of this release in alphabetical order: @alexfauquette, @andreachiera, @Aslemammad, @bernardobelchior, @CodeLeom, @crabsim, @Demianeen, @good-jinu, @Janpot, @joserodolfofreitas, @mnajdova, @Nayeem-XTREME, @oliviertassinari, @renovate[bot], @romgrk, @sai6855, @scyzoryck, @siriwatknp, @SuyashShukla0007, @yermartee, @ZeeshanTamboli
|
|
99
|
+
|
|
3
100
|
## 7.0.2
|
|
4
101
|
|
|
5
102
|
_Apr 9, 2025_
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var
|
|
11
|
+
var _exactProp = _interopRequireDefault(require("@mui/utils/exactProp"));
|
|
12
12
|
var _ThemeContext = _interopRequireDefault(require("../useTheme/ThemeContext"));
|
|
13
13
|
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
14
14
|
var _nested = _interopRequireDefault(require("./nested"));
|
|
@@ -71,6 +71,6 @@ process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
|
|
|
71
71
|
theme: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]).isRequired
|
|
72
72
|
} : void 0;
|
|
73
73
|
if (process.env.NODE_ENV !== 'production') {
|
|
74
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = (0,
|
|
74
|
+
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = (0, _exactProp.default)(ThemeProvider.propTypes) : void 0;
|
|
75
75
|
}
|
|
76
76
|
var _default = exports.default = ThemeProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import exactProp from '@mui/utils/exactProp';
|
|
4
4
|
import ThemeContext from "../useTheme/ThemeContext.js";
|
|
5
5
|
import useTheme from "../useTheme/index.js";
|
|
6
6
|
import nested from "./nested.js";
|
package/esm/index.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/private-theming",
|
|
3
|
-
"version": "7.0
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "7.1.0",
|
|
5
4
|
"author": "MUI Team",
|
|
6
5
|
"description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
|
|
7
6
|
"main": "./index.js",
|
|
@@ -26,9 +25,9 @@
|
|
|
26
25
|
"url": "https://opencollective.com/mui-org"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.27.
|
|
28
|
+
"@babel/runtime": "^7.27.1",
|
|
30
29
|
"prop-types": "^15.8.1",
|
|
31
|
-
"@mui/utils": "^7.0
|
|
30
|
+
"@mui/utils": "^7.1.0"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
34
33
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
@@ -47,6 +46,7 @@
|
|
|
47
46
|
"engines": {
|
|
48
47
|
"node": ">=14.0.0"
|
|
49
48
|
},
|
|
49
|
+
"private": false,
|
|
50
50
|
"module": "./esm/index.js",
|
|
51
51
|
"exports": {
|
|
52
52
|
"./package.json": "./package.json",
|
|
@@ -1,6 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
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/modern/index.d.ts
DELETED