@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 1.34 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/WhatDoYouNeed/WhatDoYouNeed.css');const e=require("./index.cjs237.js"),x=require("./index.cjs239.js"),l=require("./index.cjs143.js");;/* empty css */const n=require("./index.cjs123.js"),m=require("./index.cjs61.js"),j=require("./index.cjs32.js"),h=({title:o,description:r,links:t,asLink:a="a",showBlueBackground:u=!1})=>e.jsxRuntimeExports.jsxs(n.Section,{className:`base-col ui-what-do-you-need-section ${u?"blue-background":""}`,children:[e.jsxRuntimeExports.jsx(m.Col,{className:"ui-what-do-you-need-content",children:e.jsxRuntimeExports.jsx(n.SectionHeading,{title:o,fs:"2",mdFs:"1",color:"slate-20",titleMarginBottom:"0",descriptionMarginBottom:"0",description:r?e.jsxRuntimeExports.jsx(l.RichText,{description:r}):void 0})}),e.jsxRuntimeExports.jsx("ul",{role:"list","aria-label":`Lista di ${o}`,className:x.clsx("list-style-none ui-what-do-you-need-links",t.length<4?"row":"grid"),children:t==null?void 0:t.map(({link:s,title:c,isNewTab:i},d)=>e.jsxRuntimeExports.jsx("li",{children:e.jsxRuntimeExports.jsx(j.Button,{asLink:a,href:s,size:"2",variant:d>0?"secondary":"primary",target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,children:c})},s))})]});exports.WhatDoYouNeed=h;
//# sourceMappingURL=index.cjs142.js.map