@thecb/components 8.3.0 → 8.3.1-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.esm.js CHANGED
@@ -21502,11 +21502,13 @@ _curry2(function test(pattern, str) {
21502
21502
 
21503
21503
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21504
21504
 
21505
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21505
+ var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21506
21506
 
21507
21507
  var ButtonWithLink = function ButtonWithLink(_ref) {
21508
21508
  var _ref$url = _ref.url,
21509
21509
  url = _ref$url === void 0 ? "/" : _ref$url,
21510
+ _ref$active = _ref.active,
21511
+ active = _ref$active === void 0 ? false : _ref$active,
21510
21512
  _ref$disabled = _ref.disabled,
21511
21513
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21512
21514
  _ref$fileLink = _ref.fileLink,
@@ -21521,6 +21523,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21521
21523
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21522
21524
  var children = _ref2.children,
21523
21525
  url = _ref2.url,
21526
+ active = _ref2.active,
21524
21527
  disabled = _ref2.disabled,
21525
21528
  newTab = _ref2.newTab,
21526
21529
  dataQa = _ref2.dataQa,
@@ -21538,6 +21541,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21538
21541
  dataQa: dataQa
21539
21542
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
21540
21543
  to: url,
21544
+ active: active,
21541
21545
  tabIndex: "-1",
21542
21546
  dataQa: dataQa,
21543
21547
  extraStyles: extraStyles
@@ -21546,6 +21550,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21546
21550
 
21547
21551
  return /*#__PURE__*/React.createElement(ButtonWithLinkWrapper, {
21548
21552
  url: url,
21553
+ active: active,
21549
21554
  disabled: disabled,
21550
21555
  newTab: newTab,
21551
21556
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),