@thecb/components 7.8.0 → 7.8.2-beta.3
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 +139 -110
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +139 -110
- 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.js +2 -0
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +7 -4
- package/src/components/molecules/module/Module.js +22 -13
- package/src/components/molecules/pagination/Pagination.js +22 -8
- 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,
|
|
@@ -40332,13 +40337,15 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40332
40337
|
maxWidth: "76.5rem"
|
|
40333
40338
|
}, /*#__PURE__*/React__default.createElement(Reel, {
|
|
40334
40339
|
padding: "0",
|
|
40335
|
-
childGap: "
|
|
40340
|
+
childGap: "0",
|
|
40336
40341
|
childWidth: "11rem",
|
|
40337
40342
|
justifyContent: "space-evenly",
|
|
40338
40343
|
disableScroll: true,
|
|
40339
40344
|
useOrderedList: useOrderedList,
|
|
40340
40345
|
useUnorderedList: useUnorderedList
|
|
40341
40346
|
}, repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
|
|
40347
|
+
var _t$toLowerCase;
|
|
40348
|
+
|
|
40342
40349
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40343
40350
|
key: t,
|
|
40344
40351
|
borderSize: "3px",
|
|
@@ -40346,7 +40353,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40346
40353
|
borderWidthOverride: "0 0 3px 0",
|
|
40347
40354
|
extraStyles: "text-align: center; display: block;",
|
|
40348
40355
|
as: "li",
|
|
40349
|
-
"aria-current": highlightIndex == i ? "step" : ""
|
|
40356
|
+
"aria-current": highlightIndex == i ? "step" : "",
|
|
40357
|
+
id: "".concat(t === null || t === void 0 ? void 0 : (_t$toLowerCase = t.toLowerCase()) === null || _t$toLowerCase === void 0 ? void 0 : _t$toLowerCase.replace(/\s/g, "-"), "-tab")
|
|
40350
40358
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40351
40359
|
variant: "p",
|
|
40352
40360
|
textAlign: "center",
|
|
@@ -40357,7 +40365,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40357
40365
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
40358
40366
|
};
|
|
40359
40367
|
|
|
40360
|
-
var HighlightTabRow$1 =
|
|
40368
|
+
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$F);
|
|
40361
40369
|
|
|
40362
40370
|
var AccountBillIcon = function AccountBillIcon() {
|
|
40363
40371
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -45546,19 +45554,28 @@ var Module = function Module(_ref) {
|
|
|
45546
45554
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
45547
45555
|
fontSize = _ref.fontSize,
|
|
45548
45556
|
as = _ref.as,
|
|
45557
|
+
_ref$titleID = _ref.titleID,
|
|
45558
|
+
titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
|
|
45559
|
+
rightTitleContent = _ref.rightTitleContent,
|
|
45549
45560
|
children = _ref.children;
|
|
45550
45561
|
var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
|
|
45551
45562
|
var computedFontSize = fontSize || themedFontSize;
|
|
45552
45563
|
var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
|
|
45553
45564
|
var computedElemType = as || themedElemType;
|
|
45554
|
-
|
|
45565
|
+
var headingText = /*#__PURE__*/React__default.createElement(Title$1, {
|
|
45555
45566
|
weight: themeValues.fontWeight,
|
|
45556
45567
|
color: themeValues.fontColor,
|
|
45557
45568
|
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
45558
45569
|
textAlign: themeValues.textAlign,
|
|
45559
45570
|
as: computedElemType,
|
|
45560
|
-
extraStyles: "font-size: ".concat(computedFontSize, ";")
|
|
45561
|
-
|
|
45571
|
+
extraStyles: "font-size: ".concat(computedFontSize, ";"),
|
|
45572
|
+
id: titleID
|
|
45573
|
+
}, heading);
|
|
45574
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
45575
|
+
justify: "space-between",
|
|
45576
|
+
align: "center",
|
|
45577
|
+
nowrap: true
|
|
45578
|
+
}, headingText, rightTitleContent), /*#__PURE__*/React__default.createElement(Box, {
|
|
45562
45579
|
padding: "0 0 ".concat(spacingBottom)
|
|
45563
45580
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45564
45581
|
padding: padding,
|
|
@@ -46544,6 +46561,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46544
46561
|
|
|
46545
46562
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46546
46563
|
var action = _ref2.action,
|
|
46564
|
+
ariaLabel = _ref2.ariaLabel,
|
|
46547
46565
|
arrowColor = _ref2.arrowColor,
|
|
46548
46566
|
borderRadius = _ref2.borderRadius,
|
|
46549
46567
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46553,12 +46571,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46553
46571
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46554
46572
|
padding: "0",
|
|
46555
46573
|
minHeight: buttonHeight,
|
|
46556
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46574
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46575
|
+
as: "li"
|
|
46557
46576
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46558
46577
|
action: action,
|
|
46559
46578
|
contentOverride: true,
|
|
46560
46579
|
dataQa: type,
|
|
46561
|
-
|
|
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 ")
|
|
46562
46582
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46563
46583
|
padding: "0",
|
|
46564
46584
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46641,13 +46661,18 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46641
46661
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46642
46662
|
isMobile = _useContext.isMobile;
|
|
46643
46663
|
|
|
46644
|
-
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
|
|
46664
|
+
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 ");
|
|
46645
46665
|
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 ");
|
|
46646
46666
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46647
46667
|
justify: "center",
|
|
46648
|
-
childGap: childGap
|
|
46668
|
+
childGap: childGap,
|
|
46669
|
+
overflow: true,
|
|
46670
|
+
as: "nav",
|
|
46671
|
+
innerWrapperAs: "ul",
|
|
46672
|
+
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46649
46673
|
}, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46650
46674
|
action: pagePrevious,
|
|
46675
|
+
ariaLabel: "Previous Page Button",
|
|
46651
46676
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46652
46677
|
borderRadius: borderRadius,
|
|
46653
46678
|
buttonHeight: buttonHeight,
|
|
@@ -46669,13 +46694,16 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46669
46694
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46670
46695
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
46671
46696
|
padding: "0",
|
|
46672
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46697
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46698
|
+
as: "li"
|
|
46673
46699
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46674
46700
|
variant: "ghost",
|
|
46675
46701
|
key: item.index,
|
|
46676
46702
|
text: item.index,
|
|
46677
46703
|
disabled: item.active,
|
|
46678
46704
|
extraDisabledStyles: extraDisabledStyles,
|
|
46705
|
+
"aria-current": item.active ? "page" : undefined,
|
|
46706
|
+
"aria-label": "".concat(item.active ? "Current " : "", "Page ").concat(item.index, " Button"),
|
|
46679
46707
|
action: !item.active ? function () {
|
|
46680
46708
|
return setCurrentPage({
|
|
46681
46709
|
pageNumber: item.index
|
|
@@ -46696,6 +46724,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46696
46724
|
}, "...")));
|
|
46697
46725
|
}), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
46698
46726
|
action: pageNext,
|
|
46727
|
+
ariaLabel: "Next Page Button",
|
|
46699
46728
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46700
46729
|
borderRadius: borderRadius,
|
|
46701
46730
|
buttonHeight: buttonHeight,
|