@thecb/components 8.3.1-beta.4 → 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.esm.js CHANGED
@@ -19823,12 +19823,13 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19823
19823
  var match = useMatch();
19824
19824
  console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
19825
19825
  return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
19826
+ match: match,
19826
19827
  ref: ref
19827
19828
  }));
19828
19829
  })).withConfig({
19829
19830
  displayName: "InternalLinkstyled__StyledInternalLink",
19830
19831
  componentId: "sc-cuqxud-0"
19831
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", " ? 'lightblue' :'transparent',&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19832
+ })(["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) {
19832
19833
  var color = _ref2.color,
19833
19834
  active = _ref2.active,
19834
19835
  activeColor = _ref2.activeColor;
@@ -19848,17 +19849,20 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19848
19849
  }, function (_ref7) {
19849
19850
  var margin = _ref7.margin;
19850
19851
  return margin;
19851
- }, match, function (_ref8) {
19852
- var hoverColor = _ref8.hoverColor;
19852
+ }, function (_ref8) {
19853
+ var match = _ref8.match;
19854
+ return match ? INFO_BLUE : 'transparent';
19855
+ }, function (_ref9) {
19856
+ var hoverColor = _ref9.hoverColor;
19853
19857
  return hoverColor;
19854
- }, ROYAL_BLUE, function (_ref9) {
19855
- var activeColor = _ref9.activeColor;
19858
+ }, ROYAL_BLUE, function (_ref10) {
19859
+ var activeColor = _ref10.activeColor;
19856
19860
  return activeColor;
19857
- }, function (_ref10) {
19858
- var activeBackgroundColor = _ref10.activeBackgroundColor;
19859
- return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19860
19861
  }, function (_ref11) {
19861
- var extrastyles = _ref11.extrastyles;
19862
+ var activeBackgroundColor = _ref11.activeBackgroundColor;
19863
+ return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19864
+ }, function (_ref12) {
19865
+ var extrastyles = _ref12.extrastyles;
19862
19866
  return extrastyles;
19863
19867
  });
19864
19868
  /* eslint-enable no-unused-vars */
@@ -22377,22 +22381,22 @@ var process$1 = global_1.process;
22377
22381
  var Deno = global_1.Deno;
22378
22382
  var versions = process$1 && process$1.versions || Deno && Deno.version;
22379
22383
  var v8 = versions && versions.v8;
22380
- var match$1, version;
22384
+ var match, version;
22381
22385
 
22382
22386
  if (v8) {
22383
- match$1 = v8.split('.');
22387
+ match = v8.split('.');
22384
22388
  // in old Chrome, versions of V8 isn't V8 = Chrome / 10
22385
22389
  // but their correct versions are not interesting for us
22386
- version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
22390
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
22387
22391
  }
22388
22392
 
22389
22393
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
22390
22394
  // so check `userAgent` even if `.v8` exists, but 0
22391
22395
  if (!version && engineUserAgent) {
22392
- match$1 = engineUserAgent.match(/Edge\/(\d+)/);
22393
- if (!match$1 || match$1[1] >= 74) {
22394
- match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
22395
- if (match$1) version = +match$1[1];
22396
+ match = engineUserAgent.match(/Edge\/(\d+)/);
22397
+ if (!match || match[1] >= 74) {
22398
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
22399
+ if (match) version = +match[1];
22396
22400
  }
22397
22401
  }
22398
22402