@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.esm.js CHANGED
@@ -16946,6 +16946,7 @@ var ExternalLink = function ExternalLink(_ref) {
16946
16946
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
16947
16947
  _ref$tabIndex = _ref.tabIndex,
16948
16948
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
16949
+ dataQa = _ref.dataQa,
16949
16950
  children = _ref.children;
16950
16951
  var themeContext = useContext(ThemeContext);
16951
16952
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
@@ -16961,7 +16962,8 @@ var ExternalLink = function ExternalLink(_ref) {
16961
16962
  fontFamily: themeValues.fontFamily,
16962
16963
  tabIndex: tabIndex,
16963
16964
  extrastyles: extraStyles,
16964
- rel: newTab ? "noopener" : ""
16965
+ rel: newTab ? "noopener" : "",
16966
+ "data-qa": dataQa
16965
16967
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
16966
16968
  };
16967
16969
 
@@ -17031,6 +17033,7 @@ var InternalLink = function InternalLink(_ref) {
17031
17033
  margin = _ref.margin,
17032
17034
  _ref$tabIndex = _ref.tabIndex,
17033
17035
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
17036
+ dataQa = _ref.dataQa,
17034
17037
  _ref$extraStyles = _ref.extraStyles,
17035
17038
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
17036
17039
  var themeContext = useContext(ThemeContext);
@@ -17047,7 +17050,8 @@ var InternalLink = function InternalLink(_ref) {
17047
17050
  hoverColor: themeValues.hoverColor,
17048
17051
  activeColor: themeValues.activeColor,
17049
17052
  tabIndex: tabIndex,
17050
- extrastyles: extraStyles
17053
+ extrastyles: extraStyles,
17054
+ "data-qa": dataQa
17051
17055
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
17052
17056
  };
17053
17057
 
@@ -18660,7 +18664,7 @@ _curry2(function test(pattern, str) {
18660
18664
 
18661
18665
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
18662
18666
 
18663
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
18667
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
18664
18668
 
18665
18669
  var ButtonWithLink = function ButtonWithLink(_ref) {
18666
18670
  var _ref$url = _ref.url,
@@ -18673,6 +18677,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18673
18677
  linkExtraStyles = _ref.linkExtraStyles,
18674
18678
  _ref$newTab = _ref.newTab,
18675
18679
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
18680
+ dataQa = _ref.dataQa,
18676
18681
  otherProps = _objectWithoutProperties(_ref, _excluded$m);
18677
18682
 
18678
18683
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
@@ -18680,6 +18685,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18680
18685
  url = _ref2.url,
18681
18686
  disabled = _ref2.disabled,
18682
18687
  newTab = _ref2.newTab,
18688
+ dataQa = _ref2.dataQa,
18683
18689
  extraStyles = _ref2.extraStyles;
18684
18690
 
18685
18691
  if (disabled) {
@@ -18690,10 +18696,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18690
18696
  href: url,
18691
18697
  tabIndex: "-1",
18692
18698
  newTab: newTab,
18693
- extraStyles: extraStyles
18699
+ extraStyles: extraStyles,
18700
+ dataQa: dataQa
18694
18701
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
18695
18702
  to: url,
18696
18703
  tabIndex: "-1",
18704
+ dataQa: dataQa,
18697
18705
  extraStyles: extraStyles
18698
18706
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
18699
18707
  };
@@ -18702,7 +18710,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18702
18710
  url: url,
18703
18711
  disabled: disabled,
18704
18712
  newTab: newTab,
18705
- extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
18713
+ extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
18714
+ dataQa: dataQa
18706
18715
  }, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
18707
18716
  extraStyles: extraStyles
18708
18717
  })));
@@ -41771,7 +41780,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
41771
41780
  minWidth: "100%",
41772
41781
  url: "/service/".concat(slug),
41773
41782
  extraStyles: "width: 100%;",
41774
- linkExtraStyles: "justify-content: center;"
41783
+ linkExtraStyles: "justify-content: center;",
41784
+ dataQa: slug
41775
41785
  }))));
41776
41786
  };
41777
41787