UNPKG

@anoki/fse-ui

Version:

FSE UI components library

83 lines (82 loc) 2.24 kB
import { j as i } from "./index.es237.js"; import { clsx as s } from "./index.es239.js"; import { RichText as C } from "./index.es143.js"; import { TableAlignment as E } from "./index.es159.js"; import './sections/TableMobileList/TableMobileList.css';/* empty css */ import { TableMobile as F } from "./index.es130.js"; import { Section as L, SectionHeading as R } from "./index.es123.js"; import { Col as S } from "./index.es61.js"; const G = ({ title: e, description: t, tableJson: o, fontSize: m = "2", mdFontSize: r = "2", classNameTitle: l, additionalClass: c, variantClassTable: a = E.LEFT, pagination: n = !0, resultsPerPage: p = 5, sortConfig: x, onSortChange: u, totalResults: d, initialCurrentPage: f, serverSidePagination: b, totalItems: j, hasNextPage: T, hasPreviousPage: g, onNextPage: M, onPreviousPage: N, onPageChange: h, setCurrentPage: w, children: B }) => /* @__PURE__ */ i.jsxs( L, { className: s("base-col ui-table-mobile-list-section", c), children: [ /* @__PURE__ */ i.jsxs(S, { className: "ui-table-mobile-list-content", children: [ /* @__PURE__ */ i.jsx( R, { title: e, fs: m, mdFs: r, className: l, descriptionClassName: s("text-slate-28", a), color: "blue-48", description: t ? /* @__PURE__ */ i.jsx(C, { description: t }) : void 0, descriptionMarginBottom: "0", titleMarginBottom: "0" } ), o && o.columns && o.rows && /* @__PURE__ */ i.jsx( F, { data: o.rows, columns: o.columns, pagination: n, resultsPerPage: p, sortConfig: x, onSortChange: u, totalResults: d, initialCurrentPage: f, serverSidePagination: b, totalItems: j, hasNextPage: T, hasPreviousPage: g, onNextPage: M, onPreviousPage: N, onPageChange: h, setCurrentPage: w } ) ] }), B ] } ); export { G as TableMobileList }; //# sourceMappingURL=index.es160.js.map