@thecb/components 8.3.1-beta.2 → 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 +35 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +35 -30
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.js +2 -0
- package/src/components/atoms/link/InternalLink.styled.js +8 -2
- package/src/components/atoms/link/Link.theme.js +12 -7
package/dist/index.cjs.js
CHANGED
|
@@ -12733,7 +12733,7 @@ var hoverColor = {
|
|
|
12733
12733
|
whiteSecondary: WHITE,
|
|
12734
12734
|
whitePrimary: WHITE
|
|
12735
12735
|
};
|
|
12736
|
-
var activeBackgroundColor
|
|
12736
|
+
var activeBackgroundColor = {
|
|
12737
12737
|
primary: PEACOCK_BLUE,
|
|
12738
12738
|
secondary: "#B8D5E1",
|
|
12739
12739
|
back: TRANSPARENT,
|
|
@@ -12787,7 +12787,7 @@ var fallbackValues$1 = {
|
|
|
12787
12787
|
hoverBackgroundColor: hoverBackgroundColor,
|
|
12788
12788
|
hoverBorderColor: hoverBorderColor,
|
|
12789
12789
|
hoverColor: hoverColor,
|
|
12790
|
-
activeBackgroundColor: activeBackgroundColor
|
|
12790
|
+
activeBackgroundColor: activeBackgroundColor,
|
|
12791
12791
|
activeBorderColor: activeBorderColor,
|
|
12792
12792
|
activeColor: activeColor
|
|
12793
12793
|
};
|
|
@@ -19708,27 +19708,19 @@ var fallbackValues$9 = {
|
|
|
19708
19708
|
hover: hover
|
|
19709
19709
|
};
|
|
19710
19710
|
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
var index$4 = /*#__PURE__*/Object.freeze({
|
|
19714
|
-
__proto__: null,
|
|
19715
|
-
colors: colors,
|
|
19716
|
-
fontWeights: style_constants
|
|
19717
|
-
});
|
|
19718
|
-
|
|
19719
19711
|
var fontFamily$2 = {
|
|
19720
19712
|
primary: "Public Sans",
|
|
19721
19713
|
secondary: "Open Sans"
|
|
19722
19714
|
};
|
|
19723
|
-
var hoverColor$2 =
|
|
19724
|
-
var activeColor$3 =
|
|
19725
|
-
var activeBackgroundColor$
|
|
19726
|
-
var externalLinkColor =
|
|
19715
|
+
var hoverColor$2 = SAPPHIRE_BLUE;
|
|
19716
|
+
var activeColor$3 = PEACOCK_BLUE;
|
|
19717
|
+
var activeBackgroundColor$1 = INFO_BLUE;
|
|
19718
|
+
var externalLinkColor = MATISSE_BLUE;
|
|
19727
19719
|
var fallbackValues$a = {
|
|
19728
19720
|
fontFamily: fontFamily$2,
|
|
19729
19721
|
hoverColor: hoverColor$2,
|
|
19730
19722
|
activeColor: activeColor$3,
|
|
19731
|
-
activeBackgroundColor: activeBackgroundColor$
|
|
19723
|
+
activeBackgroundColor: activeBackgroundColor$1,
|
|
19732
19724
|
externalLinkColor: externalLinkColor
|
|
19733
19725
|
};
|
|
19734
19726
|
|
|
@@ -19836,13 +19828,15 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19836
19828
|
extrastyles = _ref.extrastyles,
|
|
19837
19829
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
19838
19830
|
|
|
19831
|
+
var match = reactRouterDom.useMatch();
|
|
19832
|
+
console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
|
|
19839
19833
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
19840
19834
|
ref: ref
|
|
19841
19835
|
}));
|
|
19842
19836
|
})).withConfig({
|
|
19843
19837
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
19844
19838
|
componentId: "sc-cuqxud-0"
|
|
19845
|
-
})(["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) {
|
|
19846
19840
|
var color = _ref2.color,
|
|
19847
19841
|
active = _ref2.active,
|
|
19848
19842
|
activeColor = _ref2.activeColor;
|
|
@@ -19862,7 +19856,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19862
19856
|
}, function (_ref7) {
|
|
19863
19857
|
var margin = _ref7.margin;
|
|
19864
19858
|
return margin;
|
|
19865
|
-
}, function (_ref8) {
|
|
19859
|
+
}, match, function (_ref8) {
|
|
19866
19860
|
var hoverColor = _ref8.hoverColor;
|
|
19867
19861
|
return hoverColor;
|
|
19868
19862
|
}, ROYAL_BLUE, function (_ref9) {
|
|
@@ -21523,13 +21517,15 @@ _curry2(function test(pattern, str) {
|
|
|
21523
21517
|
|
|
21524
21518
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
21525
21519
|
|
|
21526
|
-
var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
21520
|
+
var _excluded$m = ["url", "active", "activeBackgroundColor", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
21527
21521
|
|
|
21528
21522
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
21529
21523
|
var _ref$url = _ref.url,
|
|
21530
21524
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
21531
21525
|
_ref$active = _ref.active,
|
|
21532
21526
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
21527
|
+
_ref$activeBackground = _ref.activeBackgroundColor,
|
|
21528
|
+
activeBackgroundColor = _ref$activeBackground === void 0 ? undefined : _ref$activeBackground,
|
|
21533
21529
|
_ref$disabled = _ref.disabled,
|
|
21534
21530
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
21535
21531
|
_ref$fileLink = _ref.fileLink,
|
|
@@ -21545,6 +21541,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21545
21541
|
var children = _ref2.children,
|
|
21546
21542
|
url = _ref2.url,
|
|
21547
21543
|
active = _ref2.active,
|
|
21544
|
+
activeBackgroundColor = _ref2.activeBackgroundColor,
|
|
21548
21545
|
disabled = _ref2.disabled,
|
|
21549
21546
|
newTab = _ref2.newTab,
|
|
21550
21547
|
dataQa = _ref2.dataQa,
|
|
@@ -22388,22 +22385,22 @@ var process$1 = global_1.process;
|
|
|
22388
22385
|
var Deno = global_1.Deno;
|
|
22389
22386
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
22390
22387
|
var v8 = versions && versions.v8;
|
|
22391
|
-
var match, version;
|
|
22388
|
+
var match$1, version;
|
|
22392
22389
|
|
|
22393
22390
|
if (v8) {
|
|
22394
|
-
match = v8.split('.');
|
|
22391
|
+
match$1 = v8.split('.');
|
|
22395
22392
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
22396
22393
|
// but their correct versions are not interesting for us
|
|
22397
|
-
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]);
|
|
22398
22395
|
}
|
|
22399
22396
|
|
|
22400
22397
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
22401
22398
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
22402
22399
|
if (!version && engineUserAgent) {
|
|
22403
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
22404
|
-
if (!match || match[1] >= 74) {
|
|
22405
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
22406
|
-
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];
|
|
22407
22404
|
}
|
|
22408
22405
|
}
|
|
22409
22406
|
|
|
@@ -25387,7 +25384,7 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
|
25387
25384
|
|
|
25388
25385
|
|
|
25389
25386
|
|
|
25390
|
-
var index$
|
|
25387
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
25391
25388
|
__proto__: null,
|
|
25392
25389
|
formats: formats,
|
|
25393
25390
|
general: general,
|
|
@@ -38211,6 +38208,14 @@ var NavTabs = function NavTabs(_ref) {
|
|
|
38211
38208
|
}, tabs)));
|
|
38212
38209
|
};
|
|
38213
38210
|
|
|
38211
|
+
|
|
38212
|
+
|
|
38213
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
38214
|
+
__proto__: null,
|
|
38215
|
+
colors: colors,
|
|
38216
|
+
fontWeights: style_constants
|
|
38217
|
+
});
|
|
38218
|
+
|
|
38214
38219
|
var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
|
|
38215
38220
|
var LoadingPill = styled__default.div.withConfig({
|
|
38216
38221
|
displayName: "LoadingPillstyled__LoadingPill",
|
|
@@ -47531,11 +47536,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
47531
47536
|
var arrowColor = WHITE;
|
|
47532
47537
|
var numberColor = MATISSE_BLUE;
|
|
47533
47538
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
47534
|
-
var activeBackgroundColor$
|
|
47539
|
+
var activeBackgroundColor$2 = WHITE;
|
|
47535
47540
|
var activeColor$9 = MATISSE_BLUE;
|
|
47536
47541
|
var fallbackValues$L = {
|
|
47537
47542
|
activeColor: activeColor$9,
|
|
47538
|
-
activeBackgroundColor: activeBackgroundColor$
|
|
47543
|
+
activeBackgroundColor: activeBackgroundColor$2,
|
|
47539
47544
|
arrowColor: arrowColor,
|
|
47540
47545
|
hoverBackgroundColor: hoverBackgroundColor$2,
|
|
47541
47546
|
numberColor: numberColor
|
|
@@ -50355,8 +50360,8 @@ exports.WorkflowTile = WorkflowTile;
|
|
|
50355
50360
|
exports.XCircleIconMedium = XCircleIconMedium;
|
|
50356
50361
|
exports.XCircleIconSmall = XCircleIconSmall;
|
|
50357
50362
|
exports.cardRegistry = cardRegistry;
|
|
50358
|
-
exports.constants = index$
|
|
50363
|
+
exports.constants = index$5;
|
|
50359
50364
|
exports.createPartialAmountFormState = createPartialAmountFormState;
|
|
50360
|
-
exports.util = index$
|
|
50365
|
+
exports.util = index$4;
|
|
50361
50366
|
exports.withWindowSize = withWindowSize;
|
|
50362
50367
|
//# sourceMappingURL=index.cjs.js.map
|