@shoplflow/base 0.28.1 → 0.28.3

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.cjs CHANGED
@@ -3583,6 +3583,7 @@ var Tooltip = (_a) => {
3583
3583
  onMouseLeave: hideHandler,
3584
3584
  onFocus: showHandler,
3585
3585
  onBlur: hideHandler,
3586
+ style: { display: "flex", alignItems: "center", justifyContent: "center" },
3586
3587
  children: trigger
3587
3588
  }
3588
3589
  ),
@@ -3921,7 +3922,8 @@ var Pagination = (_a) => {
3921
3922
  nextPage,
3922
3923
  gotoPage,
3923
3924
  leftSource,
3924
- rightSource
3925
+ rightSource,
3926
+ totalCount
3925
3927
  } = _b, rest = __objRest(_b, [
3926
3928
  "currentPage",
3927
3929
  "pageCount",
@@ -3931,9 +3933,10 @@ var Pagination = (_a) => {
3931
3933
  "nextPage",
3932
3934
  "gotoPage",
3933
3935
  "leftSource",
3934
- "rightSource"
3936
+ "rightSource",
3937
+ "totalCount"
3935
3938
  ]);
3936
- const pageTotalCount = Math.ceil(itemsTotalCount / Number(pageSize));
3939
+ const pageTotalCount = totalCount != null ? totalCount : Math.ceil(itemsTotalCount / Number(pageSize));
3937
3940
  const showLeftEllipsis = currentPage > pageCount - 1;
3938
3941
  const showRightEllipsis = currentPage < pageTotalCount && Math.ceil((currentPage + 1) / pageCount) < Math.ceil(pageTotalCount / pageCount);
3939
3942
  const canPreviousPage = currentPage > 0;