@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.esm.js CHANGED
@@ -42943,29 +42943,52 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
42943
42943
  var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42944
42944
  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);
42945
42945
 
42946
- var background$3 = {
42946
+ var activeBackgroundColor$1 = {
42947
+ "default": CORNFLOWER_BLUE
42948
+ };
42949
+ var backgroundColor$9 = {
42950
+ "default": LINK_WATER
42951
+ };
42952
+ var borderColor$5 = {
42947
42953
  "default": MOON_RAKER
42948
42954
  };
42949
42955
  var color$b = {
42950
42956
  "default": ROYAL_BLUE_VIVID
42951
42957
  };
42952
42958
  var fallbackValues$I = {
42953
- background: background$3,
42959
+ activeBackgroundColor: activeBackgroundColor$1,
42960
+ backgroundColor: backgroundColor$9,
42961
+ borderColor: borderColor$5,
42954
42962
  color: color$b
42955
42963
  };
42956
42964
 
42957
42965
  var Container = styled(Box).withConfig({
42958
42966
  displayName: "LinkCardstyled__Container",
42959
42967
  componentId: "sc-l5q1h2-0"
42960
- })(["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);
42968
+ })(["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) {
42969
+ var themeValues = _ref.themeValues;
42970
+ return "\n background-color: ".concat(themeValues.backgroundColor, ";\n border: 1px solid ").concat(themeValues.borderColor, ";\n ");
42971
+ }, function (_ref2) {
42972
+ var themeValues = _ref2.themeValues;
42973
+ return "border: 1px solid ".concat(themeValues.borderColor, ";");
42974
+ }, function (_ref3) {
42975
+ var themeValues = _ref3.themeValues;
42976
+ return "\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border: 1px solid ").concat(themeValues.color, ";\n ;");
42977
+ });
42961
42978
  var Title$2 = styled(Heading$1).withConfig({
42962
42979
  displayName: "LinkCardstyled__Title",
42963
42980
  componentId: "sc-l5q1h2-1"
42964
- })(["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;"]);
42981
+ })(["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) {
42982
+ var themeValues = _ref4.themeValues;
42983
+ return "color: ".concat(themeValues.color, ";");
42984
+ });
42965
42985
  var Subtitle = styled(Paragraph$1).withConfig({
42966
42986
  displayName: "LinkCardstyled__Subtitle",
42967
42987
  componentId: "sc-l5q1h2-2"
42968
- })(["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;"]);
42988
+ })(["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) {
42989
+ var themeValues = _ref5.themeValues;
42990
+ return "color: ".concat(themeValues.color, ";");
42991
+ });
42969
42992
  var Footer = styled(Stack).withConfig({
42970
42993
  displayName: "LinkCardstyled__Footer",
42971
42994
  componentId: "sc-l5q1h2-3"
@@ -42990,6 +43013,7 @@ var LinkCard = function LinkCard(_ref) {
42990
43013
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
42991
43014
  _ref$titleVariant = _ref.titleVariant,
42992
43015
  titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant;
43016
+ console.log("LinkCard themeValues", themeValues);
42993
43017
 
42994
43018
  var _useContext = useContext(ThemeContext),
42995
43019
  isMobile = _useContext.isMobile;
@@ -42997,7 +43021,6 @@ var LinkCard = function LinkCard(_ref) {
42997
43021
  var regex = /\W/g;
42998
43022
  var locatorSlug = title.toLowerCase().replaceAll(regex, "-");
42999
43023
  return /*#__PURE__*/React.createElement(Container, {
43000
- border: "1px solid ".concat(themeValues.background, ";"),
43001
43024
  borderRadius: "8px",
43002
43025
  dataQa: "link-card-".concat(locatorSlug),
43003
43026
  width: "100%",
@@ -43005,6 +43028,7 @@ var LinkCard = function LinkCard(_ref) {
43005
43028
  minWidth: isMobile ? "240px" : "288px",
43006
43029
  minHeight: "141px",
43007
43030
  padding: "24px",
43031
+ themeValues: themeValues,
43008
43032
  extraStyles: extraStyles,
43009
43033
  hoverStyles: extraHoverStyles,
43010
43034
  activeStyles: extraActiveStyles,
@@ -43022,21 +43046,21 @@ var LinkCard = function LinkCard(_ref) {
43022
43046
  width: "100%"
43023
43047
  }, /*#__PURE__*/React.createElement(Title$2, {
43024
43048
  variant: titleVariant,
43025
- weight: FONT_WEIGHT_SEMIBOLD,
43026
- color: themeValues.color,
43049
+ themeValues: themeValues,
43027
43050
  margin: 0
43028
43051
  }, title)), /*#__PURE__*/React.createElement(Box, {
43029
43052
  padding: "0 0 40px",
43030
43053
  width: "100%"
43031
43054
  }, /*#__PURE__*/React.createElement(Subtitle, {
43032
43055
  variant: "pS",
43033
- color: themeValues.color
43056
+ themeValues: themeValues
43034
43057
  }, subtitle)), /*#__PURE__*/React.createElement(Box, {
43035
43058
  background: "transparent",
43036
43059
  borderWidthOverride: "0 0 0 0",
43037
43060
  padding: "0",
43038
43061
  width: "100%"
43039
43062
  }, /*#__PURE__*/React.createElement(Footer, {
43063
+ themeValues: themeValues,
43040
43064
  direction: "row",
43041
43065
  childGap: "6px",
43042
43066
  justify: "space-between"
@@ -46739,7 +46763,7 @@ var borderRadius = {
46739
46763
  largeTitle: "0.25rem",
46740
46764
  small: "0.25rem"
46741
46765
  };
46742
- var backgroundColor$9 = {
46766
+ var backgroundColor$a = {
46743
46767
  "default": WHITE,
46744
46768
  largeTitle: WHITE,
46745
46769
  small: WHITE
@@ -46754,7 +46778,7 @@ var fallbackValues$J = {
46754
46778
  titleSpacing: titleSpacing,
46755
46779
  boxShadow: boxShadow$1,
46756
46780
  borderRadius: borderRadius,
46757
- backgroundColor: backgroundColor$9
46781
+ backgroundColor: backgroundColor$a
46758
46782
  };
46759
46783
 
46760
46784
  /*
@@ -46814,7 +46838,7 @@ var Module = function Module(_ref) {
46814
46838
 
46815
46839
  var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$J, "default"));
46816
46840
 
46817
- var backgroundColor$a = {
46841
+ var backgroundColor$b = {
46818
46842
  profile: "#3b414d",
46819
46843
  cms: "#3b414d"
46820
46844
  };
@@ -46823,7 +46847,7 @@ var shadowColor = {
46823
46847
  cms: "#292A33"
46824
46848
  };
46825
46849
  var fallbackValues$K = {
46826
- backgroundColor: backgroundColor$a,
46850
+ backgroundColor: backgroundColor$b,
46827
46851
  shadowColor: shadowColor
46828
46852
  };
46829
46853
 
@@ -47785,11 +47809,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47785
47809
  var arrowColor = WHITE;
47786
47810
  var numberColor = MATISSE_BLUE;
47787
47811
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47788
- var activeBackgroundColor$1 = WHITE;
47812
+ var activeBackgroundColor$2 = WHITE;
47789
47813
  var activeColor$9 = MATISSE_BLUE;
47790
47814
  var fallbackValues$M = {
47791
47815
  activeColor: activeColor$9,
47792
- activeBackgroundColor: activeBackgroundColor$1,
47816
+ activeBackgroundColor: activeBackgroundColor$2,
47793
47817
  arrowColor: arrowColor,
47794
47818
  hoverBackgroundColor: hoverBackgroundColor$2,
47795
47819
  numberColor: numberColor
@@ -48063,7 +48087,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48063
48087
  }, !hideBackButton && /*#__PURE__*/React.createElement(Fragment$1, null, backButton), !hideForwardButton && /*#__PURE__*/React.createElement(Fragment$1, null, forwardButton))));
48064
48088
  };
48065
48089
 
48066
- var backgroundColor$b = {
48090
+ var backgroundColor$c = {
48067
48091
  "default": "transparent",
48068
48092
  small: "transparent"
48069
48093
  };
@@ -48080,7 +48104,7 @@ var labeledAmountTotal = {
48080
48104
  small: "p"
48081
48105
  };
48082
48106
  var fallbackValues$N = {
48083
- backgroundColor: backgroundColor$b,
48107
+ backgroundColor: backgroundColor$c,
48084
48108
  lineItem: lineItem,
48085
48109
  labeledAmountSubtotal: labeledAmountSubtotal,
48086
48110
  labeledAmountTotal: labeledAmountTotal
@@ -48477,7 +48501,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48477
48501
 
48478
48502
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
48479
48503
 
48480
- var backgroundColor$c = {
48504
+ var backgroundColor$d = {
48481
48505
  "default": "#ffffff",
48482
48506
  footer: "#ffffff"
48483
48507
  };
@@ -48507,7 +48531,7 @@ var modalLinkHoverFocus$2 = {
48507
48531
  footer: standardInteractionStyles
48508
48532
  };
48509
48533
  var fallbackValues$P = {
48510
- backgroundColor: backgroundColor$c,
48534
+ backgroundColor: backgroundColor$d,
48511
48535
  linkColor: linkColor$6,
48512
48536
  border: border$3,
48513
48537
  fontSize: fontSize$b,
@@ -49368,13 +49392,13 @@ var RadioGroup = function RadioGroup(_ref) {
49368
49392
  var headingBackgroundColor$1 = "".concat(WHITE);
49369
49393
  var headingDisabledColor = "".concat(ATHENS_GREY);
49370
49394
  var bodyBackgroundColor$1 = "#eeeeee";
49371
- var borderColor$5 = "".concat(GREY_CHATEAU);
49395
+ var borderColor$6 = "".concat(GREY_CHATEAU);
49372
49396
  var focusStyles = "outline: none;";
49373
49397
  var fallbackValues$Q = {
49374
49398
  headingBackgroundColor: headingBackgroundColor$1,
49375
49399
  headingDisabledColor: headingDisabledColor,
49376
49400
  bodyBackgroundColor: bodyBackgroundColor$1,
49377
- borderColor: borderColor$5,
49401
+ borderColor: borderColor$6,
49378
49402
  focusStyles: focusStyles
49379
49403
  };
49380
49404