@thecb/components 11.2.4-beta.0 → 11.2.4-beta.1
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 +35 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +35 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/link/ExternalLink.js +2 -0
- package/src/components/atoms/link/ExternalLink.styled.js +4 -1
- package/src/components/atoms/link/InternalLink.js +3 -1
- package/src/components/atoms/link/InternalLink.styled.js +4 -1
- package/src/components/molecules/contact-card/ContactCard.js +16 -11
- package/src/components/molecules/contact-card/ContactCard.stories.js +4 -0
package/dist/index.cjs.js
CHANGED
|
@@ -22266,7 +22266,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
22266
22266
|
})).withConfig({
|
|
22267
22267
|
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
22268
22268
|
componentId: "sc-m1q2m2-0"
|
|
22269
|
-
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
|
|
22269
|
+
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";text-decoration:", ";&:hover{color:", ";text-decoration:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;text-decoration:", ";}&:active{color:", ";}", ""], function (_ref2) {
|
|
22270
22270
|
var size = _ref2.size;
|
|
22271
22271
|
return size;
|
|
22272
22272
|
}, function (_ref3) {
|
|
@@ -22281,14 +22281,17 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
22281
22281
|
}, function (_ref6) {
|
|
22282
22282
|
var lineheight = _ref6.lineheight;
|
|
22283
22283
|
return lineheight;
|
|
22284
|
-
},
|
|
22285
|
-
var
|
|
22284
|
+
}, function (_ref7) {
|
|
22285
|
+
var isUnderlined = _ref7.isUnderlined;
|
|
22286
|
+
return isUnderlined ? LINK_TEXT_DECORATION$3 : "none";
|
|
22287
|
+
}, function (_ref8) {
|
|
22288
|
+
var hoverColor = _ref8.hoverColor;
|
|
22286
22289
|
return hoverColor;
|
|
22287
|
-
}, ROYAL_BLUE$1, function (
|
|
22288
|
-
var activeColor =
|
|
22290
|
+
}, LINK_TEXT_DECORATION$3, ROYAL_BLUE$1, LINK_TEXT_DECORATION$3, function (_ref9) {
|
|
22291
|
+
var activeColor = _ref9.activeColor;
|
|
22289
22292
|
return activeColor;
|
|
22290
|
-
}, function (
|
|
22291
|
-
var extrastyles =
|
|
22293
|
+
}, function (_ref10) {
|
|
22294
|
+
var extrastyles = _ref10.extrastyles;
|
|
22292
22295
|
return extrastyles;
|
|
22293
22296
|
});
|
|
22294
22297
|
/* eslint-enable no-unused-vars */
|
|
@@ -22314,6 +22317,8 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
22314
22317
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
22315
22318
|
dataQa = _ref.dataQa,
|
|
22316
22319
|
ariaLabel = _ref.ariaLabel,
|
|
22320
|
+
_ref$isUnderlined = _ref.isUnderlined,
|
|
22321
|
+
isUnderlined = _ref$isUnderlined === void 0 ? true : _ref$isUnderlined,
|
|
22317
22322
|
children = _ref.children;
|
|
22318
22323
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
22319
22324
|
var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
|
|
@@ -22346,6 +22351,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
22346
22351
|
rel: newTab ? "noopener" : "",
|
|
22347
22352
|
"data-qa": dataQa,
|
|
22348
22353
|
"aria-label": ariaLabel,
|
|
22354
|
+
isUnderlined: isUnderlined,
|
|
22349
22355
|
ref: ref
|
|
22350
22356
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))));
|
|
22351
22357
|
});
|
|
@@ -22373,7 +22379,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
22373
22379
|
})).withConfig({
|
|
22374
22380
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
22375
22381
|
componentId: "sc-cuqxud-0"
|
|
22376
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
|
|
22382
|
+
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";text-decoration:", ";&:hover{color:", ";text-decoration:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;text-decoration:", ";}&:active{color:", ";}", ""], function (_ref2) {
|
|
22377
22383
|
var color = _ref2.color,
|
|
22378
22384
|
active = _ref2.active,
|
|
22379
22385
|
activeColor = _ref2.activeColor;
|
|
@@ -22393,14 +22399,17 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
22393
22399
|
}, function (_ref7) {
|
|
22394
22400
|
var margin = _ref7.margin;
|
|
22395
22401
|
return margin;
|
|
22396
|
-
},
|
|
22397
|
-
var
|
|
22402
|
+
}, function (_ref8) {
|
|
22403
|
+
var isUnderlined = _ref8.isUnderlined;
|
|
22404
|
+
return isUnderlined ? LINK_TEXT_DECORATION$4 : "none";
|
|
22405
|
+
}, function (_ref9) {
|
|
22406
|
+
var hoverColor = _ref9.hoverColor;
|
|
22398
22407
|
return hoverColor;
|
|
22399
|
-
}, ROYAL_BLUE$2, function (
|
|
22400
|
-
var activeColor =
|
|
22408
|
+
}, LINK_TEXT_DECORATION$4, ROYAL_BLUE$2, LINK_TEXT_DECORATION$4, function (_ref10) {
|
|
22409
|
+
var activeColor = _ref10.activeColor;
|
|
22401
22410
|
return activeColor;
|
|
22402
|
-
}, function (
|
|
22403
|
-
var extrastyles =
|
|
22411
|
+
}, function (_ref11) {
|
|
22412
|
+
var extrastyles = _ref11.extrastyles;
|
|
22404
22413
|
return extrastyles;
|
|
22405
22414
|
});
|
|
22406
22415
|
/* eslint-enable no-unused-vars */
|
|
@@ -22421,7 +22430,9 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
22421
22430
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
22422
22431
|
dataQa = _ref.dataQa,
|
|
22423
22432
|
_ref$extraStyles = _ref.extraStyles,
|
|
22424
|
-
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles
|
|
22433
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
22434
|
+
_ref$isUnderlined = _ref.isUnderlined,
|
|
22435
|
+
isUnderlined = _ref$isUnderlined === void 0 ? true : _ref$isUnderlined;
|
|
22425
22436
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
22426
22437
|
var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
|
|
22427
22438
|
return /*#__PURE__*/React__default.createElement(StyledInternalLink, {
|
|
@@ -22438,6 +22449,7 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
22438
22449
|
tabIndex: tabIndex,
|
|
22439
22450
|
extrastyles: extraStyles,
|
|
22440
22451
|
"data-qa": dataQa,
|
|
22452
|
+
isUnderlined: isUnderlined,
|
|
22441
22453
|
ref: ref
|
|
22442
22454
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
22443
22455
|
});
|
|
@@ -51333,7 +51345,7 @@ var ContactCard = function ContactCard(_ref) {
|
|
|
51333
51345
|
background: WHITE,
|
|
51334
51346
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
51335
51347
|
dataQa: createIdFromString(title, "contact-card"),
|
|
51336
|
-
maxWidth:
|
|
51348
|
+
maxWidth: "100%",
|
|
51337
51349
|
minWidth: isMobile ? "240px" : "208px",
|
|
51338
51350
|
minHeight: "141px",
|
|
51339
51351
|
padding: "1.5rem",
|
|
@@ -51386,7 +51398,8 @@ var ContactCard = function ContactCard(_ref) {
|
|
|
51386
51398
|
dataQa: linkID,
|
|
51387
51399
|
href: link.link,
|
|
51388
51400
|
newTab: true,
|
|
51389
|
-
|
|
51401
|
+
isUnderlined: false,
|
|
51402
|
+
extraStyles: "\n flex-direction: row;\n align-items: center;\n align-content: flex-start;\n justify-content: space-between;\n word-break: break-word;\n ".concat(TextWrapStyles, "\n "),
|
|
51390
51403
|
size: FONT_SIZE.SM,
|
|
51391
51404
|
lineHeight: "1.313rem"
|
|
51392
51405
|
}, link.text, /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
|
|
@@ -51398,7 +51411,11 @@ var ContactCard = function ContactCard(_ref) {
|
|
|
51398
51411
|
to: link.link,
|
|
51399
51412
|
dataQa: linkID,
|
|
51400
51413
|
fontSize: FONT_SIZE.SM,
|
|
51401
|
-
|
|
51414
|
+
color: linkThemeValues.externalLinkColor,
|
|
51415
|
+
isUnderlined: false,
|
|
51416
|
+
active: false,
|
|
51417
|
+
lineheight: "1.313rem",
|
|
51418
|
+
extraStyles: "\n word-break: break-word;\n ".concat(TextWrapStyles, "\n ")
|
|
51402
51419
|
}, link.text));
|
|
51403
51420
|
})))));
|
|
51404
51421
|
};
|