@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 CHANGED
@@ -22368,7 +22368,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
22368
22368
  activeColor: themeValues.activeColor,
22369
22369
  fontFamily: themeValues.fontFamily,
22370
22370
  tabIndex: tabIndex,
22371
- extrastyles: "".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", " ").concat(extraStyles),
22371
+ extrastyles: "text-decoration: ".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", "; ").concat(extraStyles),
22372
22372
  rel: newTab ? "noopener" : "",
22373
22373
  "data-qa": dataQa,
22374
22374
  "aria-label": ariaLabel,
@@ -22464,7 +22464,7 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
22464
22464
  hoverColor: themeValues.hoverColor,
22465
22465
  activeColor: themeValues.activeColor,
22466
22466
  tabIndex: tabIndex,
22467
- extrastyles: "".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", " ").concat(extraStyles),
22467
+ extrastyles: "text-decoration: ".concat(isUnderlined ? LINK_TEXT_DECORATION : "none", "; ").concat(extraStyles),
22468
22468
  "data-qa": dataQa,
22469
22469
  ref: ref
22470
22470
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
@@ -49757,29 +49757,29 @@ var fallbackValues$U = {
49757
49757
  var BannerContainer = styled__default(Cluster).withConfig({
49758
49758
  displayName: "RegistrationBannerstyled__BannerContainer",
49759
49759
  componentId: "sc-1m1lm4y-0"
49760
- })(["background:", ";padding:", ";"], function (_ref) {
49760
+ })(["background:", ";padding:2rem;"], function (_ref) {
49761
49761
  var themeValues = _ref.themeValues;
49762
49762
  return adjustHexColor(themeValues.background, 10, "lighten");
49763
- }, function (_ref2) {
49764
- var isMobile = _ref2.isMobile;
49765
- return isMobile ? "1rem 2rem" : " 2rem 8.25rem";
49766
49763
  });
49767
49764
  var ContentContainer = styled__default(Cluster).withConfig({
49768
49765
  displayName: "RegistrationBannerstyled__ContentContainer",
49769
49766
  componentId: "sc-1m1lm4y-1"
49770
- })(["padding:0;width:", ";> div{flex-direction:", ";}"], function (_ref3) {
49767
+ })(["padding:0;width:", ";> div{flex-direction:", ";}"], function (_ref2) {
49768
+ var isMobile = _ref2.isMobile;
49769
+ return isMobile ? "100%" : " 1224px";
49770
+ }, function (_ref3) {
49771
49771
  var isMobile = _ref3.isMobile;
49772
- return isMobile ? "296px" : " 1176px";
49773
- }, function (_ref4) {
49774
- var isMobile = _ref4.isMobile;
49775
49772
  return isMobile ? "column" : "row";
49776
49773
  });
49777
49774
  var ButtonContainer = styled__default(Stack).withConfig({
49778
49775
  displayName: "RegistrationBannerstyled__ButtonContainer",
49779
49776
  componentId: "sc-1m1lm4y-2"
49780
- })(["align-items:center;> a{width:", ";}"], function (_ref5) {
49777
+ })(["align-items:center;width:", ";padding-left:", ";> *{width:inherit;}"], function (_ref4) {
49778
+ var isMobile = _ref4.isMobile;
49779
+ return isMobile ? "100%" : "222px";
49780
+ }, function (_ref5) {
49781
49781
  var isMobile = _ref5.isMobile;
49782
- return isMobile ? "296px" : "222px";
49782
+ return isMobile ? "0" : "2rem";
49783
49783
  });
49784
49784
  var RegisterLink = styled__default(ButtonWithLink).withConfig({
49785
49785
  displayName: "RegistrationBannerstyled__RegisterLink",
@@ -49812,7 +49812,8 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
49812
49812
  align: "center",
49813
49813
  justify: "space-between",
49814
49814
  overflow: "visible",
49815
- isMobile: isMobile
49815
+ isMobile: isMobile,
49816
+ nowrap: true
49816
49817
  }, /*#__PURE__*/React__default.createElement(Box, {
49817
49818
  padding: "0",
49818
49819
  textAlign: "left"
@@ -49822,11 +49823,11 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
49822
49823
  fontSize: isMobile ? FONT_SIZE.XL : "1.5rem",
49823
49824
  variant: titleVariant,
49824
49825
  weight: FONT_WEIGHT_SEMIBOLD
49825
- }, "Register for a ", clientName, " Wallet Account"), /*#__PURE__*/React__default.createElement(Text$1, {
49826
+ }, "Register for a ", clientName, " Wallet"), /*#__PURE__*/React__default.createElement(Text$1, {
49826
49827
  extraStyles: "\n display: block;\n padding: ".concat(isMobile ? ".125rem 0 1rem" : "0", "\n "),
49827
- fontSize: isMobile ? FONT_SIZE.SM : FONT_SIZE.LG,
49828
+ fontSize: isMobile ? FONT_SIZE.MD : FONT_SIZE.LG,
49828
49829
  color: themeValues.secondaryColor
49829
- }, "Save payment methods and information for fast, easy, and safe payments with ", clientName)), /*#__PURE__*/React__default.createElement(ButtonContainer, {
49830
+ }, "Save payment methods and billing information for fast, easy, and safe payments with ", clientName)), /*#__PURE__*/React__default.createElement(ButtonContainer, {
49830
49831
  justify: "space-between",
49831
49832
  fullHeight: true,
49832
49833
  childGap: "0.5rem",
@@ -49839,7 +49840,8 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
49839
49840
  url: registrationLink
49840
49841
  }, /*#__PURE__*/React__default.createElement(Cluster, {
49841
49842
  justify: "center",
49842
- align: "center"
49843
+ align: "center",
49844
+ extraStyles: "min-width: 100%"
49843
49845
  }, /*#__PURE__*/React__default.createElement(Text$1, {
49844
49846
  extraStyles: "margin-right: 0.5rem",
49845
49847
  fontSize: isMobile ? FONT_SIZE.MD : FONT_SIZE.LG,
@@ -50257,7 +50259,7 @@ var TabSidebar = function TabSidebar(_ref) {
50257
50259
  return /*#__PURE__*/React__default.createElement(InternalLink, {
50258
50260
  to: route,
50259
50261
  key: "".concat(route, "-").concat(index),
50260
- 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 }", "}")
50262
+ 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 }", "}")
50261
50263
  }, /*#__PURE__*/React__default.createElement(Box, {
50262
50264
  padding: isMobile ? "6px 4px" : "18px 16px",
50263
50265
  background: active ? themeValues.activeTabBackground : "transparent",
@@ -51546,22 +51548,22 @@ var ContactCard = function ContactCard(_ref) {
51546
51548
  })))));
51547
51549
  };
51548
51550
 
51549
- var gradientColorPrimary = ROYAL_BLUE_VIVID;
51550
- var gradientColorSecondary = MATISSE_BLUE;
51551
- var textColor$5 = WHITE;
51551
+ var heroPrimaryColor = ROYAL_BLUE_VIVID;
51552
+ var heroSecondaryColor = MATISSE_BLUE;
51553
+ var heroTextColor = WHITE;
51552
51554
  var fallbackValues$11 = {
51553
- gradientColorPrimary: gradientColorPrimary,
51554
- gradientColorSecondary: gradientColorSecondary,
51555
- textColor: textColor$5
51555
+ heroPrimaryColor: heroPrimaryColor,
51556
+ heroSecondaryColor: heroSecondaryColor,
51557
+ heroTextColor: heroTextColor
51556
51558
  };
51557
51559
 
51558
51560
  var getHeroImageVariantStyles = function getHeroImageVariantStyles(_ref) {
51559
51561
  var imageUrl = _ref.imageUrl,
51560
51562
  isMobile = _ref.isMobile,
51561
51563
  variant = _ref.variant,
51562
- gradientColorPrimary = _ref.gradientColorPrimary,
51563
- gradientColorSecondary = _ref.gradientColorSecondary;
51564
- return styled.css(["background:", ",url(", ") center / cover no-repeat;"], !isMobile ? "linear-gradient(\n 90deg,\n ".concat(gradientColorPrimary, " 33%,\n transparent 100%\n )") : "linear-gradient(\n ".concat(rgba$1(gradientColorPrimary, 0.8), ",\n ").concat(rgba$1(gradientColorPrimary, 0.8), "\n )"), imageUrl);
51564
+ heroPrimaryColor = _ref.heroPrimaryColor,
51565
+ heroSecondaryColor = _ref.heroSecondaryColor;
51566
+ return styled.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);
51565
51567
  };
51566
51568
  var HeroImageContainer = styled__default(Box).withConfig({
51567
51569
  displayName: "HeroImagestyled__HeroImageContainer",
@@ -51588,7 +51590,7 @@ var HeroImage = function HeroImage(_ref) {
51588
51590
  var _useContext = React.useContext(styled.ThemeContext),
51589
51591
  isMobile = _useContext.isMobile;
51590
51592
  var secondaryHeadingVariant = getNextHeading(headingVariant);
51591
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, imageUrl && /*#__PURE__*/React__default.createElement(HeroImageContainer, {
51593
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(HeroImageContainer, {
51592
51594
  minWidth: minWidth,
51593
51595
  minHeight: minHeight,
51594
51596
  padding: paddingOverride !== null && paddingOverride !== void 0 ? paddingOverride : isMobile ? "2rem" : "3rem 5.75rem",
@@ -51596,14 +51598,14 @@ var HeroImage = function HeroImage(_ref) {
51596
51598
  imageUrl: imageUrl,
51597
51599
  isMobile: isMobile,
51598
51600
  variant: variant,
51599
- gradientColorPrimary: themeValues.gradientColorPrimary,
51600
- gradientColorSecondary: themeValues.gradientColorSecondary
51601
+ heroPrimaryColor: themeValues.heroPrimaryColor,
51602
+ heroSecondaryColor: themeValues.heroSecondaryColor
51601
51603
  })
51602
51604
  }, /*#__PURE__*/React__default.createElement(Center, {
51603
51605
  maxWidth: "78.5rem",
51604
51606
  width: "100%",
51605
51607
  intrinsic: true,
51606
- extraStyles: "\n flex-flow: unset;\n justify-content: flex-start;\n flex-wrap: nowrap;\"\n "
51608
+ extraStyles: "\n flex-flow: unset;\n justify-content: flex-start;\n flex-wrap: nowrap;\"\n "
51607
51609
  }, /*#__PURE__*/React__default.createElement(Stack, {
51608
51610
  childGap: contentSpacing,
51609
51611
  extraStyles: "max-width: ".concat(isMobile ? "100%" : "50%", ";")
@@ -51613,19 +51615,19 @@ var HeroImage = function HeroImage(_ref) {
51613
51615
  variant: "hero",
51614
51616
  as: headingVariant,
51615
51617
  weight: FONT_WEIGHT_BOLD,
51616
- color: themeValues.textColor,
51618
+ color: themeValues.heroTextColor,
51617
51619
  extraStyles: "line-height: ".concat(isMobile ? "125%" : "115%", ";")
51618
51620
  }, heading), /*#__PURE__*/React__default.createElement(Title$1, {
51619
51621
  variant: "large",
51620
51622
  as: secondaryHeadingVariant,
51621
51623
  weight: FONT_WEIGHT_SEMIBOLD,
51622
51624
  fontSize: isMobile ? "1.5rem" : "2rem",
51623
- color: themeValues.textColor,
51625
+ color: themeValues.heroTextColor,
51624
51626
  extraStyles: "line-height: ".concat(isMobile ? "150%" : "115%", ";")
51625
51627
  }, subheading)), /*#__PURE__*/React__default.createElement(Box, {
51626
51628
  padding: "0"
51627
51629
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
51628
- color: themeValues.textColor,
51630
+ color: themeValues.heroTextColor,
51629
51631
  extraStyles: "line-height: ".concat(isMobile ? "150%" : "115%", "; ").concat(!isMobile && "font-size: 1.125rem;")
51630
51632
  }, description))))));
51631
51633
  };