@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 2.13 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderPostLogin/HeaderPostLogin.css');const e=require("./index.cjs244.js"),i=require("./index.cjs27.js"),t=require("./index.cjs246.js"),o=require("./index.cjs137.js");;/* empty css */const x=require("./index.cjs10.js"),v=require("./index.cjs9.js"),g=({shortTitle:l,region:a,asLink:c="a",navigationItems:n,generalClassName:u,navItemsClassName:d})=>{const p=c,j=i.LOGOS.nazionale,m=i.LOGOS[a];return e.jsxRuntimeExports.jsxs("nav",{role:"navigation",className:t.clsx("ui-hpl-menu",u),style:{"--navbar-elements":n.length??0},children:[e.jsxRuntimeExports.jsxs(x.Col,{pt:"x80",px:"x40",gap:"x16",justifyContent:"center",className:"position-relative",children:[e.jsxRuntimeExports.jsxs(v.Row,{gap:"x24",alignItems:"center",justifyContent:"center",children:[e.jsxRuntimeExports.jsx(j,{width:27,height:44}),e.jsxRuntimeExports.jsx(o.Divider,{bg:"border-divider",direction:"vertical"}),e.jsxRuntimeExports.jsx(m,{width:44,height:44})]}),e.jsxRuntimeExports.jsx("h1",{className:"fs-custom fw-normal text-slate-20 text-align-center",children:l})]}),e.jsxRuntimeExports.jsx("div",{className:"p-x40",children:e.jsxRuntimeExports.jsx(o.Divider,{bg:"border-divider"})}),e.jsxRuntimeExports.jsx(x.Col,{as:"ul",gap:"x12",className:t.clsx("list-style-none ui-hpl-list",d),role:"list",children:n.map((s,h)=>{const r=s==null?void 0:s.icon;return e.jsxRuntimeExports.jsx("li",{className:t.clsx("ui-hpl-list-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(p,{href:s.href,className:t.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:[r&&e.jsxRuntimeExports.jsx(r,{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"})]})},h)})})]})};exports.HeaderPostLogin=g;
//# sourceMappingURL=index.cjs18.js.map