@hybr1d-tech/charizard 1.1.114 → 1.1.115

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
@@ -9930,32 +9930,23 @@ const Jm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
9930
9930
  paginationMenu: Ih,
9931
9931
  meta: zh
9932
9932
  };
9933
- function yh({
9934
- setLimit: e,
9935
- limit: l,
9936
- itemsOnPage: n,
9937
- totalItems: c,
9938
- page: t
9939
- }) {
9940
- const s = r2(null), r = (m) => {
9941
- var d;
9942
- e(m), (d = s.current) == null || d.blur();
9943
- }, i = [
9944
- { label: "25", value: "25", onClick: () => r(25) },
9945
- { label: "50", value: "50", onClick: () => r(50) },
9946
- { label: "75", value: "75", onClick: () => r(75) },
9947
- { label: "100", value: "100", onClick: () => r(100) }
9933
+ function yh({ setLimit: e, limit: l, itemsOnPage: n, totalItems: c }) {
9934
+ const t = r2(null), s = (i) => {
9935
+ var o;
9936
+ e(i), (o = t.current) == null || o.blur();
9937
+ }, r = [
9938
+ { label: "25", value: "25", onClick: () => s(25) },
9939
+ { label: "50", value: "50", onClick: () => s(50) },
9940
+ { label: "75", value: "75", onClick: () => s(75) },
9941
+ { label: "100", value: "100", onClick: () => s(100) }
9948
9942
  ];
9949
- if (!c || !n || c === 0 || n === 0)
9950
- return /* @__PURE__ */ a.jsx("div", { className: O0.limitBox });
9951
- const o = +i[0].value, u = c - n * t;
9952
- return c < o || n && n < o || l >= c || u && l >= u ? /* @__PURE__ */ a.jsx("div", { className: O0.limitBox }) : /* @__PURE__ */ a.jsxs("div", { className: O0.limitBox, children: [
9943
+ return !c || !n || c === 0 || n === 0 ? /* @__PURE__ */ a.jsx("div", { className: O0.limitBox }) : n < l ? /* @__PURE__ */ a.jsx("div", { className: O0.limitBox }) : /* @__PURE__ */ a.jsxs("div", { className: O0.limitBox, children: [
9953
9944
  /* @__PURE__ */ a.jsx("p", { className: "zap-subcontent-medium", children: "Rows per page" }),
9954
9945
  /* @__PURE__ */ a.jsx(
9955
9946
  o0.GroupAction,
9956
9947
  {
9957
- ref: s,
9958
- menuItems: i,
9948
+ ref: t,
9949
+ menuItems: r,
9959
9950
  variant: W.TERTIARY,
9960
9951
  size: t0.SMALL,
9961
9952
  customStyles: {
@@ -10034,8 +10025,7 @@ function u7({ paginationConfig: e }) {
10034
10025
  setLimit: l,
10035
10026
  limit: n,
10036
10027
  itemsOnPage: c == null ? void 0 : c.items_on_page,
10037
- totalItems: c == null ? void 0 : c.total_items,
10038
- page: e.page
10028
+ totalItems: c == null ? void 0 : c.total_items
10039
10029
  }
10040
10030
  ),
10041
10031
  !!o && /* @__PURE__ */ a.jsxs("p", { className: b(O0.meta, "zap-subcontent-medium"), children: [