@anoki/fse-ui
Version:
FSE UI components library
37 lines (36 loc) • 1.1 kB
JavaScript
import { j as s } from "./index.es237.js";
import './sections/Insights/Insights.css';/* empty css */
import { CardPreview as a } from "./index.es52.js";
import { Section as l, SectionHeading as c } from "./index.es123.js";
const g = ({
title: i,
items: t = [],
colorTitle: r = "slate-20",
showBackgroundRectangle: e = !0
}) => /* @__PURE__ */ s.jsxs(l, { className: "ui-insights-section", children: [
e && /* @__PURE__ */ s.jsx("div", { className: "ui-insights-background-rectangle" }),
/* @__PURE__ */ s.jsx(
c,
{
className: "ui-insights-items-section-title",
title: i,
color: r,
titleMarginBottom: "",
fs: "3",
mdFs: "3"
}
),
/* @__PURE__ */ s.jsx(
"ul",
{
role: "list",
"aria-label": `Lista di ${i}`,
className: `list-style-none ui-insights-items-layout ${i ? "" : "mt-x56"}`,
children: t == null ? void 0 : t.map((n, o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(a, { ...n }) }, o))
}
)
] });
export {
g as Insights
};
//# sourceMappingURL=index.es149.js.map