widenarrow-ui 1.0.49 → 1.0.50
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/lib/components/Pagination/Pagination.types.d.ts +1 -1
- package/lib/index.d.ts +2 -5
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/common.types.d.ts +1 -4
- package/package.json +1 -1
- package/src/components/Pagination/Pagination.tsx +1 -1
- package/src/components/Pagination/Pagination.types.ts +1 -1
- package/src/types/common.types.ts +1 -4
|
@@ -6,7 +6,7 @@ export interface PaginationProps {
|
|
|
6
6
|
slim?: boolean;
|
|
7
7
|
withPageSizeChange?: boolean;
|
|
8
8
|
withTablePagination?: boolean;
|
|
9
|
-
withFastForwardButtons
|
|
9
|
+
withFastForwardButtons?: boolean;
|
|
10
10
|
pageSizeOptions?: Array<number>;
|
|
11
11
|
buttonType?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY;
|
|
12
12
|
className?: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -497,15 +497,12 @@ declare const FacetButton: FC<FacetButtonProps>;
|
|
|
497
497
|
interface SearchResultInterface {
|
|
498
498
|
currentPage: number;
|
|
499
499
|
numberOfPages: number;
|
|
500
|
+
pages: number;
|
|
500
501
|
pageSize: number;
|
|
501
502
|
numberOfHits: number;
|
|
502
503
|
sortOrder: number;
|
|
503
504
|
fetching?: boolean;
|
|
504
|
-
pages: number;
|
|
505
|
-
fetched?: boolean;
|
|
506
505
|
searchTerm?: string;
|
|
507
|
-
ids?: Array<number>;
|
|
508
|
-
pending?: boolean;
|
|
509
506
|
}
|
|
510
507
|
|
|
511
508
|
interface PaginationProps {
|
|
@@ -514,7 +511,7 @@ interface PaginationProps {
|
|
|
514
511
|
slim?: boolean;
|
|
515
512
|
withPageSizeChange?: boolean;
|
|
516
513
|
withTablePagination?: boolean;
|
|
517
|
-
withFastForwardButtons
|
|
514
|
+
withFastForwardButtons?: boolean;
|
|
518
515
|
pageSizeOptions?: Array<number>;
|
|
519
516
|
buttonType?: HierarchyTypes$1.PRIMARY | HierarchyTypes$1.SECONDARY;
|
|
520
517
|
className?: string;
|
package/lib/index.esm.js
CHANGED
|
@@ -2644,7 +2644,7 @@ var Pagination = function (_a) {
|
|
|
2644
2644
|
onChange(__assign(__assign({}, pagination), { currentPage: pagination.currentPage + 1 }));
|
|
2645
2645
|
}, disabled: isLastPage, children: jsx(Icon, { icon: IconTypes.CHEVRON_RIGHT }) }) }));
|
|
2646
2646
|
var lastPageButton = withFastForwardButtons ? (jsx("li", { children: jsx("button", { title: lastPageTitle || 'Last page', className: buttonClassName(isLastPage ? 'button_disabled' : undefined), onClick: function () {
|
|
2647
|
-
onChange(__assign(__assign({}, pagination), { currentPage:
|
|
2647
|
+
onChange(__assign(__assign({}, pagination), { currentPage: numberOfPages }));
|
|
2648
2648
|
}, disabled: isLastPage, children: jsx(Icon, { icon: IconTypes.ARROW_LAST_PAGE }) }) })) : null;
|
|
2649
2649
|
/*
|
|
2650
2650
|
paginationMarkup
|