@thecb/components 5.9.0-beta.6 → 5.9.0-beta.7
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 +16 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.js +10 -1
- package/src/components/atoms/link/ExternalLink.js +2 -0
- package/src/components/atoms/link/InternalLink.js +2 -0
- package/src/components/molecules/workflow-tile/WorkflowTile.js +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -16954,6 +16954,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
16954
16954
|
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
16955
16955
|
_ref$tabIndex = _ref.tabIndex,
|
|
16956
16956
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
16957
|
+
dataQa = _ref.dataQa,
|
|
16957
16958
|
children = _ref.children;
|
|
16958
16959
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
16959
16960
|
var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
|
|
@@ -16969,7 +16970,8 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
16969
16970
|
fontFamily: themeValues.fontFamily,
|
|
16970
16971
|
tabIndex: tabIndex,
|
|
16971
16972
|
extrastyles: extraStyles,
|
|
16972
|
-
rel: newTab ? "noopener" : ""
|
|
16973
|
+
rel: newTab ? "noopener" : "",
|
|
16974
|
+
"data-qa": dataQa
|
|
16973
16975
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
16974
16976
|
};
|
|
16975
16977
|
|
|
@@ -17039,6 +17041,7 @@ var InternalLink = function InternalLink(_ref) {
|
|
|
17039
17041
|
margin = _ref.margin,
|
|
17040
17042
|
_ref$tabIndex = _ref.tabIndex,
|
|
17041
17043
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
17044
|
+
dataQa = _ref.dataQa,
|
|
17042
17045
|
_ref$extraStyles = _ref.extraStyles,
|
|
17043
17046
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
17044
17047
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
@@ -17055,7 +17058,8 @@ var InternalLink = function InternalLink(_ref) {
|
|
|
17055
17058
|
hoverColor: themeValues.hoverColor,
|
|
17056
17059
|
activeColor: themeValues.activeColor,
|
|
17057
17060
|
tabIndex: tabIndex,
|
|
17058
|
-
extrastyles: extraStyles
|
|
17061
|
+
extrastyles: extraStyles,
|
|
17062
|
+
"data-qa": dataQa
|
|
17059
17063
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17060
17064
|
};
|
|
17061
17065
|
|
|
@@ -18668,7 +18672,7 @@ _curry2(function test(pattern, str) {
|
|
|
18668
18672
|
|
|
18669
18673
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
18670
18674
|
|
|
18671
|
-
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
|
|
18675
|
+
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
18672
18676
|
|
|
18673
18677
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
18674
18678
|
var _ref$url = _ref.url,
|
|
@@ -18681,6 +18685,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18681
18685
|
linkExtraStyles = _ref.linkExtraStyles,
|
|
18682
18686
|
_ref$newTab = _ref.newTab,
|
|
18683
18687
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
18688
|
+
dataQa = _ref.dataQa,
|
|
18684
18689
|
otherProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
18685
18690
|
|
|
18686
18691
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
@@ -18688,6 +18693,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18688
18693
|
url = _ref2.url,
|
|
18689
18694
|
disabled = _ref2.disabled,
|
|
18690
18695
|
newTab = _ref2.newTab,
|
|
18696
|
+
dataQa = _ref2.dataQa,
|
|
18691
18697
|
extraStyles = _ref2.extraStyles;
|
|
18692
18698
|
|
|
18693
18699
|
if (disabled) {
|
|
@@ -18698,10 +18704,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18698
18704
|
href: url,
|
|
18699
18705
|
tabIndex: "-1",
|
|
18700
18706
|
newTab: newTab,
|
|
18701
|
-
extraStyles: extraStyles
|
|
18707
|
+
extraStyles: extraStyles,
|
|
18708
|
+
dataQa: dataQa
|
|
18702
18709
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
18703
18710
|
to: url,
|
|
18704
18711
|
tabIndex: "-1",
|
|
18712
|
+
dataQa: dataQa,
|
|
18705
18713
|
extraStyles: extraStyles
|
|
18706
18714
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
18707
18715
|
};
|
|
@@ -18710,7 +18718,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18710
18718
|
url: url,
|
|
18711
18719
|
disabled: disabled,
|
|
18712
18720
|
newTab: newTab,
|
|
18713
|
-
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
|
|
18721
|
+
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|
|
18722
|
+
dataQa: dataQa
|
|
18714
18723
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
18715
18724
|
extraStyles: extraStyles
|
|
18716
18725
|
})));
|
|
@@ -41779,7 +41788,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
41779
41788
|
minWidth: "100%",
|
|
41780
41789
|
url: "/service/".concat(slug),
|
|
41781
41790
|
extraStyles: "width: 100%;",
|
|
41782
|
-
linkExtraStyles: "justify-content: center;"
|
|
41791
|
+
linkExtraStyles: "justify-content: center;",
|
|
41792
|
+
dataQa: slug
|
|
41783
41793
|
}))));
|
|
41784
41794
|
};
|
|
41785
41795
|
|