@thecb/components 8.3.1-beta.4 → 8.3.1-beta.6

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,13 +19714,11 @@ 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;
19718
19717
  var externalLinkColor = MATISSE_BLUE;
19719
19718
  var fallbackValues$a = {
19720
19719
  fontFamily: fontFamily$2,
19721
19720
  hoverColor: hoverColor$2,
19722
19721
  activeColor: activeColor$3,
19723
- activeBackgroundColor: activeBackgroundColor$1,
19724
19722
  externalLinkColor: externalLinkColor
19725
19723
  };
19726
19724
 
@@ -19828,15 +19826,13 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19828
19826
  extrastyles = _ref.extrastyles,
19829
19827
  props = _objectWithoutProperties(_ref, _excluded$l);
19830
19828
 
19831
- var match = reactRouterDom.useMatch();
19832
- console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
19833
19829
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
19834
19830
  ref: ref
19835
19831
  }));
19836
19832
  })).withConfig({
19837
19833
  displayName: "InternalLinkstyled__StyledInternalLink",
19838
19834
  componentId: "sc-cuqxud-0"
19839
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", " ? 'lightblue' :'transparent',&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19835
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
19840
19836
  var color = _ref2.color,
19841
19837
  active = _ref2.active,
19842
19838
  activeColor = _ref2.activeColor;
@@ -19856,15 +19852,15 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19856
19852
  }, function (_ref7) {
19857
19853
  var margin = _ref7.margin;
19858
19854
  return margin;
19859
- }, match, function (_ref8) {
19860
- var hoverColor = _ref8.hoverColor;
19855
+ }, function (_ref8) {
19856
+ var match = _ref8.match;
19857
+ return match ? INFO_BLUE : 'transparent';
19858
+ }, function (_ref9) {
19859
+ var hoverColor = _ref9.hoverColor;
19861
19860
  return hoverColor;
19862
- }, ROYAL_BLUE, function (_ref9) {
19863
- var activeColor = _ref9.activeColor;
19861
+ }, ROYAL_BLUE, function (_ref10) {
19862
+ var activeColor = _ref10.activeColor;
19864
19863
  return activeColor;
19865
- }, function (_ref10) {
19866
- var activeBackgroundColor = _ref10.activeBackgroundColor;
19867
- return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19868
19864
  }, function (_ref11) {
19869
19865
  var extrastyles = _ref11.extrastyles;
19870
19866
  return extrastyles;
@@ -21517,15 +21513,11 @@ _curry2(function test(pattern, str) {
21517
21513
 
21518
21514
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21519
21515
 
21520
- var _excluded$m = ["url", "active", "activeBackgroundColor", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21516
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21521
21517
 
21522
21518
  var ButtonWithLink = function ButtonWithLink(_ref) {
21523
21519
  var _ref$url = _ref.url,
21524
21520
  url = _ref$url === void 0 ? "/" : _ref$url,
21525
- _ref$active = _ref.active,
21526
- active = _ref$active === void 0 ? false : _ref$active,
21527
- _ref$activeBackground = _ref.activeBackgroundColor,
21528
- activeBackgroundColor = _ref$activeBackground === void 0 ? undefined : _ref$activeBackground,
21529
21521
  _ref$disabled = _ref.disabled,
21530
21522
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21531
21523
  _ref$fileLink = _ref.fileLink,
@@ -21540,12 +21532,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21540
21532
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21541
21533
  var children = _ref2.children,
21542
21534
  url = _ref2.url,
21543
- active = _ref2.active,
21544
- activeBackgroundColor = _ref2.activeBackgroundColor,
21545
21535
  disabled = _ref2.disabled,
21546
21536
  newTab = _ref2.newTab,
21547
21537
  dataQa = _ref2.dataQa,
21548
21538
  extraStyles = _ref2.extraStyles;
21539
+ var match = reactRouterDom.useMatch();
21540
+ console.log("🚀 ~ file: ButtonWithLink.js:32 ~ match:", match);
21549
21541
 
21550
21542
  if (disabled) {
21551
21543
  return safeChildren(children, /*#__PURE__*/React__default.createElement("span", null));
@@ -21559,8 +21551,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21559
21551
  dataQa: dataQa
21560
21552
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21561
21553
  to: url,
21562
- active: active,
21563
- activeBackgroundColor: activeBackgroundColor,
21554
+ match: match,
21564
21555
  tabIndex: "-1",
21565
21556
  dataQa: dataQa,
21566
21557
  extraStyles: extraStyles
@@ -21569,8 +21560,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21569
21560
 
21570
21561
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21571
21562
  url: url,
21572
- active: active,
21573
- activeBackgroundColor: activeBackgroundColor,
21574
21563
  disabled: disabled,
21575
21564
  newTab: newTab,
21576
21565
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -22385,22 +22374,22 @@ var process$1 = global_1.process;
22385
22374
  var Deno = global_1.Deno;
22386
22375
  var versions = process$1 && process$1.versions || Deno && Deno.version;
22387
22376
  var v8 = versions && versions.v8;
22388
- var match$1, version;
22377
+ var match, version;
22389
22378
 
22390
22379
  if (v8) {
22391
- match$1 = v8.split('.');
22380
+ match = v8.split('.');
22392
22381
  // in old Chrome, versions of V8 isn't V8 = Chrome / 10
22393
22382
  // but their correct versions are not interesting for us
22394
- version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
22383
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
22395
22384
  }
22396
22385
 
22397
22386
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
22398
22387
  // so check `userAgent` even if `.v8` exists, but 0
22399
22388
  if (!version && engineUserAgent) {
22400
- match$1 = engineUserAgent.match(/Edge\/(\d+)/);
22401
- if (!match$1 || match$1[1] >= 74) {
22402
- match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
22403
- if (match$1) version = +match$1[1];
22389
+ match = engineUserAgent.match(/Edge\/(\d+)/);
22390
+ if (!match || match[1] >= 74) {
22391
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
22392
+ if (match) version = +match[1];
22404
22393
  }
22405
22394
  }
22406
22395
 
@@ -47536,11 +47525,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47536
47525
  var arrowColor = WHITE;
47537
47526
  var numberColor = MATISSE_BLUE;
47538
47527
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47539
- var activeBackgroundColor$2 = WHITE;
47528
+ var activeBackgroundColor$1 = WHITE;
47540
47529
  var activeColor$9 = MATISSE_BLUE;
47541
47530
  var fallbackValues$L = {
47542
47531
  activeColor: activeColor$9,
47543
- activeBackgroundColor: activeBackgroundColor$2,
47532
+ activeBackgroundColor: activeBackgroundColor$1,
47544
47533
  arrowColor: arrowColor,
47545
47534
  hoverBackgroundColor: hoverBackgroundColor$2,
47546
47535
  numberColor: numberColor