UNPKG

@uva-glass/component-library

Version:

React components UvA

40 lines (39 loc) 1.18 kB
import { jsxs as t, jsx as l } from "react/jsx-runtime"; import { c as o } from "../../clsx-OuTLNxxd.js"; import { SectionNotification as g } from "../SectionNotification/SectionNotification.js"; import '../../assets/Card.css';const i = "_card_19162_1", r = { card: i, "card--regular": "_card--regular_19162_7", "card--large": "_card--large_19162_8", "card--small": "_card--small_19162_13", "card-header": "_card-header_19162_26", "card--high-contrast": "_card--high-contrast_19162_33", "card--align-center": "_card--align-center_19162_37" }, u = ({ children: d, header: c, highContrast: s, notification: e, padding: a = "regular", alignCenter: _ = !1 }) => /* @__PURE__ */ t( "div", { className: o(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(g, { children: e }), c && /* @__PURE__ */ l("div", { className: r["card-header"], children: c }), d ] } ); export { u as Card }; //# sourceMappingURL=Card.js.map