@thecb/components 8.3.1-beta.0 → 8.3.1-beta.1

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
19723
  var hoverColor$2 = "#116285";
19716
19724
  var activeColor$3 = "#0E506D";
19725
+ var activeBackgroundColor$2 = INFO_BLUE;
19717
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;
19874
+ }, function (_ref11) {
19875
+ var extrastyles = _ref11.extrastyles;
19863
19876
  return extrastyles;
19864
19877
  });
19865
19878
  /* eslint-enable no-unused-vars */
@@ -21550,6 +21563,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21550
21563
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
21551
21564
  to: url,
21552
21565
  active: active,
21566
+ activeBackgroundColor: activeBackgroundColor,
21553
21567
  tabIndex: "-1",
21554
21568
  dataQa: dataQa,
21555
21569
  extraStyles: extraStyles
@@ -21559,6 +21573,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21559
21573
  return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
21560
21574
  url: url,
21561
21575
  active: active,
21576
+ activeBackgroundColor: activeBackgroundColor,
21562
21577
  disabled: disabled,
21563
21578
  newTab: newTab,
21564
21579
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -25372,7 +25387,7 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
25372
25387
 
25373
25388
 
25374
25389
 
25375
- var index$4 = /*#__PURE__*/Object.freeze({
25390
+ var index$5 = /*#__PURE__*/Object.freeze({
25376
25391
  __proto__: null,
25377
25392
  formats: formats,
25378
25393
  general: general,
@@ -38196,14 +38211,6 @@ var NavTabs = function NavTabs(_ref) {
38196
38211
  }, tabs)));
38197
38212
  };
38198
38213
 
38199
-
38200
-
38201
- var index$5 = /*#__PURE__*/Object.freeze({
38202
- __proto__: null,
38203
- colors: colors,
38204
- fontWeights: style_constants
38205
- });
38206
-
38207
38214
  var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
38208
38215
  var LoadingPill = styled__default.div.withConfig({
38209
38216
  displayName: "LoadingPillstyled__LoadingPill",
@@ -47524,11 +47531,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47524
47531
  var arrowColor = WHITE;
47525
47532
  var numberColor = MATISSE_BLUE;
47526
47533
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47527
- var activeBackgroundColor$1 = WHITE;
47534
+ var activeBackgroundColor$3 = WHITE;
47528
47535
  var activeColor$9 = MATISSE_BLUE;
47529
47536
  var fallbackValues$L = {
47530
47537
  activeColor: activeColor$9,
47531
- activeBackgroundColor: activeBackgroundColor$1,
47538
+ activeBackgroundColor: activeBackgroundColor$3,
47532
47539
  arrowColor: arrowColor,
47533
47540
  hoverBackgroundColor: hoverBackgroundColor$2,
47534
47541
  numberColor: numberColor
@@ -50348,8 +50355,8 @@ exports.WorkflowTile = WorkflowTile;
50348
50355
  exports.XCircleIconMedium = XCircleIconMedium;
50349
50356
  exports.XCircleIconSmall = XCircleIconSmall;
50350
50357
  exports.cardRegistry = cardRegistry;
50351
- exports.constants = index$5;
50358
+ exports.constants = index$4;
50352
50359
  exports.createPartialAmountFormState = createPartialAmountFormState;
50353
- exports.util = index$4;
50360
+ exports.util = index$5;
50354
50361
  exports.withWindowSize = withWindowSize;
50355
50362
  //# sourceMappingURL=index.cjs.js.map