@mui/system 6.0.0-alpha.3 → 6.0.0-alpha.4
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 +55 -0
- package/cssVars/index.d.ts +2 -0
- package/cssVars/index.js +1 -0
- package/cssVars/prepareTypographyVars.d.ts +8 -0
- package/cssVars/prepareTypographyVars.js +11 -0
- package/index.js +1 -1
- package/modern/cssVars/index.js +1 -0
- package/modern/cssVars/prepareTypographyVars.js +11 -0
- package/modern/index.js +1 -1
- package/modern/styleFunctionSx/defaultSxConfig.js +3 -0
- package/node/cssVars/index.js +7 -0
- package/node/cssVars/prepareTypographyVars.js +17 -0
- package/node/index.js +1 -1
- package/node/styleFunctionSx/defaultSxConfig.js +3 -0
- package/package.json +3 -3
- package/styleFunctionSx/defaultSxConfig.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.4
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.3..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 24, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS.
|
|
12
|
+
- ℹ️ Pigment CSS now lives in [its own repository](https://github.com/mui/pigment-css)! From now on, all future development will happen there.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@6.0.0-alpha.4`
|
|
15
|
+
|
|
16
|
+
- [Checkbox] Convert to support CSS extraction (#41957) @lhilgert9
|
|
17
|
+
- [IconButton] Convert to support CSS extraction (#41850) @gijsbotje
|
|
18
|
+
- [Radio] Convert to support CSS extraction (#41840) @lhilgert9
|
|
19
|
+
- [Typography] Fix ownerState prop placement (#41903) @sai6855
|
|
20
|
+
- Generate typography tokens (#41703) @siriwatknp
|
|
21
|
+
- Move typography CSS variables to `font` (#42003) @siriwatknp
|
|
22
|
+
- Fix getOverlayAlpha type (#41995) @oliviertassinari
|
|
23
|
+
- Support CSS Extraction using codemod (#41935) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/icons-material@6.0.0-alpha.4`
|
|
26
|
+
|
|
27
|
+
- ​<!-- 08 -->[icons] Update the icons package (#41937) @danilo-leal
|
|
28
|
+
|
|
29
|
+
### Docs
|
|
30
|
+
|
|
31
|
+
- [material-ui] Remove react-swipeable-views from demos as it's no longer maintained (#41912) @soler1212
|
|
32
|
+
- [material-ui] Add dark theme thumbnails for templates (#41947) @zanivan
|
|
33
|
+
- [material-ui] Remove links and interdependencies from free templates (#41941) @zanivan
|
|
34
|
+
- [material-ui] Add missing backticks to HTML tag in the installation page (#41972) @Miguelrom
|
|
35
|
+
- Fix 301 Toolpad links @oliviertassinari
|
|
36
|
+
- Fix 301 image redirections @oliviertassinari
|
|
37
|
+
|
|
38
|
+
### Core
|
|
39
|
+
|
|
40
|
+
- pnpm docs:zipRules && vale sync @oliviertassinari
|
|
41
|
+
- Remove @pigment-css/\* packages (#41965) @mnajdova
|
|
42
|
+
- [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
|
|
43
|
+
- [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
|
|
44
|
+
- [code-infra] Make Babel config path configurable in API docs builder (#41999) @michaldudak
|
|
45
|
+
- [docs-infra] Fix flex-shrink pro-plan (#41990) @oliviertassinari
|
|
46
|
+
- [docs-infra] Allow more value uses of MUI (#41706) @oliviertassinari
|
|
47
|
+
- [docs-infra] Move CPU to shared config (#41901) @oliviertassinari
|
|
48
|
+
- [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
|
|
49
|
+
- [docs-infra] Adapt docs infra to Base UI docs needs (#41963) @michaldudak
|
|
50
|
+
- [docs-infra] Add demo container design refinements (#41948) @danilo-leal
|
|
51
|
+
- [docs-infra] Use the `getLayout` on the material demo pages (#41936) @alexfauquette
|
|
52
|
+
- [test] Update browser versions in karma config (#42008) @ZeeshanTamboli
|
|
53
|
+
- [website] Remove customer support agent role from website (#41969) @rluzists1
|
|
54
|
+
- [website] Fix grid usage and add stray improvements (#41930) @danilo-leal
|
|
55
|
+
|
|
56
|
+
All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @gijsbotje, @Janpot, @lhilgert9, @michaldudak, @Miguelrom, @mnajdova, @oliviertassinari, @rluzists1, @sai6855, @siriwatknp, @soler1212, @zanivan, @ZeeshanTamboli
|
|
57
|
+
|
|
3
58
|
## v6.0.0-alpha.3
|
|
4
59
|
|
|
5
60
|
<!-- generated comparing v6.0.0-alpha.2..next -->
|
package/cssVars/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export { default } from './createCssVarsProvider';
|
|
|
2
2
|
export type { CreateCssVarsProviderResult, CssVarsProviderConfig, ColorSchemeContextValue, } from './createCssVarsProvider';
|
|
3
3
|
export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
|
|
4
4
|
export { default as prepareCssVars } from './prepareCssVars';
|
|
5
|
+
export { default as prepareTypographyVars } from './prepareTypographyVars';
|
|
6
|
+
export type { ExtractTypographyTokens } from './prepareTypographyVars';
|
|
5
7
|
export { default as createCssVarsTheme } from './createCssVarsTheme';
|
package/cssVars/index.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
export { default } from './createCssVarsProvider';
|
|
4
4
|
export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
|
|
5
5
|
export { default as prepareCssVars } from './prepareCssVars';
|
|
6
|
+
export { default as prepareTypographyVars } from './prepareTypographyVars';
|
|
6
7
|
export { default as createCssVarsTheme } from './createCssVarsTheme';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type RecordPropertyNames<T> = {
|
|
2
|
+
[K in keyof T]: T[K] extends Function ? never : T[K] extends Record<string, any> ? K : never;
|
|
3
|
+
}[keyof T];
|
|
4
|
+
export type ExtractTypographyTokens<T> = {
|
|
5
|
+
[K in RecordPropertyNames<T>]: string;
|
|
6
|
+
};
|
|
7
|
+
export default function prepareTypographyVars<T extends Record<string, any>>(typography: T): ExtractTypographyTokens<T>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default function prepareTypographyVars(typography) {
|
|
2
|
+
const vars = {};
|
|
3
|
+
const entries = Object.entries(typography);
|
|
4
|
+
entries.forEach(entry => {
|
|
5
|
+
const [key, value] = entry;
|
|
6
|
+
if (typeof value === 'object') {
|
|
7
|
+
vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return vars;
|
|
11
|
+
}
|
package/index.js
CHANGED
package/modern/cssVars/index.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
export { default } from './createCssVarsProvider';
|
|
4
4
|
export { default as getInitColorSchemeScript } from './getInitColorSchemeScript';
|
|
5
5
|
export { default as prepareCssVars } from './prepareCssVars';
|
|
6
|
+
export { default as prepareTypographyVars } from './prepareTypographyVars';
|
|
6
7
|
export { default as createCssVarsTheme } from './createCssVarsTheme';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default function prepareTypographyVars(typography) {
|
|
2
|
+
const vars = {};
|
|
3
|
+
const entries = Object.entries(typography);
|
|
4
|
+
entries.forEach(entry => {
|
|
5
|
+
const [key, value] = entry;
|
|
6
|
+
if (typeof value === 'object') {
|
|
7
|
+
vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return vars;
|
|
11
|
+
}
|
package/modern/index.js
CHANGED
package/node/cssVars/index.js
CHANGED
|
@@ -29,7 +29,14 @@ Object.defineProperty(exports, "prepareCssVars", {
|
|
|
29
29
|
return _prepareCssVars.default;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
+
Object.defineProperty(exports, "prepareTypographyVars", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _prepareTypographyVars.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
32
38
|
var _createCssVarsProvider = _interopRequireDefault(require("./createCssVarsProvider"));
|
|
33
39
|
var _getInitColorSchemeScript = _interopRequireDefault(require("./getInitColorSchemeScript"));
|
|
34
40
|
var _prepareCssVars = _interopRequireDefault(require("./prepareCssVars"));
|
|
41
|
+
var _prepareTypographyVars = _interopRequireDefault(require("./prepareTypographyVars"));
|
|
35
42
|
var _createCssVarsTheme = _interopRequireDefault(require("./createCssVarsTheme"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = prepareTypographyVars;
|
|
7
|
+
function prepareTypographyVars(typography) {
|
|
8
|
+
const vars = {};
|
|
9
|
+
const entries = Object.entries(typography);
|
|
10
|
+
entries.forEach(entry => {
|
|
11
|
+
const [key, value] = entry;
|
|
12
|
+
if (typeof value === 'object') {
|
|
13
|
+
vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
return vars;
|
|
17
|
+
}
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.4",
|
|
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.",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"clsx": "^2.1.0",
|
|
31
31
|
"csstype": "^3.1.3",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
+
"@mui/utils": "^6.0.0-alpha.3",
|
|
33
34
|
"@mui/private-theming": "^6.0.0-alpha.3",
|
|
34
|
-
"@mui/styled-engine": "^6.0.0-alpha.3",
|
|
35
35
|
"@mui/types": "^7.2.14",
|
|
36
|
-
"@mui/
|
|
36
|
+
"@mui/styled-engine": "^6.0.0-alpha.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@emotion/react": "^11.5.0",
|