@hybr1d-tech/charizard 1.1.108 → 1.1.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hybr1d-ui.js CHANGED
@@ -9995,8 +9995,8 @@ function u7({ paginationConfig: e }) {
9995
9995
  L4.machine({
9996
9996
  id: "zap-charizard-table-pagination",
9997
9997
  count: (c == null ? void 0 : c.total_items) || 0,
9998
- onPageChange(m) {
9999
- e == null || e.setPage(m.page - 1);
9998
+ onPageChange(v) {
9999
+ e == null || e.setPage(v.page - 1);
10000
10000
  },
10001
10001
  pageSize: e.limit
10002
10002
  })
@@ -10006,21 +10006,18 @@ function u7({ paginationConfig: e }) {
10006
10006
  }, [e.page]), g.useEffect(() => {
10007
10007
  r.setCount((c == null ? void 0 : c.total_items) || 0);
10008
10008
  }, [c == null ? void 0 : c.total_items, n]), g.useEffect(() => {
10009
- const m = Math.ceil(((c == null ? void 0 : c.total_items) || 0) / e.limit);
10010
- e.page + 1 > m && r.setPage(1), r.setPageSize(e.limit);
10009
+ const v = Math.ceil(((c == null ? void 0 : c.total_items) || 0) / e.limit);
10010
+ e.page + 1 > v && r.setPage(1), r.setPageSize(e.limit);
10011
10011
  }, [n, c == null ? void 0 : c.total_items]);
10012
- const i = c != null && c.page_no ? c.page_no : 0, o = i * ((c == null ? void 0 : c.items_on_page) || 0) + 1, u = Math.min(
10013
- i * ((c == null ? void 0 : c.items_on_page) || 0) + n,
10014
- (c == null ? void 0 : c.total_items) || 0
10015
- );
10012
+ const i = (c == null ? void 0 : c.page_no) ?? 0, o = (c == null ? void 0 : c.total_items) ?? 0, u = (c == null ? void 0 : c.items_on_page) ?? n, m = i * n + 1, d = Math.min(m + u - 1, o);
10016
10013
  return /* @__PURE__ */ a.jsxs("div", { className: O0.box, children: [
10017
10014
  /* @__PURE__ */ a.jsx(yh, { setLimit: l, limit: n, itemsOnPage: c == null ? void 0 : c.items_on_page }),
10018
- !!(c != null && c.total_items) && /* @__PURE__ */ a.jsxs("p", { className: b(O0.meta, "zap-subcontent-medium"), children: [
10019
- o,
10015
+ !!o && /* @__PURE__ */ a.jsxs("p", { className: b(O0.meta, "zap-subcontent-medium"), children: [
10016
+ m,
10020
10017
  " - ",
10021
- u,
10018
+ d,
10022
10019
  " out of ",
10023
- c == null ? void 0 : c.total_items
10020
+ o
10024
10021
  ] }),
10025
10022
  r.totalPages > 1 && /* @__PURE__ */ a.jsx("nav", { ...r.getRootProps(), children: /* @__PURE__ */ a.jsxs("div", { className: O0.pageBoxes, children: [
10026
10023
  /* @__PURE__ */ a.jsx(
@@ -10031,15 +10028,15 @@ function u7({ paginationConfig: e }) {
10031
10028
  children: /* @__PURE__ */ a.jsx(B, { path: x4, svgClassName: O0.arrowIcon })
10032
10029
  }
10033
10030
  ),
10034
- r.pages.map((m, d) => m.type === "page" ? /* @__PURE__ */ a.jsx(
10031
+ r.pages.map((v, h) => v.type === "page" ? /* @__PURE__ */ a.jsx(
10035
10032
  "div",
10036
10033
  {
10037
- ...r.getItemProps(m),
10034
+ ...r.getItemProps(v),
10038
10035
  className: b(O0.pageBox, "zap-button-small"),
10039
- children: m.value
10036
+ children: v.value
10040
10037
  },
10041
- m.value
10042
- ) : /* @__PURE__ */ a.jsx(g.Fragment, { children: /* @__PURE__ */ a.jsx(wh, { paginationApi: r, i: d }) }, `ellipsis-${d}`)),
10038
+ v.value
10039
+ ) : /* @__PURE__ */ a.jsx(g.Fragment, { children: /* @__PURE__ */ a.jsx(wh, { paginationApi: r, i: h }) }, `ellipsis-${h}`)),
10043
10040
  /* @__PURE__ */ a.jsx(
10044
10041
  "div",
10045
10042
  {