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.12 to 5.0.0-alpha.13

8

esm/InsetSidebar/InsetContainer.js
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from "react";
import cx from "clsx";
import Container from "@material-ui/core/Container";
import { experimentalStyled as styled, unstable_useThemeProps as useThemeProps } from "@material-ui/core/styles";
var contentClassName = "AppInsetContainer-content";
var InsetContainerRoot = styled(Container, {}, {

@@ -16,3 +14,3 @@ name: "AppInsetContainer",

flexGrow: 1,
["& .".concat(contentClassName)]: {
'& > *:not([class*="AppInsetSidebar"])': {
flexGrow: 1,

@@ -36,7 +34,5 @@ overflow: "auto"

anchor: "left"
}), /*#__PURE__*/React.cloneElement(children, {
className: cx(children.props.className, contentClassName)
}), rightSidebar && /*#__PURE__*/React.cloneElement(rightSidebar, {
}), children, rightSidebar && /*#__PURE__*/React.cloneElement(rightSidebar, {
anchor: "right"
}));
};

@@ -10,4 +10,2 @@ "use strict";

var _clsx = _interopRequireDefault(require("clsx"));
var _Container = _interopRequireDefault(require("@material-ui/core/Container"));

@@ -23,5 +21,2 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var contentClassName = "AppInsetContainer-content";
var InsetContainerRoot = (0, _styles.experimentalStyled)(_Container["default"], {}, {

@@ -33,10 +28,11 @@ name: "AppInsetContainer",

}
})(_defineProperty({
})({
display: "flex",
flexFlow: "row nowrap",
flexGrow: 1
}, "& .".concat(contentClassName), {
flexGrow: 1,
overflow: "auto"
}));
'& > *:not([class*="AppInsetSidebar"])': {
flexGrow: 1,
overflow: "auto"
}
});

@@ -55,5 +51,3 @@ var InsetContainer = function InsetContainer(_ref) {

anchor: "left"
}), /*#__PURE__*/_react["default"].cloneElement(children, {
className: (0, _clsx["default"])(children.props.className, contentClassName)
}), rightSidebar && /*#__PURE__*/_react["default"].cloneElement(rightSidebar, {
}), children, rightSidebar && /*#__PURE__*/_react["default"].cloneElement(rightSidebar, {
anchor: "right"

@@ -60,0 +54,0 @@ }));

{
"name": "@mui-treasury/layout",
"version": "5.0.0-alpha.12",
"version": "5.0.0-alpha.13",
"description": "mui-treasury | layout-core",

@@ -35,3 +35,3 @@ "author": "siriwatknp <siriwatkunaporn@gmail.com>",

},
"gitHead": "c33faaa627f7687be0aa5ce6d77fd84d08b2aae0"
"gitHead": "0dded52a2dfb77e324406f41b46fc63bb2b1bfae"
}
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