@mui-treasury/layout
Advanced tools
Comparing version 5.0.0-alpha.11 to 5.0.0-alpha.12
@@ -22,7 +22,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
if (builder.leftInsetSidebar) { | ||
sxProps.marginLeft = builder.leftInsetSidebar.getSxRoot().width; | ||
sxProps.marginLeft = builder.leftInsetSidebar.getOccupiedSpace(); | ||
} | ||
if (builder.rightInsetSidebar) { | ||
sxProps.marginRight = builder.rightInsetSidebar.getSxRoot().width; | ||
sxProps.marginRight = builder.rightInsetSidebar.getOccupiedSpace(); | ||
} | ||
@@ -29,0 +29,0 @@ |
@@ -71,2 +71,10 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
getOccupiedSpace() { | ||
return flattenStrict(this.generateSxWithHidden({ | ||
assignValue: config => toValidCssValue(config.width), | ||
hiddenValue: "0px", | ||
strict: true | ||
})); | ||
} | ||
} |
@@ -35,7 +35,7 @@ "use strict"; | ||
if (builder.leftInsetSidebar) { | ||
sxProps.marginLeft = builder.leftInsetSidebar.getSxRoot().width; | ||
sxProps.marginLeft = builder.leftInsetSidebar.getOccupiedSpace(); | ||
} | ||
if (builder.rightInsetSidebar) { | ||
sxProps.marginRight = builder.rightInsetSidebar.getSxRoot().width; | ||
sxProps.marginRight = builder.rightInsetSidebar.getOccupiedSpace(); | ||
} | ||
@@ -42,0 +42,0 @@ |
@@ -78,2 +78,3 @@ import { Breakpoint } from "@material-ui/core/styles/createBreakpoints"; | ||
}; | ||
getOccupiedSpace(): any; | ||
} |
@@ -139,2 +139,13 @@ "use strict"; | ||
} | ||
}, { | ||
key: "getOccupiedSpace", | ||
value: function getOccupiedSpace() { | ||
return (0, _flattenResponsive.flattenStrict)(this.generateSxWithHidden({ | ||
assignValue: function assignValue(config) { | ||
return (0, _toValidCssValue.toValidCssValue)(config.width); | ||
}, | ||
hiddenValue: "0px", | ||
strict: true | ||
})); | ||
} | ||
}]); | ||
@@ -141,0 +152,0 @@ |
{ | ||
"name": "@mui-treasury/layout", | ||
"version": "5.0.0-alpha.11", | ||
"version": "5.0.0-alpha.12", | ||
"description": "mui-treasury | layout-core", | ||
@@ -35,3 +35,3 @@ "author": "siriwatknp <siriwatkunaporn@gmail.com>", | ||
}, | ||
"gitHead": "f4faf898390698f4e58316d5821ae37264a11df6" | ||
"gitHead": "c33faaa627f7687be0aa5ce6d77fd84d08b2aae0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
278471
5446