@thecb/components 8.3.0-beta.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
@@ -5002,7 +5002,6 @@ var COOL_GREY_05 = "#fbfcfd"; // CBS-050
5002
5002
  var CLOUDBURST_BLUE = "#26395c";
5003
5003
  var ZODIAC_BLUE = "#14284b";
5004
5004
  var CONGRESS_BLUE = "#005095";
5005
- var ROYAL_BLUE = "#3B5BDB";
5006
5005
  var SCIENCE_BLUE = "#0074D9";
5007
5006
  var MARINER_BLUE = "#2E75D2";
5008
5007
  var CURIOUS_BLUE = "#27A9E1";
@@ -5017,6 +5016,8 @@ var INFO_BLUE = "#E4F4FD";
5017
5016
  var CORNFLOWER_BLUE = "#EBEFFB";
5018
5017
  var HOVER_LIGHT_BLUE = "#EFFAFF";
5019
5018
  var MATISSE_BLUE = "#15749D";
5019
+ var ROYAL_BLUE = "#3181E3";
5020
+ var ROYAL_BLUE_VIVID = "#3B5BDB";
5020
5021
  var ASTRAL_BLUE = "#3176AA";
5021
5022
  var SAPPHIRE_BLUE = "#116285";
5022
5023
  var PEACOCK_BLUE = "#0E506D"; // GREEN
@@ -5147,6 +5148,7 @@ var colors = /*#__PURE__*/Object.freeze({
5147
5148
  HOVER_LIGHT_BLUE: HOVER_LIGHT_BLUE,
5148
5149
  MATISSE_BLUE: MATISSE_BLUE,
5149
5150
  ROYAL_BLUE: ROYAL_BLUE,
5151
+ ROYAL_BLUE_VIVID: ROYAL_BLUE_VIVID,
5150
5152
  ASTRAL_BLUE: ASTRAL_BLUE,
5151
5153
  SAPPHIRE_BLUE: SAPPHIRE_BLUE,
5152
5154
  PEACOCK_BLUE: PEACOCK_BLUE,
@@ -18799,7 +18801,7 @@ var background$1 = {
18799
18801
  var color$4 = {
18800
18802
  info: "".concat(MATISSE_BLUE),
18801
18803
  warn: "".concat(ZEST_ORANGE),
18802
- primary: "".concat(ROYAL_BLUE),
18804
+ primary: "".concat(ROYAL_BLUE_VIVID),
18803
18805
  success: "".concat(SEA_GREEN)
18804
18806
  };
18805
18807
  var fallbackValues$7 = {
@@ -21508,11 +21510,13 @@ _curry2(function test(pattern, str) {
21508
21510
 
21509
21511
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21510
21512
 
21511
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21513
+ var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21512
21514
 
21513
21515
  var ButtonWithLink = function ButtonWithLink(_ref) {
21514
21516
  var _ref$url = _ref.url,
21515
21517
  url = _ref$url === void 0 ? "/" : _ref$url,
21518
+ _ref$active = _ref.active,
21519
+ active = _ref$active === void 0 ? false : _ref$active,
21516
21520
  _ref$disabled = _ref.disabled,
21517
21521
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21518
21522
  _ref$fileLink = _ref.fileLink,
@@ -21527,6 +21531,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21527
21531
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21528
21532
  var children = _ref2.children,
21529
21533
  url = _ref2.url,
21534
+ active = _ref2.active,
21530
21535
  disabled = _ref2.disabled,
21531
21536
  newTab = _ref2.newTab,
21532
21537
  dataQa = _ref2.dataQa,
@@ -21544,6 +21549,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21544
21549
  dataQa: dataQa
21545
21550
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21546
21551
  to: url,
21552
+ active: active,
21547
21553
  tabIndex: "-1",
21548
21554
  dataQa: dataQa,
21549
21555
  extraStyles: extraStyles
@@ -21552,6 +21558,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21552
21558
 
21553
21559
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21554
21560
  url: url,
21561
+ active: active,
21555
21562
  disabled: disabled,
21556
21563
  newTab: newTab,
21557
21564
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),