@thecb/components 8.3.1-beta.8 → 8.3.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 CHANGED
@@ -19832,7 +19832,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19832
19832
  })).withConfig({
19833
19833
  displayName: "InternalLinkstyled__StyledInternalLink",
19834
19834
  componentId: "sc-cuqxud-0"
19835
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
19835
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
19836
19836
  var color = _ref2.color,
19837
19837
  active = _ref2.active,
19838
19838
  activeColor = _ref2.activeColor;
@@ -19853,16 +19853,13 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19853
19853
  var margin = _ref7.margin;
19854
19854
  return margin;
19855
19855
  }, function (_ref8) {
19856
- var matchesCurrentRoute = _ref8.matchesCurrentRoute;
19857
- return matchesCurrentRoute ? INFO_BLUE : 'transparent';
19858
- }, function (_ref9) {
19859
- var hoverColor = _ref9.hoverColor;
19856
+ var hoverColor = _ref8.hoverColor;
19860
19857
  return hoverColor;
19861
- }, ROYAL_BLUE, function (_ref10) {
19862
- var activeColor = _ref10.activeColor;
19858
+ }, ROYAL_BLUE, function (_ref9) {
19859
+ var activeColor = _ref9.activeColor;
19863
19860
  return activeColor;
19864
- }, function (_ref11) {
19865
- var extrastyles = _ref11.extrastyles;
19861
+ }, function (_ref10) {
19862
+ var extrastyles = _ref10.extrastyles;
19866
19863
  return extrastyles;
19867
19864
  });
19868
19865
  /* eslint-enable no-unused-vars */
@@ -21513,12 +21510,11 @@ _curry2(function test(pattern, str) {
21513
21510
 
21514
21511
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21515
21512
 
21516
- var _excluded$m = ["url", "matchesCurrentRoute", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21513
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21517
21514
 
21518
21515
  var ButtonWithLink = function ButtonWithLink(_ref) {
21519
21516
  var _ref$url = _ref.url,
21520
21517
  url = _ref$url === void 0 ? "/" : _ref$url,
21521
- _ref$matchesCurrentRo = _ref.matchesCurrentRoute,
21522
21518
  _ref$disabled = _ref.disabled,
21523
21519
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21524
21520
  _ref$fileLink = _ref.fileLink,
@@ -21533,7 +21529,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21533
21529
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21534
21530
  var children = _ref2.children,
21535
21531
  url = _ref2.url,
21536
- matchesCurrentRoute = _ref2.matchesCurrentRoute,
21537
21532
  disabled = _ref2.disabled,
21538
21533
  newTab = _ref2.newTab,
21539
21534
  dataQa = _ref2.dataQa,
@@ -21551,7 +21546,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21551
21546
  dataQa: dataQa
21552
21547
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21553
21548
  to: url,
21554
- matchesCurrentRoute: matchesCurrentRoute,
21555
21549
  tabIndex: "-1",
21556
21550
  dataQa: dataQa,
21557
21551
  extraStyles: extraStyles