UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

3 lines (2 loc) 1.75 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/AggregationItems/AggregationItems.css');const e=require("./index.cjs137.js"),r=require("./index.cjs46.js"),d=require("./index.cjs139.js");;/* empty css */const j=require("./index.cjs26.js"),p=require("./index.cjs10.js"),y=require("./index.cjs35.js"),o={HomeServices:"HomeServices",ServicesByEntityType:"ServicesByEntityType"},S=({title:i,description:c,goToLabel:t,href:a,asLink:x="a",items:n,layout:l=o.HomeServices,className:u})=>{const g=l===o.HomeServices?"ui-aggregation-items-home-services":"ui-aggregation-items-services-by-entity-type";return e.jsxRuntimeExports.jsxs(r.Section,{className:d.clsx("base-col ui-aggregation-items-section",u),children:[e.jsxRuntimeExports.jsxs(p.Col,{className:"ui-aggregation-items-section-content",children:[e.jsxRuntimeExports.jsxs("div",{className:"ui-aggregation-items-section-title",children:[e.jsxRuntimeExports.jsx(r.Section.Title,{fs:"2",children:i}),t&&a&&e.jsxRuntimeExports.jsx(y.ArrowLink,{href:a,asLink:x,fs:"7",children:t.toUpperCase()})]}),c&&e.jsxRuntimeExports.jsx(r.Section.Description,{children:c})]}),e.jsxRuntimeExports.jsx("ul",{role:"list","aria-label":`Lista di ${i}`,className:`list-style-none ${g}`,children:n==null?void 0:n.map(s=>e.jsxRuntimeExports.jsx("li",{children:e.jsxRuntimeExports.jsx(j.CardCategory,{title:s==null?void 0:s.name,description:s==null?void 0:s.description,image:s==null?void 0:s.image,href:(s==null?void 0:s.link)||(s==null?void 0:s.externalLink),showIcon:s==null?void 0:s.externalLink,asLink:x,isExternal:s==null?void 0:s.externalLink},s._id)},s._id))})]})};exports.AggregationItems=S;exports.LAYOUTS=o; //# sourceMappingURL=index.cjs72.js.map