@oliasoft-open-source/react-ui-library 9.5.1-beta-1 → 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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { Color as Color_2 } from 'react-aria-components/ColorPicker';
3
- import { ComponentType } from 'react';
4
3
  import { Context } from 'react';
5
4
  import { CSSProperties } from 'react';
6
5
  import { default as default_2 } from 'react';
@@ -2475,8 +2474,8 @@ declare type ViewType = typeof SPLIT_VIEW | typeof UNIFIED_VIEW;
2475
2474
 
2476
2475
  export declare const widthOfCharacters: (characterCount: number) => string;
2477
2476
 
2478
- export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
2477
+ export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <T extends default_2.JSXElementConstructor<any>>(Component: T) => T;
2479
2478
 
2480
- export declare const withErrorBoundary: <P extends object>(Component: ComponentType<P>, options?: ErrorBoundaryOptions) => ComponentType<P>;
2479
+ export declare const withErrorBoundary: <T extends default_2.JSXElementConstructor<any>>(Component: T, options?: ErrorBoundaryOptions) => T;
2481
2480
 
2482
2481
  export { }
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
  };
@@ -10152,16 +10153,10 @@ var Um = (e = {}) => Hm({
10152
10153
  console.error("Error caught by boundary:", e, t);
10153
10154
  },
10154
10155
  children: e
10155
- }), hh = (e, t = {}) => {
10156
- var n, r;
10157
- let i = (n) => /* @__PURE__ */ S(mh, {
10158
- options: t,
10159
- children: /* @__PURE__ */ S(e, { ...n })
10160
- });
10161
- i.displayName = `WithErrorBoundary(${(n = (r = e.displayName) == null ? e.name : r) == null ? "Component" : n})`;
10162
- let a = c(i);
10163
- return a.displayName = i.displayName, a;
10164
- }, gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
10156
+ }), hh = (e, t = {}) => (n) => /* @__PURE__ */ S(mh, {
10157
+ options: t,
10158
+ children: /* @__PURE__ */ S(e, { ...n })
10159
+ }), gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
10165
10160
  jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10166
10161
  e === Ep.Translations ? jp(e, Op(t)) : jp(e, _h(t) ? t : { ...t });
10167
10162
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.1-beta-1",
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": {