carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 1.01 kB
JavaScript
;var e=require("styled-components"),d=require("styled-system"),t=require("../box/box.component.js"),i=require("../sidebar/sidebar.component.js"),o=require("./__internal__/utils.js");function s(e){return e&&e.__esModule?e:{default:e}}var r=s(e);const a=r.default(t.Box).withConfig({displayName:"adaptive-sidebar.style__StyledAdaptiveSidebar",componentId:"sc-6ef01593-0"})(["",";"],(({backgroundColor:t,borderColor:i,height:s,hidden:r,width:a})=>e.css([""," "," "," max-height:",";max-width:",";min-width:",";overflow-y:auto;outline:none;"," ",""],o.getColors(t),i&&e.css(["border-left:1px solid var(",");"],i),r&&e.css(["display:none;"]),s,a,a,d.margin,d.padding))),n=r.default(i.Sidebar).withConfig({displayName:"adaptive-sidebar.style__StyledSidebar",componentId:"sc-6ef01593-1"})([""," ",""],(({hidden:d})=>e.css(["",""],d&&e.css(["display:none;"]))),(({backgroundColor:d})=>e.css(['div[data-element="sidebar-content"]{',"}"],o.getColors(d))));exports.StyledAdaptiveSidebar=a,exports.StyledSidebar=n;