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

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
@@ -12733,7 +12733,7 @@ var hoverColor = {
12733
12733
  whiteSecondary: WHITE,
12734
12734
  whitePrimary: WHITE
12735
12735
  };
12736
- var activeBackgroundColor = {
12736
+ var activeBackgroundColor$1 = {
12737
12737
  primary: PEACOCK_BLUE,
12738
12738
  secondary: "#B8D5E1",
12739
12739
  back: TRANSPARENT,
@@ -12787,7 +12787,7 @@ var fallbackValues$1 = {
12787
12787
  hoverBackgroundColor: hoverBackgroundColor,
12788
12788
  hoverBorderColor: hoverBorderColor,
12789
12789
  hoverColor: hoverColor,
12790
- activeBackgroundColor: activeBackgroundColor,
12790
+ activeBackgroundColor: activeBackgroundColor$1,
12791
12791
  activeBorderColor: activeBorderColor,
12792
12792
  activeColor: activeColor
12793
12793
  };
@@ -19708,17 +19708,27 @@ var fallbackValues$9 = {
19708
19708
  hover: hover
19709
19709
  };
19710
19710
 
19711
+
19712
+
19713
+ var index$4 = /*#__PURE__*/Object.freeze({
19714
+ __proto__: null,
19715
+ colors: colors,
19716
+ fontWeights: style_constants
19717
+ });
19718
+
19711
19719
  var fontFamily$2 = {
19712
19720
  primary: "Public Sans",
19713
19721
  secondary: "Open Sans"
19714
19722
  };
19715
- var hoverColor$2 = SAPPHIRE_BLUE;
19716
- var activeColor$3 = PEACOCK_BLUE;
19717
- var externalLinkColor = MATISSE_BLUE;
19723
+ var hoverColor$2 = "#116285";
19724
+ var activeColor$3 = "#0E506D";
19725
+ var activeBackgroundColor$2 = INFO_BLUE;
19726
+ var externalLinkColor = "#15749D";
19718
19727
  var fallbackValues$a = {
19719
19728
  fontFamily: fontFamily$2,
19720
19729
  hoverColor: hoverColor$2,
19721
19730
  activeColor: activeColor$3,
19731
+ activeBackgroundColor: activeBackgroundColor$2,
19722
19732
  externalLinkColor: externalLinkColor
19723
19733
  };
19724
19734
 
@@ -19832,7 +19842,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19832
19842
  })).withConfig({
19833
19843
  displayName: "InternalLinkstyled__StyledInternalLink",
19834
19844
  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) {
19845
+ })(["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
19846
  var color = _ref2.color,
19837
19847
  active = _ref2.active,
19838
19848
  activeColor = _ref2.activeColor;
@@ -19859,7 +19869,10 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
19859
19869
  var activeColor = _ref9.activeColor;
19860
19870
  return activeColor;
19861
19871
  }, function (_ref10) {
19862
- var extrastyles = _ref10.extrastyles;
19872
+ var activeBackgroundColor = _ref10.activeBackgroundColor;
19873
+ return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19874
+ }, function (_ref11) {
19875
+ var extrastyles = _ref11.extrastyles;
19863
19876
  return extrastyles;
19864
19877
  });
19865
19878
  /* eslint-enable no-unused-vars */
@@ -21510,11 +21523,13 @@ _curry2(function test(pattern, str) {
21510
21523
 
21511
21524
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21512
21525
 
21513
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21526
+ var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21514
21527
 
21515
21528
  var ButtonWithLink = function ButtonWithLink(_ref) {
21516
21529
  var _ref$url = _ref.url,
21517
21530
  url = _ref$url === void 0 ? "/" : _ref$url,
21531
+ _ref$active = _ref.active,
21532
+ active = _ref$active === void 0 ? false : _ref$active,
21518
21533
  _ref$disabled = _ref.disabled,
21519
21534
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21520
21535
  _ref$fileLink = _ref.fileLink,
@@ -21529,6 +21544,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21529
21544
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21530
21545
  var children = _ref2.children,
21531
21546
  url = _ref2.url,
21547
+ active = _ref2.active,
21532
21548
  disabled = _ref2.disabled,
21533
21549
  newTab = _ref2.newTab,
21534
21550
  dataQa = _ref2.dataQa,
@@ -21546,6 +21562,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21546
21562
  dataQa: dataQa
21547
21563
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21548
21564
  to: url,
21565
+ active: active,
21566
+ activeBackgroundColor: activeBackgroundColor,
21549
21567
  tabIndex: "-1",
21550
21568
  dataQa: dataQa,
21551
21569
  extraStyles: extraStyles
@@ -21554,6 +21572,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21554
21572
 
21555
21573
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21556
21574
  url: url,
21575
+ active: active,
21576
+ activeBackgroundColor: activeBackgroundColor,
21557
21577
  disabled: disabled,
21558
21578
  newTab: newTab,
21559
21579
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -25367,7 +25387,7 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
25367
25387
 
25368
25388
 
25369
25389
 
25370
- var index$4 = /*#__PURE__*/Object.freeze({
25390
+ var index$5 = /*#__PURE__*/Object.freeze({
25371
25391
  __proto__: null,
25372
25392
  formats: formats,
25373
25393
  general: general,
@@ -38191,14 +38211,6 @@ var NavTabs = function NavTabs(_ref) {
38191
38211
  }, tabs)));
38192
38212
  };
38193
38213
 
38194
-
38195
-
38196
- var index$5 = /*#__PURE__*/Object.freeze({
38197
- __proto__: null,
38198
- colors: colors,
38199
- fontWeights: style_constants
38200
- });
38201
-
38202
38214
  var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
38203
38215
  var LoadingPill = styled__default.div.withConfig({
38204
38216
  displayName: "LoadingPillstyled__LoadingPill",
@@ -47519,11 +47531,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47519
47531
  var arrowColor = WHITE;
47520
47532
  var numberColor = MATISSE_BLUE;
47521
47533
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47522
- var activeBackgroundColor$1 = WHITE;
47534
+ var activeBackgroundColor$3 = WHITE;
47523
47535
  var activeColor$9 = MATISSE_BLUE;
47524
47536
  var fallbackValues$L = {
47525
47537
  activeColor: activeColor$9,
47526
- activeBackgroundColor: activeBackgroundColor$1,
47538
+ activeBackgroundColor: activeBackgroundColor$3,
47527
47539
  arrowColor: arrowColor,
47528
47540
  hoverBackgroundColor: hoverBackgroundColor$2,
47529
47541
  numberColor: numberColor
@@ -50343,8 +50355,8 @@ exports.WorkflowTile = WorkflowTile;
50343
50355
  exports.XCircleIconMedium = XCircleIconMedium;
50344
50356
  exports.XCircleIconSmall = XCircleIconSmall;
50345
50357
  exports.cardRegistry = cardRegistry;
50346
- exports.constants = index$5;
50358
+ exports.constants = index$4;
50347
50359
  exports.createPartialAmountFormState = createPartialAmountFormState;
50348
- exports.util = index$4;
50360
+ exports.util = index$5;
50349
50361
  exports.withWindowSize = withWindowSize;
50350
50362
  //# sourceMappingURL=index.cjs.js.map