@thecb/components 8.4.0-beta.2 → 8.4.0-beta.3
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
|
@@ -42850,55 +42850,62 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42850
42850
|
showLeft = _ref.showLeft,
|
|
42851
42851
|
leftContent = _ref.leftContent,
|
|
42852
42852
|
showRight = _ref.showRight,
|
|
42853
|
-
rightContent = _ref.rightContent
|
|
42854
|
-
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
|
|
42858
|
-
|
|
42859
|
-
|
|
42860
|
-
,
|
|
42861
|
-
|
|
42862
|
-
|
|
42863
|
-
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42883
|
-
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42853
|
+
rightContent = _ref.rightContent,
|
|
42854
|
+
_ref$onClick = _ref.onClick,
|
|
42855
|
+
onClick = _ref$onClick === void 0 ? function () {
|
|
42856
|
+
return navigate(path);
|
|
42857
|
+
} : _ref$onClick;
|
|
42858
|
+
return function () {
|
|
42859
|
+
var navigate = useNavigate();
|
|
42860
|
+
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 ");
|
|
42861
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
42862
|
+
background: "#FEFEFE" // --grays-cool-gray-00
|
|
42863
|
+
,
|
|
42864
|
+
border: "1px solid #C4CEF4;" // --primary-color-primary-30
|
|
42865
|
+
,
|
|
42866
|
+
borderRadius: "8px",
|
|
42867
|
+
dataQa: "link-card-".concat(title),
|
|
42868
|
+
width: "100%",
|
|
42869
|
+
maxWidth: "288px",
|
|
42870
|
+
minWidth: "240px",
|
|
42871
|
+
minHeight: "141px",
|
|
42872
|
+
padding: "16px 24px",
|
|
42873
|
+
extraStyles: " display: flex; flex-direction: column; align-items: flex-start; gap: 40px; flex-shrink: 0; align-self: stretch;",
|
|
42874
|
+
hoverStyles: activeHoverStyles,
|
|
42875
|
+
activeStyles: activeHoverStyles,
|
|
42876
|
+
onClick: onClick
|
|
42877
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42878
|
+
childGap: 0,
|
|
42879
|
+
bottomItem: 3,
|
|
42880
|
+
fullHeight: true
|
|
42881
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
42882
|
+
padding: "1rem 1rem 0 1rem"
|
|
42883
|
+
}, /*#__PURE__*/React.createElement(Heading$1, {
|
|
42884
|
+
variant: "h6",
|
|
42885
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
42886
|
+
color: themeValues.color,
|
|
42887
|
+
margin: 0,
|
|
42888
|
+
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%;"
|
|
42889
|
+
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
42890
|
+
padding: "0 1rem 40px"
|
|
42891
|
+
/* minHeight={"4.25rem"}*/
|
|
42889
42892
|
|
|
42890
|
-
|
|
42891
|
-
|
|
42892
|
-
|
|
42893
|
-
|
|
42894
|
-
|
|
42895
|
-
|
|
42896
|
-
|
|
42897
|
-
|
|
42898
|
-
|
|
42899
|
-
|
|
42900
|
-
|
|
42901
|
-
|
|
42893
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
42894
|
+
variant: "pS",
|
|
42895
|
+
color: themeValues.color,
|
|
42896
|
+
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;"
|
|
42897
|
+
}, subtitle)), /*#__PURE__*/React.createElement(Box, {
|
|
42898
|
+
background: "transparent",
|
|
42899
|
+
borderWidthOverride: "0 0 0 0",
|
|
42900
|
+
padding: "0 1rem 1rem 1rem"
|
|
42901
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42902
|
+
direction: "row",
|
|
42903
|
+
justify: "space-between"
|
|
42904
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42905
|
+
direction: "row",
|
|
42906
|
+
childGap: "6px"
|
|
42907
|
+
}, showLeft && leftContent, showRight && rightContent)))));
|
|
42908
|
+
}();
|
|
42902
42909
|
};
|
|
42903
42910
|
|
|
42904
42911
|
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");
|