@apexcura/ui-components 0.0.11-Beta251 → 0.0.11-Beta253

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
@@ -702,10 +702,15 @@ var TableElement = (props) => {
702
702
  ...row,
703
703
  [columns[0].key]: index + 1
704
704
  }));
705
+ const count = dataSource ? dataSource.length : 0;
705
706
  return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
706
707
  import_antd14.Table,
707
708
  {
708
- pagination: { defaultCurrent: 2 },
709
+ pagination: {
710
+ showTotal: (total) => `Total: ${total} items`,
711
+ total: count,
712
+ showSizeChanger: false
713
+ },
709
714
  dataSource,
710
715
  columns,
711
716
  bordered: true,
package/dist/index.mjs CHANGED
@@ -650,10 +650,15 @@ var TableElement = (props) => {
650
650
  ...row,
651
651
  [columns[0].key]: index + 1
652
652
  }));
653
+ const count = dataSource ? dataSource.length : 0;
653
654
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
654
655
  Table2,
655
656
  {
656
- pagination: { defaultCurrent: 2 },
657
+ pagination: {
658
+ showTotal: (total) => `Total: ${total} items`,
659
+ total: count,
660
+ showSizeChanger: false
661
+ },
657
662
  dataSource,
658
663
  columns,
659
664
  bordered: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta251",
3
+ "version": "0.0.11-Beta253",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -48,7 +48,6 @@
48
48
  "node": ">=18.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@apexcura/ui-components": "^0.0.11-Beta245",
52
51
  "@tinymce/tinymce-react": "^5.0.1",
53
52
  "autoprefixer": "^10.4.19",
54
53
  "date-fns": "^3.6.0",