UNPKG

@anoki/fse-ui

Version:

FSE UI components library

87 lines (86 loc) 2.27 kB
import { j as l } from "./index.es244.js"; import './sections/TableMobileList/TableMobileList.css';/* empty css */ import { HTML as F } from "./index.es146.js"; import R from "react"; import { clsx as t } from "./index.es246.js"; import { TableAlignment as S } from "./index.es155.js"; import { TableMobile as _ } from "./index.es74.js"; import { Section as r } from "./index.es54.js"; import { Col as v } from "./index.es10.js"; const B = ({ title: s, description: o, tableJson: m, fontSize: e = "2", mdFontSize: i = "2", classNameTitle: a, additionalClass: c, variantClassTable: n = S.LEFT, pagination: f = !0, resultsPerPage: u = 5, sortConfig: x, onSortChange: p, totalResults: b, initialCurrentPage: j, serverSidePagination: T, totalItems: d, hasNextPage: h, hasPreviousPage: N, onNextPage: g, onPreviousPage: E, onPageChange: L, setCurrentPage: M, children: w }) => /* @__PURE__ */ l.jsxs( r, { className: t("base-col ui-table-mobile-list-section", c), children: [ /* @__PURE__ */ l.jsxs(v, { className: "ui-table-mobile-list-content", children: [ s && /* @__PURE__ */ l.jsx( r.Title, { fs: e, mdFs: i, className: a, color: "blue-48", children: s } ), o && /* @__PURE__ */ l.jsx( r.Description, { className: t("text-slate-28", n), children: typeof o == "string" && R.isValidElement(o) ? o : F(o.toString(), "div") } ), m && m.columns && m.rows && /* @__PURE__ */ l.jsx( _, { data: m.rows, columns: m.columns, pagination: f, resultsPerPage: u, sortConfig: x, onSortChange: p, totalResults: b, initialCurrentPage: j, serverSidePagination: T, totalItems: d, hasNextPage: h, hasPreviousPage: N, onNextPage: g, onPreviousPage: E, onPageChange: L, setCurrentPage: M } ) ] }), w ] } ); export { B as TableMobileList }; //# sourceMappingURL=index.es156.js.map