@thecb/components 8.4.0-beta.12 → 8.4.0-beta.14

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
@@ -42850,8 +42850,7 @@ var fallbackValues$I = {
42850
42850
  };
42851
42851
 
42852
42852
  var LinkCard = function LinkCard(_ref) {
42853
- var _ref$variant = _ref.variant,
42854
- _ref$title = _ref.title,
42853
+ var _ref$title = _ref.title,
42855
42854
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42856
42855
  _ref$subtitle = _ref.subtitle,
42857
42856
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
@@ -42867,6 +42866,10 @@ var LinkCard = function LinkCard(_ref) {
42867
42866
  extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles,
42868
42867
  _ref$extraActiveStyle = _ref.extraActiveStyles,
42869
42868
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle;
42869
+
42870
+ var _useContext = React.useContext(styled.ThemeContext),
42871
+ isMobile = _useContext.isMobile;
42872
+
42870
42873
  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);");
42871
42874
  return /*#__PURE__*/React__default.createElement(Box, {
42872
42875
  border: "1px solid ".concat(MOON_RAKER, ";"),
@@ -42874,7 +42877,7 @@ var LinkCard = function LinkCard(_ref) {
42874
42877
  dataQa: "link-card-".concat(title),
42875
42878
  width: "100%",
42876
42879
  maxWidth: "288px",
42877
- minWidth: "240px",
42880
+ minWidth: isMobile ? "240px" : "288px",
42878
42881
  minHeight: "141px",
42879
42882
  padding: "24px",
42880
42883
  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 "),
@@ -42897,7 +42900,7 @@ var LinkCard = function LinkCard(_ref) {
42897
42900
  weight: FONT_WEIGHT_SEMIBOLD,
42898
42901
  color: themeValues.color,
42899
42902
  margin: 0,
42900
- extraStyles: "\n display: -webkit-box; \n display: block;\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 "
42903
+ 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 "
42901
42904
  }, title)), /*#__PURE__*/React__default.createElement(Box, {
42902
42905
  padding: "0 0 40px",
42903
42906
  width: "100%"
@@ -42914,7 +42917,7 @@ var LinkCard = function LinkCard(_ref) {
42914
42917
  direction: "row",
42915
42918
  childGap: "6px",
42916
42919
  justify: "space-between",
42917
- extraStyles: "width: 100%; justify-content: space-between"
42920
+ extraStyles: "width: 100%; align-items: flex-end;"
42918
42921
  }, showLeft && leftContent, showRight && rightContent))));
42919
42922
  };
42920
42923