@thecb/components 8.3.1-beta.14 → 8.3.1-beta.3

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
@@ -19714,11 +19714,13 @@ var fontFamily$2 = {
19714
19714
  };
19715
19715
  var hoverColor$2 = SAPPHIRE_BLUE;
19716
19716
  var activeColor$3 = PEACOCK_BLUE;
19717
+ var activeBackgroundColor$1 = INFO_BLUE;
19717
19718
  var externalLinkColor = MATISSE_BLUE;
19718
19719
  var fallbackValues$a = {
19719
19720
  fontFamily: fontFamily$2,
19720
19721
  hoverColor: hoverColor$2,
19721
19722
  activeColor: activeColor$3,
19723
+ activeBackgroundColor: activeBackgroundColor$1,
19722
19724
  externalLinkColor: externalLinkColor
19723
19725
  };
19724
19726
 
@@ -19832,7 +19834,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19832
19834
  })).withConfig({
19833
19835
  displayName: "InternalLinkstyled__StyledInternalLink",
19834
19836
  componentId: "sc-cuqxud-0"
19835
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
19837
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19836
19838
  var color = _ref2.color,
19837
19839
  active = _ref2.active,
19838
19840
  activeColor = _ref2.activeColor;
@@ -19859,7 +19861,10 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19859
19861
  var activeColor = _ref9.activeColor;
19860
19862
  return activeColor;
19861
19863
  }, function (_ref10) {
19862
- var extrastyles = _ref10.extrastyles;
19864
+ var activeBackgroundColor = _ref10.activeBackgroundColor;
19865
+ return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19866
+ }, function (_ref11) {
19867
+ var extrastyles = _ref11.extrastyles;
19863
19868
  return extrastyles;
19864
19869
  });
19865
19870
  /* eslint-enable no-unused-vars */
@@ -21510,11 +21515,15 @@ _curry2(function test(pattern, str) {
21510
21515
 
21511
21516
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21512
21517
 
21513
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21518
+ var _excluded$m = ["url", "active", "activeBackgroundColor", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21514
21519
 
21515
21520
  var ButtonWithLink = function ButtonWithLink(_ref) {
21516
21521
  var _ref$url = _ref.url,
21517
21522
  url = _ref$url === void 0 ? "/" : _ref$url,
21523
+ _ref$active = _ref.active,
21524
+ active = _ref$active === void 0 ? false : _ref$active,
21525
+ _ref$activeBackground = _ref.activeBackgroundColor,
21526
+ activeBackgroundColor = _ref$activeBackground === void 0 ? undefined : _ref$activeBackground,
21518
21527
  _ref$disabled = _ref.disabled,
21519
21528
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21520
21529
  _ref$fileLink = _ref.fileLink,
@@ -21529,6 +21538,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21529
21538
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21530
21539
  var children = _ref2.children,
21531
21540
  url = _ref2.url,
21541
+ active = _ref2.active,
21542
+ activeBackgroundColor = _ref2.activeBackgroundColor,
21532
21543
  disabled = _ref2.disabled,
21533
21544
  newTab = _ref2.newTab,
21534
21545
  dataQa = _ref2.dataQa,
@@ -21546,6 +21557,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21546
21557
  dataQa: dataQa
21547
21558
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21548
21559
  to: url,
21560
+ active: active,
21561
+ activeBackgroundColor: activeBackgroundColor,
21549
21562
  tabIndex: "-1",
21550
21563
  dataQa: dataQa,
21551
21564
  extraStyles: extraStyles
@@ -21554,6 +21567,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21554
21567
 
21555
21568
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21556
21569
  url: url,
21570
+ active: active,
21571
+ activeBackgroundColor: activeBackgroundColor,
21557
21572
  disabled: disabled,
21558
21573
  newTab: newTab,
21559
21574
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -47519,11 +47534,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47519
47534
  var arrowColor = WHITE;
47520
47535
  var numberColor = MATISSE_BLUE;
47521
47536
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47522
- var activeBackgroundColor$1 = WHITE;
47537
+ var activeBackgroundColor$2 = WHITE;
47523
47538
  var activeColor$9 = MATISSE_BLUE;
47524
47539
  var fallbackValues$L = {
47525
47540
  activeColor: activeColor$9,
47526
- activeBackgroundColor: activeBackgroundColor$1,
47541
+ activeBackgroundColor: activeBackgroundColor$2,
47527
47542
  arrowColor: arrowColor,
47528
47543
  hoverBackgroundColor: hoverBackgroundColor$2,
47529
47544
  numberColor: numberColor