UNPKG

@anoki/fse-ui

Version:

FSE UI components library

32 lines (31 loc) 1.09 kB
import { j as e } from "./index.es278.js"; import './components/ui/EditorialWidget/EditorialWidget.css';/* empty css */ import { clsx as c } from "./index.es280.js"; import { Section as r } from "./index.es229.js"; import { Col as m } from "./index.es82.js"; var a = /* @__PURE__ */ ((s) => (s.LIGHT = "light", s.EVIDENCE = "evidence", s.DEFAULT = "default", s))(a || {}); function j({ title: s, children: o, subtitle: t, variant: l = "default", maxWidth: i }) { return /* @__PURE__ */ e.jsx( r, { className: c("editorial-widget", l), style: i ? { maxWidth: i } : void 0, children: /* @__PURE__ */ e.jsxs(m, { className: "", children: [ s && /* @__PURE__ */ e.jsx(r.Title, { fs: "3", className: "title", mdFs: "3", children: s }), t && /* @__PURE__ */ e.jsx("div", { className: "subtitle", children: t }), o && /* @__PURE__ */ e.jsx(r.Description, { color: "transparent", children: o }) ] }) } ); } export { j as EditorialWidget, a as EditorialWidgetVariantEnum }; //# sourceMappingURL=index.es120.js.map