@etsoo/react 1.5.38 → 1.5.39
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.
|
@@ -18,9 +18,13 @@ export const CommonPageScrollContainer = global;
|
|
|
18
18
|
*/
|
|
19
19
|
export function CommonPage(props) {
|
|
20
20
|
// Destruct
|
|
21
|
-
const { children, disableGutters = true, fabButtons, fabColumnDirection, fabPaddingAdjust = 1.5, fabSize = 'small', maxWidth = false, moreActions, onRefresh, onUpdate, onUpdateAll, paddings = MUGlobal.pagePaddings, scrollContainer, supportBack = false, targetFields, sx = {
|
|
21
|
+
const { children, disableGutters = true, fabButtons, fabColumnDirection, fabPaddingAdjust = 1.5, fabSize = 'small', maxWidth = false, moreActions, onRefresh, onUpdate, onUpdateAll, paddings = MUGlobal.pagePaddings, scrollContainer, supportBack = false, targetFields, sx = {}, ...rest } = props;
|
|
22
22
|
// Fab padding
|
|
23
23
|
const fabPadding = MUGlobal.increase(MUGlobal.pagePaddings, fabPaddingAdjust);
|
|
24
|
+
if (typeof sx === 'object' && sx != null && !Reflect.has(sx, 'padding')) {
|
|
25
|
+
// Set default padding
|
|
26
|
+
Reflect.set(sx, 'padding', paddings);
|
|
27
|
+
}
|
|
24
28
|
// Labels
|
|
25
29
|
const labels = Labels.CommonPage;
|
|
26
30
|
// Update
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ export function CommonPage(props: CommonPageProps) {
|
|
|
37
37
|
scrollContainer,
|
|
38
38
|
supportBack = false,
|
|
39
39
|
targetFields,
|
|
40
|
-
sx = {
|
|
40
|
+
sx = {},
|
|
41
41
|
...rest
|
|
42
42
|
} = props;
|
|
43
43
|
|
|
@@ -47,6 +47,11 @@ export function CommonPage(props: CommonPageProps) {
|
|
|
47
47
|
fabPaddingAdjust
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
+
if (typeof sx === 'object' && sx != null && !Reflect.has(sx, 'padding')) {
|
|
51
|
+
// Set default padding
|
|
52
|
+
Reflect.set(sx, 'padding', paddings);
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
// Labels
|
|
51
56
|
const labels = Labels.CommonPage;
|
|
52
57
|
|