@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.cjs278.js"),u=require("./index.cjs22.js"),a=require("./index.cjs82.js"),o=require("./index.cjs219.js"),d=require("./index.cjs180.js"),m=require("./index.cjs257.js"),p=({title:n,mainTag:s={label:"Tutto",onClick:()=>{},selected:!0},tags:i,showAllHref:r,showAllLabel:c="Scopri tutti tags",onTagClick:l})=>e.jsxRuntimeExports.jsxs(a.Col,{gap:"x28",children:[e.jsxRuntimeExports.jsxs(o.Row,{alignItems:"center",justifyContent:"space-between",children:[n&&e.jsxRuntimeExports.jsx("h2",{className:"title text-slate-20 fs-custom fw-bold",children:n}),r&&e.jsxRuntimeExports.jsx(d.Link,{transform:"uppercase",decoration:"fw-semibold text-primary fs-8 mr-x8 text-decoration-none",title:c,src:r,icon:u.ArrowRight})]}),e.jsxRuntimeExports.jsx(o.Row,{alignItems:"center",className:"overflow-auto w-auto",gap:"x16",flexWrap:"wrap",children:[{name:s.label,selected:s.selected,onClick:s.onClick},...i].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.cjs260.js.map