@thecb/components 7.10.0-beta.0 → 7.10.0-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.
Files changed (28) hide show
  1. package/dist/index.cjs.js +350 -257
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.esm.js +350 -258
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +101 -96
  8. package/src/components/atoms/icons/PencilIcon.js +20 -0
  9. package/src/components/atoms/icons/icons.stories.js +2 -0
  10. package/src/components/atoms/icons/index.js +2 -0
  11. package/src/components/atoms/layouts/Box.styled.js +2 -2
  12. package/src/components/atoms/layouts/Cluster.d.ts +1 -0
  13. package/src/components/atoms/layouts/Cluster.js +2 -0
  14. package/src/components/atoms/line-item/LineItem.js +15 -1
  15. package/src/components/atoms/line-item/LineItem.stories.js +9 -0
  16. package/src/components/molecules/nav-menu/NavMenuMobile.js +3 -1
  17. package/src/components/molecules/pagination/Pagination.js +44 -20
  18. package/src/components/molecules/pagination/index.d.ts +1 -0
  19. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +35 -8
  20. package/src/components/molecules/payment-form-card/PaymentFormCard.js +37 -10
  21. package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +3 -1
  22. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +3 -2
  23. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +10 -0
  24. package/src/components/molecules/workflow-tile/WorkflowTile.js +14 -35
  25. package/src/constants/colors.js +6 -0
  26. package/src/.DS_Store +0 -0
  27. package/src/components/atoms/.DS_Store +0 -0
  28. /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/dist/index.esm.js CHANGED
@@ -5007,7 +5007,9 @@ var INFO_BLUE = "#E4F4FD";
5007
5007
  var HOVER_LIGHT_BLUE = "#EFFAFF";
5008
5008
  var MATISSE_BLUE = "#15749D";
5009
5009
  var ROYAL_BLUE = "#3181E3";
5010
- var ASTRAL_BLUE = "#3176AA"; // GREEN
5010
+ var ASTRAL_BLUE = "#3176AA";
5011
+ var SAPPHIRE_BLUE = "#116285";
5012
+ var PEACOCK_BLUE = "#0E506D"; // GREEN
5011
5013
 
5012
5014
  var FOREST_GREEN = "#19b03F";
5013
5015
  var MEADOW_GREEN = "#16C98D";
@@ -5030,6 +5032,7 @@ var RED = "#FF0000";
5030
5032
  var CRIMSON_RED = "#ED1C24";
5031
5033
  var THUNDERBIRD_RED = "#C3191F";
5032
5034
  var RAZZMATAZZ_RED = "#D11053";
5035
+ var RASPBERRY = "#ED125F";
5033
5036
  var FANTASY_RED = "#FCF4F4";
5034
5037
  var COSMOS_RED = "#FFD0D3";
5035
5038
  var BLUSH_RED = "#FFF0F5"; // Second level color constants
@@ -5114,6 +5117,8 @@ var colors = /*#__PURE__*/Object.freeze({
5114
5117
  MATISSE_BLUE: MATISSE_BLUE,
5115
5118
  ROYAL_BLUE: ROYAL_BLUE,
5116
5119
  ASTRAL_BLUE: ASTRAL_BLUE,
5120
+ SAPPHIRE_BLUE: SAPPHIRE_BLUE,
5121
+ PEACOCK_BLUE: PEACOCK_BLUE,
5117
5122
  FOREST_GREEN: FOREST_GREEN,
5118
5123
  MEADOW_GREEN: MEADOW_GREEN,
5119
5124
  POLAR_GREEN: POLAR_GREEN,
@@ -5135,6 +5140,7 @@ var colors = /*#__PURE__*/Object.freeze({
5135
5140
  FANTASY_RED: FANTASY_RED,
5136
5141
  COSMOS_RED: COSMOS_RED,
5137
5142
  BLUSH_RED: BLUSH_RED,
5143
+ RASPBERRY: RASPBERRY,
5138
5144
  ALERT_COLORS: ALERT_COLORS,
5139
5145
  ERROR_COLOR: ERROR_COLOR
5140
5146
  });
@@ -6458,8 +6464,9 @@ var BoxWrapper = styled(function (_ref) {
6458
6464
  return textAlign;
6459
6465
  }, function (_ref14) {
6460
6466
  var hoverStyles = _ref14.hoverStyles,
6461
- as = _ref14.as;
6462
- return css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6467
+ as = _ref14.as,
6468
+ disabled = _ref14.disabled;
6469
+ return css(["", " ", ""], hoverStyles, as === "button" && !disabled ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6463
6470
  }, function (_ref15) {
6464
6471
  var as = _ref15.as;
6465
6472
  return css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
@@ -6659,7 +6666,7 @@ var ClusterInnerWrapper = styled.div.withConfig({
6659
6666
  return childGap;
6660
6667
  });
6661
6668
 
6662
- var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
6669
+ var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
6663
6670
  /*
6664
6671
  Cluster components suit any groups of elements that differ in
6665
6672
  length and are liable to wrap. Buttons that appear together at the
@@ -6683,6 +6690,8 @@ var Cluster = function Cluster(_ref) {
6683
6690
  flexGrow = _ref.flexGrow,
6684
6691
  extraStyles = _ref.extraStyles,
6685
6692
  children = _ref.children,
6693
+ _ref$innerWrapperAs = _ref.innerWrapperAs,
6694
+ innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
6686
6695
  rest = _objectWithoutProperties(_ref, _excluded$6);
6687
6696
 
6688
6697
  return /*#__PURE__*/React.createElement(ClusterWrapper, _extends({
@@ -6698,7 +6707,8 @@ var Cluster = function Cluster(_ref) {
6698
6707
  childGap: childGap,
6699
6708
  minHeight: minHeight,
6700
6709
  minWidth: minWidth,
6701
- $nowrap: nowrap
6710
+ $nowrap: nowrap,
6711
+ as: innerWrapperAs
6702
6712
  }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6703
6713
  };
6704
6714
 
@@ -12535,10 +12545,6 @@ var Reel = function Reel(_ref) {
12535
12545
  }), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
12536
12546
  };
12537
12547
 
12538
- /*
12539
- For now I'm using string values, eventually shared components library will have its own constants file
12540
- for colors/values that should be used here instead
12541
- */
12542
12548
  var padding = {
12543
12549
  primary: "0.75rem 1.5rem",
12544
12550
  secondary: "0.75rem 1.5rem",
@@ -12554,18 +12560,18 @@ var padding = {
12554
12560
  whitePrimary: "1.125rem 0.75rem"
12555
12561
  };
12556
12562
  var color$1 = {
12557
- primary: "#FFFFFF",
12558
- secondary: "#15749D",
12559
- back: "#15749D",
12560
- smallPrimary: "#FFFFFF",
12561
- smallSecondary: "#15749D",
12562
- smallGhost: "#15749D",
12563
- ghost: "#15749D",
12564
- tertiary: "#15749D",
12565
- danger: "#FFFFFF",
12566
- dangerSecondary: "#D11053",
12567
- whiteSecondary: "#FFFFFF",
12568
- whitePrimary: "#FFFFFF"
12563
+ primary: WHITE,
12564
+ secondary: MATISSE_BLUE,
12565
+ back: MATISSE_BLUE,
12566
+ smallPrimary: WHITE,
12567
+ smallSecondary: MATISSE_BLUE,
12568
+ smallGhost: MATISSE_BLUE,
12569
+ ghost: MATISSE_BLUE,
12570
+ tertiary: MATISSE_BLUE,
12571
+ danger: WHITE,
12572
+ dangerSecondary: ERROR_COLOR,
12573
+ whiteSecondary: WHITE,
12574
+ whitePrimary: WHITE
12569
12575
  };
12570
12576
  var fontSizeVariant = {
12571
12577
  primary: "pS",
@@ -12624,116 +12630,116 @@ var minWidth = {
12624
12630
  whitePrimary: "130px"
12625
12631
  };
12626
12632
  var backgroundColor = {
12627
- primary: "#15749D",
12628
- secondary: "transparent",
12629
- back: "transparent",
12630
- smallPrimary: "#15749D",
12631
- smallSecondary: "transparent",
12632
- smallGhost: "transparent",
12633
- ghost: "transparent",
12634
- tertiary: "transparent",
12635
- danger: "#ED125F",
12636
- dangerSecondary: "transparent",
12637
- whiteSecondary: "transparent",
12638
- whitePrimary: "transparent"
12633
+ primary: MATISSE_BLUE,
12634
+ secondary: TRANSPARENT,
12635
+ back: TRANSPARENT,
12636
+ smallPrimary: MATISSE_BLUE,
12637
+ smallSecondary: TRANSPARENT,
12638
+ smallGhost: TRANSPARENT,
12639
+ ghost: TRANSPARENT,
12640
+ tertiary: TRANSPARENT,
12641
+ danger: RASPBERRY,
12642
+ dangerSecondary: TRANSPARENT,
12643
+ whiteSecondary: TRANSPARENT,
12644
+ whitePrimary: TRANSPARENT
12639
12645
  };
12640
12646
  var border = {
12641
- primary: "2px solid #15749D",
12642
- secondary: "2px solid #15749D",
12643
- back: "2px solid #15749D",
12644
- smallPrimary: "2px solid #15749D",
12645
- smallSecondary: "2px solid #15749D",
12647
+ primary: "2px solid " + MATISSE_BLUE,
12648
+ secondary: "2px solid " + MATISSE_BLUE,
12649
+ back: "2px solid " + MATISSE_BLUE,
12650
+ smallPrimary: "2px solid " + MATISSE_BLUE,
12651
+ smallSecondary: "2px solid " + MATISSE_BLUE,
12646
12652
  smallGhost: "none",
12647
12653
  ghost: "none",
12648
12654
  tertiary: "none",
12649
- danger: "2px solid #ED125F",
12650
- dangerSecondary: "2px solid #D11053",
12651
- whiteSecondary: "2px solid white",
12652
- whitePrimary: "2px solid transparent"
12655
+ danger: "2px solid " + RASPBERRY,
12656
+ dangerSecondary: "2px solid " + ERROR_COLOR,
12657
+ whiteSecondary: "2px solid " + WHITE,
12658
+ whitePrimary: "2px solid " + TRANSPARENT
12653
12659
  };
12654
12660
  var hoverBackgroundColor = {
12655
- primary: "#116285",
12661
+ primary: SAPPHIRE_BLUE,
12656
12662
  secondary: "#DBEAF0",
12657
- back: "transparent",
12658
- smallPrimary: "#116285",
12663
+ back: TRANSPARENT,
12664
+ smallPrimary: SAPPHIRE_BLUE,
12659
12665
  smallSecondary: "#DBEAF0",
12660
- smallGhost: "transparent",
12661
- ghost: "transparent",
12662
- tertiary: "transparent",
12666
+ smallGhost: TRANSPARENT,
12667
+ ghost: TRANSPARENT,
12668
+ tertiary: TRANSPARENT,
12663
12669
  danger: "#BA002C",
12664
- dangerSecondary: "transparent",
12665
- whiteSecondary: "transparent",
12666
- whitePrimary: "transparent"
12670
+ dangerSecondary: "#FAE7EE",
12671
+ whiteSecondary: TRANSPARENT,
12672
+ whitePrimary: TRANSPARENT
12667
12673
  };
12668
12674
  var hoverBorderColor = {
12669
- primary: "#116285",
12670
- secondary: "#15749D",
12675
+ primary: SAPPHIRE_BLUE,
12676
+ secondary: MATISSE_BLUE,
12671
12677
  back: "#DCEAF1",
12672
- smallPrimary: "#116285",
12673
- smallSecondary: "#15749D",
12674
- smallGhost: "transparent",
12675
- ghost: "transparent",
12676
- tertiary: "transparent",
12678
+ smallPrimary: SAPPHIRE_BLUE,
12679
+ smallSecondary: MATISSE_BLUE,
12680
+ smallGhost: TRANSPARENT,
12681
+ ghost: TRANSPARENT,
12682
+ tertiary: TRANSPARENT,
12677
12683
  danger: "#BA002C",
12678
12684
  dangerSecondary: "#B10541",
12679
- whiteSecondary: "2px solid transparent",
12680
- whitePrimary: "2px solid transparent"
12685
+ whiteSecondary: "2px solid " + TRANSPARENT,
12686
+ whitePrimary: "2px solid " + TRANSPARENT
12681
12687
  };
12682
12688
  var hoverColor = {
12683
- primary: "#FFFFFF",
12684
- secondary: "#116285",
12685
- back: "#116285",
12686
- smallPrimary: "#FFFFFF",
12687
- smallSecondary: "#116285",
12688
- smallGhost: "#116285",
12689
- ghost: "#116285",
12690
- tertiary: "#116285",
12691
- danger: "#FFFFFF",
12689
+ primary: WHITE,
12690
+ secondary: SAPPHIRE_BLUE,
12691
+ back: SAPPHIRE_BLUE,
12692
+ smallPrimary: WHITE,
12693
+ smallSecondary: SAPPHIRE_BLUE,
12694
+ smallGhost: SAPPHIRE_BLUE,
12695
+ ghost: SAPPHIRE_BLUE,
12696
+ tertiary: SAPPHIRE_BLUE,
12697
+ danger: WHITE,
12692
12698
  dangerSecondary: "#B10541",
12693
- whiteSecondary: "#FFFFFF",
12694
- whitePrimary: "#FFFFFF"
12699
+ whiteSecondary: WHITE,
12700
+ whitePrimary: WHITE
12695
12701
  };
12696
12702
  var activeBackgroundColor = {
12697
- primary: "#0E506D",
12703
+ primary: PEACOCK_BLUE,
12698
12704
  secondary: "#B8D5E1",
12699
- back: "transparent",
12700
- smallPrimary: "#0E506D",
12705
+ back: TRANSPARENT,
12706
+ smallPrimary: PEACOCK_BLUE,
12701
12707
  smallSecondary: "#B8D5E1",
12702
- smallGhost: "transparent",
12703
- ghost: "transparent",
12704
- tertiary: "transparent",
12708
+ smallGhost: TRANSPARENT,
12709
+ ghost: TRANSPARENT,
12710
+ tertiary: TRANSPARENT,
12705
12711
  danger: "#870000",
12706
- dangerSecondary: "transparent",
12707
- whiteSecondary: "transparent",
12708
- whitePrimary: "transparent"
12712
+ dangerSecondary: "#FAE7EE",
12713
+ whiteSecondary: TRANSPARENT,
12714
+ whitePrimary: TRANSPARENT
12709
12715
  };
12710
12716
  var activeBorderColor = {
12711
- primary: "#0E506D",
12712
- secondary: "#15749D",
12713
- back: "#0E506D",
12714
- smallPrimary: "#0E506D",
12715
- smallSecondary: "#15749D",
12716
- smallGhost: "transparent",
12717
- ghost: "transparent",
12718
- tertiary: "transparent",
12717
+ primary: PEACOCK_BLUE,
12718
+ secondary: MATISSE_BLUE,
12719
+ back: PEACOCK_BLUE,
12720
+ smallPrimary: PEACOCK_BLUE,
12721
+ smallSecondary: MATISSE_BLUE,
12722
+ smallGhost: TRANSPARENT,
12723
+ ghost: TRANSPARENT,
12724
+ tertiary: TRANSPARENT,
12719
12725
  danger: "#870000",
12720
12726
  dangerSecondary: "#910029",
12721
- whiteSecondary: "2px solid transparent",
12722
- whitePrimary: "2px solid transparent"
12727
+ whiteSecondary: "2px solid " + TRANSPARENT,
12728
+ whitePrimary: "2px solid " + TRANSPARENT
12723
12729
  };
12724
12730
  var activeColor = {
12725
- primary: "#FFFFFF",
12726
- secondary: "#15749D",
12727
- back: "#0E506D",
12728
- smallPrimary: "#FFFFFF",
12729
- smallSecondary: "#0E506D",
12730
- smallGhost: "#0E506D",
12731
- ghost: "#0E506D",
12732
- tertiary: "#0E506D",
12733
- danger: "#FFFFFF",
12731
+ primary: WHITE,
12732
+ secondary: MATISSE_BLUE,
12733
+ back: PEACOCK_BLUE,
12734
+ smallPrimary: WHITE,
12735
+ smallSecondary: PEACOCK_BLUE,
12736
+ smallGhost: PEACOCK_BLUE,
12737
+ ghost: PEACOCK_BLUE,
12738
+ tertiary: PEACOCK_BLUE,
12739
+ danger: WHITE,
12734
12740
  dangerSecondary: "#910029",
12735
- whiteSecondary: "#FFFFFF",
12736
- whitePrimary: "#FFFFFF"
12741
+ whiteSecondary: WHITE,
12742
+ whitePrimary: WHITE
12737
12743
  };
12738
12744
  var fallbackValues$1 = {
12739
12745
  padding: padding,
@@ -14726,6 +14732,23 @@ var FailedIcon = function FailedIcon() {
14726
14732
  }))));
14727
14733
  };
14728
14734
 
14735
+ var PencilIcon = function PencilIcon(_ref) {
14736
+ var _ref$ariaLabel = _ref.ariaLabel,
14737
+ ariaLabel = _ref$ariaLabel === void 0 ? "Edit" : _ref$ariaLabel;
14738
+ return /*#__PURE__*/React.createElement("svg", {
14739
+ "aria-label": ariaLabel,
14740
+ width: "24px",
14741
+ height: "24px",
14742
+ fill: "none",
14743
+ xmlns: "http://www.w3.org/2000/svg"
14744
+ }, /*#__PURE__*/React.createElement("path", {
14745
+ fillRule: "evenodd",
14746
+ clipRule: "evenodd",
14747
+ d: "M19.74 6.84a.885.885 0 0 1 0 1.253l-1.626 1.626-3.333-3.333 1.626-1.626a.885.885 0 0 1 1.253 0l2.08 2.08ZM4 20.5v-3.333l9.83-9.83 3.333 3.333-9.83 9.83H4Z",
14748
+ fill: "#15749D"
14749
+ }));
14750
+ };
14751
+
14729
14752
  var PendingIcon = function PendingIcon() {
14730
14753
  return /*#__PURE__*/React.createElement("svg", {
14731
14754
  width: "32px",
@@ -25486,7 +25509,9 @@ var LineItem = function LineItem(_ref) {
25486
25509
  var description = _ref.description,
25487
25510
  subDescription = _ref.subDescription,
25488
25511
  amount = _ref.amount,
25489
- themeValues = _ref.themeValues;
25512
+ themeValues = _ref.themeValues,
25513
+ _ref$displayQuantity = _ref.displayQuantity,
25514
+ displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
25490
25515
  return /*#__PURE__*/React.createElement(Cluster, {
25491
25516
  nowrap: true,
25492
25517
  justify: "space-between",
@@ -25499,7 +25524,10 @@ var LineItem = function LineItem(_ref) {
25499
25524
  }, description), /*#__PURE__*/React.createElement(Paragraph$1, {
25500
25525
  variant: themeValues.paragraphVariant,
25501
25526
  weight: "400"
25502
- }, subDescription)), /*#__PURE__*/React.createElement(Paragraph$1, {
25527
+ }, subDescription)), !!displayQuantity && /*#__PURE__*/React.createElement(Paragraph$1, {
25528
+ variant: themeValues.paragraphVariant,
25529
+ weight: themeValues.weightTitle
25530
+ }, "x".concat(displayQuantity)), /*#__PURE__*/React.createElement(Paragraph$1, {
25503
25531
  variant: themeValues.paragraphVariant,
25504
25532
  weight: "600",
25505
25533
  extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
@@ -45658,19 +45686,25 @@ var menu = posed.div({
45658
45686
  var ImposterMenu = styled(menu).withConfig({
45659
45687
  displayName: "NavMenuMobile__ImposterMenu",
45660
45688
  componentId: "sc-1pf0qp7-0"
45661
- })(["position:fixed;top:72px;"]);
45689
+ })(["position:fixed;top:", ";"], function (_ref) {
45690
+ var headerSize = _ref.headerSize;
45691
+ return headerSize;
45692
+ });
45662
45693
 
45663
- var NavMenuMobile = function NavMenuMobile(_ref) {
45664
- var id = _ref.id,
45665
- _ref$menuContent = _ref.menuContent,
45666
- menuContent = _ref$menuContent === void 0 ? [] : _ref$menuContent,
45667
- _ref$visible = _ref.visible,
45668
- visible = _ref$visible === void 0 ? false : _ref$visible,
45669
- themeValues = _ref.themeValues;
45694
+ var NavMenuMobile = function NavMenuMobile(_ref2) {
45695
+ var id = _ref2.id,
45696
+ _ref2$menuContent = _ref2.menuContent,
45697
+ menuContent = _ref2$menuContent === void 0 ? [] : _ref2$menuContent,
45698
+ _ref2$visible = _ref2.visible,
45699
+ visible = _ref2$visible === void 0 ? false : _ref2$visible,
45700
+ _ref2$headerSize = _ref2.headerSize,
45701
+ headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
45702
+ themeValues = _ref2.themeValues;
45670
45703
  return /*#__PURE__*/React.createElement(ImposterMenu, {
45671
45704
  id: id,
45672
45705
  initialPose: "invisible",
45673
- pose: visible ? "visible" : "invisible"
45706
+ pose: visible ? "visible" : "invisible",
45707
+ headerSize: headerSize
45674
45708
  }, /*#__PURE__*/React.createElement(Box, {
45675
45709
  width: "100vw",
45676
45710
  padding: "1rem 0.5rem",
@@ -46548,6 +46582,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
46548
46582
 
46549
46583
  var PrevNextButton = function PrevNextButton(_ref2) {
46550
46584
  var action = _ref2.action,
46585
+ ariaLabel = _ref2.ariaLabel,
46551
46586
  arrowColor = _ref2.arrowColor,
46552
46587
  borderRadius = _ref2.borderRadius,
46553
46588
  buttonHeight = _ref2.buttonHeight,
@@ -46557,12 +46592,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
46557
46592
  return /*#__PURE__*/React.createElement(Box, {
46558
46593
  padding: "0",
46559
46594
  minHeight: buttonHeight,
46560
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46595
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46596
+ as: "li"
46561
46597
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
46562
46598
  action: action,
46563
46599
  contentOverride: true,
46564
46600
  dataQa: type,
46565
- 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 ")
46601
+ "aria-label": ariaLabel,
46602
+ 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 ")
46566
46603
  }, /*#__PURE__*/React.createElement(Box, {
46567
46604
  padding: "0",
46568
46605
  extraStyles: type === "prev" && "transform: scaleX(-1)"
@@ -46586,26 +46623,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
46586
46623
 
46587
46624
  if (page > space + 1) {
46588
46625
  pages.push({
46589
- isDelimiter: true
46626
+ isDelimiter: true,
46627
+ id: "first-delimiter"
46590
46628
  });
46591
46629
  }
46592
46630
 
46593
46631
  for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
46594
46632
  pages.push({
46595
46633
  index: j,
46596
- isButton: true
46634
+ isButton: true,
46635
+ id: "page-".concat(j)
46597
46636
  });
46598
46637
  }
46599
46638
 
46600
46639
  if (page < lastPageNumber - space) {
46601
46640
  pages.push({
46602
- isDelimiter: true
46641
+ isDelimiter: true,
46642
+ id: "last-delimiter"
46603
46643
  });
46604
46644
  }
46605
46645
 
46606
46646
  pages.push({
46607
46647
  index: lastPageNumber,
46608
- isButton: true
46648
+ isButton: true,
46649
+ id: "page-".concat(lastPageNumber)
46609
46650
  });
46610
46651
  var activePage = pages.find(function (p) {
46611
46652
  return p.index === page;
@@ -46640,18 +46681,26 @@ var Pagination = function Pagination(_ref3) {
46640
46681
  pageNext = _ref3.pageNext,
46641
46682
  pagePrevious = _ref3.pagePrevious,
46642
46683
  setCurrentPage = _ref3.setCurrentPage,
46684
+ ariaLabel = _ref3.ariaLabel,
46643
46685
  themeValues = _ref3.themeValues;
46644
46686
 
46645
46687
  var _useContext = useContext(ThemeContext),
46646
46688
  isMobile = _useContext.isMobile;
46647
46689
 
46648
- 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 ");
46649
- 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 ");
46690
+ 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 ");
46691
+ 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 ");
46650
46692
  return /*#__PURE__*/React.createElement(Cluster, {
46651
46693
  justify: "center",
46652
- childGap: childGap
46694
+ childGap: childGap,
46695
+ overflow: true,
46696
+ as: "nav",
46697
+ role: "navigation",
46698
+ innerWrapperAs: "ul",
46699
+ "aria-label": ariaLabel,
46700
+ extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
46653
46701
  }, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
46654
46702
  action: pagePrevious,
46703
+ ariaLabel: "Previous Page",
46655
46704
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46656
46705
  borderRadius: borderRadius,
46657
46706
  buttonHeight: buttonHeight,
@@ -46673,33 +46722,37 @@ var Pagination = function Pagination(_ref3) {
46673
46722
  }, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
46674
46723
  return item.isButton ? /*#__PURE__*/React.createElement(Box, {
46675
46724
  padding: "0",
46676
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46725
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46726
+ as: "li",
46727
+ key: item.id
46677
46728
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
46678
46729
  variant: "ghost",
46679
- key: item.index,
46680
46730
  text: item.index,
46681
- disabled: item.active,
46682
- extraDisabledStyles: extraDisabledStyles,
46731
+ "aria-current": item.active ? "page" : undefined,
46732
+ "aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
46683
46733
  action: !item.active ? function () {
46684
46734
  return setCurrentPage({
46685
46735
  pageNumber: item.index
46686
46736
  });
46687
46737
  } : noop,
46688
46738
  textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
46689
- extraStyles: extraStyles,
46739
+ extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
46690
46740
  dataQa: index
46691
46741
  }, item.index)) : /*#__PURE__*/React.createElement(Box, {
46692
- padding: "0 10px"
46742
+ padding: "0 10px",
46743
+ as: "li",
46744
+ key: item.id
46693
46745
  }, /*#__PURE__*/React.createElement(Cluster, {
46694
46746
  justify: "flex-end"
46695
46747
  }, /*#__PURE__*/React.createElement(Text$1, {
46696
- key: index,
46697
46748
  variant: "pXL",
46698
46749
  weight: fontWeight,
46699
- color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
46700
- }, "...")));
46750
+ color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
46751
+ role: "presentation"
46752
+ }, "…")));
46701
46753
  }), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
46702
46754
  action: pageNext,
46755
+ ariaLabel: "Next Page",
46703
46756
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46704
46757
  borderRadius: borderRadius,
46705
46758
  buttonHeight: buttonHeight,
@@ -47119,6 +47172,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47119
47172
 
47120
47173
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
47121
47174
 
47175
+ var backgroundColor$c = {
47176
+ "default": "#ffffff",
47177
+ footer: "#ffffff"
47178
+ };
47179
+ var linkColor$6 = {
47180
+ "default": "#3176AA",
47181
+ footer: "#ffffff"
47182
+ };
47183
+ var border$3 = {
47184
+ "default": "#cdcdcd",
47185
+ footer: "#cdcdcd"
47186
+ };
47187
+ var fontSize$b = {
47188
+ "default": "1rem",
47189
+ footer: "0.875rem"
47190
+ };
47191
+ var lineHeight$5 = {
47192
+ "default": "1.5rem",
47193
+ footer: "1.25rem"
47194
+ };
47195
+ var fontWeight$8 = {
47196
+ "default": FONT_WEIGHT_REGULAR,
47197
+ footer: FONT_WEIGHT_SEMIBOLD
47198
+ };
47199
+ 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";
47200
+ var modalLinkHoverFocus$2 = {
47201
+ "default": standardInteractionStyles,
47202
+ footer: standardInteractionStyles
47203
+ };
47204
+ var fallbackValues$M = {
47205
+ backgroundColor: backgroundColor$c,
47206
+ linkColor: linkColor$6,
47207
+ border: border$3,
47208
+ fontSize: fontSize$b,
47209
+ lineHeight: lineHeight$5,
47210
+ fontWeight: fontWeight$8,
47211
+ modalLinkHoverFocus: modalLinkHoverFocus$2
47212
+ };
47213
+
47214
+ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47215
+ var link = _ref.link,
47216
+ _ref$title = _ref.title,
47217
+ title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
47218
+ isOpen = _ref.isOpen,
47219
+ toggleOpen = _ref.toggleOpen,
47220
+ toggleAccepted = _ref.toggleAccepted,
47221
+ acceptText = _ref.acceptText,
47222
+ terms = _ref.terms,
47223
+ variant = _ref.variant,
47224
+ _ref$linkVariant = _ref.linkVariant,
47225
+ linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
47226
+ themeValues = _ref.themeValues;
47227
+ return /*#__PURE__*/React.createElement(Modal$1, {
47228
+ modalOpen: isOpen,
47229
+ hideModal: function hideModal() {
47230
+ return toggleOpen(false);
47231
+ },
47232
+ showModal: function showModal() {
47233
+ return toggleOpen(true);
47234
+ },
47235
+ modalHeaderText: title,
47236
+ modalBodyText: /*#__PURE__*/React.createElement(Box, {
47237
+ background: themeValues.backgroundColor,
47238
+ border: "1px solid ".concat(themeValues.border),
47239
+ borderRadius: "3px",
47240
+ extraStyles: "overflow: scroll; max-height: 20rem;"
47241
+ }, /*#__PURE__*/React.createElement(Text$1, {
47242
+ variant: "p",
47243
+ extraStyles: "& a { text-decoration: underline; }"
47244
+ }, terms)),
47245
+ defaultWrapper: false,
47246
+ onlyCloseButton: !acceptText,
47247
+ continueButtonText: acceptText,
47248
+ continueAction: function continueAction() {
47249
+ toggleAccepted(true);
47250
+ toggleOpen(false);
47251
+ }
47252
+ }, /*#__PURE__*/React.createElement(Text$1, {
47253
+ variant: linkVariant,
47254
+ onClick: function onClick() {
47255
+ return toggleOpen(true);
47256
+ },
47257
+ onKeyPress: function onKeyPress(e) {
47258
+ return e.key === "Enter" && toggleOpen(true);
47259
+ },
47260
+ tabIndex: "0",
47261
+ color: themeValues.linkColor,
47262
+ weight: themeValues.fontWeight,
47263
+ hoverStyles: themeValues.modalLinkHoverFocus,
47264
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47265
+ }, link));
47266
+ };
47267
+
47268
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47269
+
47122
47270
  var PaymentFormACH = function PaymentFormACH(_ref) {
47123
47271
  var _routingNumberErrors, _accountNumberErrors;
47124
47272
 
@@ -47137,7 +47285,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47137
47285
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
47138
47286
  showWalletCheckbox = _ref.showWalletCheckbox,
47139
47287
  saveToWallet = _ref.saveToWallet,
47140
- walletCheckboxMarked = _ref.walletCheckboxMarked;
47288
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
47289
+ termsContent = _ref.termsContent,
47290
+ _ref$termsTitle = _ref.termsTitle,
47291
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47141
47292
 
47142
47293
  if (clearOnDismount) {
47143
47294
  useEffect$1(function () {
@@ -47157,6 +47308,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47157
47308
  showAccount = _useState4[0],
47158
47309
  toggleShowAccount = _useState4[1];
47159
47310
 
47311
+ var _useState5 = useState(false),
47312
+ _useState6 = _slicedToArray(_useState5, 2),
47313
+ termsModalOpen = _useState6[0],
47314
+ setTermsModalOpen = _useState6[1];
47315
+
47316
+ var showTerms = !!termsContent;
47317
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47318
+
47160
47319
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47161
47320
 
47162
47321
  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);
@@ -47265,12 +47424,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47265
47424
  onChange: toggleCheckbox,
47266
47425
  checked: defaultMethod.value,
47267
47426
  hidden: hideDefaultPayment
47268
- }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47427
+ }), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
47428
+ childGap: "4px"
47429
+ }, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47269
47430
  name: "bank checkbox",
47270
- title: "Save checking account to wallet",
47431
+ title: "Save checking account to wallet.",
47271
47432
  checked: walletCheckboxMarked,
47272
47433
  onChange: saveToWallet
47273
- })));
47434
+ }), showTerms && /*#__PURE__*/React.createElement(Cover, {
47435
+ singleChild: true
47436
+ }, /*#__PURE__*/React.createElement(Cluster, {
47437
+ childGap: 0
47438
+ }, /*#__PURE__*/React.createElement(Text$1, {
47439
+ variant: showTermsLinkVariant
47440
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47441
+ link: termsTitle,
47442
+ linkVariant: showTermsLinkVariant,
47443
+ terms: termsContent,
47444
+ title: termsTitle,
47445
+ isOpen: termsModalOpen,
47446
+ toggleOpen: setTermsModalOpen
47447
+ }))))));
47274
47448
  };
47275
47449
 
47276
47450
  var formConfig$6 = {
@@ -47324,11 +47498,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47324
47498
  showWalletCheckbox = _ref.showWalletCheckbox,
47325
47499
  saveToWallet = _ref.saveToWallet,
47326
47500
  walletCheckboxMarked = _ref.walletCheckboxMarked,
47327
- deniedCards = _ref.deniedCards;
47501
+ deniedCards = _ref.deniedCards,
47502
+ termsContent = _ref.termsContent,
47503
+ _ref$termsTitle = _ref.termsTitle,
47504
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47328
47505
 
47329
47506
  var _useContext = useContext(ThemeContext),
47330
47507
  isMobile = _useContext.isMobile;
47331
47508
 
47509
+ var _useState = useState(false),
47510
+ _useState2 = _slicedToArray(_useState, 2),
47511
+ termsModalOpen = _useState2[0],
47512
+ setTermsModalOpen = _useState2[1];
47513
+
47514
+ var showTerms = !!termsContent;
47515
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47332
47516
  useEffect$1(function () {
47333
47517
  if (deniedCards) {
47334
47518
  deniedCards.map(function (card) {
@@ -47437,12 +47621,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47437
47621
  return e.key === "Enter" && handleSubmit(e);
47438
47622
  },
47439
47623
  autocomplete: "billing postal-code"
47440
- })), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47624
+ })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
47625
+ childGap: "4px"
47626
+ }, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47441
47627
  name: "credit card checkbox",
47442
- title: "Save credit card to wallet",
47628
+ title: "Save credit card to wallet.",
47443
47629
  checked: walletCheckboxMarked,
47444
47630
  onChange: saveToWallet
47445
- })));
47631
+ }), showTerms && /*#__PURE__*/React.createElement(Cover, {
47632
+ singleChild: true
47633
+ }, /*#__PURE__*/React.createElement(Cluster, {
47634
+ childGap: 0
47635
+ }, /*#__PURE__*/React.createElement(Text$1, {
47636
+ variant: showTermsLinkVariant
47637
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47638
+ link: termsTitle,
47639
+ linkVariant: showTermsLinkVariant,
47640
+ terms: termsContent,
47641
+ title: termsTitle,
47642
+ isOpen: termsModalOpen,
47643
+ toggleOpen: setTermsModalOpen
47644
+ }))))));
47446
47645
  };
47447
47646
 
47448
47647
  var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
@@ -47723,7 +47922,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
47723
47922
  var bodyBackgroundColor$1 = "#eeeeee";
47724
47923
  var borderColor$5 = "".concat(GREY_CHATEAU);
47725
47924
  var focusStyles = "outline: none;";
47726
- var fallbackValues$M = {
47925
+ var fallbackValues$N = {
47727
47926
  headingBackgroundColor: headingBackgroundColor$1,
47728
47927
  headingDisabledColor: headingDisabledColor,
47729
47928
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -47911,7 +48110,7 @@ var RadioSection = function RadioSection(_ref) {
47911
48110
  })));
47912
48111
  };
47913
48112
 
47914
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
48113
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
47915
48114
 
47916
48115
  var RegistrationForm = function RegistrationForm(_ref) {
47917
48116
  var _emailErrorMessages, _passwordErrorMessage;
@@ -48208,7 +48407,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48208
48407
  var activeTabBackground = "#FFFFFF";
48209
48408
  var activeTabAccent = "#15749D";
48210
48409
  var activeTabHover = "#B8D5E1";
48211
- var fallbackValues$N = {
48410
+ var fallbackValues$O = {
48212
48411
  activeTabBackground: activeTabBackground,
48213
48412
  activeTabAccent: activeTabAccent,
48214
48413
  activeTabHover: activeTabHover
@@ -48287,12 +48486,12 @@ var Tabs = function Tabs(_ref) {
48287
48486
  }))));
48288
48487
  };
48289
48488
 
48290
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
48489
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
48291
48490
 
48292
48491
  var activeTabBackground$1 = "#FFFFFF";
48293
48492
  var activeTabAccent$1 = "#15749D";
48294
48493
  var activeTabHover$1 = "#B8D5E1";
48295
- var fallbackValues$O = {
48494
+ var fallbackValues$P = {
48296
48495
  activeTabBackground: activeTabBackground$1,
48297
48496
  activeTabAccent: activeTabAccent$1,
48298
48497
  activeTabHover: activeTabHover$1
@@ -48348,100 +48547,7 @@ var TabSidebar = function TabSidebar(_ref) {
48348
48547
  })));
48349
48548
  };
48350
48549
 
48351
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$O);
48352
-
48353
- var backgroundColor$c = {
48354
- "default": "#ffffff",
48355
- footer: "#ffffff"
48356
- };
48357
- var linkColor$6 = {
48358
- "default": "#3176AA",
48359
- footer: "#ffffff"
48360
- };
48361
- var border$3 = {
48362
- "default": "#cdcdcd",
48363
- footer: "#cdcdcd"
48364
- };
48365
- var fontSize$b = {
48366
- "default": "1rem",
48367
- footer: "0.875rem"
48368
- };
48369
- var lineHeight$5 = {
48370
- "default": "1.5rem",
48371
- footer: "1.25rem"
48372
- };
48373
- var fontWeight$8 = {
48374
- "default": FONT_WEIGHT_REGULAR,
48375
- footer: FONT_WEIGHT_SEMIBOLD
48376
- };
48377
- 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";
48378
- var modalLinkHoverFocus$2 = {
48379
- "default": standardInteractionStyles,
48380
- footer: standardInteractionStyles
48381
- };
48382
- var fallbackValues$P = {
48383
- backgroundColor: backgroundColor$c,
48384
- linkColor: linkColor$6,
48385
- border: border$3,
48386
- fontSize: fontSize$b,
48387
- lineHeight: lineHeight$5,
48388
- fontWeight: fontWeight$8,
48389
- modalLinkHoverFocus: modalLinkHoverFocus$2
48390
- };
48391
-
48392
- var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48393
- var link = _ref.link,
48394
- _ref$title = _ref.title,
48395
- title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
48396
- isOpen = _ref.isOpen,
48397
- toggleOpen = _ref.toggleOpen,
48398
- toggleAccepted = _ref.toggleAccepted,
48399
- acceptText = _ref.acceptText,
48400
- terms = _ref.terms,
48401
- variant = _ref.variant,
48402
- themeValues = _ref.themeValues;
48403
- return /*#__PURE__*/React.createElement(Modal$1, {
48404
- modalOpen: isOpen,
48405
- hideModal: function hideModal() {
48406
- return toggleOpen(false);
48407
- },
48408
- showModal: function showModal() {
48409
- return toggleOpen(true);
48410
- },
48411
- modalHeaderText: title,
48412
- modalBodyText: /*#__PURE__*/React.createElement(Box, {
48413
- background: themeValues.backgroundColor,
48414
- border: "1px solid ".concat(themeValues.border),
48415
- borderRadius: "3px",
48416
- extraStyles: "overflow: scroll; max-height: 20rem;"
48417
- }, /*#__PURE__*/React.createElement(Text$1, {
48418
- variant: "p",
48419
- extraStyles: "& a { text-decoration: underline; }"
48420
- }, terms)),
48421
- defaultWrapper: false,
48422
- onlyCloseButton: !acceptText,
48423
- continueButtonText: acceptText,
48424
- continueAction: function continueAction() {
48425
- toggleAccepted(true);
48426
- toggleOpen(false);
48427
- }
48428
- }, /*#__PURE__*/React.createElement(Text$1, {
48429
- variant: variant === "default" ? "pS" : "pXS",
48430
- onClick: function onClick() {
48431
- return toggleOpen(true);
48432
- },
48433
- onKeyPress: function onKeyPress(e) {
48434
- return e.key === "Enter" && toggleOpen(true);
48435
- },
48436
- tabIndex: "0",
48437
- color: themeValues.linkColor,
48438
- weight: themeValues.fontWeight,
48439
- hoverStyles: themeValues.modalLinkHoverFocus,
48440
- extraStyles: "display: inline-block; width: fit-content;"
48441
- }, link));
48442
- };
48443
-
48444
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
48550
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
48445
48551
 
48446
48552
  var TermsAndConditions = function TermsAndConditions(_ref) {
48447
48553
  var onCheck = _ref.onCheck,
@@ -48449,7 +48555,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48449
48555
  html = _ref.html,
48450
48556
  terms = _ref.terms,
48451
48557
  _ref$error = _ref.error,
48452
- error = _ref$error === void 0 ? false : _ref$error;
48558
+ error = _ref$error === void 0 ? false : _ref$error,
48559
+ linkVariant = _ref.linkVariant;
48453
48560
 
48454
48561
  var _useState = useState(false),
48455
48562
  _useState2 = _slicedToArray(_useState, 2),
@@ -48470,7 +48577,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48470
48577
  link: "Learn More",
48471
48578
  terms: terms,
48472
48579
  isOpen: showTerms,
48473
- toggleOpen: toggleShowTerms
48580
+ toggleOpen: toggleShowTerms,
48581
+ linkVariant: linkVariant
48474
48582
  })))));
48475
48583
  };
48476
48584
 
@@ -48574,9 +48682,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
48574
48682
  workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
48575
48683
  slug = _ref.slug,
48576
48684
  _ref$buttonVariant = _ref.buttonVariant,
48577
- buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant,
48578
- selectWorkflowAction = _ref.selectWorkflowAction,
48579
- navigate = _ref.navigate;
48685
+ buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant;
48580
48686
  return /*#__PURE__*/React.createElement(Box, {
48581
48687
  background: WHITE,
48582
48688
  boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY),
@@ -48604,21 +48710,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
48604
48710
  background: ATHENS_GREY,
48605
48711
  borderColor: GRECIAN_GREY,
48606
48712
  borderWidthOverride: "2px 0 0 0"
48607
- }, selectWorkflowAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
48608
- variant: buttonVariant,
48609
- primary: buttonVariant == "primary",
48610
- primaryBG: MATISSE_BLUE,
48611
- fontWeight: FONT_WEIGHT_SEMIBOLD,
48612
- fontSize: "1.125rem",
48613
- text: workflowActionName,
48614
- minWidth: "100%",
48615
- extraStyles: "width: 100%; margin: 0; text-align: center;",
48616
- dataQa: slug,
48617
- action: function action() {
48618
- selectWorkflowAction(slug);
48619
- navigate("/service/".concat(slug));
48620
- }
48621
- }) : /*#__PURE__*/React.createElement(ButtonWithLink, {
48713
+ }, /*#__PURE__*/React.createElement(ButtonWithLink, {
48622
48714
  variant: buttonVariant,
48623
48715
  primary: buttonVariant == "primary",
48624
48716
  primaryBG: MATISSE_BLUE,
@@ -48895,5 +48987,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
48895
48987
 
48896
48988
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$R));
48897
48989
 
48898
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowUpCircleIconSmall, AutopayOnIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
48990
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowUpCircleIconSmall, AutopayOnIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
48899
48991
  //# sourceMappingURL=index.esm.js.map