ab-ui-library 1.1.14 → 1.1.15

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.
@@ -2,6 +2,7 @@ import type { Table } from '@tanstack/react-table';
2
2
  interface PaginationProps<T> {
3
3
  table: Table<T>;
4
4
  totalCount: number;
5
+ buttonText?: string;
5
6
  }
6
- export declare function AdvancedPagination<TData>({ table, totalCount }: PaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
7
+ export declare function AdvancedPagination<TData>({ table, totalCount, buttonText }: PaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -96,7 +96,8 @@ var OPTIONS = [{
96
96
  }];
97
97
  function AdvancedPagination(_ref) {
98
98
  var table = _ref.table,
99
- totalCount = _ref.totalCount;
99
+ totalCount = _ref.totalCount,
100
+ buttonText = _ref.buttonText;
100
101
  var _useState = useState('1'),
101
102
  _useState2 = _slicedToArray(_useState, 2),
102
103
  navigatePage = _useState2[0],
@@ -151,7 +152,7 @@ function AdvancedPagination(_ref) {
151
152
  className: 'advanced-table__pagination__right'
152
153
  }, /*#__PURE__*/React.createElement(Text, {
153
154
  type: 'tertiary'
154
- }, "Showing ", pageIndex * pageSize + 1, " - ", (pageIndex + 1) * pageSize, " of ", totalCount), /*#__PURE__*/React.createElement("div", {
155
+ }, pageIndex * pageSize + 1, " - ", (pageIndex + 1) * pageSize, " / ", totalCount), /*#__PURE__*/React.createElement("div", {
155
156
  className: "flexbox align-items--center"
156
157
  }, /*#__PURE__*/React.createElement(Input, {
157
158
  currentValue: navigatePage,
@@ -164,7 +165,7 @@ function AdvancedPagination(_ref) {
164
165
  onClick: onGoToPage,
165
166
  type: "secondary",
166
167
  size: "medium",
167
- buttonText: "Go to page"
168
+ buttonText: buttonText !== null && buttonText !== void 0 ? buttonText : 'Go to page'
168
169
  })), /*#__PURE__*/React.createElement("div", {
169
170
  className: "advanced-table__pagination__counts"
170
171
  }, /*#__PURE__*/React.createElement(Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",