@thecb/components 11.2.6-beta.1 → 11.2.6-beta.2
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 +36 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -34
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/link/ExternalLink.js +2 -2
- package/src/components/atoms/link/InternalLink.js +2 -2
- package/src/components/molecules/hero-image/HeroImage.js +57 -59
- package/src/components/molecules/hero-image/HeroImage.stories.js +13 -5
- package/src/components/molecules/hero-image/HeroImage.styled.js +6 -6
- package/src/components/molecules/hero-image/HeroImage.theme.js +6 -6
- package/src/components/molecules/registration-banner/RegistrationBanner.js +10 -5
- package/src/components/molecules/registration-banner/RegistrationBanner.styled.js +6 -4
- package/src/components/molecules/tab-sidebar/TabSidebar.js +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -22360,7 +22360,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22360
22360
|
activeColor: themeValues.activeColor,
|
|
22361
22361
|
fontFamily: themeValues.fontFamily,
|
|
22362
22362
|
tabIndex: tabIndex,
|
|
22363
|
-
extrastyles: "".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", " ").concat(extraStyles),
|
|
22363
|
+
extrastyles: "text-decoration: ".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", "; ").concat(extraStyles),
|
|
22364
22364
|
rel: newTab ? "noopener" : "",
|
|
22365
22365
|
"data-qa": dataQa,
|
|
22366
22366
|
"aria-label": ariaLabel,
|
|
@@ -22456,7 +22456,7 @@ var InternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22456
22456
|
hoverColor: themeValues.hoverColor,
|
|
22457
22457
|
activeColor: themeValues.activeColor,
|
|
22458
22458
|
tabIndex: tabIndex,
|
|
22459
|
-
extrastyles: "".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", " ").concat(extraStyles),
|
|
22459
|
+
extrastyles: "text-decoration: ".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", "; ").concat(extraStyles),
|
|
22460
22460
|
"data-qa": dataQa,
|
|
22461
22461
|
ref: ref
|
|
22462
22462
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
@@ -49749,29 +49749,29 @@ var fallbackValues$U = {
|
|
|
49749
49749
|
var BannerContainer = styled(Cluster).withConfig({
|
|
49750
49750
|
displayName: "RegistrationBannerstyled__BannerContainer",
|
|
49751
49751
|
componentId: "sc-1m1lm4y-0"
|
|
49752
|
-
})(["background:", ";padding:
|
|
49752
|
+
})(["background:", ";padding:2rem;"], function (_ref) {
|
|
49753
49753
|
var themeValues = _ref.themeValues;
|
|
49754
49754
|
return adjustHexColor(themeValues.background, 10, "lighten");
|
|
49755
|
-
}, function (_ref2) {
|
|
49756
|
-
var isMobile = _ref2.isMobile;
|
|
49757
|
-
return isMobile ? "1rem 2rem" : " 2rem 8.25rem";
|
|
49758
49755
|
});
|
|
49759
49756
|
var ContentContainer = styled(Cluster).withConfig({
|
|
49760
49757
|
displayName: "RegistrationBannerstyled__ContentContainer",
|
|
49761
49758
|
componentId: "sc-1m1lm4y-1"
|
|
49762
|
-
})(["padding:0;width:", ";> div{flex-direction:", ";}"], function (
|
|
49759
|
+
})(["padding:0;width:", ";> div{flex-direction:", ";}"], function (_ref2) {
|
|
49760
|
+
var isMobile = _ref2.isMobile;
|
|
49761
|
+
return isMobile ? "100%" : " 1224px";
|
|
49762
|
+
}, function (_ref3) {
|
|
49763
49763
|
var isMobile = _ref3.isMobile;
|
|
49764
|
-
return isMobile ? "296px" : " 1176px";
|
|
49765
|
-
}, function (_ref4) {
|
|
49766
|
-
var isMobile = _ref4.isMobile;
|
|
49767
49764
|
return isMobile ? "column" : "row";
|
|
49768
49765
|
});
|
|
49769
49766
|
var ButtonContainer = styled(Stack).withConfig({
|
|
49770
49767
|
displayName: "RegistrationBannerstyled__ButtonContainer",
|
|
49771
49768
|
componentId: "sc-1m1lm4y-2"
|
|
49772
|
-
})(["align-items:center
|
|
49769
|
+
})(["align-items:center;width:", ";padding-left:", ";> *{width:inherit;}"], function (_ref4) {
|
|
49770
|
+
var isMobile = _ref4.isMobile;
|
|
49771
|
+
return isMobile ? "100%" : "222px";
|
|
49772
|
+
}, function (_ref5) {
|
|
49773
49773
|
var isMobile = _ref5.isMobile;
|
|
49774
|
-
return isMobile ? "
|
|
49774
|
+
return isMobile ? "0" : "2rem";
|
|
49775
49775
|
});
|
|
49776
49776
|
var RegisterLink = styled(ButtonWithLink).withConfig({
|
|
49777
49777
|
displayName: "RegistrationBannerstyled__RegisterLink",
|
|
@@ -49804,7 +49804,8 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
|
|
|
49804
49804
|
align: "center",
|
|
49805
49805
|
justify: "space-between",
|
|
49806
49806
|
overflow: "visible",
|
|
49807
|
-
isMobile: isMobile
|
|
49807
|
+
isMobile: isMobile,
|
|
49808
|
+
nowrap: true
|
|
49808
49809
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
49809
49810
|
padding: "0",
|
|
49810
49811
|
textAlign: "left"
|
|
@@ -49814,11 +49815,11 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
|
|
|
49814
49815
|
fontSize: isMobile ? FONT_SIZE.XL : "1.5rem",
|
|
49815
49816
|
variant: titleVariant,
|
|
49816
49817
|
weight: FONT_WEIGHT_SEMIBOLD
|
|
49817
|
-
}, "Register for a ", clientName, " Wallet
|
|
49818
|
+
}, "Register for a ", clientName, " Wallet"), /*#__PURE__*/React.createElement(Text$1, {
|
|
49818
49819
|
extraStyles: "\n display: block;\n padding: ".concat(isMobile ? ".125rem 0 1rem" : "0", "\n "),
|
|
49819
|
-
fontSize: isMobile ? FONT_SIZE.
|
|
49820
|
+
fontSize: isMobile ? FONT_SIZE.MD : FONT_SIZE.LG,
|
|
49820
49821
|
color: themeValues.secondaryColor
|
|
49821
|
-
}, "Save payment methods and information for fast, easy, and safe payments with ", clientName)), /*#__PURE__*/React.createElement(ButtonContainer, {
|
|
49822
|
+
}, "Save payment methods and billing information for fast, easy, and safe payments with ", clientName)), /*#__PURE__*/React.createElement(ButtonContainer, {
|
|
49822
49823
|
justify: "space-between",
|
|
49823
49824
|
fullHeight: true,
|
|
49824
49825
|
childGap: "0.5rem",
|
|
@@ -49831,7 +49832,8 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
|
|
|
49831
49832
|
url: registrationLink
|
|
49832
49833
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
49833
49834
|
justify: "center",
|
|
49834
|
-
align: "center"
|
|
49835
|
+
align: "center",
|
|
49836
|
+
extraStyles: "min-width: 100%"
|
|
49835
49837
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
49836
49838
|
extraStyles: "margin-right: 0.5rem",
|
|
49837
49839
|
fontSize: isMobile ? FONT_SIZE.MD : FONT_SIZE.LG,
|
|
@@ -50249,7 +50251,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
50249
50251
|
return /*#__PURE__*/React.createElement(InternalLink, {
|
|
50250
50252
|
to: route,
|
|
50251
50253
|
key: "".concat(route, "-").concat(index),
|
|
50252
|
-
extraStyles: "text-decoration: none;\n &:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
|
|
50254
|
+
extraStyles: "text-decoration: none;\n &:hover {\n text-decoration: none;\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
|
|
50253
50255
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
50254
50256
|
padding: isMobile ? "6px 4px" : "18px 16px",
|
|
50255
50257
|
background: active ? themeValues.activeTabBackground : "transparent",
|
|
@@ -51538,22 +51540,22 @@ var ContactCard = function ContactCard(_ref) {
|
|
|
51538
51540
|
})))));
|
|
51539
51541
|
};
|
|
51540
51542
|
|
|
51541
|
-
var
|
|
51542
|
-
var
|
|
51543
|
-
var
|
|
51543
|
+
var heroPrimaryColor = ROYAL_BLUE_VIVID;
|
|
51544
|
+
var heroSecondaryColor = MATISSE_BLUE;
|
|
51545
|
+
var heroTextColor = WHITE;
|
|
51544
51546
|
var fallbackValues$11 = {
|
|
51545
|
-
|
|
51546
|
-
|
|
51547
|
-
|
|
51547
|
+
heroPrimaryColor: heroPrimaryColor,
|
|
51548
|
+
heroSecondaryColor: heroSecondaryColor,
|
|
51549
|
+
heroTextColor: heroTextColor
|
|
51548
51550
|
};
|
|
51549
51551
|
|
|
51550
51552
|
var getHeroImageVariantStyles = function getHeroImageVariantStyles(_ref) {
|
|
51551
51553
|
var imageUrl = _ref.imageUrl,
|
|
51552
51554
|
isMobile = _ref.isMobile,
|
|
51553
51555
|
variant = _ref.variant,
|
|
51554
|
-
|
|
51555
|
-
|
|
51556
|
-
return css(["background:", ",url(", ") center / cover no-repeat;"], !isMobile ? "linear-gradient(\n 90deg,\n ".concat(
|
|
51556
|
+
heroPrimaryColor = _ref.heroPrimaryColor,
|
|
51557
|
+
heroSecondaryColor = _ref.heroSecondaryColor;
|
|
51558
|
+
return css(["background:", ",url(", ") center / cover no-repeat,", ";"], !isMobile ? "linear-gradient(\n 90deg,\n ".concat(heroPrimaryColor, " 33%,\n transparent 100%\n )") : "linear-gradient(\n ".concat(rgba$1(heroPrimaryColor, 0.8), ",\n ").concat(rgba$1(heroPrimaryColor, 0.8), "\n )"), imageUrl, heroPrimaryColor);
|
|
51557
51559
|
};
|
|
51558
51560
|
var HeroImageContainer = styled(Box).withConfig({
|
|
51559
51561
|
displayName: "HeroImagestyled__HeroImageContainer",
|
|
@@ -51580,7 +51582,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
51580
51582
|
var _useContext = useContext(ThemeContext),
|
|
51581
51583
|
isMobile = _useContext.isMobile;
|
|
51582
51584
|
var secondaryHeadingVariant = getNextHeading(headingVariant);
|
|
51583
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
51585
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeroImageContainer, {
|
|
51584
51586
|
minWidth: minWidth,
|
|
51585
51587
|
minHeight: minHeight,
|
|
51586
51588
|
padding: paddingOverride !== null && paddingOverride !== void 0 ? paddingOverride : isMobile ? "2rem" : "3rem 5.75rem",
|
|
@@ -51588,14 +51590,14 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
51588
51590
|
imageUrl: imageUrl,
|
|
51589
51591
|
isMobile: isMobile,
|
|
51590
51592
|
variant: variant,
|
|
51591
|
-
|
|
51592
|
-
|
|
51593
|
+
heroPrimaryColor: themeValues.heroPrimaryColor,
|
|
51594
|
+
heroSecondaryColor: themeValues.heroSecondaryColor
|
|
51593
51595
|
})
|
|
51594
51596
|
}, /*#__PURE__*/React.createElement(Center, {
|
|
51595
51597
|
maxWidth: "78.5rem",
|
|
51596
51598
|
width: "100%",
|
|
51597
51599
|
intrinsic: true,
|
|
51598
|
-
extraStyles: "\n
|
|
51600
|
+
extraStyles: "\n flex-flow: unset;\n justify-content: flex-start;\n flex-wrap: nowrap;\"\n "
|
|
51599
51601
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
51600
51602
|
childGap: contentSpacing,
|
|
51601
51603
|
extraStyles: "max-width: ".concat(isMobile ? "100%" : "50%", ";")
|
|
@@ -51605,19 +51607,19 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
51605
51607
|
variant: "hero",
|
|
51606
51608
|
as: headingVariant,
|
|
51607
51609
|
weight: FONT_WEIGHT_BOLD,
|
|
51608
|
-
color: themeValues.
|
|
51610
|
+
color: themeValues.heroTextColor,
|
|
51609
51611
|
extraStyles: "line-height: ".concat(isMobile ? "125%" : "115%", ";")
|
|
51610
51612
|
}, heading), /*#__PURE__*/React.createElement(Title$1, {
|
|
51611
51613
|
variant: "large",
|
|
51612
51614
|
as: secondaryHeadingVariant,
|
|
51613
51615
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
51614
51616
|
fontSize: isMobile ? "1.5rem" : "2rem",
|
|
51615
|
-
color: themeValues.
|
|
51617
|
+
color: themeValues.heroTextColor,
|
|
51616
51618
|
extraStyles: "line-height: ".concat(isMobile ? "150%" : "115%", ";")
|
|
51617
51619
|
}, subheading)), /*#__PURE__*/React.createElement(Box, {
|
|
51618
51620
|
padding: "0"
|
|
51619
51621
|
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
51620
|
-
color: themeValues.
|
|
51622
|
+
color: themeValues.heroTextColor,
|
|
51621
51623
|
extraStyles: "line-height: ".concat(isMobile ? "150%" : "115%", "; ").concat(!isMobile && "font-size: 1.125rem;")
|
|
51622
51624
|
}, description))))));
|
|
51623
51625
|
};
|