UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

3 lines (2 loc) 1.53 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardExemption/CardExemption.css');const s=require("./index.cjs137.js");;/* empty css */const r=require("./index.cjs139.js"),l=require("./index.cjs9.js"),m=require("./index.cjs76.js"),u=({information:x=[],className:i="",exemptionCode:n,isOpen:e,onToggle:o,hasBorder:d=!0,exemptionLabel:a=""})=>s.jsxRuntimeExports.jsxs("div",{className:"rounded shadow w-full",children:[s.jsxRuntimeExports.jsxs("button",{className:r.clsx(d&&"ui-has-border-bottom","ui-btn-accordion ",i),type:"button",onClick:o,children:[s.jsxRuntimeExports.jsxs(l.Row,{gap:"x24",p:"x24",justifyContent:"center",alignItems:"center",children:[s.jsxRuntimeExports.jsx("h3",{className:"fw-semibold fs-5 md-fs-4 text-color-darker ",children:n}),s.jsxRuntimeExports.jsx("span",{className:"ui-divider"}),s.jsxRuntimeExports.jsx("p",{className:"fs-7 md-fs-6 text-muted fw-semibold",children:a})]}),s.jsxRuntimeExports.jsx("div",{className:"p-x24",children:s.jsxRuntimeExports.jsx(m.ArrowDown,{color:"primary",className:r.clsx("ui-arrow",{"ui-expanded":e})})})]}),e&&s.jsxRuntimeExports.jsx("dl",{className:"ui-card-exemption p-x24",children:x.map(({label:t,value:c})=>s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("dt",{className:"fs-6 fw-bold text-slate-28",children:t}),s.jsxRuntimeExports.jsx("dd",{className:"fs-6 fw-regular text-slate-28",children:c})]},t))})]});exports.CardExemption=u; //# sourceMappingURL=index.cjs63.js.map