@anoki/fse-ui
Version:
FSE UI components library
48 lines (47 loc) • 1.86 kB
JavaScript
import { j as s } from "./index.es180.js";
import { Avatar as x } from "./index.es56.js";
import './components/ui/AuthorBlock/AuthorBlock.css';/* empty css */
import { Row as n } from "./index.es9.js";
const p = ({
titleTag: i = "h3",
authorName: l,
avatar: e,
avatarSize: c = "3",
publishedLabel: o = "Pubblicato il",
publishedDate: m = "-",
readingTimeLabel: r = "Tempo di lettura",
readingTimeValue: d = "0",
readingMinuteLabel: t = "minuti"
}) => /* @__PURE__ */ s.jsx("article", { className: "bg-white br-x4 ui-card-doctor", children: /* @__PURE__ */ s.jsxs(n, { as: "header", gap: "x16", className: "align-items-center", children: [
e && /* @__PURE__ */ s.jsx(
x,
{
textColor: (e == null ? void 0 : e.textColor) ?? "slate-20",
bg: (e == null ? void 0 : e.bg) ?? "lightblue-a01",
initials: (e == null ? void 0 : e.initials) ?? "",
className: "ui-card-doctor-avatar",
size: c
}
),
/* @__PURE__ */ s.jsxs("div", { className: "text-slate-28", children: [
/* @__PURE__ */ s.jsx(i, { className: "fs-5 md-fs-custom fw-semibold ", children: l }),
/* @__PURE__ */ s.jsxs("div", { className: "base-row gap-x8 fs-6 text-slate-28", children: [
/* @__PURE__ */ s.jsxs("div", { className: "item-block", children: [
/* @__PURE__ */ s.jsx("p", { className: "fw-regular", children: o }),
/* @__PURE__ */ s.jsx("p", { className: "fw-bold", children: m })
] }),
/* @__PURE__ */ s.jsxs("div", { className: "item-block ui-author-divider", children: [
/* @__PURE__ */ s.jsx("p", { className: "fw-regular ", children: r }),
/* @__PURE__ */ s.jsxs("p", { className: "fw-bold", children: [
d,
" ",
t
] })
] })
] })
] })
] }) });
export {
p as AuthorBlock
};
//# sourceMappingURL=index.es93.js.map