@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 1.2 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs237.js"),u=require("./index.cjs167.js"),a=require("./index.cjs61.js"),n=require("./index.cjs116.js"),d=require("./index.cjs105.js"),m=require("./index.cjs134.js"),p=({title:r,mainTag:s={label:"Tutto",onClick:()=>{},selected:!0},tags:o,showAllHref:i,showAllLabel:c="Scopri tutti tags",onTagClick:l})=>e.jsxRuntimeExports.jsxs(a.Col,{gap:"x28",children:[e.jsxRuntimeExports.jsxs(n.Row,{alignItems:"center",justifyContent:"space-between",children:[r&&e.jsxRuntimeExports.jsx("h2",{className:"title text-slate-20 fs-custom fw-bold",children:r}),e.jsxRuntimeExports.jsx(d.Link,{transform:"uppercase",decoration:"fw-semibold text-primary fs-8 mr-x8 text-decoration-none",title:c,src:i??"",icon:u.ArrowRight})]}),e.jsxRuntimeExports.jsx(n.Row,{alignItems:"center",className:"overflow-auto w-auto",gap:"x16",flexWrap:"wrap",children:[{name:s.label,selected:s.selected,onClick:s.onClick},...o].map((t,x)=>e.jsxRuntimeExports.jsx(m.Tag,{mode:"filter",label:t.name??"",onClick:(t==null?void 0:t.onClick)??l,selected:t.selected},x))})]});exports.TagsSection=p;
//# sourceMappingURL=index.cjs157.js.map