@thecb/components 7.8.2-beta.5 → 7.8.2-beta.6
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.esm.js
CHANGED
|
@@ -46659,7 +46659,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46659
46659
|
isMobile = _useContext.isMobile;
|
|
46660
46660
|
|
|
46661
46661
|
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n ");
|
|
46662
|
-
var
|
|
46662
|
+
var currentPageStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n border: ").concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n }\n ");
|
|
46663
46663
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
46664
46664
|
justify: "center",
|
|
46665
46665
|
childGap: childGap,
|
|
@@ -46671,7 +46671,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46671
46671
|
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46672
46672
|
}, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46673
46673
|
action: pagePrevious,
|
|
46674
|
-
ariaLabel: "Previous Page
|
|
46674
|
+
ariaLabel: "Previous Page",
|
|
46675
46675
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46676
46676
|
borderRadius: borderRadius,
|
|
46677
46677
|
buttonHeight: buttonHeight,
|
|
@@ -46699,17 +46699,15 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46699
46699
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46700
46700
|
variant: "ghost",
|
|
46701
46701
|
text: item.index,
|
|
46702
|
-
disabled: item.active,
|
|
46703
|
-
extraDisabledStyles: extraDisabledStyles,
|
|
46704
46702
|
"aria-current": item.active ? "page" : undefined,
|
|
46705
|
-
"aria-label": "".concat(item.
|
|
46703
|
+
"aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
|
|
46706
46704
|
action: !item.active ? function () {
|
|
46707
46705
|
return setCurrentPage({
|
|
46708
46706
|
pageNumber: item.index
|
|
46709
46707
|
});
|
|
46710
46708
|
} : noop,
|
|
46711
46709
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46712
|
-
extraStyles: extraStyles,
|
|
46710
|
+
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
46713
46711
|
dataQa: index
|
|
46714
46712
|
}, item.index)) : /*#__PURE__*/React.createElement(Box, {
|
|
46715
46713
|
padding: "0 10px",
|
|
@@ -46720,11 +46718,12 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46720
46718
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
46721
46719
|
variant: "pXL",
|
|
46722
46720
|
weight: fontWeight,
|
|
46723
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46721
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
|
|
46722
|
+
"aria-label": "ellipsis"
|
|
46724
46723
|
}, "...")));
|
|
46725
46724
|
}), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46726
46725
|
action: pageNext,
|
|
46727
|
-
ariaLabel: "Next Page
|
|
46726
|
+
ariaLabel: "Next Page",
|
|
46728
46727
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46729
46728
|
borderRadius: borderRadius,
|
|
46730
46729
|
buttonHeight: buttonHeight,
|