@surveycake/rc 3.0.0-alpha.79 → 3.0.0-alpha.80

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.0.0-alpha.80](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.79...v3.0.0-alpha.80) (2023-04-18)
6
+
7
+
8
+ ### Features
9
+
10
+ * add pagination next, prev button data-qa attr [SUR-2523] ([5a2bf9f](https://fox.25sprout.com/surveycake/sdk/rc/commit/5a2bf9f7c45247181912baaf40882e4b45a83f3e))
11
+
5
12
  ## [3.0.0-alpha.79](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.78...v3.0.0-alpha.79) (2023-04-18)
6
13
 
7
14
 
@@ -8,5 +8,7 @@ declare type PaginationProps = {
8
8
  */
9
9
  totalPages: number;
10
10
  setPageIndex: (pageIndex: number) => void;
11
+ prevDataQa?: string;
12
+ nextDataQa?: string;
11
13
  };
12
14
  export { PaginationProps };
@@ -4676,7 +4676,9 @@ styles$5.makeStyles(function (theme) {
4676
4676
  var Pagination$1 = function Pagination(_ref) {
4677
4677
  var pageIndex = _ref.pageIndex,
4678
4678
  totalPages = _ref.totalPages,
4679
- setPageIndex = _ref.setPageIndex;
4679
+ setPageIndex = _ref.setPageIndex,
4680
+ prevDataQa = _ref.prevDataQa,
4681
+ nextDataQa = _ref.nextDataQa;
4680
4682
  var inputRef = React.useRef(null);
4681
4683
 
4682
4684
  var _useState = React.useState('1'),
@@ -4742,7 +4744,8 @@ var Pagination$1 = function Pagination(_ref) {
4742
4744
  onClick: prev,
4743
4745
  tabIndex: hasPrev ? 0 : undefined,
4744
4746
  "aria-disabled": !hasPrev,
4745
- size: "small"
4747
+ size: "small",
4748
+ "data-qa": prevDataQa
4746
4749
  }), React__default.createElement(Box$1, {
4747
4750
  display: "flex",
4748
4751
  alignItems: "center",
@@ -4776,7 +4779,8 @@ var Pagination$1 = function Pagination(_ref) {
4776
4779
  onClick: next,
4777
4780
  tabIndex: hasNext ? 0 : undefined,
4778
4781
  "aria-disabled": !hasNext,
4779
- size: "small"
4782
+ size: "small",
4783
+ "data-qa": nextDataQa
4780
4784
  }));
4781
4785
  };
4782
4786