@thecb/components 8.3.1-beta.3 → 8.3.1-beta.4
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,15 @@ 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, {
|
|
19832
19834
|
ref: ref
|
|
19833
19835
|
}));
|
|
19834
19836
|
})).withConfig({
|
|
19835
19837
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
19836
19838
|
componentId: "sc-cuqxud-0"
|
|
19837
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", "
|
|
19839
|
+
})(["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) {
|
|
19838
19840
|
var color = _ref2.color,
|
|
19839
19841
|
active = _ref2.active,
|
|
19840
19842
|
activeColor = _ref2.activeColor;
|
|
@@ -19854,7 +19856,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19854
19856
|
}, function (_ref7) {
|
|
19855
19857
|
var margin = _ref7.margin;
|
|
19856
19858
|
return margin;
|
|
19857
|
-
}, function (_ref8) {
|
|
19859
|
+
}, match, function (_ref8) {
|
|
19858
19860
|
var hoverColor = _ref8.hoverColor;
|
|
19859
19861
|
return hoverColor;
|
|
19860
19862
|
}, ROYAL_BLUE, function (_ref9) {
|
|
@@ -22383,22 +22385,22 @@ var process$1 = global_1.process;
|
|
|
22383
22385
|
var Deno = global_1.Deno;
|
|
22384
22386
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
22385
22387
|
var v8 = versions && versions.v8;
|
|
22386
|
-
var match, version;
|
|
22388
|
+
var match$1, version;
|
|
22387
22389
|
|
|
22388
22390
|
if (v8) {
|
|
22389
|
-
match = v8.split('.');
|
|
22391
|
+
match$1 = v8.split('.');
|
|
22390
22392
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
22391
22393
|
// but their correct versions are not interesting for us
|
|
22392
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
22394
|
+
version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
|
|
22393
22395
|
}
|
|
22394
22396
|
|
|
22395
22397
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
22396
22398
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
22397
22399
|
if (!version && engineUserAgent) {
|
|
22398
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
22399
|
-
if (!match || match[1] >= 74) {
|
|
22400
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
22401
|
-
if (match) version = +match[1];
|
|
22400
|
+
match$1 = engineUserAgent.match(/Edge\/(\d+)/);
|
|
22401
|
+
if (!match$1 || match$1[1] >= 74) {
|
|
22402
|
+
match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
22403
|
+
if (match$1) version = +match$1[1];
|
|
22402
22404
|
}
|
|
22403
22405
|
}
|
|
22404
22406
|
|