@apexcura/ui-components 0.0.11-Beta258 → 0.0.11-Beta259

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
@@ -698,17 +698,10 @@ var TableElement = (props) => {
698
698
  }))
699
699
  ];
700
700
  }
701
- const dataSource = tbody && tbody.map((row, index) => {
702
- const flattenedRow = {
703
- ...row,
704
- text: row.name[0]?.text || "",
705
- telecom: row.telecom[0]?.value || ""
706
- };
707
- return {
708
- ...flattenedRow,
709
- [columns[0].key]: index + 1
710
- };
711
- });
701
+ const dataSource = tbody && tbody.map((row, index) => ({
702
+ ...row,
703
+ [columns[0].key]: index + 1
704
+ }));
712
705
  const count = dataSource ? dataSource.length : 0;
713
706
  return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
714
707
  import_antd14.Table,
package/dist/index.mjs CHANGED
@@ -646,17 +646,10 @@ var TableElement = (props) => {
646
646
  }))
647
647
  ];
648
648
  }
649
- const dataSource = tbody && tbody.map((row, index) => {
650
- const flattenedRow = {
651
- ...row,
652
- text: row.name[0]?.text || "",
653
- telecom: row.telecom[0]?.value || ""
654
- };
655
- return {
656
- ...flattenedRow,
657
- [columns[0].key]: index + 1
658
- };
659
- });
649
+ const dataSource = tbody && tbody.map((row, index) => ({
650
+ ...row,
651
+ [columns[0].key]: index + 1
652
+ }));
660
653
  const count = dataSource ? dataSource.length : 0;
661
654
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
662
655
  Table2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta258",
3
+ "version": "0.0.11-Beta259",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",