@thecb/components 7.1.3-beta.1 → 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 -4
- 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 -2
- 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 -2
- package/src/components/atoms/link/InternalLink.js +14 -18
- package/src/components/atoms/link/InternalLink.styled.js +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -13392,7 +13392,9 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
|
|
|
13392
13392
|
var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
|
|
13393
13393
|
|
|
13394
13394
|
var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
13395
|
-
var themeValues = _ref.themeValues
|
|
13395
|
+
var themeValues = _ref.themeValues,
|
|
13396
|
+
_ref$iconIndex = _ref.iconIndex,
|
|
13397
|
+
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex;
|
|
13396
13398
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13397
13399
|
width: "20",
|
|
13398
13400
|
height: "20",
|
|
@@ -13405,7 +13407,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13405
13407
|
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",
|
|
13406
13408
|
fill: themeValues.singleIconColor
|
|
13407
13409
|
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
13408
|
-
id: "mask0_503_574",
|
|
13410
|
+
id: "mask0_503_574-".concat(iconIndex),
|
|
13409
13411
|
style: {
|
|
13410
13412
|
maskType: "alpha"
|
|
13411
13413
|
},
|
|
@@ -13420,7 +13422,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13420
13422
|
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",
|
|
13421
13423
|
fill: "white"
|
|
13422
13424
|
})), /*#__PURE__*/React__default.createElement("g", {
|
|
13423
|
-
mask: "url(#mask0_503_574)"
|
|
13425
|
+
mask: "url(#mask0_503_574-".concat(iconIndex, ")")
|
|
13424
13426
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13425
13427
|
width: "20",
|
|
13426
13428
|
height: "20",
|
|
@@ -17607,15 +17609,13 @@ var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
|
|
|
17607
17609
|
|
|
17608
17610
|
/* eslint-disable no-unused-vars */
|
|
17609
17611
|
|
|
17610
|
-
var StyledExternalLink = styled__default(function (_ref
|
|
17612
|
+
var StyledExternalLink = styled__default(function (_ref) {
|
|
17611
17613
|
var hoverColor = _ref.hoverColor,
|
|
17612
17614
|
activeColor = _ref.activeColor,
|
|
17613
17615
|
extrastyles = _ref.extrastyles,
|
|
17614
17616
|
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
17615
17617
|
|
|
17616
|
-
return /*#__PURE__*/React__default.createElement("a",
|
|
17617
|
-
ref: ref
|
|
17618
|
-
}));
|
|
17618
|
+
return /*#__PURE__*/React__default.createElement("a", props);
|
|
17619
17619
|
}).withConfig({
|
|
17620
17620
|
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
17621
17621
|
componentId: "sc-m1q2m2-0"
|
|
@@ -17646,7 +17646,7 @@ var StyledExternalLink = styled__default(function (_ref, ref) {
|
|
|
17646
17646
|
});
|
|
17647
17647
|
/* eslint-enable no-unused-vars */
|
|
17648
17648
|
|
|
17649
|
-
var ExternalLink = function ExternalLink(_ref
|
|
17649
|
+
var ExternalLink = function ExternalLink(_ref) {
|
|
17650
17650
|
var _ref$href = _ref.href,
|
|
17651
17651
|
href = _ref$href === void 0 ? "" : _ref$href,
|
|
17652
17652
|
_ref$newTab = _ref.newTab,
|
|
@@ -17682,8 +17682,7 @@ var ExternalLink = function ExternalLink(_ref, ref) {
|
|
|
17682
17682
|
extrastyles: extraStyles,
|
|
17683
17683
|
rel: newTab ? "noopener" : "",
|
|
17684
17684
|
"data-qa": dataQa,
|
|
17685
|
-
"aria-label": ariaLabel
|
|
17686
|
-
ref: ref
|
|
17685
|
+
"aria-label": ariaLabel
|
|
17687
17686
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17688
17687
|
};
|
|
17689
17688
|
|
|
@@ -17695,7 +17694,7 @@ var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"
|
|
|
17695
17694
|
|
|
17696
17695
|
/* eslint-disable no-unused-vars */
|
|
17697
17696
|
|
|
17698
|
-
var StyledInternalLink = styled__default(function (_ref
|
|
17697
|
+
var StyledInternalLink = styled__default(function (_ref) {
|
|
17699
17698
|
var hoverColor = _ref.hoverColor,
|
|
17700
17699
|
activeColor = _ref.activeColor,
|
|
17701
17700
|
active = _ref.active,
|
|
@@ -17703,9 +17702,7 @@ var StyledInternalLink = styled__default(function (_ref, ref) {
|
|
|
17703
17702
|
extrastyles = _ref.extrastyles,
|
|
17704
17703
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
17705
17704
|
|
|
17706
|
-
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link,
|
|
17707
|
-
ref: ref
|
|
17708
|
-
}));
|
|
17705
|
+
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, props);
|
|
17709
17706
|
}).withConfig({
|
|
17710
17707
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
17711
17708
|
componentId: "sc-cuqxud-0"
|
|
@@ -17741,7 +17738,7 @@ var StyledInternalLink = styled__default(function (_ref, ref) {
|
|
|
17741
17738
|
});
|
|
17742
17739
|
/* eslint-enable no-unused-vars */
|
|
17743
17740
|
|
|
17744
|
-
var InternalLink = function InternalLink(_ref
|
|
17741
|
+
var InternalLink = function InternalLink(_ref) {
|
|
17745
17742
|
var _ref$to = _ref.to,
|
|
17746
17743
|
to = _ref$to === void 0 ? "" : _ref$to,
|
|
17747
17744
|
color = _ref.color,
|
|
@@ -17773,8 +17770,7 @@ var InternalLink = function InternalLink(_ref, ref) {
|
|
|
17773
17770
|
activeColor: themeValues.activeColor,
|
|
17774
17771
|
tabIndex: tabIndex,
|
|
17775
17772
|
extrastyles: extraStyles,
|
|
17776
|
-
"data-qa": dataQa
|
|
17777
|
-
ref: ref
|
|
17773
|
+
"data-qa": dataQa
|
|
17778
17774
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17779
17775
|
};
|
|
17780
17776
|
|