@thecb/components 7.8.1 → 7.8.2-beta.4
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.cjs.js +127 -107
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +127 -107
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +101 -96
- package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
- package/src/components/atoms/layouts/Cluster.d.ts +1 -0
- package/src/components/atoms/layouts/Cluster.js +2 -0
- package/src/components/molecules/pagination/Pagination.js +26 -11
- package/src/components/molecules/pagination/index.d.ts +1 -0
- package/src/constants/colors.js +6 -0
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -5015,7 +5015,9 @@ var INFO_BLUE = "#E4F4FD";
|
|
|
5015
5015
|
var HOVER_LIGHT_BLUE = "#EFFAFF";
|
|
5016
5016
|
var MATISSE_BLUE = "#15749D";
|
|
5017
5017
|
var ROYAL_BLUE = "#3181E3";
|
|
5018
|
-
var ASTRAL_BLUE = "#3176AA";
|
|
5018
|
+
var ASTRAL_BLUE = "#3176AA";
|
|
5019
|
+
var SAPPHIRE_BLUE = "#116285";
|
|
5020
|
+
var PEACOCK_BLUE = "#0E506D"; // GREEN
|
|
5019
5021
|
|
|
5020
5022
|
var FOREST_GREEN = "#19b03F";
|
|
5021
5023
|
var MEADOW_GREEN = "#16C98D";
|
|
@@ -5038,6 +5040,7 @@ var RED = "#FF0000";
|
|
|
5038
5040
|
var CRIMSON_RED = "#ED1C24";
|
|
5039
5041
|
var THUNDERBIRD_RED = "#C3191F";
|
|
5040
5042
|
var RAZZMATAZZ_RED = "#D11053";
|
|
5043
|
+
var RASPBERRY = "#ED125F";
|
|
5041
5044
|
var FANTASY_RED = "#FCF4F4";
|
|
5042
5045
|
var COSMOS_RED = "#FFD0D3";
|
|
5043
5046
|
var BLUSH_RED = "#FFF0F5"; // Second level color constants
|
|
@@ -5122,6 +5125,8 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5122
5125
|
MATISSE_BLUE: MATISSE_BLUE,
|
|
5123
5126
|
ROYAL_BLUE: ROYAL_BLUE,
|
|
5124
5127
|
ASTRAL_BLUE: ASTRAL_BLUE,
|
|
5128
|
+
SAPPHIRE_BLUE: SAPPHIRE_BLUE,
|
|
5129
|
+
PEACOCK_BLUE: PEACOCK_BLUE,
|
|
5125
5130
|
FOREST_GREEN: FOREST_GREEN,
|
|
5126
5131
|
MEADOW_GREEN: MEADOW_GREEN,
|
|
5127
5132
|
POLAR_GREEN: POLAR_GREEN,
|
|
@@ -5143,6 +5148,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5143
5148
|
FANTASY_RED: FANTASY_RED,
|
|
5144
5149
|
COSMOS_RED: COSMOS_RED,
|
|
5145
5150
|
BLUSH_RED: BLUSH_RED,
|
|
5151
|
+
RASPBERRY: RASPBERRY,
|
|
5146
5152
|
ALERT_COLORS: ALERT_COLORS,
|
|
5147
5153
|
ERROR_COLOR: ERROR_COLOR
|
|
5148
5154
|
});
|
|
@@ -6667,7 +6673,7 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
|
6667
6673
|
return childGap;
|
|
6668
6674
|
});
|
|
6669
6675
|
|
|
6670
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6676
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
|
|
6671
6677
|
/*
|
|
6672
6678
|
Cluster components suit any groups of elements that differ in
|
|
6673
6679
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6691,6 +6697,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6691
6697
|
flexGrow = _ref.flexGrow,
|
|
6692
6698
|
extraStyles = _ref.extraStyles,
|
|
6693
6699
|
children = _ref.children,
|
|
6700
|
+
_ref$innerWrapperAs = _ref.innerWrapperAs,
|
|
6701
|
+
innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
|
|
6694
6702
|
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6695
6703
|
|
|
6696
6704
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
@@ -6706,7 +6714,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6706
6714
|
childGap: childGap,
|
|
6707
6715
|
minHeight: minHeight,
|
|
6708
6716
|
minWidth: minWidth,
|
|
6709
|
-
$nowrap: nowrap
|
|
6717
|
+
$nowrap: nowrap,
|
|
6718
|
+
as: innerWrapperAs
|
|
6710
6719
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6711
6720
|
};
|
|
6712
6721
|
|
|
@@ -12543,10 +12552,6 @@ var Reel = function Reel(_ref) {
|
|
|
12543
12552
|
}), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12544
12553
|
};
|
|
12545
12554
|
|
|
12546
|
-
/*
|
|
12547
|
-
For now I'm using string values, eventually shared components library will have its own constants file
|
|
12548
|
-
for colors/values that should be used here instead
|
|
12549
|
-
*/
|
|
12550
12555
|
var padding = {
|
|
12551
12556
|
primary: "0.75rem 1.5rem",
|
|
12552
12557
|
secondary: "0.75rem 1.5rem",
|
|
@@ -12562,18 +12567,18 @@ var padding = {
|
|
|
12562
12567
|
whitePrimary: "1.125rem 0.75rem"
|
|
12563
12568
|
};
|
|
12564
12569
|
var color$1 = {
|
|
12565
|
-
primary:
|
|
12566
|
-
secondary:
|
|
12567
|
-
back:
|
|
12568
|
-
smallPrimary:
|
|
12569
|
-
smallSecondary:
|
|
12570
|
-
smallGhost:
|
|
12571
|
-
ghost:
|
|
12572
|
-
tertiary:
|
|
12573
|
-
danger:
|
|
12574
|
-
dangerSecondary:
|
|
12575
|
-
whiteSecondary:
|
|
12576
|
-
whitePrimary:
|
|
12570
|
+
primary: WHITE,
|
|
12571
|
+
secondary: MATISSE_BLUE,
|
|
12572
|
+
back: MATISSE_BLUE,
|
|
12573
|
+
smallPrimary: WHITE,
|
|
12574
|
+
smallSecondary: MATISSE_BLUE,
|
|
12575
|
+
smallGhost: MATISSE_BLUE,
|
|
12576
|
+
ghost: MATISSE_BLUE,
|
|
12577
|
+
tertiary: MATISSE_BLUE,
|
|
12578
|
+
danger: WHITE,
|
|
12579
|
+
dangerSecondary: ERROR_COLOR,
|
|
12580
|
+
whiteSecondary: WHITE,
|
|
12581
|
+
whitePrimary: WHITE
|
|
12577
12582
|
};
|
|
12578
12583
|
var fontSizeVariant = {
|
|
12579
12584
|
primary: "pS",
|
|
@@ -12632,116 +12637,116 @@ var minWidth = {
|
|
|
12632
12637
|
whitePrimary: "130px"
|
|
12633
12638
|
};
|
|
12634
12639
|
var backgroundColor = {
|
|
12635
|
-
primary:
|
|
12636
|
-
secondary:
|
|
12637
|
-
back:
|
|
12638
|
-
smallPrimary:
|
|
12639
|
-
smallSecondary:
|
|
12640
|
-
smallGhost:
|
|
12641
|
-
ghost:
|
|
12642
|
-
tertiary:
|
|
12643
|
-
danger:
|
|
12644
|
-
dangerSecondary:
|
|
12645
|
-
whiteSecondary:
|
|
12646
|
-
whitePrimary:
|
|
12640
|
+
primary: MATISSE_BLUE,
|
|
12641
|
+
secondary: TRANSPARENT,
|
|
12642
|
+
back: TRANSPARENT,
|
|
12643
|
+
smallPrimary: MATISSE_BLUE,
|
|
12644
|
+
smallSecondary: TRANSPARENT,
|
|
12645
|
+
smallGhost: TRANSPARENT,
|
|
12646
|
+
ghost: TRANSPARENT,
|
|
12647
|
+
tertiary: TRANSPARENT,
|
|
12648
|
+
danger: RASPBERRY,
|
|
12649
|
+
dangerSecondary: TRANSPARENT,
|
|
12650
|
+
whiteSecondary: TRANSPARENT,
|
|
12651
|
+
whitePrimary: TRANSPARENT
|
|
12647
12652
|
};
|
|
12648
12653
|
var border = {
|
|
12649
|
-
primary: "2px solid
|
|
12650
|
-
secondary: "2px solid
|
|
12651
|
-
back: "2px solid
|
|
12652
|
-
smallPrimary: "2px solid
|
|
12653
|
-
smallSecondary: "2px solid
|
|
12654
|
+
primary: "2px solid " + MATISSE_BLUE,
|
|
12655
|
+
secondary: "2px solid " + MATISSE_BLUE,
|
|
12656
|
+
back: "2px solid " + MATISSE_BLUE,
|
|
12657
|
+
smallPrimary: "2px solid " + MATISSE_BLUE,
|
|
12658
|
+
smallSecondary: "2px solid " + MATISSE_BLUE,
|
|
12654
12659
|
smallGhost: "none",
|
|
12655
12660
|
ghost: "none",
|
|
12656
12661
|
tertiary: "none",
|
|
12657
|
-
danger: "2px solid
|
|
12658
|
-
dangerSecondary: "2px solid
|
|
12659
|
-
whiteSecondary: "2px solid
|
|
12660
|
-
whitePrimary: "2px solid
|
|
12662
|
+
danger: "2px solid " + RASPBERRY,
|
|
12663
|
+
dangerSecondary: "2px solid " + ERROR_COLOR,
|
|
12664
|
+
whiteSecondary: "2px solid " + WHITE,
|
|
12665
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12661
12666
|
};
|
|
12662
12667
|
var hoverBackgroundColor = {
|
|
12663
|
-
primary:
|
|
12668
|
+
primary: SAPPHIRE_BLUE,
|
|
12664
12669
|
secondary: "#DBEAF0",
|
|
12665
|
-
back:
|
|
12666
|
-
smallPrimary:
|
|
12670
|
+
back: TRANSPARENT,
|
|
12671
|
+
smallPrimary: SAPPHIRE_BLUE,
|
|
12667
12672
|
smallSecondary: "#DBEAF0",
|
|
12668
|
-
smallGhost:
|
|
12669
|
-
ghost:
|
|
12670
|
-
tertiary:
|
|
12673
|
+
smallGhost: TRANSPARENT,
|
|
12674
|
+
ghost: TRANSPARENT,
|
|
12675
|
+
tertiary: TRANSPARENT,
|
|
12671
12676
|
danger: "#BA002C",
|
|
12672
|
-
dangerSecondary: "
|
|
12673
|
-
whiteSecondary:
|
|
12674
|
-
whitePrimary:
|
|
12677
|
+
dangerSecondary: "#FAE7EE",
|
|
12678
|
+
whiteSecondary: TRANSPARENT,
|
|
12679
|
+
whitePrimary: TRANSPARENT
|
|
12675
12680
|
};
|
|
12676
12681
|
var hoverBorderColor = {
|
|
12677
|
-
primary:
|
|
12678
|
-
secondary:
|
|
12682
|
+
primary: SAPPHIRE_BLUE,
|
|
12683
|
+
secondary: MATISSE_BLUE,
|
|
12679
12684
|
back: "#DCEAF1",
|
|
12680
|
-
smallPrimary:
|
|
12681
|
-
smallSecondary:
|
|
12682
|
-
smallGhost:
|
|
12683
|
-
ghost:
|
|
12684
|
-
tertiary:
|
|
12685
|
+
smallPrimary: SAPPHIRE_BLUE,
|
|
12686
|
+
smallSecondary: MATISSE_BLUE,
|
|
12687
|
+
smallGhost: TRANSPARENT,
|
|
12688
|
+
ghost: TRANSPARENT,
|
|
12689
|
+
tertiary: TRANSPARENT,
|
|
12685
12690
|
danger: "#BA002C",
|
|
12686
12691
|
dangerSecondary: "#B10541",
|
|
12687
|
-
whiteSecondary: "2px solid
|
|
12688
|
-
whitePrimary: "2px solid
|
|
12692
|
+
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12693
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12689
12694
|
};
|
|
12690
12695
|
var hoverColor = {
|
|
12691
|
-
primary:
|
|
12692
|
-
secondary:
|
|
12693
|
-
back:
|
|
12694
|
-
smallPrimary:
|
|
12695
|
-
smallSecondary:
|
|
12696
|
-
smallGhost:
|
|
12697
|
-
ghost:
|
|
12698
|
-
tertiary:
|
|
12699
|
-
danger:
|
|
12696
|
+
primary: WHITE,
|
|
12697
|
+
secondary: SAPPHIRE_BLUE,
|
|
12698
|
+
back: SAPPHIRE_BLUE,
|
|
12699
|
+
smallPrimary: WHITE,
|
|
12700
|
+
smallSecondary: SAPPHIRE_BLUE,
|
|
12701
|
+
smallGhost: SAPPHIRE_BLUE,
|
|
12702
|
+
ghost: SAPPHIRE_BLUE,
|
|
12703
|
+
tertiary: SAPPHIRE_BLUE,
|
|
12704
|
+
danger: WHITE,
|
|
12700
12705
|
dangerSecondary: "#B10541",
|
|
12701
|
-
whiteSecondary:
|
|
12702
|
-
whitePrimary:
|
|
12706
|
+
whiteSecondary: WHITE,
|
|
12707
|
+
whitePrimary: WHITE
|
|
12703
12708
|
};
|
|
12704
12709
|
var activeBackgroundColor = {
|
|
12705
|
-
primary:
|
|
12710
|
+
primary: PEACOCK_BLUE,
|
|
12706
12711
|
secondary: "#B8D5E1",
|
|
12707
|
-
back:
|
|
12708
|
-
smallPrimary:
|
|
12712
|
+
back: TRANSPARENT,
|
|
12713
|
+
smallPrimary: PEACOCK_BLUE,
|
|
12709
12714
|
smallSecondary: "#B8D5E1",
|
|
12710
|
-
smallGhost:
|
|
12711
|
-
ghost:
|
|
12712
|
-
tertiary:
|
|
12715
|
+
smallGhost: TRANSPARENT,
|
|
12716
|
+
ghost: TRANSPARENT,
|
|
12717
|
+
tertiary: TRANSPARENT,
|
|
12713
12718
|
danger: "#870000",
|
|
12714
|
-
dangerSecondary: "
|
|
12715
|
-
whiteSecondary:
|
|
12716
|
-
whitePrimary:
|
|
12719
|
+
dangerSecondary: "#FAE7EE",
|
|
12720
|
+
whiteSecondary: TRANSPARENT,
|
|
12721
|
+
whitePrimary: TRANSPARENT
|
|
12717
12722
|
};
|
|
12718
12723
|
var activeBorderColor = {
|
|
12719
|
-
primary:
|
|
12720
|
-
secondary:
|
|
12721
|
-
back:
|
|
12722
|
-
smallPrimary:
|
|
12723
|
-
smallSecondary:
|
|
12724
|
-
smallGhost:
|
|
12725
|
-
ghost:
|
|
12726
|
-
tertiary:
|
|
12724
|
+
primary: PEACOCK_BLUE,
|
|
12725
|
+
secondary: MATISSE_BLUE,
|
|
12726
|
+
back: PEACOCK_BLUE,
|
|
12727
|
+
smallPrimary: PEACOCK_BLUE,
|
|
12728
|
+
smallSecondary: MATISSE_BLUE,
|
|
12729
|
+
smallGhost: TRANSPARENT,
|
|
12730
|
+
ghost: TRANSPARENT,
|
|
12731
|
+
tertiary: TRANSPARENT,
|
|
12727
12732
|
danger: "#870000",
|
|
12728
12733
|
dangerSecondary: "#910029",
|
|
12729
|
-
whiteSecondary: "2px solid
|
|
12730
|
-
whitePrimary: "2px solid
|
|
12734
|
+
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12735
|
+
whitePrimary: "2px solid " + TRANSPARENT
|
|
12731
12736
|
};
|
|
12732
12737
|
var activeColor = {
|
|
12733
|
-
primary:
|
|
12734
|
-
secondary:
|
|
12735
|
-
back:
|
|
12736
|
-
smallPrimary:
|
|
12737
|
-
smallSecondary:
|
|
12738
|
-
smallGhost:
|
|
12739
|
-
ghost:
|
|
12740
|
-
tertiary:
|
|
12741
|
-
danger:
|
|
12738
|
+
primary: WHITE,
|
|
12739
|
+
secondary: MATISSE_BLUE,
|
|
12740
|
+
back: PEACOCK_BLUE,
|
|
12741
|
+
smallPrimary: WHITE,
|
|
12742
|
+
smallSecondary: PEACOCK_BLUE,
|
|
12743
|
+
smallGhost: PEACOCK_BLUE,
|
|
12744
|
+
ghost: PEACOCK_BLUE,
|
|
12745
|
+
tertiary: PEACOCK_BLUE,
|
|
12746
|
+
danger: WHITE,
|
|
12742
12747
|
dangerSecondary: "#910029",
|
|
12743
|
-
whiteSecondary:
|
|
12744
|
-
whitePrimary:
|
|
12748
|
+
whiteSecondary: WHITE,
|
|
12749
|
+
whitePrimary: WHITE
|
|
12745
12750
|
};
|
|
12746
12751
|
var fallbackValues$1 = {
|
|
12747
12752
|
padding: padding,
|
|
@@ -46556,6 +46561,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46556
46561
|
|
|
46557
46562
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46558
46563
|
var action = _ref2.action,
|
|
46564
|
+
ariaLabel = _ref2.ariaLabel,
|
|
46559
46565
|
arrowColor = _ref2.arrowColor,
|
|
46560
46566
|
borderRadius = _ref2.borderRadius,
|
|
46561
46567
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46565,12 +46571,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46565
46571
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46566
46572
|
padding: "0",
|
|
46567
46573
|
minHeight: buttonHeight,
|
|
46568
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46574
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46575
|
+
as: "li"
|
|
46569
46576
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46570
46577
|
action: action,
|
|
46571
46578
|
contentOverride: true,
|
|
46572
46579
|
dataQa: type,
|
|
46573
|
-
|
|
46580
|
+
"aria-label": ariaLabel,
|
|
46581
|
+
extraStyles: "\n background-color: ".concat(numberColor, ";\n border-color: ").concat(numberColor, ";\n border-radius: ").concat(borderRadius, ";\n margin: 0;\n max-height: ").concat(buttonHeight, ";\n min-height: 100%;\n min-width: ").concat(buttonWidth, ";\n padding: 0;\n ")
|
|
46574
46582
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46575
46583
|
padding: "0",
|
|
46576
46584
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46648,18 +46656,25 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46648
46656
|
pageNext = _ref3.pageNext,
|
|
46649
46657
|
pagePrevious = _ref3.pagePrevious,
|
|
46650
46658
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46659
|
+
ariaLabel = _ref3.ariaLabel,
|
|
46651
46660
|
themeValues = _ref3.themeValues;
|
|
46652
46661
|
|
|
46653
46662
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46654
46663
|
isMobile = _useContext.isMobile;
|
|
46655
46664
|
|
|
46656
|
-
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
|
|
46665
|
+
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 ");
|
|
46657
46666
|
var extraDisabledStyles = "\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 }\n ");
|
|
46658
46667
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46659
46668
|
justify: "center",
|
|
46660
|
-
childGap: childGap
|
|
46669
|
+
childGap: childGap,
|
|
46670
|
+
overflow: true,
|
|
46671
|
+
as: "nav",
|
|
46672
|
+
innerWrapperAs: "ul",
|
|
46673
|
+
"aria-label": ariaLabel,
|
|
46674
|
+
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46661
46675
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46662
46676
|
action: pagePrevious,
|
|
46677
|
+
ariaLabel: "Previous Page Button",
|
|
46663
46678
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46664
46679
|
borderRadius: borderRadius,
|
|
46665
46680
|
buttonHeight: buttonHeight,
|
|
@@ -46681,13 +46696,16 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46681
46696
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46682
46697
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46683
46698
|
padding: "0",
|
|
46684
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46699
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46700
|
+
as: "li",
|
|
46701
|
+
key: "pagination-button-".concat(item.index)
|
|
46685
46702
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46686
46703
|
variant: "ghost",
|
|
46687
|
-
key: item.index,
|
|
46688
46704
|
text: item.index,
|
|
46689
46705
|
disabled: item.active,
|
|
46690
46706
|
extraDisabledStyles: extraDisabledStyles,
|
|
46707
|
+
"aria-current": item.active ? "page" : undefined,
|
|
46708
|
+
"aria-label": "".concat(item.active ? "Current " : "", "Page ").concat(item.index, " Button"),
|
|
46691
46709
|
action: !item.active ? function () {
|
|
46692
46710
|
return setCurrentPage({
|
|
46693
46711
|
pageNumber: item.index
|
|
@@ -46697,17 +46715,19 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46697
46715
|
extraStyles: extraStyles,
|
|
46698
46716
|
dataQa: index
|
|
46699
46717
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
46700
|
-
padding: "0 10px"
|
|
46718
|
+
padding: "0 10px",
|
|
46719
|
+
as: "li",
|
|
46720
|
+
key: "pagination-elipsis-".concat(index)
|
|
46701
46721
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46702
46722
|
justify: "flex-end"
|
|
46703
46723
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46704
|
-
key: index,
|
|
46705
46724
|
variant: "pXL",
|
|
46706
46725
|
weight: fontWeight,
|
|
46707
46726
|
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46708
46727
|
}, "...")));
|
|
46709
46728
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46710
46729
|
action: pageNext,
|
|
46730
|
+
ariaLabel: "Next Page Button",
|
|
46711
46731
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46712
46732
|
borderRadius: borderRadius,
|
|
46713
46733
|
buttonHeight: buttonHeight,
|