UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 2.52 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderPostLogin/HeaderPostLogin.css');const e=require("./index.cjs237.js"),o=require("./index.cjs9.js"),r=require("./index.cjs238.js"),x=require("./index.cjs72.js");;/* empty css */const b=require("./index.cjs176.js"),f=require("./index.cjs177.js"),l=require("./index.cjs61.js"),N=require("./index.cjs116.js"),w=({shortTitle:c,region:a,asLink:u="a",navigationItems:n,generalClassName:j,navItemsClassName:p,isExpanded:t=!0,expandTitle:m="Apri",toggleExpand:h})=>{const d=u,R=o.LOGOS.nazionale,g=o.LOGOS[a];return e.jsxRuntimeExports.jsxs("nav",{role:"navigation",className:r.clsx("ui-hpl-menu",j,t?"expanded":"closed"),style:{"--navbar-elements":n.length??0},children:[e.jsxRuntimeExports.jsxs(l.Col,{pt:"x80",px:t?"x40":"x20",gap:"x16",justifyContent:"center",className:"position-relative",children:[e.jsxRuntimeExports.jsxs(N.Row,{gap:t?"x24":"x12",alignItems:"center",justifyContent:"center",children:[e.jsxRuntimeExports.jsx(R,{width:t?27:20,height:t?44:37}),e.jsxRuntimeExports.jsx(x.Divider,{bg:"border-divider",direction:"vertical"}),e.jsxRuntimeExports.jsx(g,{width:t?44:37,height:t?44:37})]}),e.jsxRuntimeExports.jsx("h1",{className:"shortTitle fs-custom fw-normal text-slate-20 text-align-center",children:c})]}),e.jsxRuntimeExports.jsx("div",{className:t?"p-x40":"py-x40",children:e.jsxRuntimeExports.jsx(x.Divider,{bg:"border-divider"})}),e.jsxRuntimeExports.jsx(l.Col,{as:"ul",gap:"x12",className:r.clsx("list-style-none ui-hpl-list",p),role:"list",children:n.map((s,v)=>{const i=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(d,{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:[i&&e.jsxRuntimeExports.jsx(i,{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"})]})},v)})}),e.jsxRuntimeExports.jsxs("button",{onClick:h,className:"ui-toggle-menu-button py-x24",children:[t?e.jsxRuntimeExports.jsx(b.CirlceLeftArrow,{}):e.jsxRuntimeExports.jsx(f.CircleRightArrow,{}),m]})]})};exports.HeaderPostLogin=w; //# sourceMappingURL=index.cjs10.js.map