@thecb/components 8.3.1-beta.3 → 8.3.1-beta.5

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
@@ -19828,13 +19828,16 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19828
19828
  extrastyles = _ref.extrastyles,
19829
19829
  props = _objectWithoutProperties(_ref, _excluded$l);
19830
19830
 
19831
+ var match = reactRouterDom.useMatch();
19832
+ console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
19831
19833
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
19834
+ match: match,
19832
19835
  ref: ref
19833
19836
  }));
19834
19837
  })).withConfig({
19835
19838
  displayName: "InternalLinkstyled__StyledInternalLink",
19836
19839
  componentId: "sc-cuqxud-0"
19837
- })(["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:", ";background-color:", ";}", ""], function (_ref2) {
19840
+ })(["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:", ";background-color:", ";}", ""], function (_ref2) {
19838
19841
  var color = _ref2.color,
19839
19842
  active = _ref2.active,
19840
19843
  activeColor = _ref2.activeColor;
@@ -19855,16 +19858,19 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19855
19858
  var margin = _ref7.margin;
19856
19859
  return margin;
19857
19860
  }, function (_ref8) {
19858
- var hoverColor = _ref8.hoverColor;
19861
+ var match = _ref8.match;
19862
+ return match ? INFO_BLUE : 'transparent';
19863
+ }, function (_ref9) {
19864
+ var hoverColor = _ref9.hoverColor;
19859
19865
  return hoverColor;
19860
- }, ROYAL_BLUE, function (_ref9) {
19861
- var activeColor = _ref9.activeColor;
19866
+ }, ROYAL_BLUE, function (_ref10) {
19867
+ var activeColor = _ref10.activeColor;
19862
19868
  return activeColor;
19863
- }, function (_ref10) {
19864
- var activeBackgroundColor = _ref10.activeBackgroundColor;
19865
- return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19866
19869
  }, function (_ref11) {
19867
- var extrastyles = _ref11.extrastyles;
19870
+ var activeBackgroundColor = _ref11.activeBackgroundColor;
19871
+ return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19872
+ }, function (_ref12) {
19873
+ var extrastyles = _ref12.extrastyles;
19868
19874
  return extrastyles;
19869
19875
  });
19870
19876
  /* eslint-enable no-unused-vars */