@apexcura/ui-components 0.0.12-Beta96 → 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
@@ -615,7 +615,12 @@ var TableElement = (props) => {
615
615
  const { thead, tbody } = props;
616
616
  console.log("thead-----", thead);
617
617
  console.log("tbody------", tbody);
618
- return /* @__PURE__ */ import_react19.default.createElement(import_antd14.Table, { columns: thead, dataSource: 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 });
619
624
  };
620
625
  // Annotate the CommonJS export names for ESM import in node:
621
626
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -565,7 +565,12 @@ var TableElement = (props) => {
565
565
  const { thead, tbody } = props;
566
566
  console.log("thead-----", thead);
567
567
  console.log("tbody------", tbody);
568
- return /* @__PURE__ */ React18.createElement(Table2, { columns: thead, dataSource: 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 });
569
574
  };
570
575
  export {
571
576
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta96",
3
+ "version": "0.0.12-Beta97",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",