@thecb/components 8.4.4 → 8.4.5-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
@@ -42951,29 +42951,52 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
42951
42951
  var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42952
42952
  var iconsMap = (_iconsMap = {}, _defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), _defineProperty(_iconsMap, ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), _defineProperty(_iconsMap, ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), _defineProperty(_iconsMap, ACCOUNTS_DENTAL_ICON, AccountDentalIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), _defineProperty(_iconsMap, PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), _defineProperty(_iconsMap, PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), _defineProperty(_iconsMap, PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), _defineProperty(_iconsMap, PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), _defineProperty(_iconsMap, PROPERTIES_LAND_ICON, PropertyLandIcon), _defineProperty(_iconsMap, PROPERTIES_CAR_ICON, PropertyCarIcon), _defineProperty(_iconsMap, PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), _defineProperty(_iconsMap, PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), _defineProperty(_iconsMap, MISC_BILL_ICON, AccountBillIcon), _iconsMap);
42953
42953
 
42954
- var background$3 = {
42954
+ var activeBackgroundColor$1 = {
42955
+ "default": CORNFLOWER_BLUE
42956
+ };
42957
+ var backgroundColor$9 = {
42958
+ "default": LINK_WATER
42959
+ };
42960
+ var borderColor$5 = {
42955
42961
  "default": MOON_RAKER
42956
42962
  };
42957
42963
  var color$b = {
42958
42964
  "default": ROYAL_BLUE_VIVID
42959
42965
  };
42960
42966
  var fallbackValues$I = {
42961
- background: background$3,
42967
+ activeBackgroundColor: activeBackgroundColor$1,
42968
+ backgroundColor: backgroundColor$9,
42969
+ borderColor: borderColor$5,
42962
42970
  color: color$b
42963
42971
  };
42964
42972
 
42965
42973
  var Container = styled__default(Box).withConfig({
42966
42974
  displayName: "LinkCardstyled__Container",
42967
42975
  componentId: "sc-l5q1h2-0"
42968
- })(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;&:hover,&:active{cursor:pointer;box-shadow:0px 0px 0px 0px rgba(41,42,51,0.1),0px 5px 11px 0px rgba(41,42,51,0.1),0px 4px 19px 0px rgba(41,42,51,0.09),0px 27px 26px 0px rgba(41,42,51,0.05),0px 56px 31px 0px rgba(41,42,51,0.01),0px 80px 33px 0px rgba(41,42,51,0);}&:hover:not(:active){border:1px solid ", ";background-color:", ";}&:active{border:1px solid ", ";}"], MOON_RAKER, LINK_WATER, ROYAL_BLUE_VIVID);
42976
+ })(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out;&:hover,&:active{cursor:pointer;box-shadow:0px 0px 0px 0px rgba(41,42,51,0.1),0px 5px 11px 0px rgba(41,42,51,0.1),0px 4px 19px 0px rgba(41,42,51,0.09),0px 27px 26px 0px rgba(41,42,51,0.05),0px 56px 31px 0px rgba(41,42,51,0.01),0px 80px 33px 0px rgba(41,42,51,0);}&:hover:not(:active){", "}&:active{", "}"], function (_ref) {
42977
+ var themeValues = _ref.themeValues;
42978
+ return "\n background-color: ".concat(themeValues.backgroundColor, ";\n border: 1px solid ").concat(themeValues.borderColor, ";\n ");
42979
+ }, function (_ref2) {
42980
+ var themeValues = _ref2.themeValues;
42981
+ return "border: 1px solid ".concat(themeValues.borderColor, ";");
42982
+ }, function (_ref3) {
42983
+ var themeValues = _ref3.themeValues;
42984
+ return "\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border: 1px solid ").concat(themeValues.color, ";\n ;");
42985
+ });
42969
42986
  var Title$2 = styled__default(Heading$1).withConfig({
42970
42987
  displayName: "LinkCardstyled__Title",
42971
42988
  componentId: "sc-l5q1h2-1"
42972
- })(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;"]);
42989
+ })(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref4) {
42990
+ var themeValues = _ref4.themeValues;
42991
+ return "color: ".concat(themeValues.color, ";");
42992
+ });
42973
42993
  var Subtitle = styled__default(Paragraph$1).withConfig({
42974
42994
  displayName: "LinkCardstyled__Subtitle",
42975
42995
  componentId: "sc-l5q1h2-2"
42976
- })(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150 %;letter-spacing:0.14px;"]);
42996
+ })(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150 %;letter-spacing:0.14px;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref5) {
42997
+ var themeValues = _ref5.themeValues;
42998
+ return "color: ".concat(themeValues.color, ";");
42999
+ });
42977
43000
  var Footer = styled__default(Stack).withConfig({
42978
43001
  displayName: "LinkCardstyled__Footer",
42979
43002
  componentId: "sc-l5q1h2-3"
@@ -42998,6 +43021,7 @@ var LinkCard = function LinkCard(_ref) {
42998
43021
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
42999
43022
  _ref$titleVariant = _ref.titleVariant,
43000
43023
  titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant;
43024
+ console.log("LinkCard themeValues", themeValues);
43001
43025
 
43002
43026
  var _useContext = React.useContext(styled.ThemeContext),
43003
43027
  isMobile = _useContext.isMobile;
@@ -43005,7 +43029,6 @@ var LinkCard = function LinkCard(_ref) {
43005
43029
  var regex = /\W/g;
43006
43030
  var locatorSlug = title.toLowerCase().replaceAll(regex, "-");
43007
43031
  return /*#__PURE__*/React__default.createElement(Container, {
43008
- border: "1px solid ".concat(themeValues.background, ";"),
43009
43032
  borderRadius: "8px",
43010
43033
  dataQa: "link-card-".concat(locatorSlug),
43011
43034
  width: "100%",
@@ -43013,6 +43036,7 @@ var LinkCard = function LinkCard(_ref) {
43013
43036
  minWidth: isMobile ? "240px" : "288px",
43014
43037
  minHeight: "141px",
43015
43038
  padding: "24px",
43039
+ themeValues: themeValues,
43016
43040
  extraStyles: extraStyles,
43017
43041
  hoverStyles: extraHoverStyles,
43018
43042
  activeStyles: extraActiveStyles,
@@ -43030,21 +43054,21 @@ var LinkCard = function LinkCard(_ref) {
43030
43054
  width: "100%"
43031
43055
  }, /*#__PURE__*/React__default.createElement(Title$2, {
43032
43056
  variant: titleVariant,
43033
- weight: FONT_WEIGHT_SEMIBOLD,
43034
- color: themeValues.color,
43057
+ themeValues: themeValues,
43035
43058
  margin: 0
43036
43059
  }, title)), /*#__PURE__*/React__default.createElement(Box, {
43037
43060
  padding: "0 0 40px",
43038
43061
  width: "100%"
43039
43062
  }, /*#__PURE__*/React__default.createElement(Subtitle, {
43040
43063
  variant: "pS",
43041
- color: themeValues.color
43064
+ themeValues: themeValues
43042
43065
  }, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
43043
43066
  background: "transparent",
43044
43067
  borderWidthOverride: "0 0 0 0",
43045
43068
  padding: "0",
43046
43069
  width: "100%"
43047
43070
  }, /*#__PURE__*/React__default.createElement(Footer, {
43071
+ themeValues: themeValues,
43048
43072
  direction: "row",
43049
43073
  childGap: "6px",
43050
43074
  justify: "space-between"
@@ -46747,7 +46771,7 @@ var borderRadius = {
46747
46771
  largeTitle: "0.25rem",
46748
46772
  small: "0.25rem"
46749
46773
  };
46750
- var backgroundColor$9 = {
46774
+ var backgroundColor$a = {
46751
46775
  "default": WHITE,
46752
46776
  largeTitle: WHITE,
46753
46777
  small: WHITE
@@ -46762,7 +46786,7 @@ var fallbackValues$J = {
46762
46786
  titleSpacing: titleSpacing,
46763
46787
  boxShadow: boxShadow$1,
46764
46788
  borderRadius: borderRadius,
46765
- backgroundColor: backgroundColor$9
46789
+ backgroundColor: backgroundColor$a
46766
46790
  };
46767
46791
 
46768
46792
  /*
@@ -46822,7 +46846,7 @@ var Module = function Module(_ref) {
46822
46846
 
46823
46847
  var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$J, "default"));
46824
46848
 
46825
- var backgroundColor$a = {
46849
+ var backgroundColor$b = {
46826
46850
  profile: "#3b414d",
46827
46851
  cms: "#3b414d"
46828
46852
  };
@@ -46831,7 +46855,7 @@ var shadowColor = {
46831
46855
  cms: "#292A33"
46832
46856
  };
46833
46857
  var fallbackValues$K = {
46834
- backgroundColor: backgroundColor$a,
46858
+ backgroundColor: backgroundColor$b,
46835
46859
  shadowColor: shadowColor
46836
46860
  };
46837
46861
 
@@ -47793,11 +47817,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47793
47817
  var arrowColor = WHITE;
47794
47818
  var numberColor = MATISSE_BLUE;
47795
47819
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47796
- var activeBackgroundColor$1 = WHITE;
47820
+ var activeBackgroundColor$2 = WHITE;
47797
47821
  var activeColor$9 = MATISSE_BLUE;
47798
47822
  var fallbackValues$M = {
47799
47823
  activeColor: activeColor$9,
47800
- activeBackgroundColor: activeBackgroundColor$1,
47824
+ activeBackgroundColor: activeBackgroundColor$2,
47801
47825
  arrowColor: arrowColor,
47802
47826
  hoverBackgroundColor: hoverBackgroundColor$2,
47803
47827
  numberColor: numberColor
@@ -48071,7 +48095,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48071
48095
  }, !hideBackButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, backButton), !hideForwardButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, forwardButton))));
48072
48096
  };
48073
48097
 
48074
- var backgroundColor$b = {
48098
+ var backgroundColor$c = {
48075
48099
  "default": "transparent",
48076
48100
  small: "transparent"
48077
48101
  };
@@ -48088,7 +48112,7 @@ var labeledAmountTotal = {
48088
48112
  small: "p"
48089
48113
  };
48090
48114
  var fallbackValues$N = {
48091
- backgroundColor: backgroundColor$b,
48115
+ backgroundColor: backgroundColor$c,
48092
48116
  lineItem: lineItem,
48093
48117
  labeledAmountSubtotal: labeledAmountSubtotal,
48094
48118
  labeledAmountTotal: labeledAmountTotal
@@ -48485,7 +48509,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48485
48509
 
48486
48510
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
48487
48511
 
48488
- var backgroundColor$c = {
48512
+ var backgroundColor$d = {
48489
48513
  "default": "#ffffff",
48490
48514
  footer: "#ffffff"
48491
48515
  };
@@ -48515,7 +48539,7 @@ var modalLinkHoverFocus$2 = {
48515
48539
  footer: standardInteractionStyles
48516
48540
  };
48517
48541
  var fallbackValues$P = {
48518
- backgroundColor: backgroundColor$c,
48542
+ backgroundColor: backgroundColor$d,
48519
48543
  linkColor: linkColor$6,
48520
48544
  border: border$3,
48521
48545
  fontSize: fontSize$b,
@@ -49376,13 +49400,13 @@ var RadioGroup = function RadioGroup(_ref) {
49376
49400
  var headingBackgroundColor$1 = "".concat(WHITE);
49377
49401
  var headingDisabledColor = "".concat(ATHENS_GREY);
49378
49402
  var bodyBackgroundColor$1 = "#eeeeee";
49379
- var borderColor$5 = "".concat(GREY_CHATEAU);
49403
+ var borderColor$6 = "".concat(GREY_CHATEAU);
49380
49404
  var focusStyles = "outline: none;";
49381
49405
  var fallbackValues$Q = {
49382
49406
  headingBackgroundColor: headingBackgroundColor$1,
49383
49407
  headingDisabledColor: headingDisabledColor,
49384
49408
  bodyBackgroundColor: bodyBackgroundColor$1,
49385
- borderColor: borderColor$5,
49409
+ borderColor: borderColor$6,
49386
49410
  focusStyles: focusStyles
49387
49411
  };
49388
49412