@thecb/components 8.3.1-beta.9 → 8.3.1
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 +7 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +289 -1
- package/dist/index.esm.js +7 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.js +0 -5
- package/src/components/atoms/link/InternalLink.styled.js +1 -2
- package/src/components/atoms/link/Link.theme.js +3 -3
- package/src/constants/colors.d.ts +127 -0
- package/src/constants/index.d.ts +3 -0
- package/src/index.d.ts +2 -0
package/dist/index.cjs.js
CHANGED
|
@@ -19832,7 +19832,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19832
19832
|
})).withConfig({
|
|
19833
19833
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
19834
19834
|
componentId: "sc-cuqxud-0"
|
|
19835
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", "
|
|
19835
|
+
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
|
|
19836
19836
|
var color = _ref2.color,
|
|
19837
19837
|
active = _ref2.active,
|
|
19838
19838
|
activeColor = _ref2.activeColor;
|
|
@@ -19853,16 +19853,13 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
19853
19853
|
var margin = _ref7.margin;
|
|
19854
19854
|
return margin;
|
|
19855
19855
|
}, function (_ref8) {
|
|
19856
|
-
var
|
|
19857
|
-
return matchesCurrentRoute ? INFO_BLUE : 'transparent';
|
|
19858
|
-
}, function (_ref9) {
|
|
19859
|
-
var hoverColor = _ref9.hoverColor;
|
|
19856
|
+
var hoverColor = _ref8.hoverColor;
|
|
19860
19857
|
return hoverColor;
|
|
19861
|
-
}, ROYAL_BLUE, function (
|
|
19862
|
-
var activeColor =
|
|
19858
|
+
}, ROYAL_BLUE, function (_ref9) {
|
|
19859
|
+
var activeColor = _ref9.activeColor;
|
|
19863
19860
|
return activeColor;
|
|
19864
|
-
}, function (
|
|
19865
|
-
var extrastyles =
|
|
19861
|
+
}, function (_ref10) {
|
|
19862
|
+
var extrastyles = _ref10.extrastyles;
|
|
19866
19863
|
return extrastyles;
|
|
19867
19864
|
});
|
|
19868
19865
|
/* eslint-enable no-unused-vars */
|
|
@@ -21513,13 +21510,11 @@ _curry2(function test(pattern, str) {
|
|
|
21513
21510
|
|
|
21514
21511
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
21515
21512
|
|
|
21516
|
-
var _excluded$m = ["url", "
|
|
21513
|
+
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
21517
21514
|
|
|
21518
21515
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
21519
21516
|
var _ref$url = _ref.url,
|
|
21520
21517
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
21521
|
-
_ref$matchesCurrentRo = _ref.matchesCurrentRoute,
|
|
21522
|
-
matchesCurrentRoute = _ref$matchesCurrentRo === void 0 ? false : _ref$matchesCurrentRo,
|
|
21523
21518
|
_ref$disabled = _ref.disabled,
|
|
21524
21519
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
21525
21520
|
_ref$fileLink = _ref.fileLink,
|
|
@@ -21534,7 +21529,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21534
21529
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
21535
21530
|
var children = _ref2.children,
|
|
21536
21531
|
url = _ref2.url,
|
|
21537
|
-
matchesCurrentRoute = _ref2.matchesCurrentRoute,
|
|
21538
21532
|
disabled = _ref2.disabled,
|
|
21539
21533
|
newTab = _ref2.newTab,
|
|
21540
21534
|
dataQa = _ref2.dataQa,
|
|
@@ -21552,7 +21546,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21552
21546
|
dataQa: dataQa
|
|
21553
21547
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
21554
21548
|
to: url,
|
|
21555
|
-
matchesCurrentRoute: matchesCurrentRoute,
|
|
21556
21549
|
tabIndex: "-1",
|
|
21557
21550
|
dataQa: dataQa,
|
|
21558
21551
|
extraStyles: extraStyles
|
|
@@ -21560,7 +21553,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21560
21553
|
};
|
|
21561
21554
|
|
|
21562
21555
|
return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
|
|
21563
|
-
matchesCurrentRoute: matchesCurrentRoute,
|
|
21564
21556
|
url: url,
|
|
21565
21557
|
disabled: disabled,
|
|
21566
21558
|
newTab: newTab,
|