Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mui-treasury/layout

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui-treasury/layout - npm Package Compare versions

Comparing version 5.0.0-alpha.11 to 5.0.0-alpha.12

4

esm/InsetSidebar/InsetAvoidingView.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc