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