UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

59 lines (58 loc) 1.94 kB
import { j as s } from "./index.es137.js"; import './components/ui/CardExemption/CardExemption.css';/* empty css */ import { clsx as t } from "./index.es139.js"; import { Row as n } from "./index.es9.js"; import { ArrowDown as x } from "./index.es76.js"; const w = ({ information: a = [], className: o = "", exemptionCode: d, isOpen: e, onToggle: i, hasBorder: l = !0, exemptionLabel: m = "" }) => /* @__PURE__ */ s.jsxs("div", { className: "rounded shadow w-full", children: [ /* @__PURE__ */ s.jsxs( "button", { className: t( l && "ui-has-border-bottom", "ui-btn-accordion ", o ), type: "button", onClick: i, children: [ /* @__PURE__ */ s.jsxs( n, { gap: "x24", p: "x24", justifyContent: "center", alignItems: "center", children: [ /* @__PURE__ */ s.jsx("h3", { className: "fw-semibold fs-5 md-fs-4 text-color-darker ", children: d }), /* @__PURE__ */ s.jsx("span", { className: "ui-divider" }), /* @__PURE__ */ s.jsx("p", { className: "fs-7 md-fs-6 text-muted fw-semibold", children: m }) ] } ), /* @__PURE__ */ s.jsx("div", { className: "p-x24", children: /* @__PURE__ */ s.jsx( x, { color: "primary", className: t("ui-arrow", { "ui-expanded": e }) } ) }) ] } ), e && /* @__PURE__ */ s.jsx("dl", { className: "ui-card-exemption p-x24", children: a.map(({ label: r, value: c }) => /* @__PURE__ */ s.jsxs("div", { children: [ /* @__PURE__ */ s.jsx("dt", { className: "fs-6 fw-bold text-slate-28", children: r }), /* @__PURE__ */ s.jsx("dd", { className: "fs-6 fw-regular text-slate-28", children: c }) ] }, r)) }) ] }); export { w as CardExemption }; //# sourceMappingURL=index.es63.js.map