@anoki/fse-marche-ui
Version:
FSE UI components library
55 lines (54 loc) • 1.73 kB
JavaScript
import { j as r } from "./index.es137.js";
import { Close as n, Title as m } from "./index.es181.js";
import { Button as s } from "./index.es25.js";
import './components/ui/BaseModal/BaseModalHeader/BaseModalHeader.css';/* empty css */
import { ArrowLeft as c } from "./index.es90.js";
import { Row as d } from "./index.es9.js";
import { Close as u } from "./index.es79.js";
const B = ({
labels: t = {
closeButton: "Chiudi",
backButton: "Indietro"
},
onCloseClick: o,
onBackClick: e,
showBackButton: i = !1,
children: a
}) => /* @__PURE__ */ r.jsxs("header", { className: "ui-base-modal-header bg-white br-t-x4", children: [
/* @__PURE__ */ r.jsxs(d, { alignItems: "center", justifyContent: "space-between", children: [
i && e && (t != null && t.backButton) ? /* @__PURE__ */ r.jsxs(
s,
{
size: "4",
textColor: "primary",
bg: "transparent",
"aria-label": "Torna indietro",
onClick: e,
children: [
/* @__PURE__ */ r.jsx(c, { className: "mr-x8" }),
t.backButton
]
}
) : null,
o && (t != null && t.closeButton) ? /* @__PURE__ */ r.jsx(n, { asChild: !0, children: /* @__PURE__ */ r.jsxs(
s,
{
size: "4",
textColor: "primary",
bg: "transparent",
"aria-label": "Chiudi modale",
onClick: o,
className: "ui-base-modal-close",
children: [
t.closeButton,
/* @__PURE__ */ r.jsx(u, { className: "ml-x8" })
]
}
) }) : null
] }),
/* @__PURE__ */ r.jsx(m, { className: "fs-3 text-slate-20 fw-bold", children: a })
] });
export {
B as BaseModalHeader
};
//# sourceMappingURL=index.es182.js.map