@mui/system 5.14.18 → 5.14.20
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.js +6 -1
- package/Box/boxClasses.d.ts +7 -0
- package/Box/boxClasses.js +9 -0
- package/Box/index.d.ts +3 -0
- package/Box/index.js +24 -1
- package/CHANGELOG.md +126 -1
- package/borders.js +21 -47
- package/esm/Box/Box.js +6 -1
- package/esm/Box/boxClasses.js +3 -0
- package/esm/Box/index.js +3 -1
- package/esm/borders.js +20 -46
- package/esm/styleFunctionSx/defaultSxConfig.js +7 -0
- package/index.js +1 -1
- package/legacy/Box/Box.js +6 -1
- package/legacy/Box/boxClasses.js +3 -0
- package/legacy/Box/index.js +3 -1
- package/legacy/borders.js +20 -46
- package/legacy/getThemeValue.js +1 -2
- package/legacy/index.js +1 -1
- package/legacy/styleFunctionSx/defaultSxConfig.js +7 -0
- package/legacy/styleFunctionSx/styleFunctionSx.js +1 -2
- package/modern/Box/Box.js +6 -1
- package/modern/Box/boxClasses.js +3 -0
- package/modern/Box/index.js +3 -1
- package/modern/borders.js +20 -46
- package/modern/index.js +1 -1
- package/modern/styleFunctionSx/defaultSxConfig.js +7 -0
- package/package.json +7 -7
- package/styleFunctionSx/defaultSxConfig.js +7 -0
package/Box/Box.js
CHANGED
|
@@ -7,8 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _utils = require("@mui/utils");
|
|
10
11
|
var _createBox = _interopRequireDefault(require("../createBox"));
|
|
11
|
-
|
|
12
|
+
var _boxClasses = _interopRequireDefault(require("./boxClasses"));
|
|
13
|
+
const Box = (0, _createBox.default)({
|
|
14
|
+
defaultClassName: _boxClasses.default.root,
|
|
15
|
+
generateClassName: _utils.unstable_ClassNameGenerator.generate
|
|
16
|
+
});
|
|
12
17
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
13
18
|
// ----------------------------- Warning --------------------------------
|
|
14
19
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _utils = require("@mui/utils");
|
|
8
|
+
const boxClasses = (0, _utils.unstable_generateUtilityClasses)('MuiBox', ['root']);
|
|
9
|
+
var _default = exports.default = boxClasses;
|
package/Box/index.d.ts
CHANGED
package/Box/index.js
CHANGED
|
@@ -5,10 +5,33 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
boxClasses: true
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "boxClasses", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return _boxClasses.default;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
8
17
|
Object.defineProperty(exports, "default", {
|
|
9
18
|
enumerable: true,
|
|
10
19
|
get: function () {
|
|
11
20
|
return _Box.default;
|
|
12
21
|
}
|
|
13
22
|
});
|
|
14
|
-
var _Box = _interopRequireDefault(require("./Box"));
|
|
23
|
+
var _Box = _interopRequireDefault(require("./Box"));
|
|
24
|
+
var _boxClasses = _interopRequireWildcard(require("./boxClasses"));
|
|
25
|
+
Object.keys(_boxClasses).forEach(function (key) {
|
|
26
|
+
if (key === "default" || key === "__esModule") return;
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
+
if (key in exports && exports[key] === _boxClasses[key]) return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _boxClasses[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.20
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.19..master -->
|
|
6
|
+
|
|
7
|
+
_Dec 5, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 14 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material-next@6.0.0-alpha.112`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 07 -->[Menu] Enable again the usage of the autoFocus prop (#39960) @mnajdova
|
|
15
|
+
- ​<!-- 06 -->[ProgressIndicator] Apply MD3 style to `CircularProgress` (#39825) @lhilgert9
|
|
16
|
+
|
|
17
|
+
### Docs
|
|
18
|
+
|
|
19
|
+
- ​<!-- 15 -->Remove outdated showcase (#40063) @oliviertassinari
|
|
20
|
+
- ​<!-- 14 -->Support yaml as prism language (#40044) @Janpot
|
|
21
|
+
- ​<!-- 12 -->[material-ui] Fix SearchAppBar width on `sm` screens (#40049) @DiegoAndai
|
|
22
|
+
- ​<!-- 11 -->[material-ui] Update the basic Grid section copy (#40035) @REX500
|
|
23
|
+
- ​<!-- 10 -->[material-ui] Add a react-admin example project (#39972) @fzaninotto
|
|
24
|
+
- ​<!-- 09 -->[material-ui][TextField] Add a performance section (#39692) @anle9650
|
|
25
|
+
- ​<!-- 05 -->[material-ui][tabs] Refine scrollable tabs description (#40037) @zanivan
|
|
26
|
+
- ​<!-- 08 -->[system] Fix typo on the CSS theme variables page (#40040) @caweidmann
|
|
27
|
+
|
|
28
|
+
### Core
|
|
29
|
+
|
|
30
|
+
- ​<!-- 17 -->[blog] Fix scrollbar on mobile (#40057) @oliviertassinari
|
|
31
|
+
- ​<!-- 16 -->[blog] Fix link to charts getting started page (#40043) @alexfauquette
|
|
32
|
+
- ​<!-- 13 -->[docs-infra] Simplify CSS classes extraction in API docs generator (#39808) @michaldudak
|
|
33
|
+
- ​<!-- 04 -->[website] Polish dark mode colors (#40052) @danilo-leal
|
|
34
|
+
- ​<!-- 03 -->[website] Add why Design Engineer for data grid (#40016) @oliviertassinari
|
|
35
|
+
- ​<!-- 02 -->[website] Add stray fixes to the Base UI page (#40051) @danilo-leal
|
|
36
|
+
- ​<!-- 01 -->[website] Revise the Developer Advocate job posting (#39210) @samuelsycamore
|
|
37
|
+
|
|
38
|
+
All contributors of this release in alphabetical order: @alexfauquette, @anle9650, @caweidmann, @danilo-leal, @DiegoAndai, @fzaninotto, @Janpot, @lhilgert9, @michaldudak, @mnajdova, @oliviertassinari, @REX500, @samuelsycamore, @zanivan
|
|
39
|
+
|
|
40
|
+
## 5.14.19
|
|
41
|
+
|
|
42
|
+
<!-- generated comparing v5.14.18..master -->
|
|
43
|
+
|
|
44
|
+
_Nov 29, 2023_
|
|
45
|
+
|
|
46
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
47
|
+
|
|
48
|
+
- 🐛 Fix Material UI Autocomplete behavior when there are duplicate labels (#36426) @islandryu
|
|
49
|
+
- 🚀 Added Material You Linear Progress to `material-next` package (#39807) @lhilgert9
|
|
50
|
+
|
|
51
|
+
### `@mui/material@5.14.19`
|
|
52
|
+
|
|
53
|
+
- ​<!-- 44 -->[Autocomplete] Fix behavior when there are duplicate labels (#36426) @islandryu
|
|
54
|
+
- ​<!-- 37 -->[Box] Added boxClasses (#39889) @sadik-malik
|
|
55
|
+
- ​<!-- 18 -->[FilledInput] Fix slot props deepmerge order (#38922) @dhaub-exelixis
|
|
56
|
+
- ​<!-- 12 -->[Select] Add id to hidden input element (#39414) @DarhkVoyd
|
|
57
|
+
- ​<!-- 11 -->[Select] Remove unnecessary picking of `onChange` type from SelectInputProps (#39891) @ZeeshanTamboli
|
|
58
|
+
|
|
59
|
+
### `@mui/base@5.0.0-beta.25`
|
|
60
|
+
|
|
61
|
+
- ​<!-- 46 -->[Menu] Fix navigation of items when 1st item is disabled (#39828) @sai6855
|
|
62
|
+
- ​<!-- 42 -->[Modal] Refine demos (#39824) @zanivan
|
|
63
|
+
- ​<!-- 41 -->[NumberInput] Implement `numberInputReducer` (#38723) @mj12albert
|
|
64
|
+
- ​<!-- 40 -->[useNumberInput] Fix change handlers passed through slotProps (#39407) @mj12albert
|
|
65
|
+
|
|
66
|
+
### `@mui/joy@5.0.0-beta.16`
|
|
67
|
+
|
|
68
|
+
- ​<!-- 38 -->[Box] Added boxClasses (#39895) @sadik-malik
|
|
69
|
+
|
|
70
|
+
### `@mui/system@5.14.19`
|
|
71
|
+
|
|
72
|
+
- ​<!-- 36 -->[Box] Added boxClasses (#39896) @sadik-malik
|
|
73
|
+
- ​<!-- 09 -->Add outlineColor to defaultSxConfig (#39962) @brijeshb42
|
|
74
|
+
|
|
75
|
+
### `@mui/types@7.2.10`
|
|
76
|
+
|
|
77
|
+
- ​<!-- 08 -->Add `PartiallyRequired` type (#39939) @lhilgert9
|
|
78
|
+
|
|
79
|
+
### `@mui/material-next@6.0.0-alpha.111`
|
|
80
|
+
|
|
81
|
+
- ​<!-- 47 -->[ProgressIndicator] Apply MD3 style to `LinearProgress` (#39807) @lhilgert9
|
|
82
|
+
- ​<!-- 17 -->[FormHelperText] Add FormHelperText component (#39503) @mj12albert
|
|
83
|
+
- ​<!-- 16 -->[IconButton] Copy IconButton to material-next (#39945) @mj12albert
|
|
84
|
+
- ​<!-- 13 -->[Switch] Copy `Switch` to material next (#39887) @lhilgert9
|
|
85
|
+
|
|
86
|
+
### Docs
|
|
87
|
+
|
|
88
|
+
- ​<!-- 19 -->[material-ui] Fix theme prop in v5 migration guide (#39976) @sai6855
|
|
89
|
+
- ​<!-- 43 -->[base-ui] Improve Next.js Link docs (#39838) @oliviertassinari
|
|
90
|
+
- ​<!-- 39 -->[base-ui] Export Base UI theme in stylesheet (#39694) @mnajdova
|
|
91
|
+
- ​<!-- 52 -->[joy-ui] Fix the date min & max slot props values on the Input demo (#40018) @avikalpg
|
|
92
|
+
- ​<!-- 35 -->[joy-ui][ButtonGroup] Fix orientation prop description (#39876) @sai6855
|
|
93
|
+
- ​<!-- 25 -->[joy-ui] Update gif from the Dark Mode Optimization page (#39726) @danilo-leal
|
|
94
|
+
- ​<!-- 24 -->[joy-ui] Fix h1 template (#40017) @oliviertassinari
|
|
95
|
+
- ​<!-- 23 -->[joy-ui] Fix wrong product id @oliviertassinari
|
|
96
|
+
- ​<!-- 22 -->[joy-ui] Fixes in theme scoping documentation (#39899) @ZeeshanTamboli
|
|
97
|
+
- ​<!-- 21 -->[joy-ui] Refine the Email, Teams and Files templates (#39579) @zanivan
|
|
98
|
+
- ​<!-- 15 -->[joy-ui][templates] Fix layout shift on Profile template (#40022) @zanivan
|
|
99
|
+
- ​<!-- 14 -->[joy-ui][Templates] Update thumbnails (#39938) @zanivan
|
|
100
|
+
- ​<!-- 20 -->[material-next] Add contributing guide (#39944) @mj12albert
|
|
101
|
+
- ​<!-- 51 -->End v6 blogpost notification (#39879) @joserodolfofreitas
|
|
102
|
+
- ​<!-- 31 -->Fix nested CSS warning (#39932) @mnajdova
|
|
103
|
+
- ​<!-- 30 -->Make integration searchable (#39967) @oliviertassinari
|
|
104
|
+
- ​<!-- 29 -->Fix use of quote in markdown (#39953) @oliviertassinari
|
|
105
|
+
- ​<!-- 28 -->Show design links on Joy UI (#39955) @oliviertassinari
|
|
106
|
+
- ​<!-- 27 -->Restore Algolia results when searching for "Figma" (#39956) @oliviertassinari
|
|
107
|
+
- ​<!-- 26 -->Fix two tone icon dark mode color (#39868) @mnajdova
|
|
108
|
+
|
|
109
|
+
### Core
|
|
110
|
+
|
|
111
|
+
- ​<!-- 45 -->Improve lerna's renovate package rules (#40029) @DiegoAndai
|
|
112
|
+
- ​<!-- 34 -->Downgrade lerna to 7.2.0 (#40026) @DiegoAndai
|
|
113
|
+
- ​<!-- 32 -->Rename OpenCollective @oliviertassinari
|
|
114
|
+
- ​<!-- 48 -->[docs-infra] Env variables should be string (#39991) @oliviertassinari
|
|
115
|
+
- ​<!-- 10 -->[Portal] Improve docs for container prop (#39180) @oliviertassinari
|
|
116
|
+
- ​<!-- 50 -->[website] Update pricing table (#40023) @cherniavskii
|
|
117
|
+
- ​<!-- 49 -->[website][docs] Update the product identifier menu and X page (#39832) @danilo-leal
|
|
118
|
+
- ​<!-- 07 -->[website] Mark TreeView and Charts as stable (#39975) @flaviendelangle
|
|
119
|
+
- ​<!-- 06 -->[website] Update career page (#40015) @oliviertassinari
|
|
120
|
+
- ​<!-- 05 -->[website] Sync about dataset @oliviertassinari
|
|
121
|
+
- ​<!-- 04 -->[website] Fix 301 redirection to X tree-view @oliviertassinari
|
|
122
|
+
- ​<!-- 03 -->[website] Change redirection prefixes @oliviertassinari
|
|
123
|
+
- ​<!-- 02 -->[website] Fix 301 link @oliviertassinari
|
|
124
|
+
- ​<!-- 01 -->[website] Fix modal not being closed with the escape key on the Base UI page (#39880) @ZeeshanTamboli
|
|
125
|
+
|
|
126
|
+
All contributors of this release in alphabetical order: @avikalpg, @brijeshb42, @cherniavskii, @danilo-leal, @DarhkVoyd, @dhaub-exelixis, @DiegoAndai, @flaviendelangle, @islandryu, @joserodolfofreitas, @lhilgert9, @mj12albert, @mnajdova, @oliviertassinari, @sadik-malik, @sai6855, @zanivan, @ZeeshanTamboli
|
|
127
|
+
|
|
3
128
|
## 5.14.18
|
|
4
129
|
|
|
5
130
|
<!-- generated comparing v5.14.17..master -->
|
|
@@ -10204,7 +10329,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
10204
10329
|
This is a follow-up effort after we have merged `material-ui-pickers`. The components are written in TypeScript which required us to upgrade our infra.
|
|
10205
10330
|
- 👌 Improve the Slider thumb and track animation (#24968) @remyoudemans.
|
|
10206
10331
|
The thumb is now moving with a light transition between different values unless it's dragged.
|
|
10207
|
-
<img src="https://user-images.githubusercontent.com/3165635/109394906-b7405a00-7929-11eb-829a-3b5246c30c08.gif" width="412" height="110" />
|
|
10332
|
+
<img src="https://user-images.githubusercontent.com/3165635/109394906-b7405a00-7929-11eb-829a-3b5246c30c08.gif" width="412" height="110" alt="thumb-animation" />
|
|
10208
10333
|
- 💅 Convert 5 components with custom colors support (#25099, #25088) @mngu.
|
|
10209
10334
|
This change makes it easier to leverage custom palettes
|
|
10210
10335
|
- And many more 🐛 bug fixes and 📚 improvements.
|
package/borders.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.borderTopColor = exports.borderTop = exports.borderRightColor = exports.borderRight = exports.borderRadius = exports.borderLeftColor = exports.borderLeft = exports.borderColor = exports.borderBottomColor = exports.borderBottom = exports.border = void 0;
|
|
8
8
|
exports.borderTransform = borderTransform;
|
|
9
|
-
exports.default = void 0;
|
|
9
|
+
exports.outlineColor = exports.outline = exports.default = void 0;
|
|
10
10
|
var _responsivePropType = _interopRequireDefault(require("./responsivePropType"));
|
|
11
11
|
var _style = _interopRequireDefault(require("./style"));
|
|
12
12
|
var _compose = _interopRequireDefault(require("./compose"));
|
|
@@ -18,51 +18,25 @@ function borderTransform(value) {
|
|
|
18
18
|
}
|
|
19
19
|
return `${value}px solid`;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
const borderLeft = exports.borderLeft = (0, _style.default)({
|
|
42
|
-
prop: 'borderLeft',
|
|
43
|
-
themeKey: 'borders',
|
|
44
|
-
transform: borderTransform
|
|
45
|
-
});
|
|
46
|
-
const borderColor = exports.borderColor = (0, _style.default)({
|
|
47
|
-
prop: 'borderColor',
|
|
48
|
-
themeKey: 'palette'
|
|
49
|
-
});
|
|
50
|
-
const borderTopColor = exports.borderTopColor = (0, _style.default)({
|
|
51
|
-
prop: 'borderTopColor',
|
|
52
|
-
themeKey: 'palette'
|
|
53
|
-
});
|
|
54
|
-
const borderRightColor = exports.borderRightColor = (0, _style.default)({
|
|
55
|
-
prop: 'borderRightColor',
|
|
56
|
-
themeKey: 'palette'
|
|
57
|
-
});
|
|
58
|
-
const borderBottomColor = exports.borderBottomColor = (0, _style.default)({
|
|
59
|
-
prop: 'borderBottomColor',
|
|
60
|
-
themeKey: 'palette'
|
|
61
|
-
});
|
|
62
|
-
const borderLeftColor = exports.borderLeftColor = (0, _style.default)({
|
|
63
|
-
prop: 'borderLeftColor',
|
|
64
|
-
themeKey: 'palette'
|
|
65
|
-
});
|
|
21
|
+
function createBorderStyle(prop, transform) {
|
|
22
|
+
return (0, _style.default)({
|
|
23
|
+
prop,
|
|
24
|
+
themeKey: 'borders',
|
|
25
|
+
transform
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const border = exports.border = createBorderStyle('border', borderTransform);
|
|
29
|
+
const borderTop = exports.borderTop = createBorderStyle('borderTop', borderTransform);
|
|
30
|
+
const borderRight = exports.borderRight = createBorderStyle('borderRight', borderTransform);
|
|
31
|
+
const borderBottom = exports.borderBottom = createBorderStyle('borderBottom', borderTransform);
|
|
32
|
+
const borderLeft = exports.borderLeft = createBorderStyle('borderLeft', borderTransform);
|
|
33
|
+
const borderColor = exports.borderColor = createBorderStyle('borderColor');
|
|
34
|
+
const borderTopColor = exports.borderTopColor = createBorderStyle('borderTopColor');
|
|
35
|
+
const borderRightColor = exports.borderRightColor = createBorderStyle('borderRightColor');
|
|
36
|
+
const borderBottomColor = exports.borderBottomColor = createBorderStyle('borderBottomColor');
|
|
37
|
+
const borderLeftColor = exports.borderLeftColor = createBorderStyle('borderLeftColor');
|
|
38
|
+
const outline = exports.outline = createBorderStyle('outline', borderTransform);
|
|
39
|
+
const outlineColor = exports.outlineColor = createBorderStyle('outlineColor');
|
|
66
40
|
|
|
67
41
|
// false positive
|
|
68
42
|
// eslint-disable-next-line react/function-component-definition
|
|
@@ -81,5 +55,5 @@ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
81
55
|
borderRadius: _responsivePropType.default
|
|
82
56
|
} : {};
|
|
83
57
|
borderRadius.filterProps = ['borderRadius'];
|
|
84
|
-
const borders = (0, _compose.default)(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
|
|
58
|
+
const borders = (0, _compose.default)(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
85
59
|
var _default = exports.default = borders;
|
package/esm/Box/Box.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';
|
|
4
5
|
import createBox from '../createBox';
|
|
5
|
-
|
|
6
|
+
import boxClasses from './boxClasses';
|
|
7
|
+
const Box = createBox({
|
|
8
|
+
defaultClassName: boxClasses.root,
|
|
9
|
+
generateClassName: ClassNameGenerator.generate
|
|
10
|
+
});
|
|
6
11
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
7
12
|
// ----------------------------- Warning --------------------------------
|
|
8
13
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/esm/Box/index.js
CHANGED
package/esm/borders.js
CHANGED
|
@@ -9,51 +9,25 @@ export function borderTransform(value) {
|
|
|
9
9
|
}
|
|
10
10
|
return `${value}px solid`;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
export const borderLeft = style({
|
|
33
|
-
prop: 'borderLeft',
|
|
34
|
-
themeKey: 'borders',
|
|
35
|
-
transform: borderTransform
|
|
36
|
-
});
|
|
37
|
-
export const borderColor = style({
|
|
38
|
-
prop: 'borderColor',
|
|
39
|
-
themeKey: 'palette'
|
|
40
|
-
});
|
|
41
|
-
export const borderTopColor = style({
|
|
42
|
-
prop: 'borderTopColor',
|
|
43
|
-
themeKey: 'palette'
|
|
44
|
-
});
|
|
45
|
-
export const borderRightColor = style({
|
|
46
|
-
prop: 'borderRightColor',
|
|
47
|
-
themeKey: 'palette'
|
|
48
|
-
});
|
|
49
|
-
export const borderBottomColor = style({
|
|
50
|
-
prop: 'borderBottomColor',
|
|
51
|
-
themeKey: 'palette'
|
|
52
|
-
});
|
|
53
|
-
export const borderLeftColor = style({
|
|
54
|
-
prop: 'borderLeftColor',
|
|
55
|
-
themeKey: 'palette'
|
|
56
|
-
});
|
|
12
|
+
function createBorderStyle(prop, transform) {
|
|
13
|
+
return style({
|
|
14
|
+
prop,
|
|
15
|
+
themeKey: 'borders',
|
|
16
|
+
transform
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export const border = createBorderStyle('border', borderTransform);
|
|
20
|
+
export const borderTop = createBorderStyle('borderTop', borderTransform);
|
|
21
|
+
export const borderRight = createBorderStyle('borderRight', borderTransform);
|
|
22
|
+
export const borderBottom = createBorderStyle('borderBottom', borderTransform);
|
|
23
|
+
export const borderLeft = createBorderStyle('borderLeft', borderTransform);
|
|
24
|
+
export const borderColor = createBorderStyle('borderColor');
|
|
25
|
+
export const borderTopColor = createBorderStyle('borderTopColor');
|
|
26
|
+
export const borderRightColor = createBorderStyle('borderRightColor');
|
|
27
|
+
export const borderBottomColor = createBorderStyle('borderBottomColor');
|
|
28
|
+
export const borderLeftColor = createBorderStyle('borderLeftColor');
|
|
29
|
+
export const outline = createBorderStyle('outline', borderTransform);
|
|
30
|
+
export const outlineColor = createBorderStyle('outlineColor');
|
|
57
31
|
|
|
58
32
|
// false positive
|
|
59
33
|
// eslint-disable-next-line react/function-component-definition
|
|
@@ -71,5 +45,5 @@ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
71
45
|
borderRadius: responsivePropType
|
|
72
46
|
} : {};
|
|
73
47
|
borderRadius.filterProps = ['borderRadius'];
|
|
74
|
-
const borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
|
|
48
|
+
const borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
75
49
|
export default borders;
|
|
@@ -40,6 +40,13 @@ const defaultSxConfig = {
|
|
|
40
40
|
borderLeftColor: {
|
|
41
41
|
themeKey: 'palette'
|
|
42
42
|
},
|
|
43
|
+
outline: {
|
|
44
|
+
themeKey: 'borders',
|
|
45
|
+
transform: borderTransform
|
|
46
|
+
},
|
|
47
|
+
outlineColor: {
|
|
48
|
+
themeKey: 'palette'
|
|
49
|
+
},
|
|
43
50
|
borderRadius: {
|
|
44
51
|
themeKey: 'shape.borderRadius',
|
|
45
52
|
style: borderRadius
|
package/index.js
CHANGED
package/legacy/Box/Box.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';
|
|
4
5
|
import createBox from '../createBox';
|
|
5
|
-
|
|
6
|
+
import boxClasses from './boxClasses';
|
|
7
|
+
var Box = createBox({
|
|
8
|
+
defaultClassName: boxClasses.root,
|
|
9
|
+
generateClassName: ClassNameGenerator.generate
|
|
10
|
+
});
|
|
6
11
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
7
12
|
// ----------------------------- Warning --------------------------------
|
|
8
13
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/legacy/Box/index.js
CHANGED
package/legacy/borders.js
CHANGED
|
@@ -9,51 +9,25 @@ export function borderTransform(value) {
|
|
|
9
9
|
}
|
|
10
10
|
return "".concat(value, "px solid");
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
export var borderLeft = style({
|
|
33
|
-
prop: 'borderLeft',
|
|
34
|
-
themeKey: 'borders',
|
|
35
|
-
transform: borderTransform
|
|
36
|
-
});
|
|
37
|
-
export var borderColor = style({
|
|
38
|
-
prop: 'borderColor',
|
|
39
|
-
themeKey: 'palette'
|
|
40
|
-
});
|
|
41
|
-
export var borderTopColor = style({
|
|
42
|
-
prop: 'borderTopColor',
|
|
43
|
-
themeKey: 'palette'
|
|
44
|
-
});
|
|
45
|
-
export var borderRightColor = style({
|
|
46
|
-
prop: 'borderRightColor',
|
|
47
|
-
themeKey: 'palette'
|
|
48
|
-
});
|
|
49
|
-
export var borderBottomColor = style({
|
|
50
|
-
prop: 'borderBottomColor',
|
|
51
|
-
themeKey: 'palette'
|
|
52
|
-
});
|
|
53
|
-
export var borderLeftColor = style({
|
|
54
|
-
prop: 'borderLeftColor',
|
|
55
|
-
themeKey: 'palette'
|
|
56
|
-
});
|
|
12
|
+
function createBorderStyle(prop, transform) {
|
|
13
|
+
return style({
|
|
14
|
+
prop: prop,
|
|
15
|
+
themeKey: 'borders',
|
|
16
|
+
transform: transform
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export var border = createBorderStyle('border', borderTransform);
|
|
20
|
+
export var borderTop = createBorderStyle('borderTop', borderTransform);
|
|
21
|
+
export var borderRight = createBorderStyle('borderRight', borderTransform);
|
|
22
|
+
export var borderBottom = createBorderStyle('borderBottom', borderTransform);
|
|
23
|
+
export var borderLeft = createBorderStyle('borderLeft', borderTransform);
|
|
24
|
+
export var borderColor = createBorderStyle('borderColor');
|
|
25
|
+
export var borderTopColor = createBorderStyle('borderTopColor');
|
|
26
|
+
export var borderRightColor = createBorderStyle('borderRightColor');
|
|
27
|
+
export var borderBottomColor = createBorderStyle('borderBottomColor');
|
|
28
|
+
export var borderLeftColor = createBorderStyle('borderLeftColor');
|
|
29
|
+
export var outline = createBorderStyle('outline', borderTransform);
|
|
30
|
+
export var outlineColor = createBorderStyle('outlineColor');
|
|
57
31
|
|
|
58
32
|
// false positive
|
|
59
33
|
// eslint-disable-next-line react/function-component-definition
|
|
@@ -73,5 +47,5 @@ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
73
47
|
borderRadius: responsivePropType
|
|
74
48
|
} : {};
|
|
75
49
|
borderRadius.filterProps = ['borderRadius'];
|
|
76
|
-
var borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
|
|
50
|
+
var borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
77
51
|
export default borders;
|
package/legacy/getThemeValue.js
CHANGED
|
@@ -40,8 +40,7 @@ export var propToStyleFunction = Object.keys(filterPropsMapping).reduce(function
|
|
|
40
40
|
return acc;
|
|
41
41
|
}, {});
|
|
42
42
|
function getThemeValue(prop, value, theme) {
|
|
43
|
-
var
|
|
44
|
-
var inputProps = (_inputProps = {}, _defineProperty(_inputProps, prop, value), _defineProperty(_inputProps, "theme", theme), _inputProps);
|
|
43
|
+
var inputProps = _defineProperty(_defineProperty({}, prop, value), "theme", theme);
|
|
45
44
|
var styleFunction = propToStyleFunction[prop];
|
|
46
45
|
return styleFunction ? styleFunction(inputProps) : _defineProperty({}, prop, value);
|
|
47
46
|
}
|
package/legacy/index.js
CHANGED
|
@@ -40,6 +40,13 @@ var defaultSxConfig = {
|
|
|
40
40
|
borderLeftColor: {
|
|
41
41
|
themeKey: 'palette'
|
|
42
42
|
},
|
|
43
|
+
outline: {
|
|
44
|
+
themeKey: 'borders',
|
|
45
|
+
transform: borderTransform
|
|
46
|
+
},
|
|
47
|
+
outlineColor: {
|
|
48
|
+
themeKey: 'palette'
|
|
49
|
+
},
|
|
43
50
|
borderRadius: {
|
|
44
51
|
themeKey: 'shape.borderRadius',
|
|
45
52
|
style: borderRadius
|
|
@@ -24,8 +24,7 @@ function callIfFn(maybeFn, arg) {
|
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
25
|
export function unstable_createStyleFunctionSx() {
|
|
26
26
|
function getThemeValue(prop, val, theme, config) {
|
|
27
|
-
var
|
|
28
|
-
var props = (_props = {}, _defineProperty(_props, prop, val), _defineProperty(_props, "theme", theme), _props);
|
|
27
|
+
var props = _defineProperty(_defineProperty({}, prop, val), "theme", theme);
|
|
29
28
|
var options = config[prop];
|
|
30
29
|
if (!options) {
|
|
31
30
|
return _defineProperty({}, prop, val);
|
package/modern/Box/Box.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';
|
|
4
5
|
import createBox from '../createBox';
|
|
5
|
-
|
|
6
|
+
import boxClasses from './boxClasses';
|
|
7
|
+
const Box = createBox({
|
|
8
|
+
defaultClassName: boxClasses.root,
|
|
9
|
+
generateClassName: ClassNameGenerator.generate
|
|
10
|
+
});
|
|
6
11
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
7
12
|
// ----------------------------- Warning --------------------------------
|
|
8
13
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/modern/Box/index.js
CHANGED
package/modern/borders.js
CHANGED
|
@@ -9,51 +9,25 @@ export function borderTransform(value) {
|
|
|
9
9
|
}
|
|
10
10
|
return `${value}px solid`;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
export const borderLeft = style({
|
|
33
|
-
prop: 'borderLeft',
|
|
34
|
-
themeKey: 'borders',
|
|
35
|
-
transform: borderTransform
|
|
36
|
-
});
|
|
37
|
-
export const borderColor = style({
|
|
38
|
-
prop: 'borderColor',
|
|
39
|
-
themeKey: 'palette'
|
|
40
|
-
});
|
|
41
|
-
export const borderTopColor = style({
|
|
42
|
-
prop: 'borderTopColor',
|
|
43
|
-
themeKey: 'palette'
|
|
44
|
-
});
|
|
45
|
-
export const borderRightColor = style({
|
|
46
|
-
prop: 'borderRightColor',
|
|
47
|
-
themeKey: 'palette'
|
|
48
|
-
});
|
|
49
|
-
export const borderBottomColor = style({
|
|
50
|
-
prop: 'borderBottomColor',
|
|
51
|
-
themeKey: 'palette'
|
|
52
|
-
});
|
|
53
|
-
export const borderLeftColor = style({
|
|
54
|
-
prop: 'borderLeftColor',
|
|
55
|
-
themeKey: 'palette'
|
|
56
|
-
});
|
|
12
|
+
function createBorderStyle(prop, transform) {
|
|
13
|
+
return style({
|
|
14
|
+
prop,
|
|
15
|
+
themeKey: 'borders',
|
|
16
|
+
transform
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export const border = createBorderStyle('border', borderTransform);
|
|
20
|
+
export const borderTop = createBorderStyle('borderTop', borderTransform);
|
|
21
|
+
export const borderRight = createBorderStyle('borderRight', borderTransform);
|
|
22
|
+
export const borderBottom = createBorderStyle('borderBottom', borderTransform);
|
|
23
|
+
export const borderLeft = createBorderStyle('borderLeft', borderTransform);
|
|
24
|
+
export const borderColor = createBorderStyle('borderColor');
|
|
25
|
+
export const borderTopColor = createBorderStyle('borderTopColor');
|
|
26
|
+
export const borderRightColor = createBorderStyle('borderRightColor');
|
|
27
|
+
export const borderBottomColor = createBorderStyle('borderBottomColor');
|
|
28
|
+
export const borderLeftColor = createBorderStyle('borderLeftColor');
|
|
29
|
+
export const outline = createBorderStyle('outline', borderTransform);
|
|
30
|
+
export const outlineColor = createBorderStyle('outlineColor');
|
|
57
31
|
|
|
58
32
|
// false positive
|
|
59
33
|
// eslint-disable-next-line react/function-component-definition
|
|
@@ -71,5 +45,5 @@ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
71
45
|
borderRadius: responsivePropType
|
|
72
46
|
} : {};
|
|
73
47
|
borderRadius.filterProps = ['borderRadius'];
|
|
74
|
-
const borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
|
|
48
|
+
const borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
75
49
|
export default borders;
|
package/modern/index.js
CHANGED
|
@@ -40,6 +40,13 @@ const defaultSxConfig = {
|
|
|
40
40
|
borderLeftColor: {
|
|
41
41
|
themeKey: 'palette'
|
|
42
42
|
},
|
|
43
|
+
outline: {
|
|
44
|
+
themeKey: 'borders',
|
|
45
|
+
transform: borderTransform
|
|
46
|
+
},
|
|
47
|
+
outlineColor: {
|
|
48
|
+
themeKey: 'palette'
|
|
49
|
+
},
|
|
43
50
|
borderRadius: {
|
|
44
51
|
themeKey: 'shape.borderRadius',
|
|
45
52
|
style: borderRadius
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "CSS utilities for rapidly laying out custom designs.",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"homepage": "https://mui.com/system/getting-started/",
|
|
24
24
|
"funding": {
|
|
25
25
|
"type": "opencollective",
|
|
26
|
-
"url": "https://opencollective.com/mui"
|
|
26
|
+
"url": "https://opencollective.com/mui-org"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.23.
|
|
30
|
-
"@mui/private-theming": "^5.14.
|
|
31
|
-
"@mui/styled-engine": "^5.14.
|
|
32
|
-
"@mui/types": "^7.2.
|
|
33
|
-
"@mui/utils": "^5.14.
|
|
29
|
+
"@babel/runtime": "^7.23.4",
|
|
30
|
+
"@mui/private-theming": "^5.14.20",
|
|
31
|
+
"@mui/styled-engine": "^5.14.19",
|
|
32
|
+
"@mui/types": "^7.2.10",
|
|
33
|
+
"@mui/utils": "^5.14.20",
|
|
34
34
|
"clsx": "^2.0.0",
|
|
35
35
|
"csstype": "^3.1.2",
|
|
36
36
|
"prop-types": "^15.8.1"
|
|
@@ -46,6 +46,13 @@ const defaultSxConfig = {
|
|
|
46
46
|
borderLeftColor: {
|
|
47
47
|
themeKey: 'palette'
|
|
48
48
|
},
|
|
49
|
+
outline: {
|
|
50
|
+
themeKey: 'borders',
|
|
51
|
+
transform: _borders.borderTransform
|
|
52
|
+
},
|
|
53
|
+
outlineColor: {
|
|
54
|
+
themeKey: 'palette'
|
|
55
|
+
},
|
|
49
56
|
borderRadius: {
|
|
50
57
|
themeKey: 'shape.borderRadius',
|
|
51
58
|
style: _borders.borderRadius
|