@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.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { createContext, createElement, PureComponent, forwardRef, Component, cloneElement, Children, useContext, Fragment as Fragment$1, useRef, useState, useLayoutEffect, memo, useEffect as useEffect$1, useMemo, useCallback, isValidElement, createRef } from 'react';
|
|
2
2
|
import styled, { ThemeContext, css, ThemeProvider, keyframes as keyframes$3 } from 'styled-components';
|
|
3
3
|
import theme from 'styled-theming';
|
|
4
|
-
import { Link, useNavigate, useLocation } from 'react-router-dom';
|
|
4
|
+
import { useMatch, Link, useNavigate, useLocation } from 'react-router-dom';
|
|
5
5
|
import reactDom from 'react-dom';
|
|
6
6
|
|
|
7
7
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -19820,13 +19820,15 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19820
19820
|
extrastyles = _ref.extrastyles,
|
|
19821
19821
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
19822
19822
|
|
|
19823
|
+
var match = useMatch();
|
|
19824
|
+
console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
|
|
19823
19825
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
19824
19826
|
ref: ref
|
|
19825
19827
|
}));
|
|
19826
19828
|
})).withConfig({
|
|
19827
19829
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
19828
19830
|
componentId: "sc-cuqxud-0"
|
|
19829
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", "
|
|
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) {
|
|
19830
19832
|
var color = _ref2.color,
|
|
19831
19833
|
active = _ref2.active,
|
|
19832
19834
|
activeColor = _ref2.activeColor;
|
|
@@ -19846,7 +19848,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19846
19848
|
}, function (_ref7) {
|
|
19847
19849
|
var margin = _ref7.margin;
|
|
19848
19850
|
return margin;
|
|
19849
|
-
}, function (_ref8) {
|
|
19851
|
+
}, match, function (_ref8) {
|
|
19850
19852
|
var hoverColor = _ref8.hoverColor;
|
|
19851
19853
|
return hoverColor;
|
|
19852
19854
|
}, ROYAL_BLUE, function (_ref9) {
|
|
@@ -22375,22 +22377,22 @@ var process$1 = global_1.process;
|
|
|
22375
22377
|
var Deno = global_1.Deno;
|
|
22376
22378
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
22377
22379
|
var v8 = versions && versions.v8;
|
|
22378
|
-
var match, version;
|
|
22380
|
+
var match$1, version;
|
|
22379
22381
|
|
|
22380
22382
|
if (v8) {
|
|
22381
|
-
match = v8.split('.');
|
|
22383
|
+
match$1 = v8.split('.');
|
|
22382
22384
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
22383
22385
|
// but their correct versions are not interesting for us
|
|
22384
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
22386
|
+
version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
|
|
22385
22387
|
}
|
|
22386
22388
|
|
|
22387
22389
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
22388
22390
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
22389
22391
|
if (!version && engineUserAgent) {
|
|
22390
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
22391
|
-
if (!match || match[1] >= 74) {
|
|
22392
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
22393
|
-
if (match) version = +match[1];
|
|
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];
|
|
22394
22396
|
}
|
|
22395
22397
|
}
|
|
22396
22398
|
|