@sunggang/ui-lib 0.2.50 → 0.2.51

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.
Files changed (2) hide show
  1. package/index.esm2.js +6 -2
  2. package/package.json +1 -1
package/index.esm2.js CHANGED
@@ -20646,8 +20646,12 @@ var BasePagination = function(param) {
20646
20646
  }),
20647
20647
  /*#__PURE__*/ jsx("button", {
20648
20648
  type: "button",
20649
- disabled: getState().pagination.pageIndex + 1 >= getPageCount(),
20650
- onClick: nextPage,
20649
+ disabled: !getCanNextPage(),
20650
+ onClick: function() {
20651
+ setPageIndex(function(old) {
20652
+ return Math.min(old + 1, getPageCount() - 1);
20653
+ });
20654
+ },
20651
20655
  children: ">"
20652
20656
  }),
20653
20657
  /*#__PURE__*/ jsx("button", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.2.50",
3
+ "version": "0.2.51",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@material-ui/core": "^4.12.4",