@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 2.72 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderPostLogin/HeaderPostLogin.css');const e=require("./index.cjs278.js"),l=require("./index.cjs161.js"),r=require("./index.cjs280.js"),c=require("./index.cjs104.js");;/* empty css */const w=require("./index.cjs78.js"),y=require("./index.cjs77.js"),a=require("./index.cjs82.js"),E=require("./index.cjs219.js"),q=({shortTitle:u,region:j,asLink:p="a",navigationItems:n,generalClassName:m,navItemsClassName:d,isExpanded:t=!0,expandTitle:h="Apri",subtitle:i="",variant:o="default",toggleExpand:R})=>{const g=p,v=l.LOGOS.nazionale,f=l.LOGOS[j],b=o==="default"?t?"p-x40":"py-x40":t?"p-x20":"pt-x12 pb-x40";return e.jsxRuntimeExports.jsxs("nav",{role:"navigation",className:r.clsx("ui-hpl-menu",m,t?"expanded":"closed"),style:{"--navbar-elements":n.length??0},children:[e.jsxRuntimeExports.jsxs(a.Col,{pt:"x80",px:t?"x40":o==="default"?"x20":"x16",gap:"x16",justifyContent:"center",className:"position-relative",children:[e.jsxRuntimeExports.jsxs(E.Row,{gap:t?"x24":"x12",alignItems:"center",justifyContent:"center",children:[e.jsxRuntimeExports.jsx(v,{width:t?27:20,height:t?44:37}),e.jsxRuntimeExports.jsx(c.Divider,{bg:"border-divider",direction:"vertical"}),e.jsxRuntimeExports.jsx(f,{width:t?44:37,height:t?44:37})]}),e.jsxRuntimeExports.jsx("h1",{className:r.clsx("shortTitle fs-custom fw-normal text-slate-20 text-align-center"),children:u}),i&&e.jsxRuntimeExports.jsx("p",{className:"fs-7 fw-semibold text-slate-52 text-center",children:i})]}),e.jsxRuntimeExports.jsx("div",{className:b,children:e.jsxRuntimeExports.jsx(c.Divider,{bg:"border-divider"})}),e.jsxRuntimeExports.jsx(a.Col,{as:"ul",gap:"x12",className:r.clsx("list-style-none ui-hpl-list",d),role:"list",children:n.map((s,N)=>{const x=s==null?void 0:s.icon;return e.jsxRuntimeExports.jsx("li",{className:r.clsx("ui-hpl-list-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(g,{href:s.href,className:r.clsx("text-decoration-none text-primary fs-custom base-row gap-x16 align-items-center pr-x8",s.active?"fw-bold":"fw-normal"),target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[x&&e.jsxRuntimeExports.jsx(x,{color:"primary",filled:s.active}),e.jsxRuntimeExports.jsx("span",{className:"ui-hpl-text",children:s.label}),s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},N)})}),e.jsxRuntimeExports.jsxs("button",{onClick:R,className:"ui-toggle-menu-button py-x24",children:[t?e.jsxRuntimeExports.jsx(w.CirlceLeftArrow,{}):e.jsxRuntimeExports.jsx(y.CircleRightArrow,{}),h]})]})};exports.HeaderPostLogin=q;
//# sourceMappingURL=index.cjs163.js.map