@apexcura/ui-components 0.0.14-Beta4 → 0.0.14-Beta5

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
@@ -670,7 +670,8 @@ var TableElement = (props) => {
670
670
  {
671
671
  title: "View",
672
672
  dataIndex: "View",
673
- key: "View"
673
+ key: "View",
674
+ render: (_, record) => /* @__PURE__ */ import_react20.default.createElement(import_antd14.Button, null, "View")
674
675
  },
675
676
  ...thead.map((col, ind) => ({
676
677
  title: col.label,
@@ -691,8 +692,7 @@ var TableElement = (props) => {
691
692
  }
692
693
  const dataSource = tbody && tbody.map((row, index) => ({
693
694
  ...row,
694
- [columns[0].key]: index + 1,
695
- [columns[-1].key]: "View"
695
+ [columns[0].key]: index + 1
696
696
  }));
697
697
  const count = dataSource ? dataSource.length : 0;
698
698
  const onChangePage = (page, pageSize) => {
package/dist/index.mjs CHANGED
@@ -536,7 +536,7 @@ var Navbar = (props) => {
536
536
 
537
537
  // src/Components/TableElement.tsx
538
538
  import React20, { useState as useState5 } from "react";
539
- import { Table as Table2 } from "antd";
539
+ import { Button as Button3, Table as Table2 } from "antd";
540
540
 
541
541
  // src/Components/Model.tsx
542
542
  import React19 from "react";
@@ -613,7 +613,8 @@ var TableElement = (props) => {
613
613
  {
614
614
  title: "View",
615
615
  dataIndex: "View",
616
- key: "View"
616
+ key: "View",
617
+ render: (_, record) => /* @__PURE__ */ React20.createElement(Button3, null, "View")
617
618
  },
618
619
  ...thead.map((col, ind) => ({
619
620
  title: col.label,
@@ -634,8 +635,7 @@ var TableElement = (props) => {
634
635
  }
635
636
  const dataSource = tbody && tbody.map((row, index) => ({
636
637
  ...row,
637
- [columns[0].key]: index + 1,
638
- [columns[-1].key]: "View"
638
+ [columns[0].key]: index + 1
639
639
  }));
640
640
  const count = dataSource ? dataSource.length : 0;
641
641
  const onChangePage = (page, pageSize) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta4",
3
+ "version": "0.0.14-Beta5",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",