@uva-glass/component-library
Version:
React components UvA
40 lines (39 loc) • 1.18 kB
JavaScript
import { jsxs as m, jsx as l } from "react/jsx-runtime";
import { c as t } from "../../clsx-OuTLNxxd.js";
import { SectionNotification as o } from "../SectionNotification/SectionNotification.js";
import '../../assets/Card.css';const g = "_card_1m1jk_1", r = {
card: g,
"card--regular": "_card--regular_1m1jk_7",
"card--large": "_card--large_1m1jk_8",
"card--small": "_card--small_1m1jk_13",
"card-header": "_card-header_1m1jk_26",
"card--high-contrast": "_card--high-contrast_1m1jk_33",
"card--align-center": "_card--align-center_1m1jk_37"
}, j = ({
children: d,
header: c,
highContrast: s,
notification: e,
padding: a = "regular",
alignCenter: _ = !1
}) => /* @__PURE__ */ m(
"div",
{
className: t(r.card, {
[r["card--high-contrast"]]: s,
[r["card--regular"]]: a === "regular",
[r["card--small"]]: a === "small",
[r["card--large"]]: a === "large",
[r["card--align-center"]]: _
}),
children: [
e && /* @__PURE__ */ l(o, { children: e }),
c && /* @__PURE__ */ l("div", { className: r["card-header"], children: c }),
d
]
}
);
export {
j as Card
};
//# sourceMappingURL=Card.js.map