@deque/cauldron-react 5.0.0-canary.2c53f9c3 → 5.0.0-canary.2f367e65

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/lib/index.js +10 -9
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -8686,10 +8686,10 @@ var Pagination = React__default.forwardRef(function (_a, ref) {
8686
8686
  'Pagination--thin': thin
8687
8687
  }) }, other),
8688
8688
  React__default.createElement("ul", null,
8689
- React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: firstPageLabel, placement: tooltipPlacement },
8690
- React__default.createElement(Icon, { type: "chevron-double-left" }))) : (React__default.createElement(IconButton, { icon: "chevron-double-left", tooltipPlacement: tooltipPlacement, label: firstPageLabel, onClick: onFirstPageClick }))),
8691
- React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: previousPageLabel, placement: tooltipPlacement },
8692
- React__default.createElement(Icon, { type: "chevron-left" }))) : (React__default.createElement(IconButton, { icon: "chevron-left", tooltipPlacement: tooltipPlacement, label: previousPageLabel, onClick: onPreviousPageClick }))),
8689
+ React__default.createElement("li", null,
8690
+ React__default.createElement(IconButton, { icon: "chevron-double-left", tooltipPlacement: tooltipPlacement, label: firstPageLabel, "aria-disabled": isFirstPage, onClick: isFirstPage ? undefined : onFirstPageClick })),
8691
+ React__default.createElement("li", null,
8692
+ React__default.createElement(IconButton, { icon: "chevron-left", tooltipPlacement: tooltipPlacement, label: previousPageLabel, "aria-disabled": isFirstPage, onClick: isFirstPage ? undefined : onPreviousPageClick })),
8693
8693
  React__default.createElement("li", null,
8694
8694
  React__default.createElement("span", { role: "log", "aria-atomic": "true" }, statusLabel || (React__default.createElement("span", null,
8695
8695
  "Showing ",
@@ -8699,10 +8699,10 @@ var Pagination = React__default.forwardRef(function (_a, ref) {
8699
8699
  React__default.createElement("strong", null, itemEnd),
8700
8700
  " of ",
8701
8701
  React__default.createElement("strong", null, totalItems))))),
8702
- React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: nextPageLabel, placement: tooltipPlacement },
8703
- React__default.createElement(Icon, { type: "chevron-right" }))) : (React__default.createElement(IconButton, { icon: "chevron-right", tooltipPlacement: tooltipPlacement, label: nextPageLabel, onClick: onNextPageClick }))),
8704
- React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: lastPageLabel, placement: tooltipPlacement },
8705
- React__default.createElement(Icon, { type: "chevron-double-right" }))) : (React__default.createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, onClick: onLastPageClick }))))));
8702
+ React__default.createElement("li", null,
8703
+ React__default.createElement(IconButton, { icon: "chevron-right", tooltipPlacement: tooltipPlacement, label: nextPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onNextPageClick })),
8704
+ React__default.createElement("li", null,
8705
+ React__default.createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onLastPageClick })))));
8706
8706
  });
8707
8707
  Pagination.displayName = 'Pagination';
8708
8708
  Pagination.propTypes = {
@@ -8720,7 +8720,8 @@ Pagination.propTypes = {
8720
8720
  onLastPageClick: PropTypes.func,
8721
8721
  // @ts-expect-error
8722
8722
  tooltipPlacement: PropTypes.string,
8723
- className: PropTypes.string
8723
+ className: PropTypes.string,
8724
+ thin: PropTypes.bool
8724
8725
  };
8725
8726
 
8726
8727
  var usePagination = function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "5.0.0-canary.2c53f9c3",
3
+ "version": "5.0.0-canary.2f367e65",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "homepage": "https://cauldron.dequelabs.com/",
6
6
  "publishConfig": {