@thecb/components 8.4.0-beta.2 → 8.4.0-beta.20

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
@@ -4959,8 +4959,8 @@ Name already taken? If you can't use the existing color, then use thesaurus.com
4959
4959
  to the one generated by name-that-color.
4960
4960
  */
4961
4961
  var BLACK = "#000000";
4962
- var TRANSPARENT = "transparent"; // WHITE
4963
-
4962
+ var TRANSPARENT = "transparent";
4963
+ var LINK_WATER = "#FEFEFE";
4964
4964
  var WHITE = "#FFFFFF";
4965
4965
  var SOLITUDE_WHITE = "#EBEDF1";
4966
4966
  var SEASHELL_WHITE = "#F1F1F1";
@@ -5007,6 +5007,7 @@ var MARINER_BLUE = "#2E75D2";
5007
5007
  var CURIOUS_BLUE = "#27A9E1";
5008
5008
  var SELAGO_BLUE = "#F2F8FD";
5009
5009
  var ONAHAU_BLUE = "#D1ECFF";
5010
+ var MOON_RAKER = "#C4CEF4";
5010
5011
  var PICKLED_BLUE = "#2C3E50";
5011
5012
  var CERULEAN_BLUE = "#0D8DC4";
5012
5013
  var FOAM_BLUE = "#EFF4FD";
@@ -5103,6 +5104,7 @@ var colors = /*#__PURE__*/Object.freeze({
5103
5104
  BLACK: BLACK,
5104
5105
  TRANSPARENT: TRANSPARENT,
5105
5106
  WHITE: WHITE,
5107
+ LINK_WATER: LINK_WATER,
5106
5108
  SOLITUDE_WHITE: SOLITUDE_WHITE,
5107
5109
  SEASHELL_WHITE: SEASHELL_WHITE,
5108
5110
  ALABASTER_WHITE: ALABASTER_WHITE,
@@ -5140,6 +5142,7 @@ var colors = /*#__PURE__*/Object.freeze({
5140
5142
  CURIOUS_BLUE: CURIOUS_BLUE,
5141
5143
  SELAGO_BLUE: SELAGO_BLUE,
5142
5144
  ONAHAU_BLUE: ONAHAU_BLUE,
5145
+ MOON_RAKER: MOON_RAKER,
5143
5146
  PICKLED_BLUE: PICKLED_BLUE,
5144
5147
  CERULEAN_BLUE: CERULEAN_BLUE,
5145
5148
  FOAM_BLUE: FOAM_BLUE,
@@ -17674,13 +17677,16 @@ var ArrowRightCircleIconSmall = function ArrowRightCircleIconSmall(_ref) {
17674
17677
 
17675
17678
  var ArrowRightIcon = function ArrowRightIcon(_ref) {
17676
17679
  var _ref$color = _ref.color,
17677
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
17680
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
17681
+ _ref$labeledBy = _ref.labeledBy,
17682
+ labeledBy = _ref$labeledBy === void 0 ? "" : _ref$labeledBy;
17678
17683
  return /*#__PURE__*/React__default.createElement("svg", {
17679
17684
  xmlns: "http://www.w3.org/2000/svg",
17680
17685
  width: "20",
17681
17686
  height: "20",
17682
17687
  viewBox: "0 0 20 20",
17683
- fill: "none"
17688
+ fill: "none",
17689
+ "aria-labeledBy": labeledBy
17684
17690
  }, /*#__PURE__*/React__default.createElement("path", {
17685
17691
  fillRule: "evenodd",
17686
17692
  clipRule: "evenodd",
@@ -18102,13 +18108,16 @@ var ChargebackReversalIconMedium = function ChargebackReversalIconMedium(_ref) {
18102
18108
 
18103
18109
  var PlusCircleIcon = function PlusCircleIcon(_ref) {
18104
18110
  var _ref$color = _ref.color,
18105
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
18111
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
18112
+ _ref$labeledBy = _ref.labeledBy,
18113
+ labeledBy = _ref$labeledBy === void 0 ? "" : _ref$labeledBy;
18106
18114
  return /*#__PURE__*/React__default.createElement("svg", {
18107
18115
  xmlns: "http://www.w3.org/2000/svg",
18108
18116
  width: "20",
18109
18117
  height: "20",
18110
18118
  viewBox: "0 0 20 20",
18111
- fill: "none"
18119
+ fill: "none",
18120
+ "aria-labelledby": labeledBy
18112
18121
  }, /*#__PURE__*/React__default.createElement("path", {
18113
18122
  fillRule: "evenodd",
18114
18123
  clipRule: "evenodd",
@@ -19767,9 +19776,9 @@ var fontFamily$2 = {
19767
19776
  primary: "Public Sans",
19768
19777
  secondary: "Open Sans"
19769
19778
  };
19770
- var hoverColor$2 = "#116285";
19771
- var activeColor$3 = "#0E506D";
19772
- var externalLinkColor = "#15749D";
19779
+ var hoverColor$2 = SAPPHIRE_BLUE;
19780
+ var activeColor$3 = PEACOCK_BLUE;
19781
+ var externalLinkColor = MATISSE_BLUE;
19773
19782
  var fallbackValues$a = {
19774
19783
  fontFamily: fontFamily$2,
19775
19784
  hoverColor: hoverColor$2,
@@ -42835,78 +42844,99 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42835
42844
  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);
42836
42845
 
42837
42846
  var background$3 = {
42838
- "default": "".concat(WHITE)
42847
+ "default": MOON_RAKER
42839
42848
  };
42840
42849
  var color$b = {
42841
- "default": "".concat(ROYAL_BLUE_VIVID)
42850
+ "default": ROYAL_BLUE_VIVID
42842
42851
  };
42843
42852
  var fallbackValues$I = {
42844
42853
  background: background$3,
42845
42854
  color: color$b
42846
42855
  };
42847
42856
 
42848
- // import ArrowRightIcon from "../../atoms/icons/ArrowRightIcon";
42857
+ var Container = styled__default(Box).withConfig({
42858
+ displayName: "LinkCardstyled__Container",
42859
+ componentId: "sc-l5q1h2-0"
42860
+ })(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;&:hover,&:active{margin-top:2px;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:0;}&:active{border:1px solid ", ";}"], ROYAL_BLUE_VIVID);
42861
+ var Title$2 = styled__default(Heading$1).withConfig({
42862
+ displayName: "LinkCardstyled__Title",
42863
+ componentId: "sc-l5q1h2-1"
42864
+ })(["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;"]);
42865
+ var Subtitle = styled__default(Paragraph$1).withConfig({
42866
+ displayName: "LinkCardstyled__Subtitle",
42867
+ componentId: "sc-l5q1h2-2"
42868
+ })(["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;"]);
42869
+ var Footer = styled__default(Stack).withConfig({
42870
+ displayName: "LinkCardstyled__Footer",
42871
+ componentId: "sc-l5q1h2-3"
42872
+ })(["align-items:center;width:100%;"]);
42849
42873
 
42850
42874
  var LinkCard = function LinkCard(_ref) {
42851
- var _ref$variant = _ref.variant,
42852
- _ref$title = _ref.title,
42875
+ var _ref$title = _ref.title,
42853
42876
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42854
42877
  _ref$subtitle = _ref.subtitle,
42855
42878
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
42856
42879
  themeValues = _ref.themeValues,
42857
- path = _ref.path,
42858
42880
  showLeft = _ref.showLeft,
42859
42881
  leftContent = _ref.leftContent,
42860
42882
  showRight = _ref.showRight,
42861
- rightContent = _ref.rightContent;
42862
- var navigate = reactRouterDom.useNavigate();
42863
- var activeHoverStyles = "\n border-radius: 8px;\n cursor: pointer;\n border: 1px solid ".concat(themeValues.color, ";\n background: var(--primary-color-primary-10, #EBEFFB);\n /* Primitives/New Shadow/3-Pressed-New */\n box-shadow: 0px 0px 0px 0px rgba(41, 42, 51, 0.10), 0px 5px 11px 0px rgba(41, 42, 51, 0.10), 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.00);\n .show-on-hover {color: ").concat(themeValues.color, ";}\n ");
42864
- return /*#__PURE__*/React__default.createElement(Box, {
42865
- background: "#FEFEFE" // --grays-cool-gray-00
42866
- ,
42867
- border: "1px solid #C4CEF4;" // --primary-color-primary-30
42868
- ,
42883
+ rightContent = _ref.rightContent,
42884
+ onClick = _ref.onClick,
42885
+ _ref$extraStyles = _ref.extraStyles,
42886
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
42887
+ _ref$extraHoverStyles = _ref.extraHoverStyles,
42888
+ extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles,
42889
+ _ref$extraActiveStyle = _ref.extraActiveStyles,
42890
+ extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle;
42891
+
42892
+ var _useContext = React.useContext(styled.ThemeContext),
42893
+ isMobile = _useContext.isMobile;
42894
+
42895
+ return /*#__PURE__*/React__default.createElement(Container, {
42896
+ border: "1px solid ".concat(themeValues.background, ";"),
42869
42897
  borderRadius: "8px",
42870
42898
  dataQa: "link-card-".concat(title),
42871
42899
  width: "100%",
42872
- maxWidth: "288px",
42873
- minWidth: "240px",
42900
+ maxWidth: isMobile ? "100%" : "288px",
42901
+ minWidth: isMobile ? "240px" : "288px",
42874
42902
  minHeight: "141px",
42875
- padding: "16px 24px",
42876
- extraStyles: " display: flex; flex-direction: column; align-items: flex-start; gap: 40px; flex-shrink: 0; align-self: stretch;",
42877
- hoverStyles: activeHoverStyles,
42878
- activeStyles: activeHoverStyles,
42879
- onClick: function onClick() {
42880
- navigate(path);
42881
- }
42903
+ padding: "24px",
42904
+ extraStyles: extraStyles,
42905
+ hoverStyles: extraHoverStyles,
42906
+ activeStyles: extraActiveStyles,
42907
+ onClick: onClick
42882
42908
  }, /*#__PURE__*/React__default.createElement(Stack, {
42883
42909
  childGap: 0,
42884
42910
  bottomItem: 3,
42911
+ justify: "space-between",
42912
+ style: {
42913
+ width: "100%"
42914
+ },
42885
42915
  fullHeight: true
42886
42916
  }, /*#__PURE__*/React__default.createElement(Box, {
42887
- padding: "1rem 1rem 0 1rem"
42888
- }, /*#__PURE__*/React__default.createElement(Heading$1, {
42917
+ padding: 0,
42918
+ width: "100%"
42919
+ }, /*#__PURE__*/React__default.createElement(Title$2, {
42889
42920
  variant: "h6",
42890
42921
  weight: FONT_WEIGHT_SEMIBOLD,
42891
42922
  color: themeValues.color,
42892
- margin: 0,
42893
- extraStyles: "display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch; overflow: hidden; text-overflow: ellipsis; font-family: Public Sans; font-size: 16px; font-style: normal; font-weight: 600; line-height: 150%;"
42923
+ margin: 0
42894
42924
  }, title)), /*#__PURE__*/React__default.createElement(Box, {
42895
- padding: "0 1rem 40px"
42896
- /* minHeight={"4.25rem"}*/
42897
-
42898
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
42925
+ padding: "0 0 40px",
42926
+ width: "100%"
42927
+ }, /*#__PURE__*/React__default.createElement(Subtitle, {
42899
42928
  variant: "pS",
42900
- color: themeValues.color,
42901
- extraStyles: "overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch; /* CB Standard/Desktop/D - P Small - Regular */ font-family: Public Sans; font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; /* 21px */ letter-spacing: 0.14px;"
42929
+ color: themeValues.color
42902
42930
  }, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
42903
42931
  background: "transparent",
42904
42932
  borderWidthOverride: "0 0 0 0",
42905
- padding: "0 1rem 1rem 1rem"
42906
- }, /*#__PURE__*/React__default.createElement(Stack, {
42933
+ padding: "0",
42934
+ width: "100%"
42935
+ }, /*#__PURE__*/React__default.createElement(Footer, {
42907
42936
  direction: "row",
42937
+ childGap: "6px",
42908
42938
  justify: "space-between"
42909
- }, showLeft && leftContent, showRight && rightContent))));
42939
+ }, showLeft && !leftContent && /*#__PURE__*/React__default.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
42910
42940
  };
42911
42941
 
42912
42942
  var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");