@thecb/components 8.4.0-beta.1 → 8.4.0-beta.10

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,
@@ -42835,7 +42838,8 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42835
42838
  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
42839
 
42837
42840
  var background$3 = {
42838
- "default": "".concat(WHITE)
42841
+ "default": "".concat(WHITE),
42842
+ hover: "".concat(CORNFLOWER_BLUE)
42839
42843
  };
42840
42844
  var color$b = {
42841
42845
  "default": "".concat(ROYAL_BLUE_VIVID)
@@ -42847,82 +42851,71 @@ var fallbackValues$I = {
42847
42851
 
42848
42852
  var LinkCard = function LinkCard(_ref) {
42849
42853
  var _ref$variant = _ref.variant,
42850
- _ref$workflowName = _ref.workflowName,
42851
- workflowName = _ref$workflowName === void 0 ? "Test Workflow" : _ref$workflowName,
42852
- _ref$workflowDescript = _ref.workflowDescription,
42853
- workflowDescription = _ref$workflowDescript === void 0 ? "Link your benefit plan" : _ref$workflowDescript,
42854
- _ref$workflowActionNa = _ref.workflowActionName,
42855
- workflowActionName = _ref$workflowActionNa === void 0 ? "Link an account" : _ref$workflowActionNa,
42854
+ _ref$title = _ref.title,
42855
+ title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42856
+ _ref$subtitle = _ref.subtitle,
42857
+ subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
42856
42858
  themeValues = _ref.themeValues,
42857
- slug = _ref.slug;
42858
- var navigate = reactRouterDom.useNavigate();
42859
+ showLeft = _ref.showLeft,
42860
+ leftContent = _ref.leftContent,
42861
+ showRight = _ref.showRight,
42862
+ rightContent = _ref.rightContent,
42863
+ onClick = _ref.onClick,
42864
+ _ref$extraStyles = _ref.extraStyles,
42865
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
42866
+ _ref$extraHoverStyles = _ref.extraHoverStyles,
42867
+ extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles,
42868
+ _ref$extraActiveStyle = _ref.extraActiveStyles,
42869
+ extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle;
42870
+ var activeAndHoverStyles = "cursor: pointer;\n border-radius: 8px;\n border: 1px solid ".concat(themeValues.color, ";\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);");
42859
42871
  return /*#__PURE__*/React__default.createElement(Box, {
42860
- background: "#FEFEFE" // --grays-cool-gray-00
42861
- ,
42862
- border: "1px solid #C4CEF4;" // --primary-color-primary-30
42863
- ,
42864
- padding: 0,
42872
+ border: "1px solid ".concat(MOON_RAKER, ";"),
42865
42873
  borderRadius: "8px",
42866
- dataQa: "link-card-".concat(workflowDescription),
42867
- hoverStyles: "\n border-radius: 8px;\n cursor: pointer;\n border: 1px solid ".concat(ROYAL_BLUE_VIVID, ";\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(ROYAL_BLUE_VIVID, ";}\n "),
42868
- extraStyles: "display: flex; width: 288px; min-width: 240px; max-width: 288px; min-height: 141px; padding: 16px 24px; flex-direction: column; align-items: flex-start; gap: 40px; flex-shrink: 0; align-self: stretch;",
42869
- onClick: function onClick() {
42870
- // @TODO replace with something valid like navigate
42871
- console.log("attempting navigation..."); // window.location.pathname = `/service/${slug}`;
42872
-
42873
- navigate("/service/".concat(slug));
42874
- }
42874
+ dataQa: "link-card-".concat(title),
42875
+ width: "100%",
42876
+ maxWidth: "288px",
42877
+ minWidth: "240px",
42878
+ minHeight: "141px",
42879
+ padding: "24px",
42880
+ extraStyles: "\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n gap: 40px;\n flex-shrink: 0;\n align-self: stretch;\n ".concat(extraStyles, "\n "),
42881
+ hoverStyles: "".concat(activeAndHoverStyles, "\n border: 0;\n ").concat(extraHoverStyles, "\n "),
42882
+ activeStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraActiveStyles, "\n "),
42883
+ onClick: onClick
42875
42884
  }, /*#__PURE__*/React__default.createElement(Stack, {
42876
42885
  childGap: 0,
42877
42886
  bottomItem: 3,
42887
+ justify: "space-between",
42888
+ style: {
42889
+ width: "100%"
42890
+ },
42878
42891
  fullHeight: true
42879
42892
  }, /*#__PURE__*/React__default.createElement(Box, {
42880
- padding: "1rem 1rem 0 1rem"
42893
+ padding: 0,
42894
+ width: "100%"
42881
42895
  }, /*#__PURE__*/React__default.createElement(Heading$1, {
42882
42896
  variant: "h6",
42883
42897
  weight: FONT_WEIGHT_SEMIBOLD,
42884
42898
  color: themeValues.color,
42885
42899
  margin: 0,
42886
- 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%;"
42887
- }, workflowName)), /*#__PURE__*/React__default.createElement(Box, {
42888
- padding: "0 1rem 0",
42889
- minHeight: "4.25rem"
42900
+ extraStyles: "display: -webkit-box; \n background-color: transparent;\n -webkit-box-orient: vertical; \n -webkit-line-clamp: 2; \n align-self: stretch;\n overflow: hidden; \n text-overflow: ellipsis; \n font-family: Public Sans; \n font-size: 16px; \n font-style: normal; \n font-weight: 600;\n line-height: 150%;\n "
42901
+ }, title)), /*#__PURE__*/React__default.createElement(Box, {
42902
+ padding: "0 0 40px",
42903
+ width: "100%"
42890
42904
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
42891
42905
  variant: "pS",
42892
42906
  color: themeValues.color,
42893
42907
  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;"
42894
- }, workflowDescription)), /*#__PURE__*/React__default.createElement(Box, {
42908
+ }, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
42895
42909
  background: "transparent",
42896
42910
  borderWidthOverride: "0 0 0 0",
42897
- padding: "0 1rem 1rem 1rem"
42911
+ padding: "0",
42912
+ width: "100%"
42898
42913
  }, /*#__PURE__*/React__default.createElement(Stack, {
42899
42914
  direction: "row",
42900
- justify: "space-between"
42901
- }, /*#__PURE__*/React__default.createElement(Box, {
42902
- background: "transparent",
42903
- borderWidthOverride: "0 0 0 0",
42904
- padding: "0"
42905
- }, /*#__PURE__*/React__default.createElement(Badge$1, {
42906
- label: "Autopay Available",
42907
- Icon: AutopayIcon
42908
- })), /*#__PURE__*/React__default.createElement(Stack, {
42909
- direction: "row",
42910
- childGap: "6px"
42911
- }, workflowActionName === "Link an account" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Text$1, {
42912
- variant: "pS",
42913
- color: themeValues.color,
42914
- extraStyles: "text-align: right; color: transparent;",
42915
- className: "show-on-hover"
42916
- }, "Find"), /*#__PURE__*/React__default.createElement(PlusCircleIcon, {
42917
- color: themeValues.color
42918
- })), workflowActionName === "Pay now" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Text$1, {
42919
- variant: "pS",
42920
- color: themeValues.color,
42921
- extraStyles: "text-align: right; color: transparent;",
42922
- className: "show-on-hover"
42923
- }, "Pay"), /*#__PURE__*/React__default.createElement(ArrowRightIcon, {
42924
- color: themeValues.color
42925
- })))))));
42915
+ childGap: "6px",
42916
+ justify: "space-between",
42917
+ extraStyles: "width: 100%; justify-content: space-between"
42918
+ }, showLeft && leftContent, showRight && rightContent))));
42926
42919
  };
42927
42920
 
42928
42921
  var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");