@thecb/components 8.4.0-beta.13 → 8.4.0-beta.15

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
@@ -17677,13 +17677,16 @@ var ArrowRightCircleIconSmall = function ArrowRightCircleIconSmall(_ref) {
17677
17677
 
17678
17678
  var ArrowRightIcon = function ArrowRightIcon(_ref) {
17679
17679
  var _ref$color = _ref.color,
17680
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
17680
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
17681
+ _ref$describedBy = _ref.describedBy,
17682
+ describedBy = _ref$describedBy === void 0 ? "" : _ref$describedBy;
17681
17683
  return /*#__PURE__*/React__default.createElement("svg", {
17682
17684
  xmlns: "http://www.w3.org/2000/svg",
17683
17685
  width: "20",
17684
17686
  height: "20",
17685
17687
  viewBox: "0 0 20 20",
17686
- fill: "none"
17688
+ fill: "none",
17689
+ "aria-describedby": describedBy
17687
17690
  }, /*#__PURE__*/React__default.createElement("path", {
17688
17691
  fillRule: "evenodd",
17689
17692
  clipRule: "evenodd",
@@ -18105,13 +18108,16 @@ var ChargebackReversalIconMedium = function ChargebackReversalIconMedium(_ref) {
18105
18108
 
18106
18109
  var PlusCircleIcon = function PlusCircleIcon(_ref) {
18107
18110
  var _ref$color = _ref.color,
18108
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
18111
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
18112
+ _ref$describedBy = _ref.describedBy,
18113
+ describedBy = _ref$describedBy === void 0 ? "" : _ref$describedBy;
18109
18114
  return /*#__PURE__*/React__default.createElement("svg", {
18110
18115
  xmlns: "http://www.w3.org/2000/svg",
18111
18116
  width: "20",
18112
18117
  height: "20",
18113
18118
  viewBox: "0 0 20 20",
18114
- fill: "none"
18119
+ fill: "none",
18120
+ "aria-describedby": describedBy
18115
18121
  }, /*#__PURE__*/React__default.createElement("path", {
18116
18122
  fillRule: "evenodd",
18117
18123
  clipRule: "evenodd",
@@ -42850,8 +42856,7 @@ var fallbackValues$I = {
42850
42856
  };
42851
42857
 
42852
42858
  var LinkCard = function LinkCard(_ref) {
42853
- var _ref$variant = _ref.variant,
42854
- _ref$title = _ref.title,
42859
+ var _ref$title = _ref.title,
42855
42860
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42856
42861
  _ref$subtitle = _ref.subtitle,
42857
42862
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
@@ -42867,6 +42872,10 @@ var LinkCard = function LinkCard(_ref) {
42867
42872
  extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles,
42868
42873
  _ref$extraActiveStyle = _ref.extraActiveStyles,
42869
42874
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle;
42875
+
42876
+ var _useContext = React.useContext(styled.ThemeContext),
42877
+ isMobile = _useContext.isMobile;
42878
+
42870
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);");
42871
42880
  return /*#__PURE__*/React__default.createElement(Box, {
42872
42881
  border: "1px solid ".concat(MOON_RAKER, ";"),
@@ -42874,7 +42883,7 @@ var LinkCard = function LinkCard(_ref) {
42874
42883
  dataQa: "link-card-".concat(title),
42875
42884
  width: "100%",
42876
42885
  maxWidth: "288px",
42877
- minWidth: "240px",
42886
+ minWidth: isMobile ? "240px" : "288px",
42878
42887
  minHeight: "141px",
42879
42888
  padding: "24px",
42880
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 "),
@@ -42914,7 +42923,7 @@ var LinkCard = function LinkCard(_ref) {
42914
42923
  direction: "row",
42915
42924
  childGap: "6px",
42916
42925
  justify: "space-between",
42917
- extraStyles: "width: 100%; justify-content: space-between"
42926
+ extraStyles: "width: 100%; align-items: flex-end;"
42918
42927
  }, showLeft && leftContent, showRight && rightContent))));
42919
42928
  };
42920
42929