@apexcura/ui-components 0.0.12-Beta95 → 0.0.12-Beta97

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.js CHANGED
@@ -613,7 +613,14 @@ var import_react19 = __toESM(require("react"));
613
613
  var import_antd14 = require("antd");
614
614
  var TableElement = (props) => {
615
615
  const { thead, tbody } = props;
616
- return /* @__PURE__ */ import_react19.default.createElement(import_antd14.Table, { columns: thead, dataSource: tbody });
616
+ console.log("thead-----", thead);
617
+ console.log("tbody------", tbody);
618
+ const columns = thead && thead.map((col) => ({
619
+ title: col.label,
620
+ dataIndex: col.name,
621
+ key: col.key
622
+ }));
623
+ return /* @__PURE__ */ import_react19.default.createElement(import_antd14.Table, { dataSource: tbody, columns });
617
624
  };
618
625
  // Annotate the CommonJS export names for ESM import in node:
619
626
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -563,7 +563,14 @@ import React18 from "react";
563
563
  import { Table as Table2 } from "antd";
564
564
  var TableElement = (props) => {
565
565
  const { thead, tbody } = props;
566
- return /* @__PURE__ */ React18.createElement(Table2, { columns: thead, dataSource: tbody });
566
+ console.log("thead-----", thead);
567
+ console.log("tbody------", tbody);
568
+ const columns = thead && thead.map((col) => ({
569
+ title: col.label,
570
+ dataIndex: col.name,
571
+ key: col.key
572
+ }));
573
+ return /* @__PURE__ */ React18.createElement(Table2, { dataSource: tbody, columns });
567
574
  };
568
575
  export {
569
576
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta95",
3
+ "version": "0.0.12-Beta97",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",