@thecb/components 8.4.0-beta.16 → 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.esm.js CHANGED
@@ -42836,17 +42836,33 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42836
42836
  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);
42837
42837
 
42838
42838
  var background$3 = {
42839
- "default": "".concat(WHITE),
42840
- hover: "".concat(CORNFLOWER_BLUE)
42839
+ "default": MOON_RAKER
42841
42840
  };
42842
42841
  var color$b = {
42843
- "default": "".concat(ROYAL_BLUE_VIVID)
42842
+ "default": ROYAL_BLUE_VIVID
42844
42843
  };
42845
42844
  var fallbackValues$I = {
42846
42845
  background: background$3,
42847
42846
  color: color$b
42848
42847
  };
42849
42848
 
42849
+ var Container = styled(Box).withConfig({
42850
+ displayName: "LinkCardstyled__Container",
42851
+ componentId: "sc-l5q1h2-0"
42852
+ })(["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);
42853
+ var Title$2 = styled(Heading$1).withConfig({
42854
+ displayName: "LinkCardstyled__Title",
42855
+ componentId: "sc-l5q1h2-1"
42856
+ })(["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;"]);
42857
+ var Subtitle = styled(Paragraph$1).withConfig({
42858
+ displayName: "LinkCardstyled__Subtitle",
42859
+ componentId: "sc-l5q1h2-2"
42860
+ })(["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;"]);
42861
+ var Footer = styled(Stack).withConfig({
42862
+ displayName: "LinkCardstyled__Footer",
42863
+ componentId: "sc-l5q1h2-3"
42864
+ })(["align-items:center;width:100%;"]);
42865
+
42850
42866
  var LinkCard = function LinkCard(_ref) {
42851
42867
  var _ref$title = _ref.title,
42852
42868
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
@@ -42868,9 +42884,8 @@ var LinkCard = function LinkCard(_ref) {
42868
42884
  var _useContext = useContext(ThemeContext),
42869
42885
  isMobile = _useContext.isMobile;
42870
42886
 
42871
- 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);");
42872
- return /*#__PURE__*/React.createElement(Box, {
42873
- border: "1px solid ".concat(MOON_RAKER, ";"),
42887
+ return /*#__PURE__*/React.createElement(Container, {
42888
+ border: "1px solid ".concat(themeValues.background, ";"),
42874
42889
  borderRadius: "8px",
42875
42890
  dataQa: "link-card-".concat(title),
42876
42891
  width: "100%",
@@ -42878,9 +42893,9 @@ var LinkCard = function LinkCard(_ref) {
42878
42893
  minWidth: isMobile ? "240px" : "288px",
42879
42894
  minHeight: "141px",
42880
42895
  padding: "24px",
42881
- 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 "),
42882
- hoverStyles: "".concat(activeAndHoverStyles, "\n border: 0;\n ").concat(extraHoverStyles, "\n "),
42883
- activeStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraActiveStyles, "\n "),
42896
+ extraStyles: extraStyles,
42897
+ hoverStyles: extraHoverStyles,
42898
+ activeStyles: extraActiveStyles,
42884
42899
  onClick: onClick
42885
42900
  }, /*#__PURE__*/React.createElement(Stack, {
42886
42901
  childGap: 0,
@@ -42893,30 +42908,27 @@ var LinkCard = function LinkCard(_ref) {
42893
42908
  }, /*#__PURE__*/React.createElement(Box, {
42894
42909
  padding: 0,
42895
42910
  width: "100%"
42896
- }, /*#__PURE__*/React.createElement(Heading$1, {
42911
+ }, /*#__PURE__*/React.createElement(Title$2, {
42897
42912
  variant: "h6",
42898
42913
  weight: FONT_WEIGHT_SEMIBOLD,
42899
42914
  color: themeValues.color,
42900
- margin: 0,
42901
- 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 "
42915
+ margin: 0
42902
42916
  }, title)), /*#__PURE__*/React.createElement(Box, {
42903
42917
  padding: "0 0 40px",
42904
42918
  width: "100%"
42905
- }, /*#__PURE__*/React.createElement(Paragraph$1, {
42919
+ }, /*#__PURE__*/React.createElement(Subtitle, {
42906
42920
  variant: "pS",
42907
- color: themeValues.color,
42908
- 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;"
42921
+ color: themeValues.color
42909
42922
  }, subtitle)), /*#__PURE__*/React.createElement(Box, {
42910
42923
  background: "transparent",
42911
42924
  borderWidthOverride: "0 0 0 0",
42912
42925
  padding: "0",
42913
42926
  width: "100%"
42914
- }, /*#__PURE__*/React.createElement(Stack, {
42927
+ }, /*#__PURE__*/React.createElement(Footer, {
42915
42928
  direction: "row",
42916
42929
  childGap: "6px",
42917
- justify: "space-between",
42918
- extraStyles: "width: 100%; align-items: flex-end;"
42919
- }, showLeft && leftContent, showRight && rightContent))));
42930
+ justify: "space-between"
42931
+ }, showLeft && !leftContent && /*#__PURE__*/React.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
42920
42932
  };
42921
42933
 
42922
42934
  var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");