@oliasoft-open-source/react-ui-library 4.15.7 → 4.15.9

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
@@ -437,6 +437,7 @@ declare interface IFooterProps {
437
437
  pagination: IPagination;
438
438
  actions?: IAction[];
439
439
  content?: ReactNode;
440
+ testId?: string;
440
441
  }
441
442
 
442
443
  export declare interface IFormRowProps {
package/dist/index.js CHANGED
@@ -55416,7 +55416,8 @@ const Footer = ({
55416
55416
  colSpan,
55417
55417
  pagination,
55418
55418
  actions: actions2,
55419
- content: content2
55419
+ content: content2,
55420
+ testId
55420
55421
  }) => {
55421
55422
  const hasActions2 = actions2 && actions2.length;
55422
55423
  const hasContent = content2 != null;
@@ -55430,13 +55431,20 @@ const Footer = ({
55430
55431
  return false;
55431
55432
  };
55432
55433
  const showFooter = hasActions2 || hasContent || hasPagination();
55433
- return showFooter ? /* @__PURE__ */ jsxs("div", { className: styles$9.footer, children: [
55434
- hasContent ? /* @__PURE__ */ jsx("div", { className: styles$9.section, children: /* @__PURE__ */ jsx("div", { children: content2 }) }) : null,
55435
- hasActions2 || hasPagination() ? /* @__PURE__ */ jsxs("div", { className: styles$9.section, children: [
55436
- hasPagination() ? /* @__PURE__ */ jsx(Pagination, { pagination }) : /* @__PURE__ */ jsx("div", {}),
55437
- hasActions2 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
55438
- ] }) : null
55439
- ] }) : null;
55434
+ return showFooter ? /* @__PURE__ */ jsxs(
55435
+ "div",
55436
+ {
55437
+ className: styles$9.footer,
55438
+ "data-testid": `${testId ?? "pagination"}-footer`,
55439
+ children: [
55440
+ hasContent ? /* @__PURE__ */ jsx("div", { className: styles$9.section, children: /* @__PURE__ */ jsx("div", { children: content2 }) }) : null,
55441
+ hasActions2 || hasPagination() ? /* @__PURE__ */ jsxs("div", { className: styles$9.section, children: [
55442
+ hasPagination() ? /* @__PURE__ */ jsx(Pagination, { pagination }) : /* @__PURE__ */ jsx("div", {}),
55443
+ hasActions2 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
55444
+ ] }) : null
55445
+ ]
55446
+ }
55447
+ ) : null;
55440
55448
  };
55441
55449
  const getMaxCellCount = (rows) => {
55442
55450
  const count2 = Math.max(
@@ -56508,7 +56516,8 @@ const Table = (props) => {
56508
56516
  {
56509
56517
  pagination: footer2.pagination,
56510
56518
  actions: footer2.actions,
56511
- content: footer2.content
56519
+ content: footer2.content,
56520
+ testId
56512
56521
  }
56513
56522
  )
56514
56523
  ] }) : /* @__PURE__ */ jsxs("div", { className: wrapperClass, style: wrapperStyles, children: [