@oliasoft-open-source/react-ui-library 9.5.0 → 9.5.1-beta-2

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8476,7 +8476,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8476
8476
  });
8477
8477
  return c;
8478
8478
  }, Yp = (e) => e.status === "deleted" ? Kp(e.row, Hp) : e.status === "added" ? Kp(e.row, Up) : qp(e.row, e.compareRow), Xp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
8479
- let i = h(() => Jp(e.rows, t), [e.rows, t]), a = l(({ row: e, rowIndex: t }) => {
8479
+ let i = h(() => Jp(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
8480
+ if (!a) return i.map((e) => e.row);
8481
+ }, [a, i]), s = l(({ row: e, rowIndex: t }) => {
8480
8482
  let r = i[t], a = r ? Yp(r) : e;
8481
8483
  return n ? n({
8482
8484
  row: a,
@@ -8485,13 +8487,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
8485
8487
  }, [i, n]);
8486
8488
  return /* @__PURE__ */ S(nu, {
8487
8489
  ...r,
8488
- beforeRenderRow: a,
8490
+ beforeRenderRow: s,
8489
8491
  table: {
8490
8492
  ...e,
8491
- rows: void 0,
8492
- rowCount: i.length,
8493
- striped: !1,
8494
- infiniteScroll: !0
8493
+ rows: o,
8494
+ rowCount: a ? i.length : void 0,
8495
+ striped: !1
8495
8496
  }
8496
8497
  });
8497
8498
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.0",
3
+ "version": "9.5.1-beta-2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {