@thecb/components 7.10.0-beta.0 → 7.10.0

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 +353 -257
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.esm.js +353 -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 +22 -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,26 @@ 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
+ themeValues = _ref.themeValues;
14739
+ return /*#__PURE__*/React.createElement("svg", {
14740
+ "aria-label": ariaLabel,
14741
+ width: "24px",
14742
+ height: "24px",
14743
+ fill: "none",
14744
+ xmlns: "http://www.w3.org/2000/svg"
14745
+ }, /*#__PURE__*/React.createElement("path", {
14746
+ fillRule: "evenodd",
14747
+ clipRule: "evenodd",
14748
+ 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",
14749
+ fill: themeValues.subIconColor
14750
+ }));
14751
+ };
14752
+
14753
+ var PencilIcon$1 = themeComponent(PencilIcon, "Icons", fallbackValues$2, "info");
14754
+
14729
14755
  var PendingIcon = function PendingIcon() {
14730
14756
  return /*#__PURE__*/React.createElement("svg", {
14731
14757
  width: "32px",
@@ -25486,7 +25512,9 @@ var LineItem = function LineItem(_ref) {
25486
25512
  var description = _ref.description,
25487
25513
  subDescription = _ref.subDescription,
25488
25514
  amount = _ref.amount,
25489
- themeValues = _ref.themeValues;
25515
+ themeValues = _ref.themeValues,
25516
+ _ref$displayQuantity = _ref.displayQuantity,
25517
+ displayQuantity = _ref$displayQuantity === void 0 ? null : _ref$displayQuantity;
25490
25518
  return /*#__PURE__*/React.createElement(Cluster, {
25491
25519
  nowrap: true,
25492
25520
  justify: "space-between",
@@ -25499,7 +25527,10 @@ var LineItem = function LineItem(_ref) {
25499
25527
  }, description), /*#__PURE__*/React.createElement(Paragraph$1, {
25500
25528
  variant: themeValues.paragraphVariant,
25501
25529
  weight: "400"
25502
- }, subDescription)), /*#__PURE__*/React.createElement(Paragraph$1, {
25530
+ }, subDescription)), !!displayQuantity && /*#__PURE__*/React.createElement(Paragraph$1, {
25531
+ variant: themeValues.paragraphVariant,
25532
+ weight: themeValues.weightTitle
25533
+ }, "x".concat(displayQuantity)), /*#__PURE__*/React.createElement(Paragraph$1, {
25503
25534
  variant: themeValues.paragraphVariant,
25504
25535
  weight: "600",
25505
25536
  extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
@@ -45658,19 +45689,25 @@ var menu = posed.div({
45658
45689
  var ImposterMenu = styled(menu).withConfig({
45659
45690
  displayName: "NavMenuMobile__ImposterMenu",
45660
45691
  componentId: "sc-1pf0qp7-0"
45661
- })(["position:fixed;top:72px;"]);
45692
+ })(["position:fixed;top:", ";"], function (_ref) {
45693
+ var headerSize = _ref.headerSize;
45694
+ return headerSize;
45695
+ });
45662
45696
 
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;
45697
+ var NavMenuMobile = function NavMenuMobile(_ref2) {
45698
+ var id = _ref2.id,
45699
+ _ref2$menuContent = _ref2.menuContent,
45700
+ menuContent = _ref2$menuContent === void 0 ? [] : _ref2$menuContent,
45701
+ _ref2$visible = _ref2.visible,
45702
+ visible = _ref2$visible === void 0 ? false : _ref2$visible,
45703
+ _ref2$headerSize = _ref2.headerSize,
45704
+ headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
45705
+ themeValues = _ref2.themeValues;
45670
45706
  return /*#__PURE__*/React.createElement(ImposterMenu, {
45671
45707
  id: id,
45672
45708
  initialPose: "invisible",
45673
- pose: visible ? "visible" : "invisible"
45709
+ pose: visible ? "visible" : "invisible",
45710
+ headerSize: headerSize
45674
45711
  }, /*#__PURE__*/React.createElement(Box, {
45675
45712
  width: "100vw",
45676
45713
  padding: "1rem 0.5rem",
@@ -46548,6 +46585,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
46548
46585
 
46549
46586
  var PrevNextButton = function PrevNextButton(_ref2) {
46550
46587
  var action = _ref2.action,
46588
+ ariaLabel = _ref2.ariaLabel,
46551
46589
  arrowColor = _ref2.arrowColor,
46552
46590
  borderRadius = _ref2.borderRadius,
46553
46591
  buttonHeight = _ref2.buttonHeight,
@@ -46557,12 +46595,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
46557
46595
  return /*#__PURE__*/React.createElement(Box, {
46558
46596
  padding: "0",
46559
46597
  minHeight: buttonHeight,
46560
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46598
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46599
+ as: "li"
46561
46600
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
46562
46601
  action: action,
46563
46602
  contentOverride: true,
46564
46603
  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 ")
46604
+ "aria-label": ariaLabel,
46605
+ 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
46606
  }, /*#__PURE__*/React.createElement(Box, {
46567
46607
  padding: "0",
46568
46608
  extraStyles: type === "prev" && "transform: scaleX(-1)"
@@ -46586,26 +46626,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
46586
46626
 
46587
46627
  if (page > space + 1) {
46588
46628
  pages.push({
46589
- isDelimiter: true
46629
+ isDelimiter: true,
46630
+ id: "first-delimiter"
46590
46631
  });
46591
46632
  }
46592
46633
 
46593
46634
  for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
46594
46635
  pages.push({
46595
46636
  index: j,
46596
- isButton: true
46637
+ isButton: true,
46638
+ id: "page-".concat(j)
46597
46639
  });
46598
46640
  }
46599
46641
 
46600
46642
  if (page < lastPageNumber - space) {
46601
46643
  pages.push({
46602
- isDelimiter: true
46644
+ isDelimiter: true,
46645
+ id: "last-delimiter"
46603
46646
  });
46604
46647
  }
46605
46648
 
46606
46649
  pages.push({
46607
46650
  index: lastPageNumber,
46608
- isButton: true
46651
+ isButton: true,
46652
+ id: "page-".concat(lastPageNumber)
46609
46653
  });
46610
46654
  var activePage = pages.find(function (p) {
46611
46655
  return p.index === page;
@@ -46640,18 +46684,26 @@ var Pagination = function Pagination(_ref3) {
46640
46684
  pageNext = _ref3.pageNext,
46641
46685
  pagePrevious = _ref3.pagePrevious,
46642
46686
  setCurrentPage = _ref3.setCurrentPage,
46687
+ ariaLabel = _ref3.ariaLabel,
46643
46688
  themeValues = _ref3.themeValues;
46644
46689
 
46645
46690
  var _useContext = useContext(ThemeContext),
46646
46691
  isMobile = _useContext.isMobile;
46647
46692
 
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 ");
46693
+ 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 ");
46694
+ 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
46695
  return /*#__PURE__*/React.createElement(Cluster, {
46651
46696
  justify: "center",
46652
- childGap: childGap
46697
+ childGap: childGap,
46698
+ overflow: true,
46699
+ as: "nav",
46700
+ role: "navigation",
46701
+ innerWrapperAs: "ul",
46702
+ "aria-label": ariaLabel,
46703
+ extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
46653
46704
  }, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
46654
46705
  action: pagePrevious,
46706
+ ariaLabel: "Previous Page",
46655
46707
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46656
46708
  borderRadius: borderRadius,
46657
46709
  buttonHeight: buttonHeight,
@@ -46673,33 +46725,37 @@ var Pagination = function Pagination(_ref3) {
46673
46725
  }, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
46674
46726
  return item.isButton ? /*#__PURE__*/React.createElement(Box, {
46675
46727
  padding: "0",
46676
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46728
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46729
+ as: "li",
46730
+ key: item.id
46677
46731
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
46678
46732
  variant: "ghost",
46679
- key: item.index,
46680
46733
  text: item.index,
46681
- disabled: item.active,
46682
- extraDisabledStyles: extraDisabledStyles,
46734
+ "aria-current": item.active ? "page" : undefined,
46735
+ "aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
46683
46736
  action: !item.active ? function () {
46684
46737
  return setCurrentPage({
46685
46738
  pageNumber: item.index
46686
46739
  });
46687
46740
  } : noop,
46688
46741
  textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
46689
- extraStyles: extraStyles,
46742
+ extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
46690
46743
  dataQa: index
46691
46744
  }, item.index)) : /*#__PURE__*/React.createElement(Box, {
46692
- padding: "0 10px"
46745
+ padding: "0 10px",
46746
+ as: "li",
46747
+ key: item.id
46693
46748
  }, /*#__PURE__*/React.createElement(Cluster, {
46694
46749
  justify: "flex-end"
46695
46750
  }, /*#__PURE__*/React.createElement(Text$1, {
46696
- key: index,
46697
46751
  variant: "pXL",
46698
46752
  weight: fontWeight,
46699
- color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
46700
- }, "...")));
46753
+ color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
46754
+ role: "presentation"
46755
+ }, "…")));
46701
46756
  }), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
46702
46757
  action: pageNext,
46758
+ ariaLabel: "Next Page",
46703
46759
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46704
46760
  borderRadius: borderRadius,
46705
46761
  buttonHeight: buttonHeight,
@@ -47119,6 +47175,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47119
47175
 
47120
47176
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
47121
47177
 
47178
+ var backgroundColor$c = {
47179
+ "default": "#ffffff",
47180
+ footer: "#ffffff"
47181
+ };
47182
+ var linkColor$6 = {
47183
+ "default": "#3176AA",
47184
+ footer: "#ffffff"
47185
+ };
47186
+ var border$3 = {
47187
+ "default": "#cdcdcd",
47188
+ footer: "#cdcdcd"
47189
+ };
47190
+ var fontSize$b = {
47191
+ "default": "1rem",
47192
+ footer: "0.875rem"
47193
+ };
47194
+ var lineHeight$5 = {
47195
+ "default": "1.5rem",
47196
+ footer: "1.25rem"
47197
+ };
47198
+ var fontWeight$8 = {
47199
+ "default": FONT_WEIGHT_REGULAR,
47200
+ footer: FONT_WEIGHT_SEMIBOLD
47201
+ };
47202
+ 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";
47203
+ var modalLinkHoverFocus$2 = {
47204
+ "default": standardInteractionStyles,
47205
+ footer: standardInteractionStyles
47206
+ };
47207
+ var fallbackValues$M = {
47208
+ backgroundColor: backgroundColor$c,
47209
+ linkColor: linkColor$6,
47210
+ border: border$3,
47211
+ fontSize: fontSize$b,
47212
+ lineHeight: lineHeight$5,
47213
+ fontWeight: fontWeight$8,
47214
+ modalLinkHoverFocus: modalLinkHoverFocus$2
47215
+ };
47216
+
47217
+ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47218
+ var link = _ref.link,
47219
+ _ref$title = _ref.title,
47220
+ title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
47221
+ isOpen = _ref.isOpen,
47222
+ toggleOpen = _ref.toggleOpen,
47223
+ toggleAccepted = _ref.toggleAccepted,
47224
+ acceptText = _ref.acceptText,
47225
+ terms = _ref.terms,
47226
+ variant = _ref.variant,
47227
+ _ref$linkVariant = _ref.linkVariant,
47228
+ linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
47229
+ themeValues = _ref.themeValues;
47230
+ return /*#__PURE__*/React.createElement(Modal$1, {
47231
+ modalOpen: isOpen,
47232
+ hideModal: function hideModal() {
47233
+ return toggleOpen(false);
47234
+ },
47235
+ showModal: function showModal() {
47236
+ return toggleOpen(true);
47237
+ },
47238
+ modalHeaderText: title,
47239
+ modalBodyText: /*#__PURE__*/React.createElement(Box, {
47240
+ background: themeValues.backgroundColor,
47241
+ border: "1px solid ".concat(themeValues.border),
47242
+ borderRadius: "3px",
47243
+ extraStyles: "overflow: scroll; max-height: 20rem;"
47244
+ }, /*#__PURE__*/React.createElement(Text$1, {
47245
+ variant: "p",
47246
+ extraStyles: "& a { text-decoration: underline; }"
47247
+ }, terms)),
47248
+ defaultWrapper: false,
47249
+ onlyCloseButton: !acceptText,
47250
+ continueButtonText: acceptText,
47251
+ continueAction: function continueAction() {
47252
+ toggleAccepted(true);
47253
+ toggleOpen(false);
47254
+ }
47255
+ }, /*#__PURE__*/React.createElement(Text$1, {
47256
+ variant: linkVariant,
47257
+ onClick: function onClick() {
47258
+ return toggleOpen(true);
47259
+ },
47260
+ onKeyPress: function onKeyPress(e) {
47261
+ return e.key === "Enter" && toggleOpen(true);
47262
+ },
47263
+ tabIndex: "0",
47264
+ color: themeValues.linkColor,
47265
+ weight: themeValues.fontWeight,
47266
+ hoverStyles: themeValues.modalLinkHoverFocus,
47267
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47268
+ }, link));
47269
+ };
47270
+
47271
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47272
+
47122
47273
  var PaymentFormACH = function PaymentFormACH(_ref) {
47123
47274
  var _routingNumberErrors, _accountNumberErrors;
47124
47275
 
@@ -47137,7 +47288,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47137
47288
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
47138
47289
  showWalletCheckbox = _ref.showWalletCheckbox,
47139
47290
  saveToWallet = _ref.saveToWallet,
47140
- walletCheckboxMarked = _ref.walletCheckboxMarked;
47291
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
47292
+ termsContent = _ref.termsContent,
47293
+ _ref$termsTitle = _ref.termsTitle,
47294
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47141
47295
 
47142
47296
  if (clearOnDismount) {
47143
47297
  useEffect$1(function () {
@@ -47157,6 +47311,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47157
47311
  showAccount = _useState4[0],
47158
47312
  toggleShowAccount = _useState4[1];
47159
47313
 
47314
+ var _useState5 = useState(false),
47315
+ _useState6 = _slicedToArray(_useState5, 2),
47316
+ termsModalOpen = _useState6[0],
47317
+ setTermsModalOpen = _useState6[1];
47318
+
47319
+ var showTerms = !!termsContent;
47320
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47321
+
47160
47322
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47161
47323
 
47162
47324
  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 +47427,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47265
47427
  onChange: toggleCheckbox,
47266
47428
  checked: defaultMethod.value,
47267
47429
  hidden: hideDefaultPayment
47268
- }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47430
+ }), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
47431
+ childGap: "4px"
47432
+ }, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47269
47433
  name: "bank checkbox",
47270
- title: "Save checking account to wallet",
47434
+ title: "Save checking account to wallet.",
47271
47435
  checked: walletCheckboxMarked,
47272
47436
  onChange: saveToWallet
47273
- })));
47437
+ }), showTerms && /*#__PURE__*/React.createElement(Cover, {
47438
+ singleChild: true
47439
+ }, /*#__PURE__*/React.createElement(Cluster, {
47440
+ childGap: 0
47441
+ }, /*#__PURE__*/React.createElement(Text$1, {
47442
+ variant: showTermsLinkVariant
47443
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47444
+ link: termsTitle,
47445
+ linkVariant: showTermsLinkVariant,
47446
+ terms: termsContent,
47447
+ title: termsTitle,
47448
+ isOpen: termsModalOpen,
47449
+ toggleOpen: setTermsModalOpen
47450
+ }))))));
47274
47451
  };
47275
47452
 
47276
47453
  var formConfig$6 = {
@@ -47324,11 +47501,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47324
47501
  showWalletCheckbox = _ref.showWalletCheckbox,
47325
47502
  saveToWallet = _ref.saveToWallet,
47326
47503
  walletCheckboxMarked = _ref.walletCheckboxMarked,
47327
- deniedCards = _ref.deniedCards;
47504
+ deniedCards = _ref.deniedCards,
47505
+ termsContent = _ref.termsContent,
47506
+ _ref$termsTitle = _ref.termsTitle,
47507
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47328
47508
 
47329
47509
  var _useContext = useContext(ThemeContext),
47330
47510
  isMobile = _useContext.isMobile;
47331
47511
 
47512
+ var _useState = useState(false),
47513
+ _useState2 = _slicedToArray(_useState, 2),
47514
+ termsModalOpen = _useState2[0],
47515
+ setTermsModalOpen = _useState2[1];
47516
+
47517
+ var showTerms = !!termsContent;
47518
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47332
47519
  useEffect$1(function () {
47333
47520
  if (deniedCards) {
47334
47521
  deniedCards.map(function (card) {
@@ -47437,12 +47624,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47437
47624
  return e.key === "Enter" && handleSubmit(e);
47438
47625
  },
47439
47626
  autocomplete: "billing postal-code"
47440
- })), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47627
+ })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
47628
+ childGap: "4px"
47629
+ }, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
47441
47630
  name: "credit card checkbox",
47442
- title: "Save credit card to wallet",
47631
+ title: "Save credit card to wallet.",
47443
47632
  checked: walletCheckboxMarked,
47444
47633
  onChange: saveToWallet
47445
- })));
47634
+ }), showTerms && /*#__PURE__*/React.createElement(Cover, {
47635
+ singleChild: true
47636
+ }, /*#__PURE__*/React.createElement(Cluster, {
47637
+ childGap: 0
47638
+ }, /*#__PURE__*/React.createElement(Text$1, {
47639
+ variant: showTermsLinkVariant
47640
+ }, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
47641
+ link: termsTitle,
47642
+ linkVariant: showTermsLinkVariant,
47643
+ terms: termsContent,
47644
+ title: termsTitle,
47645
+ isOpen: termsModalOpen,
47646
+ toggleOpen: setTermsModalOpen
47647
+ }))))));
47446
47648
  };
47447
47649
 
47448
47650
  var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
@@ -47723,7 +47925,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
47723
47925
  var bodyBackgroundColor$1 = "#eeeeee";
47724
47926
  var borderColor$5 = "".concat(GREY_CHATEAU);
47725
47927
  var focusStyles = "outline: none;";
47726
- var fallbackValues$M = {
47928
+ var fallbackValues$N = {
47727
47929
  headingBackgroundColor: headingBackgroundColor$1,
47728
47930
  headingDisabledColor: headingDisabledColor,
47729
47931
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -47911,7 +48113,7 @@ var RadioSection = function RadioSection(_ref) {
47911
48113
  })));
47912
48114
  };
47913
48115
 
47914
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
48116
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
47915
48117
 
47916
48118
  var RegistrationForm = function RegistrationForm(_ref) {
47917
48119
  var _emailErrorMessages, _passwordErrorMessage;
@@ -48208,7 +48410,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48208
48410
  var activeTabBackground = "#FFFFFF";
48209
48411
  var activeTabAccent = "#15749D";
48210
48412
  var activeTabHover = "#B8D5E1";
48211
- var fallbackValues$N = {
48413
+ var fallbackValues$O = {
48212
48414
  activeTabBackground: activeTabBackground,
48213
48415
  activeTabAccent: activeTabAccent,
48214
48416
  activeTabHover: activeTabHover
@@ -48287,12 +48489,12 @@ var Tabs = function Tabs(_ref) {
48287
48489
  }))));
48288
48490
  };
48289
48491
 
48290
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
48492
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
48291
48493
 
48292
48494
  var activeTabBackground$1 = "#FFFFFF";
48293
48495
  var activeTabAccent$1 = "#15749D";
48294
48496
  var activeTabHover$1 = "#B8D5E1";
48295
- var fallbackValues$O = {
48497
+ var fallbackValues$P = {
48296
48498
  activeTabBackground: activeTabBackground$1,
48297
48499
  activeTabAccent: activeTabAccent$1,
48298
48500
  activeTabHover: activeTabHover$1
@@ -48348,100 +48550,7 @@ var TabSidebar = function TabSidebar(_ref) {
48348
48550
  })));
48349
48551
  };
48350
48552
 
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");
48553
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
48445
48554
 
48446
48555
  var TermsAndConditions = function TermsAndConditions(_ref) {
48447
48556
  var onCheck = _ref.onCheck,
@@ -48449,7 +48558,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48449
48558
  html = _ref.html,
48450
48559
  terms = _ref.terms,
48451
48560
  _ref$error = _ref.error,
48452
- error = _ref$error === void 0 ? false : _ref$error;
48561
+ error = _ref$error === void 0 ? false : _ref$error,
48562
+ linkVariant = _ref.linkVariant;
48453
48563
 
48454
48564
  var _useState = useState(false),
48455
48565
  _useState2 = _slicedToArray(_useState, 2),
@@ -48470,7 +48580,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48470
48580
  link: "Learn More",
48471
48581
  terms: terms,
48472
48582
  isOpen: showTerms,
48473
- toggleOpen: toggleShowTerms
48583
+ toggleOpen: toggleShowTerms,
48584
+ linkVariant: linkVariant
48474
48585
  })))));
48475
48586
  };
48476
48587
 
@@ -48574,9 +48685,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
48574
48685
  workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
48575
48686
  slug = _ref.slug,
48576
48687
  _ref$buttonVariant = _ref.buttonVariant,
48577
- buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant,
48578
- selectWorkflowAction = _ref.selectWorkflowAction,
48579
- navigate = _ref.navigate;
48688
+ buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant;
48580
48689
  return /*#__PURE__*/React.createElement(Box, {
48581
48690
  background: WHITE,
48582
48691
  boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY),
@@ -48604,21 +48713,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
48604
48713
  background: ATHENS_GREY,
48605
48714
  borderColor: GRECIAN_GREY,
48606
48715
  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, {
48716
+ }, /*#__PURE__*/React.createElement(ButtonWithLink, {
48622
48717
  variant: buttonVariant,
48623
48718
  primary: buttonVariant == "primary",
48624
48719
  primaryBG: MATISSE_BLUE,
@@ -48895,5 +48990,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
48895
48990
 
48896
48991
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$R));
48897
48992
 
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 };
48993
+ 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$1 as 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
48994
  //# sourceMappingURL=index.esm.js.map