@mui/system 6.4.0 → 6.4.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 +69 -0
- package/RtlProvider/index.js +1 -0
- package/cssContainerQueries/cssContainerQueries.d.ts +1 -2
- package/cssVars/createCssVarsProvider.js +3 -1
- package/esm/RtlProvider/index.js +2 -0
- package/esm/cssVars/createCssVarsProvider.js +4 -1
- package/esm/styleFunctionSx/AliasesCSSProperties.js +1 -0
- package/esm/styleFunctionSx/OverwriteCSSProperties.js +1 -0
- package/esm/styleFunctionSx/StandardCssProperties.js +1 -0
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/RtlProvider/index.js +2 -0
- package/modern/cssVars/createCssVarsProvider.js +4 -1
- package/modern/index.js +1 -1
- package/modern/styleFunctionSx/AliasesCSSProperties.js +1 -0
- package/modern/styleFunctionSx/OverwriteCSSProperties.js +1 -0
- package/modern/styleFunctionSx/StandardCssProperties.js +1 -0
- package/modern/version/index.js +2 -2
- package/package.json +4 -4
- package/styleFunctionSx/AliasesCSSProperties.d.ts +266 -267
- package/styleFunctionSx/AliasesCSSProperties.js +5 -0
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +51 -52
- package/styleFunctionSx/OverwriteCSSProperties.js +5 -0
- package/styleFunctionSx/StandardCssProperties.d.ts +0 -1
- package/styleFunctionSx/StandardCssProperties.js +5 -0
- package/version/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 6.4.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.4.1..v6.x -->
|
|
6
|
+
|
|
7
|
+
_Jan 29, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 5 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.4.2`
|
|
12
|
+
|
|
13
|
+
- [Autocomplete] Prevent shrink animation in uncontrolled Autocomplete when default value is set (#44873) @ZeeshanTamboli
|
|
14
|
+
- [Slider] Fix arrow keys past the end for Slider with custom marks (#45050) @joshkel
|
|
15
|
+
- [TextareaAutosize] Temporarily disconnect ResizeObserver to avoid loop error (#44540) @mj12albert
|
|
16
|
+
|
|
17
|
+
### Core
|
|
18
|
+
|
|
19
|
+
- [code-infra] a few fixes uncovered during ESM updates (@Janpot) (#45100) @Janpot
|
|
20
|
+
- [code-infra] Remove rsc-builder (#45079) @Janpot
|
|
21
|
+
- [code-infra] Remove commonjs imports in docs (#44976) @Janpot
|
|
22
|
+
- Prepare stable release from the `v6.x` branch (#45133) @DiegoAndai
|
|
23
|
+
|
|
24
|
+
### Docs
|
|
25
|
+
|
|
26
|
+
- Fix `/base-ui` redirect and prune links (#45083) @mj12albert
|
|
27
|
+
|
|
28
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @Janpot, @joshkel, @mj12albert, @ZeeshanTamboli
|
|
29
|
+
|
|
30
|
+
## 6.4.1
|
|
31
|
+
|
|
32
|
+
<!-- generated comparing v6.4.0..master -->
|
|
33
|
+
|
|
34
|
+
_Jan 21, 2025_
|
|
35
|
+
|
|
36
|
+
A big thanks to the 9 contributors who made this release possible.
|
|
37
|
+
|
|
38
|
+
### `@mui/material@6.4.1`
|
|
39
|
+
|
|
40
|
+
- [ButtonBase] Export types used in ButtonBase props (#43530) @Janpot
|
|
41
|
+
- [Dialog] Add slots and slotProps (#44792) @sai6855
|
|
42
|
+
- [Drawer] Deprecate composed classes (#44870) @yash49
|
|
43
|
+
- [IconButton] Set default loading to `null` (#45057) @siriwatknp
|
|
44
|
+
- [ListItem] Add codemod for deprecated props (#45022) @sai6855
|
|
45
|
+
- [Modal] Add migration guide and codemod for deprecated props (#45021) @sai6855
|
|
46
|
+
- [TextField] Fix filled state to be synced with autofill (#44135) @DiegoAndai
|
|
47
|
+
|
|
48
|
+
### `@mui/system@6.4.1`
|
|
49
|
+
|
|
50
|
+
- Fix dark mode flicker using `useEnhancedEffect` (#44812) @siriwatknp
|
|
51
|
+
|
|
52
|
+
### `@mui/utils@6.4.1`
|
|
53
|
+
|
|
54
|
+
- Do not deep merge React component (#45058) @siriwatknp
|
|
55
|
+
|
|
56
|
+
### Docs
|
|
57
|
+
|
|
58
|
+
- Fix typo (#45070) @Fullchee
|
|
59
|
+
- Improve Toolpad templates section (#44914) @bharatkashyap
|
|
60
|
+
- Fix expand / collapse icons orientation (#44989) @zanivan
|
|
61
|
+
- Rename "Base UI" to "MUI Base" in all text (#45060) @mj12albert
|
|
62
|
+
- Add @mui/base deprecation callout (#45030) @mj12albert
|
|
63
|
+
- Update @mui/base deprecation message (#45064) @mj12albert
|
|
64
|
+
|
|
65
|
+
### Core
|
|
66
|
+
|
|
67
|
+
- [code-infra] Add "use client" directive to files with React APIs (#45036) @Janpot
|
|
68
|
+
- [docs] 301 redirect `/base-ui` to `base-ui.com` (#45061) @mj12albert
|
|
69
|
+
|
|
70
|
+
All contributors of this release in alphabetical order: @bharatkashyap, @DiegoAndai, @Fullchee, @Janpot, @mj12albert, @sai6855, @siriwatknp, @yash49, @zanivan
|
|
71
|
+
|
|
3
72
|
## 6.4.0
|
|
4
73
|
|
|
5
74
|
<!-- generated comparing v6.3.1..master -->
|
package/RtlProvider/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breakpoints } from '../createBreakpoints/createBreakpoints';
|
|
2
|
-
interface ContainerQueries {
|
|
2
|
+
export interface ContainerQueries {
|
|
3
3
|
up: Breakpoints['up'];
|
|
4
4
|
down: Breakpoints['down'];
|
|
5
5
|
between: Breakpoints['between'];
|
|
@@ -21,4 +21,3 @@ export declare function getContainerQuery(theme: CssContainerQueries, shorthand:
|
|
|
21
21
|
export default function cssContainerQueries<T extends {
|
|
22
22
|
breakpoints: Breakpoints;
|
|
23
23
|
}>(themeInput: T): T & CssContainerQueries;
|
|
24
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
'use client';
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
@@ -11,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _styledEngine = require("@mui/styled-engine");
|
|
13
14
|
var _privateTheming = require("@mui/private-theming");
|
|
15
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
14
16
|
var _ThemeProvider = _interopRequireDefault(require("../ThemeProvider"));
|
|
15
17
|
var _InitColorSchemeScript = _interopRequireWildcard(require("../InitColorSchemeScript/InitColorSchemeScript"));
|
|
16
18
|
var _useCurrentColorScheme = _interopRequireDefault(require("./useCurrentColorScheme"));
|
|
@@ -155,7 +157,7 @@ function createCssVarsProvider(options) {
|
|
|
155
157
|
// 5. Declaring effects
|
|
156
158
|
// 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
|
|
157
159
|
const colorSchemeSelector = restThemeProp.colorSchemeSelector;
|
|
158
|
-
|
|
160
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
159
161
|
if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
|
|
160
162
|
const selector = colorSchemeSelector;
|
|
161
163
|
let rule = colorSchemeSelector;
|
package/esm/RtlProvider/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import { GlobalStyles } from '@mui/styled-engine';
|
|
4
6
|
import { useTheme as muiUseTheme } from '@mui/private-theming';
|
|
7
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
5
8
|
import ThemeProvider from "../ThemeProvider/index.js";
|
|
6
9
|
import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
|
7
10
|
import useCurrentColorScheme from "./useCurrentColorScheme.js";
|
|
@@ -146,7 +149,7 @@ export default function createCssVarsProvider(options) {
|
|
|
146
149
|
// 5. Declaring effects
|
|
147
150
|
// 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
|
|
148
151
|
const colorSchemeSelector = restThemeProp.colorSchemeSelector;
|
|
149
|
-
|
|
152
|
+
useEnhancedEffect(() => {
|
|
150
153
|
if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
|
|
151
154
|
const selector = colorSchemeSelector;
|
|
152
155
|
let rule = colorSchemeSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.4.
|
|
1
|
+
export const version = "6.4.2";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("4");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("2");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import { GlobalStyles } from '@mui/styled-engine';
|
|
4
6
|
import { useTheme as muiUseTheme } from '@mui/private-theming';
|
|
7
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
5
8
|
import ThemeProvider from "../ThemeProvider/index.js";
|
|
6
9
|
import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
|
7
10
|
import useCurrentColorScheme from "./useCurrentColorScheme.js";
|
|
@@ -146,7 +149,7 @@ export default function createCssVarsProvider(options) {
|
|
|
146
149
|
// 5. Declaring effects
|
|
147
150
|
// 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
|
|
148
151
|
const colorSchemeSelector = restThemeProp.colorSchemeSelector;
|
|
149
|
-
|
|
152
|
+
useEnhancedEffect(() => {
|
|
150
153
|
if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
|
|
151
154
|
const selector = colorSchemeSelector;
|
|
152
155
|
let rule = colorSchemeSelector;
|
package/modern/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/modern/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.4.
|
|
1
|
+
export const version = "6.4.2";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("4");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("2");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
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.1",
|
|
31
31
|
"csstype": "^3.1.3",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@mui/private-theming": "^6.4.
|
|
34
|
-
"@mui/styled-engine": "^6.4.
|
|
33
|
+
"@mui/private-theming": "^6.4.2",
|
|
34
|
+
"@mui/styled-engine": "^6.4.2",
|
|
35
35
|
"@mui/types": "^7.2.21",
|
|
36
|
-
"@mui/utils": "^6.4.
|
|
36
|
+
"@mui/utils": "^6.4.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@emotion/react": "^11.5.0",
|
|
@@ -1,270 +1,269 @@
|
|
|
1
1
|
import { StandardCSSProperties } from './StandardCssProperties';
|
|
2
|
-
|
|
3
2
|
export interface AliasesCSSProperties {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The **`background-color`** CSS property sets the background color of an element.
|
|
5
|
+
*
|
|
6
|
+
* **Initial value**: `transparent`
|
|
7
|
+
*
|
|
8
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
9
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
10
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
11
|
+
*
|
|
12
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/background-color
|
|
13
|
+
*/
|
|
14
|
+
bgcolor?: StandardCSSProperties['backgroundColor'];
|
|
15
|
+
/**
|
|
16
|
+
* The **`margin`** CSS property sets the margin on all four sides of an element. It is a shorthand for `margin-top`, `margin-right`, `margin-bottom`, and `margin-left`.
|
|
17
|
+
*
|
|
18
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
19
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
20
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
21
|
+
*
|
|
22
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin
|
|
23
|
+
*/
|
|
24
|
+
m?: StandardCSSProperties['margin'];
|
|
25
|
+
/**
|
|
26
|
+
* The **`margin-top`** CSS property sets the margin on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
27
|
+
*
|
|
28
|
+
* **Initial value**: `0`
|
|
29
|
+
*
|
|
30
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
31
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
32
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
33
|
+
*
|
|
34
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
35
|
+
*/
|
|
36
|
+
mt?: StandardCSSProperties['marginTop'];
|
|
37
|
+
/**
|
|
38
|
+
* The **`margin-right`** CSS property sets the margin on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
39
|
+
*
|
|
40
|
+
* **Initial value**: `0`
|
|
41
|
+
*
|
|
42
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
43
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
44
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
45
|
+
*
|
|
46
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
47
|
+
*/
|
|
48
|
+
mr?: StandardCSSProperties['marginRight'];
|
|
49
|
+
/**
|
|
50
|
+
* The **`margin-bottom`** CSS property sets the margin on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
51
|
+
*
|
|
52
|
+
* **Initial value**: `0`
|
|
53
|
+
*
|
|
54
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
55
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
56
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
57
|
+
*
|
|
58
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
59
|
+
*/
|
|
60
|
+
mb?: StandardCSSProperties['marginBottom'];
|
|
61
|
+
/**
|
|
62
|
+
* The **`margin-left`** CSS property sets the margin on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
63
|
+
*
|
|
64
|
+
* **Initial value**: `0`
|
|
65
|
+
*
|
|
66
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
67
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
68
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
69
|
+
*
|
|
70
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
71
|
+
*/
|
|
72
|
+
ml?: StandardCSSProperties['marginLeft'];
|
|
73
|
+
/**
|
|
74
|
+
* The **`mx`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value places it
|
|
75
|
+
* farther from its neighbors, while a negative value places it closer.
|
|
76
|
+
*
|
|
77
|
+
* **Initial value**: `0`
|
|
78
|
+
*
|
|
79
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
80
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
81
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
82
|
+
*
|
|
83
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
84
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
85
|
+
*/
|
|
86
|
+
mx?: StandardCSSProperties['marginLeft'];
|
|
87
|
+
/**
|
|
88
|
+
* The **`marginX`** property is shorthand for using both **`margin-left`** and **`margin-right`** CSS properties. They set the margin on the left and right side of an element. A positive value
|
|
89
|
+
* places it farther from its neighbors, while a negative value places it closer.
|
|
90
|
+
*
|
|
91
|
+
* **Initial value**: `0`
|
|
92
|
+
*
|
|
93
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
94
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
95
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
96
|
+
*
|
|
97
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-left
|
|
98
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-right
|
|
99
|
+
*/
|
|
100
|
+
marginX?: StandardCSSProperties['marginLeft'];
|
|
101
|
+
/**
|
|
102
|
+
* The **`my`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places it
|
|
103
|
+
* farther from its neighbors, while a negative value places it closer.
|
|
104
|
+
*
|
|
105
|
+
* **Initial value**: `0`
|
|
106
|
+
*
|
|
107
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
108
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
109
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
110
|
+
*
|
|
111
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
112
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
113
|
+
*/
|
|
114
|
+
my?: StandardCSSProperties['marginTop'];
|
|
115
|
+
/**
|
|
116
|
+
* The **`marginY`** property is shorthand for using both **`margin-top`** and **`margin-bottom`** CSS properties. They set the margin on the top and bottom of an element. A positive value places
|
|
117
|
+
* it farther from its neighbors, while a negative value places it closer.
|
|
118
|
+
*
|
|
119
|
+
* **Initial value**: `0`
|
|
120
|
+
*
|
|
121
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
122
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
123
|
+
* | **1** | **1** | **1** | **12** | **3** |
|
|
124
|
+
*
|
|
125
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-top
|
|
126
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/margin-bottom
|
|
127
|
+
*/
|
|
128
|
+
marginY?: StandardCSSProperties['marginTop'];
|
|
129
|
+
/**
|
|
130
|
+
* The **`padding`** CSS property sets the padding on all four sides of an element. It is a shorthand for `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`.
|
|
131
|
+
*
|
|
132
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
133
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
134
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
135
|
+
*
|
|
136
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding
|
|
137
|
+
*/
|
|
138
|
+
p?: StandardCSSProperties['padding'];
|
|
139
|
+
/**
|
|
140
|
+
* The **`padding-top`** CSS property sets the height of the padding at the top of an element.
|
|
141
|
+
*
|
|
142
|
+
* **Initial value**: `0`
|
|
143
|
+
*
|
|
144
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
145
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
146
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
147
|
+
*
|
|
148
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
149
|
+
*/
|
|
150
|
+
pt?: StandardCSSProperties['paddingTop'];
|
|
151
|
+
/**
|
|
152
|
+
* The **`padding-right`** CSS property sets the width of the padding at the right side of an element.
|
|
153
|
+
*
|
|
154
|
+
* **Initial value**: `0`
|
|
155
|
+
*
|
|
156
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
157
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
158
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
159
|
+
*
|
|
160
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
161
|
+
*/
|
|
162
|
+
pr?: StandardCSSProperties['paddingRight'];
|
|
163
|
+
/**
|
|
164
|
+
* The **`padding-bottom`** CSS property sets the height of the padding on the bottom of an element.
|
|
165
|
+
*
|
|
166
|
+
* **Initial value**: `0`
|
|
167
|
+
*
|
|
168
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
169
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
170
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
171
|
+
*
|
|
172
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
173
|
+
*/
|
|
174
|
+
pb?: StandardCSSProperties['paddingBottom'];
|
|
175
|
+
/**
|
|
176
|
+
* The **`padding-left`** CSS property sets the width of the padding at the left side of an element.
|
|
177
|
+
*
|
|
178
|
+
* **Initial value**: `0`
|
|
179
|
+
*
|
|
180
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
181
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
182
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
183
|
+
*
|
|
184
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
185
|
+
*/
|
|
186
|
+
pl?: StandardCSSProperties['paddingLeft'];
|
|
187
|
+
/**
|
|
188
|
+
* The **`px`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right side of an element.
|
|
189
|
+
*
|
|
190
|
+
* **Initial value**: `0`
|
|
191
|
+
*
|
|
192
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
193
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
194
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
195
|
+
*
|
|
196
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
197
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
198
|
+
*/
|
|
199
|
+
px?: StandardCSSProperties['paddingLeft'];
|
|
200
|
+
/**
|
|
201
|
+
* The **`paddingX`** property is shorthand for the CSS properties **`padding-left`** and **`padding-right`**. They set the width of the padding at the left and right sides of an element.
|
|
202
|
+
*
|
|
203
|
+
* **Initial value**: `0`
|
|
204
|
+
*
|
|
205
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
206
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
207
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
208
|
+
*
|
|
209
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-left
|
|
210
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-right
|
|
211
|
+
*/
|
|
212
|
+
paddingX?: StandardCSSProperties['paddingLeft'];
|
|
213
|
+
/**
|
|
214
|
+
* The **`py`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
215
|
+
*
|
|
216
|
+
* **Initial value**: `0`
|
|
217
|
+
*
|
|
218
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
219
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
220
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
221
|
+
*
|
|
222
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
223
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
224
|
+
*/
|
|
225
|
+
py?: StandardCSSProperties['paddingTop'];
|
|
226
|
+
/**
|
|
227
|
+
* The **`paddingY`** property is shorthand for the CSS properties **`padding-top`** and **`padding-bottom`**. They set the width of the padding at the top and bottom of an element.
|
|
228
|
+
*
|
|
229
|
+
* **Initial value**: `0`
|
|
230
|
+
*
|
|
231
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
232
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
233
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
234
|
+
*
|
|
235
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-top
|
|
236
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
|
|
237
|
+
*/
|
|
238
|
+
paddingY?: StandardCSSProperties['paddingTop'];
|
|
239
|
+
/**
|
|
240
|
+
* The **`typography`** property is shorthand for the CSS properties **`font-family`**, **`font-weight`**, **`font-size`**, **`line-height`**, **`letter-spacing`** and **`text-transform``**.
|
|
241
|
+
* It takes the values defined under `theme.typography` and spreads them on the element.
|
|
242
|
+
*
|
|
243
|
+
* **Initial value**: `0`
|
|
244
|
+
*
|
|
245
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
246
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
247
|
+
* | **2** | **1** | **1** | **12** | **5.5** |
|
|
248
|
+
*
|
|
249
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/font-family
|
|
250
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
251
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/font-size
|
|
252
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/line-height
|
|
253
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/letter-spacing
|
|
254
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/text-transform
|
|
255
|
+
*/
|
|
256
|
+
typography?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The **`displayPrint`** property sets the display value for the element when the page is printed.
|
|
259
|
+
*
|
|
260
|
+
* **Initial value**: `inline`
|
|
261
|
+
*
|
|
262
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
263
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
264
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
265
|
+
*
|
|
266
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/display
|
|
267
|
+
*/
|
|
268
|
+
displayPrint?: StandardCSSProperties['display'];
|
|
270
269
|
}
|
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
import * as CSS from 'csstype';
|
|
2
|
-
|
|
3
2
|
export interface OverwriteCSSProperties {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The **`border`** CSS property is shorthand for the CSS properties **`border-width`**, **`border-style`**, and **`border-color`**. It sets an element's border.
|
|
5
|
+
*
|
|
6
|
+
* **Initial value**: `none`
|
|
7
|
+
*
|
|
8
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
9
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
10
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
11
|
+
*
|
|
12
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/border
|
|
13
|
+
*/
|
|
14
|
+
border?: CSS.Property.Border | number;
|
|
15
|
+
/**
|
|
16
|
+
* The **`box-shadow`** CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the
|
|
17
|
+
* element for blur and spread radii, and by its color.
|
|
18
|
+
*
|
|
19
|
+
* **Initial value**: `none`
|
|
20
|
+
*
|
|
21
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
22
|
+
* | :-----: | :-----: | :-----: | :----: | :---: |
|
|
23
|
+
* | **10** | **4** | **5.1** | **12** | **9** |
|
|
24
|
+
* | 1 _-x-_ | | 3 _-x-_ | | |
|
|
25
|
+
*
|
|
26
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/box-shadow
|
|
27
|
+
*/
|
|
28
|
+
boxShadow?: CSS.Property.BoxShadow | number;
|
|
29
|
+
/**
|
|
30
|
+
* The **`font-weight`** CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the `font-family` you are using. Some fonts are only
|
|
31
|
+
* available in `normal` and `bold`.
|
|
32
|
+
*
|
|
33
|
+
* **Initial value**: `normal`
|
|
34
|
+
*
|
|
35
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
36
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
37
|
+
* | **2** | **1** | **1** | **12** | **3** |
|
|
38
|
+
*
|
|
39
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/font-weight
|
|
40
|
+
*/
|
|
41
|
+
fontWeight?: CSS.Property.FontWeight | string;
|
|
42
|
+
/**
|
|
43
|
+
* The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a higher z-index cover those with a lower one.
|
|
44
|
+
*
|
|
45
|
+
* **Initial value**: `auto`
|
|
46
|
+
*
|
|
47
|
+
* | Chrome | Firefox | Safari | Edge | IE |
|
|
48
|
+
* | :----: | :-----: | :----: | :----: | :---: |
|
|
49
|
+
* | **1** | **1** | **1** | **12** | **4** |
|
|
50
|
+
*
|
|
51
|
+
* @see https://developer.mozilla.org/docs/Web/CSS/z-index
|
|
52
|
+
*/
|
|
53
|
+
zIndex?: CSS.Property.ZIndex | string;
|
|
55
54
|
}
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "6.4.
|
|
7
|
+
const version = exports.version = "6.4.2";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
9
|
const minor = exports.minor = Number("4");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("2");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|