@thecb/components 7.8.3-beta.1 → 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,13 +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
-
47275
47192
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47276
47193
 
47277
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);
@@ -47380,24 +47297,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47380
47297
  onChange: toggleCheckbox,
47381
47298
  checked: defaultMethod.value,
47382
47299
  hidden: hideDefaultPayment
47383
- }), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47384
- childGap: "4px"
47385
- }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47300
+ }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47386
47301
  name: "bank checkbox",
47387
- title: "Save checking account to wallet.",
47302
+ title: "Save checking account to wallet",
47388
47303
  checked: walletCheckboxMarked,
47389
47304
  onChange: saveToWallet
47390
- }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47391
- singleChild: true
47392
- }, /*#__PURE__*/React__default.createElement(Cluster, {
47393
- childGap: 0
47394
- }, /*#__PURE__*/React__default.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47395
- link: termsTitle,
47396
- terms: termsContent,
47397
- title: termsTitle,
47398
- isOpen: termsModalOpen,
47399
- toggleOpen: setTermsModalOpen
47400
- }))))));
47305
+ })));
47401
47306
  };
47402
47307
 
47403
47308
  var formConfig$6 = {
@@ -47451,20 +47356,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47451
47356
  showWalletCheckbox = _ref.showWalletCheckbox,
47452
47357
  saveToWallet = _ref.saveToWallet,
47453
47358
  walletCheckboxMarked = _ref.walletCheckboxMarked,
47454
- deniedCards = _ref.deniedCards,
47455
- termsContent = _ref.termsContent,
47456
- _ref$termsTitle = _ref.termsTitle,
47457
- termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47359
+ deniedCards = _ref.deniedCards;
47458
47360
 
47459
47361
  var _useContext = React.useContext(styled.ThemeContext),
47460
47362
  isMobile = _useContext.isMobile;
47461
47363
 
47462
- var _useState = React.useState(false),
47463
- _useState2 = _slicedToArray(_useState, 2),
47464
- termsModalOpen = _useState2[0],
47465
- setTermsModalOpen = _useState2[1];
47466
-
47467
- var showTerms = !!termsContent;
47468
47364
  React.useEffect(function () {
47469
47365
  if (deniedCards) {
47470
47366
  deniedCards.map(function (card) {
@@ -47573,24 +47469,12 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47573
47469
  return e.key === "Enter" && handleSubmit(e);
47574
47470
  },
47575
47471
  autocomplete: "billing postal-code"
47576
- })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47577
- childGap: "4px"
47578
- }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47472
+ })), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47579
47473
  name: "credit card checkbox",
47580
- title: "Save credit card to wallet.",
47474
+ title: "Save credit card to wallet",
47581
47475
  checked: walletCheckboxMarked,
47582
47476
  onChange: saveToWallet
47583
- }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47584
- singleChild: true
47585
- }, /*#__PURE__*/React__default.createElement(Cluster, {
47586
- childGap: 0
47587
- }, /*#__PURE__*/React__default.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47588
- link: termsTitle,
47589
- terms: termsContent,
47590
- title: termsTitle,
47591
- isOpen: termsModalOpen,
47592
- toggleOpen: setTermsModalOpen
47593
- }))))));
47477
+ })));
47594
47478
  };
47595
47479
 
47596
47480
  var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
@@ -47871,7 +47755,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
47871
47755
  var bodyBackgroundColor$1 = "#eeeeee";
47872
47756
  var borderColor$5 = "".concat(GREY_CHATEAU);
47873
47757
  var focusStyles = "outline: none;";
47874
- var fallbackValues$N = {
47758
+ var fallbackValues$M = {
47875
47759
  headingBackgroundColor: headingBackgroundColor$1,
47876
47760
  headingDisabledColor: headingDisabledColor,
47877
47761
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -48059,7 +47943,7 @@ var RadioSection = function RadioSection(_ref) {
48059
47943
  })));
48060
47944
  };
48061
47945
 
48062
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
47946
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
48063
47947
 
48064
47948
  var RegistrationForm = function RegistrationForm(_ref) {
48065
47949
  var _emailErrorMessages, _passwordErrorMessage;
@@ -48356,7 +48240,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48356
48240
  var activeTabBackground = "#FFFFFF";
48357
48241
  var activeTabAccent = "#15749D";
48358
48242
  var activeTabHover = "#B8D5E1";
48359
- var fallbackValues$O = {
48243
+ var fallbackValues$N = {
48360
48244
  activeTabBackground: activeTabBackground,
48361
48245
  activeTabAccent: activeTabAccent,
48362
48246
  activeTabHover: activeTabHover
@@ -48435,12 +48319,12 @@ var Tabs = function Tabs(_ref) {
48435
48319
  }))));
48436
48320
  };
48437
48321
 
48438
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
48322
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
48439
48323
 
48440
48324
  var activeTabBackground$1 = "#FFFFFF";
48441
48325
  var activeTabAccent$1 = "#15749D";
48442
48326
  var activeTabHover$1 = "#B8D5E1";
48443
- var fallbackValues$P = {
48327
+ var fallbackValues$O = {
48444
48328
  activeTabBackground: activeTabBackground$1,
48445
48329
  activeTabAccent: activeTabAccent$1,
48446
48330
  activeTabHover: activeTabHover$1
@@ -48496,7 +48380,100 @@ var TabSidebar = function TabSidebar(_ref) {
48496
48380
  })));
48497
48381
  };
48498
48382
 
48499
- 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");
48500
48477
 
48501
48478
  var TermsAndConditions = function TermsAndConditions(_ref) {
48502
48479
  var onCheck = _ref.onCheck,
@@ -48504,8 +48481,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48504
48481
  html = _ref.html,
48505
48482
  terms = _ref.terms,
48506
48483
  _ref$error = _ref.error,
48507
- error = _ref$error === void 0 ? false : _ref$error,
48508
- linkVariant = _ref.linkVariant;
48484
+ error = _ref$error === void 0 ? false : _ref$error;
48509
48485
 
48510
48486
  var _useState = React.useState(false),
48511
48487
  _useState2 = _slicedToArray(_useState, 2),
@@ -48526,8 +48502,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48526
48502
  link: "Learn More",
48527
48503
  terms: terms,
48528
48504
  isOpen: showTerms,
48529
- toggleOpen: toggleShowTerms,
48530
- linkVariant: linkVariant
48505
+ toggleOpen: toggleShowTerms
48531
48506
  })))));
48532
48507
  };
48533
48508