@zonos/amino 5.2.9 → 5.2.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=require("../../_tslib-bd4862e8.js"),e=require("react/jsx-runtime"),a=require("clsx"),i=require("../input/SearchInput.js"),r=require("../../styles/constants/theme.js"),t=require("../../style-inject.es-d4ddeae4.js");function n(o){return o&&o.__esModule?o:{default:o}}require("react"),require("../../icons/SearchIcon.js"),require("../../icons/icon-base/_IconBase.js");var d=n(a),s="Amino_Layout-module__aminoLayout--k-8EW",
|
|
1
|
+
"use strict";var o=require("../../_tslib-bd4862e8.js"),e=require("react/jsx-runtime"),a=require("clsx"),i=require("../input/SearchInput.js"),r=require("../../styles/constants/theme.js"),t=require("../../style-inject.es-d4ddeae4.js");function n(o){return o&&o.__esModule?o:{default:o}}require("react"),require("../../icons/SearchIcon.js"),require("../../icons/icon-base/_IconBase.js");var d=n(a),s="Amino_Layout-module__aminoLayout--k-8EW",u="Amino_Layout-module__contentGrid--6ltoS",l="Amino_Layout-module__styledSidebar--dnwoo",m="Amino_Layout-module__sidebarContent--NXMVV",_="Amino_Layout-module__searchInputWrapper--JldDc",c="Amino_Layout-module__styledLogoSidebar--MTiPe",h="Amino_Layout-module__styledSearchInput--uJCBW",y="Amino_Layout-module__content--LYUwT",b="Amino_Layout-module__header--lID5Y",p="Amino_Layout-module__footer--5enlV";t.styleInject(".Amino_Layout-module__aminoLayout--k-8EW{height:100vh;overflow:hidden}.Amino_Layout-module__contentGrid--6ltoS{display:grid;grid-template-columns:var(--amino-sidebar-width) 1fr;height:var(--amino-layout-height)}.Amino_Layout-module__styledSidebar--dnwoo{background:var(--amino-sidebar-color);border-right:var(--amino-border-subtle);box-sizing:border-box;display:grid;grid-template-rows:1fr auto;height:inherit;width:var(--amino-sidebar-width)}.Amino_Layout-module__sidebarContent--NXMVV{box-sizing:border-box;height:100%;overflow-y:auto;padding:var(--amino-space-16);width:100%}.Amino_Layout-module__searchInputWrapper--JldDc{margin-bottom:var(--amino-space-40)}.Amino_Layout-module__styledLogoSidebar--MTiPe{margin-bottom:var(--amino-space-24)}.Amino_Layout-module__styledSearchInput--uJCBW{border:0}.Amino_Layout-module__styledSearchInput--uJCBW svg{color:var(--amino-gray-1200)}.Amino_Layout-module__styledSearchInput--uJCBW input{background-color:var(--amino-gray-100);border:0}.Amino_Layout-module__styledSearchInput--uJCBW input::placeholder{color:var(--amino-gray-1200)}.Amino_Layout-module__content--LYUwT{box-sizing:border-box;height:inherit;overflow-y:auto;padding:var(--amino-space-32)}.Amino_Layout-module__header--lID5Y{background:var(--amino-header-color);border-bottom:var(--amino-border);box-shadow:var(--amino-v3-shadow-base);box-sizing:border-box;display:flex;height:var(--amino-appbar-height);position:-webkit-sticky;position:sticky;top:0;z-index:var(--amino-appbar-elevation)}.Amino_Layout-module__footer--5enlV{box-sizing:border-box;width:var(--amino-sidebar-width)}");exports.Layout=function(a){var t=a.className,n=a.content,v=a.footer,g=a.headerContent,L=a.logoSidebar,x=a.searchInput,A=a.sidebar,j=a.style;return e.jsxs("main",{className:d.default(t,s),style:o.__assign(o.__assign({},j),{"--amino-layout-height":g?"calc(100vh - ".concat(r.theme.appbarHeight,")"):"100vh"}),children:[!!g&&e.jsx("header",{className:b,children:g}),e.jsxs("div",{className:u,children:[e.jsxs("nav",{className:l,children:[e.jsxs("div",{className:m,children:[!!L&&e.jsx("div",{className:c,children:L}),!!x&&e.jsx("div",{className:_,children:e.jsx(i.SearchInput,{className:h,onChange:x.onChange,value:x.value})}),A]}),e.jsx("div",{className:p,children:v})]}),e.jsx("div",{className:y,children:n})]})]})};
|