@anoki/fse-ui
Version:
FSE UI components library
31 lines (30 loc) • 1.12 kB
JavaScript
import { j as s } from "./index.es244.js";
import './components/ui/Callout/Callout.css';/* empty css */
import { ErrorExagon as i } from "./index.es204.js";
import { Info as r } from "./index.es200.js";
var l = /* @__PURE__ */ ((o) => (o.INFO = "info", o.WARNING = "warning", o.DANGER = "danger", o.SUCCESS = "success", o))(l || {});
const n = {
info: /* @__PURE__ */ s.jsx(r, { color: "primary" }),
warning: /* @__PURE__ */ s.jsx(r, { color: "warning" }),
danger: /* @__PURE__ */ s.jsx(i, {}),
success: /* @__PURE__ */ s.jsx(r, { color: "status-success" })
};
function j({
title: o,
description: e,
variant: c = "info"
/* INFO */
}) {
return /* @__PURE__ */ s.jsxs("div", { className: `callout callout-${c} p-x40`, children: [
/* @__PURE__ */ s.jsxs("div", { className: "callout-header", children: [
n[c],
/* @__PURE__ */ s.jsx("span", { className: "callout-title", children: o })
] }),
/* @__PURE__ */ s.jsx("div", { className: "callout-body", children: e })
] });
}
export {
j as Callout,
l as CalloutVariantEnum
};
//# sourceMappingURL=index.es95.js.map