@thecb/components 8.3.1-beta.5 → 8.3.1-beta.7

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,16 +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
- match: match,
19835
19830
  ref: ref
19836
19831
  }));
19837
19832
  })).withConfig({
19838
19833
  displayName: "InternalLinkstyled__StyledInternalLink",
19839
19834
  componentId: "sc-cuqxud-0"
19840
- })(["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:", ";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) {
19841
19836
  var color = _ref2.color,
19842
19837
  active = _ref2.active,
19843
19838
  activeColor = _ref2.activeColor;
@@ -19867,10 +19862,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19867
19862
  var activeColor = _ref10.activeColor;
19868
19863
  return activeColor;
19869
19864
  }, function (_ref11) {
19870
- var activeBackgroundColor = _ref11.activeBackgroundColor;
19871
- return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19872
- }, function (_ref12) {
19873
- var extrastyles = _ref12.extrastyles;
19865
+ var extrastyles = _ref11.extrastyles;
19874
19866
  return extrastyles;
19875
19867
  });
19876
19868
  /* eslint-enable no-unused-vars */
@@ -21521,15 +21513,11 @@ _curry2(function test(pattern, str) {
21521
21513
 
21522
21514
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21523
21515
 
21524
- var _excluded$m = ["url", "active", "activeBackgroundColor", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21516
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21525
21517
 
21526
21518
  var ButtonWithLink = function ButtonWithLink(_ref) {
21527
21519
  var _ref$url = _ref.url,
21528
21520
  url = _ref$url === void 0 ? "/" : _ref$url,
21529
- _ref$active = _ref.active,
21530
- active = _ref$active === void 0 ? false : _ref$active,
21531
- _ref$activeBackground = _ref.activeBackgroundColor,
21532
- activeBackgroundColor = _ref$activeBackground === void 0 ? undefined : _ref$activeBackground,
21533
21521
  _ref$disabled = _ref.disabled,
21534
21522
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21535
21523
  _ref$fileLink = _ref.fileLink,
@@ -21544,12 +21532,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21544
21532
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21545
21533
  var children = _ref2.children,
21546
21534
  url = _ref2.url,
21547
- active = _ref2.active,
21548
- activeBackgroundColor = _ref2.activeBackgroundColor,
21549
21535
  disabled = _ref2.disabled,
21550
21536
  newTab = _ref2.newTab,
21551
21537
  dataQa = _ref2.dataQa,
21552
21538
  extraStyles = _ref2.extraStyles;
21539
+ var match = reactRouterDom.useMatch(url);
21540
+ console.log("🚀 ~ file: ButtonWithLink.js:32 ~ match:", match);
21553
21541
 
21554
21542
  if (disabled) {
21555
21543
  return safeChildren(children, /*#__PURE__*/React__default.createElement("span", null));
@@ -21563,8 +21551,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21563
21551
  dataQa: dataQa
21564
21552
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21565
21553
  to: url,
21566
- active: active,
21567
- activeBackgroundColor: activeBackgroundColor,
21554
+ match: match,
21568
21555
  tabIndex: "-1",
21569
21556
  dataQa: dataQa,
21570
21557
  extraStyles: extraStyles
@@ -21573,8 +21560,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21573
21560
 
21574
21561
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21575
21562
  url: url,
21576
- active: active,
21577
- activeBackgroundColor: activeBackgroundColor,
21578
21563
  disabled: disabled,
21579
21564
  newTab: newTab,
21580
21565
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -47540,11 +47525,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47540
47525
  var arrowColor = WHITE;
47541
47526
  var numberColor = MATISSE_BLUE;
47542
47527
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47543
- var activeBackgroundColor$2 = WHITE;
47528
+ var activeBackgroundColor$1 = WHITE;
47544
47529
  var activeColor$9 = MATISSE_BLUE;
47545
47530
  var fallbackValues$L = {
47546
47531
  activeColor: activeColor$9,
47547
- activeBackgroundColor: activeBackgroundColor$2,
47532
+ activeBackgroundColor: activeBackgroundColor$1,
47548
47533
  arrowColor: arrowColor,
47549
47534
  hoverBackgroundColor: hoverBackgroundColor$2,
47550
47535
  numberColor: numberColor