UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 2.18 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderPostLogin/HeaderPostLogin.css');const e=require("./index.cjs180.js"),r=require("./index.cjs24.js"),n=require("./index.cjs182.js"),o=require("./index.cjs202.js");;/* empty css */const a=require("./index.cjs10.js"),g=require("./index.cjs9.js"),v=({shortTitle:l,region:x,asLink:c="a",navigationItems:t,generalClassName:u,navItemsClassName:d})=>{const p=c,j=r.LOGOS.nazionale,m=r.LOGOS[x];return e.jsxRuntimeExports.jsxs("nav",{"aria-label":"Menu di navigazione",className:n.clsx("ui-hpl-menu",u),style:{"--navbar-elements":t.length??0},children:[e.jsxRuntimeExports.jsxs(a.Col,{pt:"x80",px:"x40",gap:"x16",justifyContent:"center",className:"position-relative",children:[e.jsxRuntimeExports.jsxs(g.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("h3",{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(a.Col,{as:"ul",gap:"x12",className:n.clsx("list-style-none ui-hpl-list",d),role:"list",children:t.map((s,h)=>{const i=s==null?void 0:s.icon;return e.jsxRuntimeExports.jsx("li",{className:n.clsx("ui-hpl-list-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(p,{href:s.href,"aria-label":`Vai alla pagina ${s.label}`,className:n.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"})]})},h)})})]})};exports.HeaderPostLogin=v; //# sourceMappingURL=index.cjs18.js.map