@anoki/fse-ui
Version:
FSE UI components library
40 lines (39 loc) • 1.59 kB
JavaScript
import { j as s } from "./index.es180.js";
import './components/ui/Alert/Alert.css';/* empty css */
import { Divider as n } from "./index.es202.js";
import { Link as a } from "./index.es90.js";
import { Info as r } from "./index.es153.js";
import { ErrorExagon as l } from "./index.es157.js";
const u = {
DEFAULT: "default",
INFO: "info",
WARNING: "warning",
DANGER: "danger",
SUCCESS: "success"
}, h = {
default: /* @__PURE__ */ s.jsx(r, { color: "primary", width: 32, height: 32 }),
info: /* @__PURE__ */ s.jsx(r, { color: "primary", width: 32, height: 32 }),
warning: /* @__PURE__ */ s.jsx(r, { color: "warning", width: 32, height: 32 }),
danger: /* @__PURE__ */ s.jsx(l, { width: 32, height: 32 }),
success: /* @__PURE__ */ s.jsx(r, { color: "status-success", width: 32, height: 32 })
}, f = ({
title: e,
description: o,
subtitle: c,
link: t,
variant: i = "default"
}) => /* @__PURE__ */ s.jsx("blockquote", { className: `styled-alert alert-${i}`, children: /* @__PURE__ */ s.jsxs("div", { className: "container", children: [
h[i],
/* @__PURE__ */ s.jsxs("div", { className: "right-container", children: [
/* @__PURE__ */ s.jsx("h4", { className: "title", children: e }),
/* @__PURE__ */ s.jsx("p", { className: "subtitle", children: c }),
/* @__PURE__ */ s.jsx(n, { bg: "blue-30" }),
/* @__PURE__ */ s.jsx("p", { className: "description", children: o }),
/* @__PURE__ */ s.jsx(a, { title: t.title, src: t.link })
] })
] }) });
export {
f as Alert,
u as AlertVariantEnum
};
//# sourceMappingURL=index.es88.js.map