@thecb/components 7.1.3-beta.1 → 7.1.3-beta.3
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 +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/link/ExternalLink.d.ts +1 -2
- package/src/components/atoms/link/ExternalLink.js +48 -46
- package/src/components/atoms/link/ExternalLink.styled.js +3 -3
- package/src/components/atoms/link/InternalLink.d.ts +1 -2
- package/src/components/atoms/link/InternalLink.js +48 -46
- package/src/components/atoms/link/InternalLink.styled.js +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -187,8 +187,7 @@ interface ExternalLinkProps {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
declare const ExternalLink: React.FC<Expand<ExternalLinkProps> &
|
|
190
|
-
React.HTMLAttributes<HTMLElement> &
|
|
191
|
-
React.Ref<HTMLLinkElement>>;
|
|
190
|
+
React.HTMLAttributes<HTMLElement> & { ref?: React.Ref<HTMLLinkElement> }>;
|
|
192
191
|
|
|
193
192
|
interface InternalLinkProps {
|
|
194
193
|
to: string;
|
|
@@ -205,8 +204,7 @@ interface InternalLinkProps {
|
|
|
205
204
|
}
|
|
206
205
|
|
|
207
206
|
declare const InternalLink: React.FC<Expand<InternalLinkProps> &
|
|
208
|
-
React.HTMLAttributes<HTMLElement> &
|
|
209
|
-
React.Ref<HTMLLinkElement>>;
|
|
207
|
+
React.HTMLAttributes<HTMLElement> & { ref?: React.Ref<HTMLLinkElement> }>;
|
|
210
208
|
|
|
211
209
|
interface NavFooterProps {
|
|
212
210
|
leftContent?: JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -17599,7 +17599,7 @@ var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
|
|
|
17599
17599
|
|
|
17600
17600
|
/* eslint-disable no-unused-vars */
|
|
17601
17601
|
|
|
17602
|
-
var StyledExternalLink = styled(function (_ref, ref) {
|
|
17602
|
+
var StyledExternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17603
17603
|
var hoverColor = _ref.hoverColor,
|
|
17604
17604
|
activeColor = _ref.activeColor,
|
|
17605
17605
|
extrastyles = _ref.extrastyles,
|
|
@@ -17608,7 +17608,7 @@ var StyledExternalLink = styled(function (_ref, ref) {
|
|
|
17608
17608
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
17609
17609
|
ref: ref
|
|
17610
17610
|
}));
|
|
17611
|
-
}).withConfig({
|
|
17611
|
+
})).withConfig({
|
|
17612
17612
|
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
17613
17613
|
componentId: "sc-m1q2m2-0"
|
|
17614
17614
|
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
|
|
@@ -17638,7 +17638,7 @@ var StyledExternalLink = styled(function (_ref, ref) {
|
|
|
17638
17638
|
});
|
|
17639
17639
|
/* eslint-enable no-unused-vars */
|
|
17640
17640
|
|
|
17641
|
-
var ExternalLink = function
|
|
17641
|
+
var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17642
17642
|
var _ref$href = _ref.href,
|
|
17643
17643
|
href = _ref$href === void 0 ? "" : _ref$href,
|
|
17644
17644
|
_ref$newTab = _ref.newTab,
|
|
@@ -17677,7 +17677,7 @@ var ExternalLink = function ExternalLink(_ref, ref) {
|
|
|
17677
17677
|
"aria-label": ariaLabel,
|
|
17678
17678
|
ref: ref
|
|
17679
17679
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
17680
|
-
};
|
|
17680
|
+
});
|
|
17681
17681
|
|
|
17682
17682
|
var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
17683
17683
|
/*
|
|
@@ -17687,7 +17687,7 @@ var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"
|
|
|
17687
17687
|
|
|
17688
17688
|
/* eslint-disable no-unused-vars */
|
|
17689
17689
|
|
|
17690
|
-
var StyledInternalLink = styled(function (_ref, ref) {
|
|
17690
|
+
var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17691
17691
|
var hoverColor = _ref.hoverColor,
|
|
17692
17692
|
activeColor = _ref.activeColor,
|
|
17693
17693
|
active = _ref.active,
|
|
@@ -17698,7 +17698,7 @@ var StyledInternalLink = styled(function (_ref, ref) {
|
|
|
17698
17698
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
17699
17699
|
ref: ref
|
|
17700
17700
|
}));
|
|
17701
|
-
}).withConfig({
|
|
17701
|
+
})).withConfig({
|
|
17702
17702
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
17703
17703
|
componentId: "sc-cuqxud-0"
|
|
17704
17704
|
})(["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) {
|
|
@@ -17733,7 +17733,7 @@ var StyledInternalLink = styled(function (_ref, ref) {
|
|
|
17733
17733
|
});
|
|
17734
17734
|
/* eslint-enable no-unused-vars */
|
|
17735
17735
|
|
|
17736
|
-
var InternalLink = function
|
|
17736
|
+
var InternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17737
17737
|
var _ref$to = _ref.to,
|
|
17738
17738
|
to = _ref$to === void 0 ? "" : _ref$to,
|
|
17739
17739
|
color = _ref.color,
|
|
@@ -17768,7 +17768,7 @@ var InternalLink = function InternalLink(_ref, ref) {
|
|
|
17768
17768
|
"data-qa": dataQa,
|
|
17769
17769
|
ref: ref
|
|
17770
17770
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
17771
|
-
};
|
|
17771
|
+
});
|
|
17772
17772
|
|
|
17773
17773
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
17774
17774
|
var _ref$breadcrumbsList = _ref.breadcrumbsList,
|