@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.cjs.js
CHANGED
|
@@ -19831,12 +19831,13 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19831
19831
|
var match = reactRouterDom.useMatch();
|
|
19832
19832
|
console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
|
|
19833
19833
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
19834
|
+
match: match,
|
|
19834
19835
|
ref: ref
|
|
19835
19836
|
}));
|
|
19836
19837
|
})).withConfig({
|
|
19837
19838
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
19838
19839
|
componentId: "sc-cuqxud-0"
|
|
19839
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", "
|
|
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) {
|
|
19840
19841
|
var color = _ref2.color,
|
|
19841
19842
|
active = _ref2.active,
|
|
19842
19843
|
activeColor = _ref2.activeColor;
|
|
@@ -19856,17 +19857,20 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19856
19857
|
}, function (_ref7) {
|
|
19857
19858
|
var margin = _ref7.margin;
|
|
19858
19859
|
return margin;
|
|
19859
|
-
},
|
|
19860
|
-
var
|
|
19860
|
+
}, function (_ref8) {
|
|
19861
|
+
var match = _ref8.match;
|
|
19862
|
+
return match ? INFO_BLUE : 'transparent';
|
|
19863
|
+
}, function (_ref9) {
|
|
19864
|
+
var hoverColor = _ref9.hoverColor;
|
|
19861
19865
|
return hoverColor;
|
|
19862
|
-
}, ROYAL_BLUE, function (
|
|
19863
|
-
var activeColor =
|
|
19866
|
+
}, ROYAL_BLUE, function (_ref10) {
|
|
19867
|
+
var activeColor = _ref10.activeColor;
|
|
19864
19868
|
return activeColor;
|
|
19865
|
-
}, function (_ref10) {
|
|
19866
|
-
var activeBackgroundColor = _ref10.activeBackgroundColor;
|
|
19867
|
-
return activeBackgroundColor ? activeBackgroundColor : 'transparent';
|
|
19868
19869
|
}, function (_ref11) {
|
|
19869
|
-
var
|
|
19870
|
+
var activeBackgroundColor = _ref11.activeBackgroundColor;
|
|
19871
|
+
return activeBackgroundColor ? activeBackgroundColor : 'transparent';
|
|
19872
|
+
}, function (_ref12) {
|
|
19873
|
+
var extrastyles = _ref12.extrastyles;
|
|
19870
19874
|
return extrastyles;
|
|
19871
19875
|
});
|
|
19872
19876
|
/* eslint-enable no-unused-vars */
|
|
@@ -22385,22 +22389,22 @@ var process$1 = global_1.process;
|
|
|
22385
22389
|
var Deno = global_1.Deno;
|
|
22386
22390
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
22387
22391
|
var v8 = versions && versions.v8;
|
|
22388
|
-
var match
|
|
22392
|
+
var match, version;
|
|
22389
22393
|
|
|
22390
22394
|
if (v8) {
|
|
22391
|
-
match
|
|
22395
|
+
match = v8.split('.');
|
|
22392
22396
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
22393
22397
|
// but their correct versions are not interesting for us
|
|
22394
|
-
version = match
|
|
22398
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
22395
22399
|
}
|
|
22396
22400
|
|
|
22397
22401
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
22398
22402
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
22399
22403
|
if (!version && engineUserAgent) {
|
|
22400
|
-
match
|
|
22401
|
-
if (!match
|
|
22402
|
-
match
|
|
22403
|
-
if (match
|
|
22404
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
22405
|
+
if (!match || match[1] >= 74) {
|
|
22406
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
22407
|
+
if (match) version = +match[1];
|
|
22404
22408
|
}
|
|
22405
22409
|
}
|
|
22406
22410
|
|