@thecb/components 7.1.3-beta.2 → 7.1.4-beta.0
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 +13 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +13 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/WalletIconSmall.js +3 -3
- package/src/components/atoms/link/ExternalLink.d.ts +1 -1
- package/src/components/atoms/link/ExternalLink.js +13 -17
- package/src/components/atoms/link/ExternalLink.styled.js +1 -3
- package/src/components/atoms/link/InternalLink.d.ts +1 -1
- package/src/components/atoms/link/InternalLink.js +14 -18
- package/src/components/atoms/link/InternalLink.styled.js +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ interface ExternalLinkProps {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
declare const ExternalLink: React.FC<Expand<ExternalLinkProps> &
|
|
190
|
-
React.HTMLAttributes<HTMLElement
|
|
190
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
191
191
|
|
|
192
192
|
interface InternalLinkProps {
|
|
193
193
|
to: string;
|
|
@@ -204,7 +204,7 @@ interface InternalLinkProps {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
declare const InternalLink: React.FC<Expand<InternalLinkProps> &
|
|
207
|
-
React.HTMLAttributes<HTMLElement
|
|
207
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
208
208
|
|
|
209
209
|
interface NavFooterProps {
|
|
210
210
|
leftContent?: JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -13384,7 +13384,9 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
|
|
|
13384
13384
|
var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
|
|
13385
13385
|
|
|
13386
13386
|
var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
13387
|
-
var themeValues = _ref.themeValues
|
|
13387
|
+
var themeValues = _ref.themeValues,
|
|
13388
|
+
_ref$iconIndex = _ref.iconIndex,
|
|
13389
|
+
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex;
|
|
13388
13390
|
return /*#__PURE__*/React.createElement("svg", {
|
|
13389
13391
|
width: "20",
|
|
13390
13392
|
height: "20",
|
|
@@ -13397,7 +13399,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13397
13399
|
d: "M16.3125 6.94643C16.0446 6.70536 15.7232 6.57143 15.3482 6.57143L5.14283 6.57143C5.0089 6.57143 4.90176 6.54464 4.8214 6.46429C4.74104 6.38393 4.71426 6.27678 4.71426 6.14286C4.71426 6.03571 4.74104 5.92857 4.8214 5.84821C4.90176 5.76786 5.0089 5.71428 5.14283 5.71428L15.4285 5.71428C15.5357 5.71428 15.6428 5.6875 15.7232 5.60714C15.8035 5.52678 15.8571 5.41964 15.8571 5.28571C15.8571 4.9375 15.7232 4.64286 15.4821 4.375C15.2143 4.13393 14.9196 4 14.5714 4L4.71426 4C4.23211 4 3.80354 4.1875 3.48211 4.50893C3.16068 4.83036 2.99997 5.23214 2.99997 5.71428V14.2857C2.99997 14.7679 3.16068 15.1964 3.48211 15.5179C3.80354 15.8393 4.23211 16 4.71426 16L15.3482 16C15.7232 16 16.0446 15.8929 16.3125 15.625C16.5803 15.3839 16.7143 15.0893 16.7143 14.7143V7.85714C16.7143 7.50893 16.5803 7.21428 16.3125 6.94643ZM12.7142 13.143C13.661 13.143 14.4285 12.3755 14.4285 11.4288C14.4285 10.482 13.661 9.71447 12.7142 9.71447C11.7674 9.71447 10.9999 10.482 10.9999 11.4288C10.9999 12.3755 11.7674 13.143 12.7142 13.143Z",
|
|
13398
13400
|
fill: themeValues.singleIconColor
|
|
13399
13401
|
}), /*#__PURE__*/React.createElement("mask", {
|
|
13400
|
-
id: "mask0_503_574",
|
|
13402
|
+
id: "mask0_503_574-".concat(iconIndex),
|
|
13401
13403
|
style: {
|
|
13402
13404
|
maskType: "alpha"
|
|
13403
13405
|
},
|
|
@@ -13412,7 +13414,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13412
13414
|
d: "M16.3125 6.94643C16.0446 6.70536 15.7232 6.57143 15.3482 6.57143L5.14283 6.57143C5.0089 6.57143 4.90176 6.54464 4.8214 6.46429C4.74104 6.38393 4.71426 6.27678 4.71426 6.14286C4.71426 6.03571 4.74104 5.92857 4.8214 5.84821C4.90176 5.76786 5.0089 5.71428 5.14283 5.71428L15.4285 5.71428C15.5357 5.71428 15.6428 5.6875 15.7232 5.60714C15.8035 5.52678 15.8571 5.41964 15.8571 5.28571C15.8571 4.9375 15.7232 4.64286 15.4821 4.375C15.2143 4.13393 14.9196 4 14.5714 4L4.71426 4C4.23211 4 3.80354 4.1875 3.48211 4.50893C3.16068 4.83036 2.99997 5.23214 2.99997 5.71428V14.2857C2.99997 14.7679 3.16068 15.1964 3.48211 15.5179C3.80354 15.8393 4.23211 16 4.71426 16L15.3482 16C15.7232 16 16.0446 15.8929 16.3125 15.625C16.5803 15.3839 16.7143 15.0893 16.7143 14.7143V7.85714C16.7143 7.50893 16.5803 7.21428 16.3125 6.94643ZM12.7142 13.143C13.661 13.143 14.4285 12.3755 14.4285 11.4288C14.4285 10.482 13.661 9.71447 12.7142 9.71447C11.7674 9.71447 10.9999 10.482 10.9999 11.4288C10.9999 12.3755 11.7674 13.143 12.7142 13.143Z",
|
|
13413
13415
|
fill: "white"
|
|
13414
13416
|
})), /*#__PURE__*/React.createElement("g", {
|
|
13415
|
-
mask: "url(#mask0_503_574)"
|
|
13417
|
+
mask: "url(#mask0_503_574-".concat(iconIndex, ")")
|
|
13416
13418
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
13417
13419
|
width: "20",
|
|
13418
13420
|
height: "20",
|
|
@@ -17599,15 +17601,13 @@ var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
|
|
|
17599
17601
|
|
|
17600
17602
|
/* eslint-disable no-unused-vars */
|
|
17601
17603
|
|
|
17602
|
-
var StyledExternalLink = styled(function (_ref
|
|
17604
|
+
var StyledExternalLink = styled(function (_ref) {
|
|
17603
17605
|
var hoverColor = _ref.hoverColor,
|
|
17604
17606
|
activeColor = _ref.activeColor,
|
|
17605
17607
|
extrastyles = _ref.extrastyles,
|
|
17606
17608
|
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
17607
17609
|
|
|
17608
|
-
return /*#__PURE__*/React.createElement("a",
|
|
17609
|
-
ref: ref
|
|
17610
|
-
}));
|
|
17610
|
+
return /*#__PURE__*/React.createElement("a", props);
|
|
17611
17611
|
}).withConfig({
|
|
17612
17612
|
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
17613
17613
|
componentId: "sc-m1q2m2-0"
|
|
@@ -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 ExternalLink(_ref
|
|
17641
|
+
var ExternalLink = function ExternalLink(_ref) {
|
|
17642
17642
|
var _ref$href = _ref.href,
|
|
17643
17643
|
href = _ref$href === void 0 ? "" : _ref$href,
|
|
17644
17644
|
_ref$newTab = _ref.newTab,
|
|
@@ -17674,8 +17674,7 @@ var ExternalLink = function ExternalLink(_ref, ref) {
|
|
|
17674
17674
|
extrastyles: extraStyles,
|
|
17675
17675
|
rel: newTab ? "noopener" : "",
|
|
17676
17676
|
"data-qa": dataQa,
|
|
17677
|
-
"aria-label": ariaLabel
|
|
17678
|
-
ref: ref
|
|
17677
|
+
"aria-label": ariaLabel
|
|
17679
17678
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
17680
17679
|
};
|
|
17681
17680
|
|
|
@@ -17687,7 +17686,7 @@ var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"
|
|
|
17687
17686
|
|
|
17688
17687
|
/* eslint-disable no-unused-vars */
|
|
17689
17688
|
|
|
17690
|
-
var StyledInternalLink = styled(function (_ref
|
|
17689
|
+
var StyledInternalLink = styled(function (_ref) {
|
|
17691
17690
|
var hoverColor = _ref.hoverColor,
|
|
17692
17691
|
activeColor = _ref.activeColor,
|
|
17693
17692
|
active = _ref.active,
|
|
@@ -17695,9 +17694,7 @@ var StyledInternalLink = styled(function (_ref, ref) {
|
|
|
17695
17694
|
extrastyles = _ref.extrastyles,
|
|
17696
17695
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
17697
17696
|
|
|
17698
|
-
return /*#__PURE__*/React.createElement(Link,
|
|
17699
|
-
ref: ref
|
|
17700
|
-
}));
|
|
17697
|
+
return /*#__PURE__*/React.createElement(Link, props);
|
|
17701
17698
|
}).withConfig({
|
|
17702
17699
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
17703
17700
|
componentId: "sc-cuqxud-0"
|
|
@@ -17733,7 +17730,7 @@ var StyledInternalLink = styled(function (_ref, ref) {
|
|
|
17733
17730
|
});
|
|
17734
17731
|
/* eslint-enable no-unused-vars */
|
|
17735
17732
|
|
|
17736
|
-
var InternalLink = function InternalLink(_ref
|
|
17733
|
+
var InternalLink = function InternalLink(_ref) {
|
|
17737
17734
|
var _ref$to = _ref.to,
|
|
17738
17735
|
to = _ref$to === void 0 ? "" : _ref$to,
|
|
17739
17736
|
color = _ref.color,
|
|
@@ -17765,8 +17762,7 @@ var InternalLink = function InternalLink(_ref, ref) {
|
|
|
17765
17762
|
activeColor: themeValues.activeColor,
|
|
17766
17763
|
tabIndex: tabIndex,
|
|
17767
17764
|
extrastyles: extraStyles,
|
|
17768
|
-
"data-qa": dataQa
|
|
17769
|
-
ref: ref
|
|
17765
|
+
"data-qa": dataQa
|
|
17770
17766
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
17771
17767
|
};
|
|
17772
17768
|
|