@anoki/fse-ui
Version:
FSE UI components library
51 lines (50 loc) • 1.39 kB
JavaScript
import { j as r } from "./index.es244.js";
import './sections/TableList/TableList.css';/* empty css */
import { HTML as f } from "./index.es146.js";
import n from "react";
import { clsx as o } from "./index.es246.js";
import { Section as s } from "./index.es54.js";
import { Col as p } from "./index.es10.js";
var u = /* @__PURE__ */ ((t) => (t.LEFT = "text-left", t.CENTER = "text-center", t.RIGHT = "text-right", t))(u || {});
const b = ({
title: t,
description: e,
fontSize: l = "2",
mdFontSize: m = "2",
classNameTitle: i,
additionalClass: a,
variantClassTable: c = "text-left",
children: x
}) => /* @__PURE__ */ r.jsxs(
s,
{
className: o("base-col ui-table-list-section", a),
children: [
/* @__PURE__ */ r.jsxs(p, { className: "ui-table-list-content", children: [
t && /* @__PURE__ */ r.jsx(
s.Title,
{
fs: l,
mdFs: m,
className: i,
color: "blue-48",
children: t
}
),
e && /* @__PURE__ */ r.jsx(
s.Description,
{
className: o("text-slate-28", c),
children: typeof e == "string" && n.isValidElement(e) ? e : f(e.toString(), "div")
}
)
] }),
x
]
}
);
export {
u as TableAlignment,
b as TableList
};
//# sourceMappingURL=index.es155.js.map