@uncinc/uncinc-react-kitchen-sink 2.7.13 → 2.7.14

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.
@@ -59,7 +59,7 @@ export namespace Pagination {
59
59
  export { scrollToTop_1 as scrollToTop };
60
60
  let scrollToTopOffset_1: number;
61
61
  export { scrollToTopOffset_1 as scrollToTopOffset };
62
- let scrollToTopBehavior_1: PropTypes.Requireable<string>;
62
+ let scrollToTopBehavior_1: string;
63
63
  export { scrollToTopBehavior_1 as scrollToTopBehavior };
64
64
  }
65
65
  }
@@ -30,7 +30,7 @@ export var Pagination = function Pagination(_ref) {
30
30
  }
31
31
  }, [currentPage]);
32
32
  var pageChange = function pageChange(data) {
33
- if (setCurrentPage) {
33
+ if (setCurrentPage && typeof data.selected === 'number') {
34
34
  setCurrentPage(data.selected + 1);
35
35
  }
36
36
  };
@@ -88,7 +88,7 @@ Pagination.propTypes = {
88
88
  controlled: PropTypes.bool,
89
89
  scrollToTop: PropTypes.bool,
90
90
  scrollToTopOffset: PropTypes.number,
91
- scrollToTopBehavior: PropTypes.string
91
+ scrollToTopBehavior: PropTypes.oneOf(['smooth', 'instant', 'auto'])
92
92
  };
93
93
  Pagination.defaultProps = {
94
94
  setCurrentPage: null,
@@ -103,6 +103,6 @@ Pagination.defaultProps = {
103
103
  controlled: false,
104
104
  scrollToTop: false,
105
105
  scrollToTopOffset: 0,
106
- scrollToTopBehavior: PropTypes.oneOf(['smooth', 'instant', 'auto'])
106
+ scrollToTopBehavior: 'smooth'
107
107
  };
108
108
  export default withMapping(Pagination);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.7.13",
3
+ "version": "2.7.14",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",