@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.esm.js CHANGED
@@ -17669,13 +17669,16 @@ var ArrowRightCircleIconSmall = function ArrowRightCircleIconSmall(_ref) {
17669
17669
 
17670
17670
  var ArrowRightIcon = function ArrowRightIcon(_ref) {
17671
17671
  var _ref$color = _ref.color,
17672
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
17672
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
17673
+ _ref$describedBy = _ref.describedBy,
17674
+ describedBy = _ref$describedBy === void 0 ? "" : _ref$describedBy;
17673
17675
  return /*#__PURE__*/React.createElement("svg", {
17674
17676
  xmlns: "http://www.w3.org/2000/svg",
17675
17677
  width: "20",
17676
17678
  height: "20",
17677
17679
  viewBox: "0 0 20 20",
17678
- fill: "none"
17680
+ fill: "none",
17681
+ "aria-describedby": describedBy
17679
17682
  }, /*#__PURE__*/React.createElement("path", {
17680
17683
  fillRule: "evenodd",
17681
17684
  clipRule: "evenodd",
@@ -18097,13 +18100,16 @@ var ChargebackReversalIconMedium = function ChargebackReversalIconMedium(_ref) {
18097
18100
 
18098
18101
  var PlusCircleIcon = function PlusCircleIcon(_ref) {
18099
18102
  var _ref$color = _ref.color,
18100
- color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color;
18103
+ color = _ref$color === void 0 ? ROYAL_BLUE_VIVID : _ref$color,
18104
+ _ref$describedBy = _ref.describedBy,
18105
+ describedBy = _ref$describedBy === void 0 ? "" : _ref$describedBy;
18101
18106
  return /*#__PURE__*/React.createElement("svg", {
18102
18107
  xmlns: "http://www.w3.org/2000/svg",
18103
18108
  width: "20",
18104
18109
  height: "20",
18105
18110
  viewBox: "0 0 20 20",
18106
- fill: "none"
18111
+ fill: "none",
18112
+ "aria-describedby": describedBy
18107
18113
  }, /*#__PURE__*/React.createElement("path", {
18108
18114
  fillRule: "evenodd",
18109
18115
  clipRule: "evenodd",
@@ -42842,8 +42848,7 @@ var fallbackValues$I = {
42842
42848
  };
42843
42849
 
42844
42850
  var LinkCard = function LinkCard(_ref) {
42845
- var _ref$variant = _ref.variant,
42846
- _ref$title = _ref.title,
42851
+ var _ref$title = _ref.title,
42847
42852
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42848
42853
  _ref$subtitle = _ref.subtitle,
42849
42854
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
@@ -42859,6 +42864,10 @@ var LinkCard = function LinkCard(_ref) {
42859
42864
  extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles,
42860
42865
  _ref$extraActiveStyle = _ref.extraActiveStyles,
42861
42866
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle;
42867
+
42868
+ var _useContext = useContext(ThemeContext),
42869
+ isMobile = _useContext.isMobile;
42870
+
42862
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);");
42863
42872
  return /*#__PURE__*/React.createElement(Box, {
42864
42873
  border: "1px solid ".concat(MOON_RAKER, ";"),
@@ -42866,7 +42875,7 @@ var LinkCard = function LinkCard(_ref) {
42866
42875
  dataQa: "link-card-".concat(title),
42867
42876
  width: "100%",
42868
42877
  maxWidth: "288px",
42869
- minWidth: "240px",
42878
+ minWidth: isMobile ? "240px" : "288px",
42870
42879
  minHeight: "141px",
42871
42880
  padding: "24px",
42872
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 "),
@@ -42906,7 +42915,7 @@ var LinkCard = function LinkCard(_ref) {
42906
42915
  direction: "row",
42907
42916
  childGap: "6px",
42908
42917
  justify: "space-between",
42909
- extraStyles: "width: 100%; justify-content: space-between"
42918
+ extraStyles: "width: 100%; align-items: flex-end;"
42910
42919
  }, showLeft && leftContent, showRight && rightContent))));
42911
42920
  };
42912
42921