@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.cjs.js CHANGED
@@ -21510,11 +21510,13 @@ _curry2(function test(pattern, str) {
21510
21510
 
21511
21511
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21512
21512
 
21513
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21513
+ var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21514
21514
 
21515
21515
  var ButtonWithLink = function ButtonWithLink(_ref) {
21516
21516
  var _ref$url = _ref.url,
21517
21517
  url = _ref$url === void 0 ? "/" : _ref$url,
21518
+ _ref$active = _ref.active,
21519
+ active = _ref$active === void 0 ? false : _ref$active,
21518
21520
  _ref$disabled = _ref.disabled,
21519
21521
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21520
21522
  _ref$fileLink = _ref.fileLink,
@@ -21529,6 +21531,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21529
21531
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21530
21532
  var children = _ref2.children,
21531
21533
  url = _ref2.url,
21534
+ active = _ref2.active,
21532
21535
  disabled = _ref2.disabled,
21533
21536
  newTab = _ref2.newTab,
21534
21537
  dataQa = _ref2.dataQa,
@@ -21546,6 +21549,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21546
21549
  dataQa: dataQa
21547
21550
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21548
21551
  to: url,
21552
+ active: active,
21549
21553
  tabIndex: "-1",
21550
21554
  dataQa: dataQa,
21551
21555
  extraStyles: extraStyles
@@ -21554,6 +21558,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21554
21558
 
21555
21559
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21556
21560
  url: url,
21561
+ active: active,
21557
21562
  disabled: disabled,
21558
21563
  newTab: newTab,
21559
21564
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),