UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.19 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs244.js"),u=require("./index.cjs174.js"),a=require("./index.cjs106.js"),d=require("./index.cjs10.js"),r=require("./index.cjs9.js"),m=require("./index.cjs99.js"),p=({title:n,mainTag:s={label:"Tutto",onClick:()=>{},selected:!0},tags:o,showAllHref:i,showAllLabel:c="Scopri tutti tags",onTagClick:l})=>e.jsxRuntimeExports.jsxs(d.Col,{gap:"x28",children:[e.jsxRuntimeExports.jsxs(r.Row,{alignItems:"center",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx("h2",{className:"title text-slate-20 fs-custom fw-bold",children:n}),e.jsxRuntimeExports.jsx(m.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(r.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(a.Tag,{mode:"filter",label:t.name??"",onClick:(t==null?void 0:t.onClick)??l,selected:t.selected},x))})]});exports.TagsSection=p; //# sourceMappingURL=index.cjs153.js.map