@thecb/components 8.4.0-beta.17 → 8.4.0-beta.18

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
@@ -42844,17 +42844,33 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42844
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);
42845
42845
 
42846
42846
  var background$3 = {
42847
- "default": "".concat(WHITE),
42848
- hover: "".concat(CORNFLOWER_BLUE)
42847
+ "default": MOON_RAKER
42849
42848
  };
42850
42849
  var color$b = {
42851
- "default": "".concat(ROYAL_BLUE_VIVID)
42850
+ "default": ROYAL_BLUE_VIVID
42852
42851
  };
42853
42852
  var fallbackValues$I = {
42854
42853
  background: background$3,
42855
42854
  color: color$b
42856
42855
  };
42857
42856
 
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;&:hover,&:active{cursor:pointer;border-radius:8px;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%;"]);
42873
+
42858
42874
  var LinkCard = function LinkCard(_ref) {
42859
42875
  var _ref$title = _ref.title,
42860
42876
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
@@ -42876,9 +42892,8 @@ var LinkCard = function LinkCard(_ref) {
42876
42892
  var _useContext = React.useContext(styled.ThemeContext),
42877
42893
  isMobile = _useContext.isMobile;
42878
42894
 
42879
- 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);");
42880
- return /*#__PURE__*/React__default.createElement(Box, {
42881
- border: "1px solid ".concat(MOON_RAKER, ";"),
42895
+ return /*#__PURE__*/React__default.createElement(Container, {
42896
+ border: "1px solid ".concat(themeValues.background, ";"),
42882
42897
  borderRadius: "8px",
42883
42898
  dataQa: "link-card-".concat(title),
42884
42899
  width: "100%",
@@ -42886,9 +42901,9 @@ var LinkCard = function LinkCard(_ref) {
42886
42901
  minWidth: isMobile ? "240px" : "288px",
42887
42902
  minHeight: "141px",
42888
42903
  padding: "24px",
42889
- 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 "),
42890
- hoverStyles: "".concat(activeAndHoverStyles, "\n border: 0;\n ").concat(extraHoverStyles, "\n "),
42891
- activeStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraActiveStyles, "\n "),
42904
+ extraStyles: extraStyles,
42905
+ hoverStyles: extraHoverStyles,
42906
+ activeStyles: extraActiveStyles,
42892
42907
  onClick: onClick
42893
42908
  }, /*#__PURE__*/React__default.createElement(Stack, {
42894
42909
  childGap: 0,
@@ -42901,30 +42916,27 @@ var LinkCard = function LinkCard(_ref) {
42901
42916
  }, /*#__PURE__*/React__default.createElement(Box, {
42902
42917
  padding: 0,
42903
42918
  width: "100%"
42904
- }, /*#__PURE__*/React__default.createElement(Heading$1, {
42919
+ }, /*#__PURE__*/React__default.createElement(Title$2, {
42905
42920
  variant: "h6",
42906
42921
  weight: FONT_WEIGHT_SEMIBOLD,
42907
42922
  color: themeValues.color,
42908
- margin: 0,
42909
- extraStyles: "\n display: -webkit-box; \n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n align-self: stretch;\n overflow: hidden; \n text-overflow: ellipsis;\n font-size: 16px;\n line-height: 150%;\n background-color: transparent;\n "
42923
+ margin: 0
42910
42924
  }, title)), /*#__PURE__*/React__default.createElement(Box, {
42911
42925
  padding: "0 0 40px",
42912
42926
  width: "100%"
42913
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
42927
+ }, /*#__PURE__*/React__default.createElement(Subtitle, {
42914
42928
  variant: "pS",
42915
- color: themeValues.color,
42916
- extraStyles: "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;"
42929
+ color: themeValues.color
42917
42930
  }, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
42918
42931
  background: "transparent",
42919
42932
  borderWidthOverride: "0 0 0 0",
42920
42933
  padding: "0",
42921
42934
  width: "100%"
42922
- }, /*#__PURE__*/React__default.createElement(Stack, {
42935
+ }, /*#__PURE__*/React__default.createElement(Footer, {
42923
42936
  direction: "row",
42924
42937
  childGap: "6px",
42925
- justify: "space-between",
42926
- extraStyles: "width: 100%; align-items: flex-end;"
42927
- }, showLeft && leftContent ? leftContent : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), showRight && rightContent))));
42938
+ justify: "space-between"
42939
+ }, showLeft && !leftContent && /*#__PURE__*/React__default.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
42928
42940
  };
42929
42941
 
42930
42942
  var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");