@thecb/components 7.8.3-beta.2 → 7.8.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
@@ -6673,7 +6673,7 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
6673
6673
  return childGap;
6674
6674
  });
6675
6675
 
6676
- var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
6676
+ var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
6677
6677
  /*
6678
6678
  Cluster components suit any groups of elements that differ in
6679
6679
  length and are liable to wrap. Buttons that appear together at the
@@ -6697,6 +6697,8 @@ var Cluster = function Cluster(_ref) {
6697
6697
  flexGrow = _ref.flexGrow,
6698
6698
  extraStyles = _ref.extraStyles,
6699
6699
  children = _ref.children,
6700
+ _ref$innerWrapperAs = _ref.innerWrapperAs,
6701
+ innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
6700
6702
  rest = _objectWithoutProperties(_ref, _excluded$6);
6701
6703
 
6702
6704
  return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
@@ -6712,7 +6714,8 @@ var Cluster = function Cluster(_ref) {
6712
6714
  childGap: childGap,
6713
6715
  minHeight: minHeight,
6714
6716
  minWidth: minWidth,
6715
- $nowrap: nowrap
6717
+ $nowrap: nowrap,
6718
+ as: innerWrapperAs
6716
6719
  }, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
6717
6720
  };
6718
6721
 
@@ -46558,6 +46561,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
46558
46561
 
46559
46562
  var PrevNextButton = function PrevNextButton(_ref2) {
46560
46563
  var action = _ref2.action,
46564
+ ariaLabel = _ref2.ariaLabel,
46561
46565
  arrowColor = _ref2.arrowColor,
46562
46566
  borderRadius = _ref2.borderRadius,
46563
46567
  buttonHeight = _ref2.buttonHeight,
@@ -46567,12 +46571,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
46567
46571
  return /*#__PURE__*/React__default.createElement(Box, {
46568
46572
  padding: "0",
46569
46573
  minHeight: buttonHeight,
46570
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46574
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46575
+ as: "li"
46571
46576
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46572
46577
  action: action,
46573
46578
  contentOverride: true,
46574
46579
  dataQa: type,
46575
- extraStyles: "\n background-color: ".concat(numberColor, ";\n border-color: ").concat(numberColor, ";\n border-radius: ").concat(borderRadius, ";\n margin: 0;\n max-height: ").concat(buttonHeight, ";\n min-height: 100%;\n min-width: ").concat(buttonWidth, ";\n padding: 0;\n &:focus {\n outline: none\n }\n ")
46580
+ "aria-label": ariaLabel,
46581
+ extraStyles: "\n background-color: ".concat(numberColor, ";\n border-color: ").concat(numberColor, ";\n border-radius: ").concat(borderRadius, ";\n margin: 0;\n max-height: ").concat(buttonHeight, ";\n min-height: 100%;\n min-width: ").concat(buttonWidth, ";\n padding: 0;\n ")
46576
46582
  }, /*#__PURE__*/React__default.createElement(Box, {
46577
46583
  padding: "0",
46578
46584
  extraStyles: type === "prev" && "transform: scaleX(-1)"
@@ -46596,26 +46602,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
46596
46602
 
46597
46603
  if (page > space + 1) {
46598
46604
  pages.push({
46599
- isDelimiter: true
46605
+ isDelimiter: true,
46606
+ id: "first-delimiter"
46600
46607
  });
46601
46608
  }
46602
46609
 
46603
46610
  for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
46604
46611
  pages.push({
46605
46612
  index: j,
46606
- isButton: true
46613
+ isButton: true,
46614
+ id: "page-".concat(j)
46607
46615
  });
46608
46616
  }
46609
46617
 
46610
46618
  if (page < lastPageNumber - space) {
46611
46619
  pages.push({
46612
- isDelimiter: true
46620
+ isDelimiter: true,
46621
+ id: "last-delimiter"
46613
46622
  });
46614
46623
  }
46615
46624
 
46616
46625
  pages.push({
46617
46626
  index: lastPageNumber,
46618
- isButton: true
46627
+ isButton: true,
46628
+ id: "page-".concat(lastPageNumber)
46619
46629
  });
46620
46630
  var activePage = pages.find(function (p) {
46621
46631
  return p.index === page;
@@ -46650,18 +46660,26 @@ var Pagination = function Pagination(_ref3) {
46650
46660
  pageNext = _ref3.pageNext,
46651
46661
  pagePrevious = _ref3.pagePrevious,
46652
46662
  setCurrentPage = _ref3.setCurrentPage,
46663
+ ariaLabel = _ref3.ariaLabel,
46653
46664
  themeValues = _ref3.themeValues;
46654
46665
 
46655
46666
  var _useContext = React.useContext(styled.ThemeContext),
46656
46667
  isMobile = _useContext.isMobile;
46657
46668
 
46658
- var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n &:focus {\n outline: none\n }\n ");
46659
- var extraDisabledStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n }\n ");
46669
+ var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n ");
46670
+ var currentPageStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n border: ").concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n }\n ");
46660
46671
  return /*#__PURE__*/React__default.createElement(Cluster, {
46661
46672
  justify: "center",
46662
- childGap: childGap
46673
+ childGap: childGap,
46674
+ overflow: true,
46675
+ as: "nav",
46676
+ role: "navigation",
46677
+ innerWrapperAs: "ul",
46678
+ "aria-label": ariaLabel,
46679
+ extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
46663
46680
  }, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
46664
46681
  action: pagePrevious,
46682
+ ariaLabel: "Previous Page",
46665
46683
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46666
46684
  borderRadius: borderRadius,
46667
46685
  buttonHeight: buttonHeight,
@@ -46683,33 +46701,37 @@ var Pagination = function Pagination(_ref3) {
46683
46701
  }, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
46684
46702
  return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
46685
46703
  padding: "0",
46686
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46704
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46705
+ as: "li",
46706
+ key: item.id
46687
46707
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46688
46708
  variant: "ghost",
46689
- key: item.index,
46690
46709
  text: item.index,
46691
- disabled: item.active,
46692
- extraDisabledStyles: extraDisabledStyles,
46710
+ "aria-current": item.active ? "page" : undefined,
46711
+ "aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
46693
46712
  action: !item.active ? function () {
46694
46713
  return setCurrentPage({
46695
46714
  pageNumber: item.index
46696
46715
  });
46697
46716
  } : noop,
46698
46717
  textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
46699
- extraStyles: extraStyles,
46718
+ extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
46700
46719
  dataQa: index
46701
46720
  }, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
46702
- padding: "0 10px"
46721
+ padding: "0 10px",
46722
+ as: "li",
46723
+ key: item.id
46703
46724
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46704
46725
  justify: "flex-end"
46705
46726
  }, /*#__PURE__*/React__default.createElement(Text$1, {
46706
- key: index,
46707
46727
  variant: "pXL",
46708
46728
  weight: fontWeight,
46709
- color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
46710
- }, "...")));
46729
+ color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
46730
+ role: "presentation"
46731
+ }, "…")));
46711
46732
  }), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
46712
46733
  action: pageNext,
46734
+ ariaLabel: "Next Page",
46713
46735
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46714
46736
  borderRadius: borderRadius,
46715
46737
  buttonHeight: buttonHeight,
@@ -47129,101 +47151,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47129
47151
 
47130
47152
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
47131
47153
 
47132
- var backgroundColor$c = {
47133
- "default": "#ffffff",
47134
- footer: "#ffffff"
47135
- };
47136
- var linkColor$6 = {
47137
- "default": "#3176AA",
47138
- footer: "#ffffff"
47139
- };
47140
- var border$3 = {
47141
- "default": "#cdcdcd",
47142
- footer: "#cdcdcd"
47143
- };
47144
- var fontSize$b = {
47145
- "default": "1rem",
47146
- footer: "0.875rem"
47147
- };
47148
- var lineHeight$5 = {
47149
- "default": "1.5rem",
47150
- footer: "1.25rem"
47151
- };
47152
- var fontWeight$8 = {
47153
- "default": FONT_WEIGHT_REGULAR,
47154
- footer: FONT_WEIGHT_SEMIBOLD
47155
- };
47156
- var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
47157
- var modalLinkHoverFocus$2 = {
47158
- "default": standardInteractionStyles,
47159
- footer: standardInteractionStyles
47160
- };
47161
- var fallbackValues$M = {
47162
- backgroundColor: backgroundColor$c,
47163
- linkColor: linkColor$6,
47164
- border: border$3,
47165
- fontSize: fontSize$b,
47166
- lineHeight: lineHeight$5,
47167
- fontWeight: fontWeight$8,
47168
- modalLinkHoverFocus: modalLinkHoverFocus$2
47169
- };
47170
-
47171
- var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47172
- var link = _ref.link,
47173
- _ref$title = _ref.title,
47174
- title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
47175
- isOpen = _ref.isOpen,
47176
- toggleOpen = _ref.toggleOpen,
47177
- toggleAccepted = _ref.toggleAccepted,
47178
- acceptText = _ref.acceptText,
47179
- terms = _ref.terms,
47180
- variant = _ref.variant,
47181
- _ref$linkVariant = _ref.linkVariant,
47182
- linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
47183
- themeValues = _ref.themeValues;
47184
- return /*#__PURE__*/React__default.createElement(Modal$1, {
47185
- modalOpen: isOpen,
47186
- hideModal: function hideModal() {
47187
- return toggleOpen(false);
47188
- },
47189
- showModal: function showModal() {
47190
- return toggleOpen(true);
47191
- },
47192
- modalHeaderText: title,
47193
- modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
47194
- background: themeValues.backgroundColor,
47195
- border: "1px solid ".concat(themeValues.border),
47196
- borderRadius: "3px",
47197
- extraStyles: "overflow: scroll; max-height: 20rem;"
47198
- }, /*#__PURE__*/React__default.createElement(Text$1, {
47199
- variant: "p",
47200
- extraStyles: "& a { text-decoration: underline; }"
47201
- }, terms)),
47202
- defaultWrapper: false,
47203
- onlyCloseButton: !acceptText,
47204
- continueButtonText: acceptText,
47205
- continueAction: function continueAction() {
47206
- toggleAccepted(true);
47207
- toggleOpen(false);
47208
- }
47209
- }, /*#__PURE__*/React__default.createElement(Text$1, {
47210
- variant: linkVariant,
47211
- onClick: function onClick() {
47212
- return toggleOpen(true);
47213
- },
47214
- onKeyPress: function onKeyPress(e) {
47215
- return e.key === "Enter" && toggleOpen(true);
47216
- },
47217
- tabIndex: "0",
47218
- color: themeValues.linkColor,
47219
- weight: themeValues.fontWeight,
47220
- hoverStyles: themeValues.modalLinkHoverFocus,
47221
- extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47222
- }, link));
47223
- };
47224
-
47225
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47226
-
47227
47154
  var PaymentFormACH = function PaymentFormACH(_ref) {
47228
47155
  var _routingNumberErrors, _accountNumberErrors;
47229
47156
 
@@ -47242,10 +47169,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47242
47169
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
47243
47170
  showWalletCheckbox = _ref.showWalletCheckbox,
47244
47171
  saveToWallet = _ref.saveToWallet,
47245
- walletCheckboxMarked = _ref.walletCheckboxMarked,
47246
- termsContent = _ref.termsContent,
47247
- _ref$termsTitle = _ref.termsTitle,
47248
- termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47172
+ walletCheckboxMarked = _ref.walletCheckboxMarked;
47249
47173
 
47250
47174
  if (clearOnDismount) {
47251
47175
  React.useEffect(function () {
@@ -47265,14 +47189,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47265
47189
  showAccount = _useState4[0],
47266
47190
  toggleShowAccount = _useState4[1];
47267
47191
 
47268
- var _useState5 = React.useState(false),
47269
- _useState6 = _slicedToArray(_useState5, 2),
47270
- termsModalOpen = _useState6[0],
47271
- setTermsModalOpen = _useState6[1];
47272
-
47273
- var showTerms = !!termsContent;
47274
- var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47275
-
47276
47192
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47277
47193
 
47278
47194
  var routingNumberErrors = (_routingNumberErrors = {}, _defineProperty(_routingNumberErrors, required.error, "Routing number is required"), _defineProperty(_routingNumberErrors, hasLength.error, "Routing number must be 9 digits"), _defineProperty(_routingNumberErrors, isRoutingNumber.error, "Invalid routing number"), _routingNumberErrors);
@@ -47381,27 +47297,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47381
47297
  onChange: toggleCheckbox,
47382
47298
  checked: defaultMethod.value,
47383
47299
  hidden: hideDefaultPayment
47384
- }), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47385
- childGap: "4px"
47386
- }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47300
+ }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47387
47301
  name: "bank checkbox",
47388
- title: "Save checking account to wallet.",
47302
+ title: "Save checking account to wallet",
47389
47303
  checked: walletCheckboxMarked,
47390
47304
  onChange: saveToWallet
47391
- }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47392
- singleChild: true
47393
- }, /*#__PURE__*/React__default.createElement(Cluster, {
47394
- childGap: 0
47395
- }, /*#__PURE__*/React__default.createElement(Text$1, {
47396
- variant: showTermsLinkVariant
47397
- }, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47398
- link: termsTitle,
47399
- linkVariant: showTermsLinkVariant,
47400
- terms: termsContent,
47401
- title: termsTitle,
47402
- isOpen: termsModalOpen,
47403
- toggleOpen: setTermsModalOpen
47404
- }))))));
47305
+ })));
47405
47306
  };
47406
47307
 
47407
47308
  var formConfig$6 = {
@@ -47455,21 +47356,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47455
47356
  showWalletCheckbox = _ref.showWalletCheckbox,
47456
47357
  saveToWallet = _ref.saveToWallet,
47457
47358
  walletCheckboxMarked = _ref.walletCheckboxMarked,
47458
- deniedCards = _ref.deniedCards,
47459
- termsContent = _ref.termsContent,
47460
- _ref$termsTitle = _ref.termsTitle,
47461
- termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47359
+ deniedCards = _ref.deniedCards;
47462
47360
 
47463
47361
  var _useContext = React.useContext(styled.ThemeContext),
47464
47362
  isMobile = _useContext.isMobile;
47465
47363
 
47466
- var _useState = React.useState(false),
47467
- _useState2 = _slicedToArray(_useState, 2),
47468
- termsModalOpen = _useState2[0],
47469
- setTermsModalOpen = _useState2[1];
47470
-
47471
- var showTerms = !!termsContent;
47472
- var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47473
47364
  React.useEffect(function () {
47474
47365
  if (deniedCards) {
47475
47366
  deniedCards.map(function (card) {
@@ -47578,27 +47469,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47578
47469
  return e.key === "Enter" && handleSubmit(e);
47579
47470
  },
47580
47471
  autocomplete: "billing postal-code"
47581
- })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47582
- childGap: "4px"
47583
- }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47472
+ })), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47584
47473
  name: "credit card checkbox",
47585
- title: "Save credit card to wallet.",
47474
+ title: "Save credit card to wallet",
47586
47475
  checked: walletCheckboxMarked,
47587
47476
  onChange: saveToWallet
47588
- }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47589
- singleChild: true
47590
- }, /*#__PURE__*/React__default.createElement(Cluster, {
47591
- childGap: 0
47592
- }, /*#__PURE__*/React__default.createElement(Text$1, {
47593
- variant: showTermsLinkVariant
47594
- }, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47595
- link: termsTitle,
47596
- linkVariant: showTermsLinkVariant,
47597
- terms: termsContent,
47598
- title: termsTitle,
47599
- isOpen: termsModalOpen,
47600
- toggleOpen: setTermsModalOpen
47601
- }))))));
47477
+ })));
47602
47478
  };
47603
47479
 
47604
47480
  var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
@@ -47879,7 +47755,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
47879
47755
  var bodyBackgroundColor$1 = "#eeeeee";
47880
47756
  var borderColor$5 = "".concat(GREY_CHATEAU);
47881
47757
  var focusStyles = "outline: none;";
47882
- var fallbackValues$N = {
47758
+ var fallbackValues$M = {
47883
47759
  headingBackgroundColor: headingBackgroundColor$1,
47884
47760
  headingDisabledColor: headingDisabledColor,
47885
47761
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -48067,7 +47943,7 @@ var RadioSection = function RadioSection(_ref) {
48067
47943
  })));
48068
47944
  };
48069
47945
 
48070
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
47946
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
48071
47947
 
48072
47948
  var RegistrationForm = function RegistrationForm(_ref) {
48073
47949
  var _emailErrorMessages, _passwordErrorMessage;
@@ -48364,7 +48240,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48364
48240
  var activeTabBackground = "#FFFFFF";
48365
48241
  var activeTabAccent = "#15749D";
48366
48242
  var activeTabHover = "#B8D5E1";
48367
- var fallbackValues$O = {
48243
+ var fallbackValues$N = {
48368
48244
  activeTabBackground: activeTabBackground,
48369
48245
  activeTabAccent: activeTabAccent,
48370
48246
  activeTabHover: activeTabHover
@@ -48443,12 +48319,12 @@ var Tabs = function Tabs(_ref) {
48443
48319
  }))));
48444
48320
  };
48445
48321
 
48446
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
48322
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
48447
48323
 
48448
48324
  var activeTabBackground$1 = "#FFFFFF";
48449
48325
  var activeTabAccent$1 = "#15749D";
48450
48326
  var activeTabHover$1 = "#B8D5E1";
48451
- var fallbackValues$P = {
48327
+ var fallbackValues$O = {
48452
48328
  activeTabBackground: activeTabBackground$1,
48453
48329
  activeTabAccent: activeTabAccent$1,
48454
48330
  activeTabHover: activeTabHover$1
@@ -48504,7 +48380,100 @@ var TabSidebar = function TabSidebar(_ref) {
48504
48380
  })));
48505
48381
  };
48506
48382
 
48507
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
48383
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$O);
48384
+
48385
+ var backgroundColor$c = {
48386
+ "default": "#ffffff",
48387
+ footer: "#ffffff"
48388
+ };
48389
+ var linkColor$6 = {
48390
+ "default": "#3176AA",
48391
+ footer: "#ffffff"
48392
+ };
48393
+ var border$3 = {
48394
+ "default": "#cdcdcd",
48395
+ footer: "#cdcdcd"
48396
+ };
48397
+ var fontSize$b = {
48398
+ "default": "1rem",
48399
+ footer: "0.875rem"
48400
+ };
48401
+ var lineHeight$5 = {
48402
+ "default": "1.5rem",
48403
+ footer: "1.25rem"
48404
+ };
48405
+ var fontWeight$8 = {
48406
+ "default": FONT_WEIGHT_REGULAR,
48407
+ footer: FONT_WEIGHT_SEMIBOLD
48408
+ };
48409
+ var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
48410
+ var modalLinkHoverFocus$2 = {
48411
+ "default": standardInteractionStyles,
48412
+ footer: standardInteractionStyles
48413
+ };
48414
+ var fallbackValues$P = {
48415
+ backgroundColor: backgroundColor$c,
48416
+ linkColor: linkColor$6,
48417
+ border: border$3,
48418
+ fontSize: fontSize$b,
48419
+ lineHeight: lineHeight$5,
48420
+ fontWeight: fontWeight$8,
48421
+ modalLinkHoverFocus: modalLinkHoverFocus$2
48422
+ };
48423
+
48424
+ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48425
+ var link = _ref.link,
48426
+ _ref$title = _ref.title,
48427
+ title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
48428
+ isOpen = _ref.isOpen,
48429
+ toggleOpen = _ref.toggleOpen,
48430
+ toggleAccepted = _ref.toggleAccepted,
48431
+ acceptText = _ref.acceptText,
48432
+ terms = _ref.terms,
48433
+ variant = _ref.variant,
48434
+ themeValues = _ref.themeValues;
48435
+ return /*#__PURE__*/React__default.createElement(Modal$1, {
48436
+ modalOpen: isOpen,
48437
+ hideModal: function hideModal() {
48438
+ return toggleOpen(false);
48439
+ },
48440
+ showModal: function showModal() {
48441
+ return toggleOpen(true);
48442
+ },
48443
+ modalHeaderText: title,
48444
+ modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
48445
+ background: themeValues.backgroundColor,
48446
+ border: "1px solid ".concat(themeValues.border),
48447
+ borderRadius: "3px",
48448
+ extraStyles: "overflow: scroll; max-height: 20rem;"
48449
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
48450
+ variant: "p",
48451
+ extraStyles: "& a { text-decoration: underline; }"
48452
+ }, terms)),
48453
+ defaultWrapper: false,
48454
+ onlyCloseButton: !acceptText,
48455
+ continueButtonText: acceptText,
48456
+ continueAction: function continueAction() {
48457
+ toggleAccepted(true);
48458
+ toggleOpen(false);
48459
+ }
48460
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
48461
+ variant: variant === "default" ? "pS" : "pXS",
48462
+ onClick: function onClick() {
48463
+ return toggleOpen(true);
48464
+ },
48465
+ onKeyPress: function onKeyPress(e) {
48466
+ return e.key === "Enter" && toggleOpen(true);
48467
+ },
48468
+ tabIndex: "0",
48469
+ color: themeValues.linkColor,
48470
+ weight: themeValues.fontWeight,
48471
+ hoverStyles: themeValues.modalLinkHoverFocus,
48472
+ extraStyles: "display: inline-block; width: fit-content;"
48473
+ }, link));
48474
+ };
48475
+
48476
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
48508
48477
 
48509
48478
  var TermsAndConditions = function TermsAndConditions(_ref) {
48510
48479
  var onCheck = _ref.onCheck,
@@ -48512,8 +48481,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48512
48481
  html = _ref.html,
48513
48482
  terms = _ref.terms,
48514
48483
  _ref$error = _ref.error,
48515
- error = _ref$error === void 0 ? false : _ref$error,
48516
- linkVariant = _ref.linkVariant;
48484
+ error = _ref$error === void 0 ? false : _ref$error;
48517
48485
 
48518
48486
  var _useState = React.useState(false),
48519
48487
  _useState2 = _slicedToArray(_useState, 2),
@@ -48534,8 +48502,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48534
48502
  link: "Learn More",
48535
48503
  terms: terms,
48536
48504
  isOpen: showTerms,
48537
- toggleOpen: toggleShowTerms,
48538
- linkVariant: linkVariant
48505
+ toggleOpen: toggleShowTerms
48539
48506
  })))));
48540
48507
  };
48541
48508