@thecb/components 10.2.1-beta.2 → 10.2.2-beta.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 (29) hide show
  1. package/README.md +2 -2
  2. package/dist/index.cjs.js +134 -188
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +0 -36
  5. package/dist/index.esm.js +133 -187
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
  8. package/package.json +1 -1
  9. package/src/.DS_Store +0 -0
  10. package/src/components/.DS_Store +0 -0
  11. package/src/components/atoms/.DS_Store +0 -0
  12. package/src/components/atoms/breadcrumb/Breadcrumb.js +3 -4
  13. package/src/components/atoms/breadcrumb/Breadcrumb.theme.js +2 -5
  14. package/src/components/atoms/button-with-action/ButtonWithAction.js +7 -2
  15. package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +2 -22
  16. package/src/components/atoms/button-with-link/ButtonWithLink.js +2 -2
  17. package/src/components/atoms/icons/.DS_Store +0 -0
  18. package/src/components/atoms/link/ExternalLink.styled.js +3 -6
  19. package/src/components/atoms/link/InternalLink.styled.js +3 -6
  20. package/src/components/atoms/text/Text.styled.js +0 -1
  21. package/src/components/molecules/obligation/modules/AutopayModalModule.js +12 -10
  22. package/src/components/molecules/pagination/Pagination.js +7 -1
  23. package/src/components/molecules/pagination/Pagination.theme.js +2 -1
  24. package/src/components/molecules/tab-sidebar/TabSidebar.js +1 -0
  25. package/src/constants/index.d.ts +1 -2
  26. package/src/constants/index.js +3 -12
  27. package/src/constants/style_constants.js +1 -3
  28. package/src/components/molecules/pagination/Pagination.stories.js +0 -32
  29. package/src/constants/style_constants.d.ts +0 -11
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # CityBase Components
1
+ # Citybase Components
2
2
 
3
- This library contains CityBase React components for use across all current and future CB applications (NFE, RMD, Kiosk, POS).
3
+ This library contains Citybase React components for use across all current and future CB applications (NFE, RMD, Kiosk, POS).
4
4
 
5
5
  <!-- TOC -->
6
6
 
package/dist/index.cjs.js CHANGED
@@ -4916,7 +4916,6 @@ var COMPACT_JUMBO_HEIGHT = "65px";
4916
4916
  var FONT_WEIGHT_REGULAR = "400";
4917
4917
  var FONT_WEIGHT_BOLD = "700";
4918
4918
  var FONT_WEIGHT_SEMIBOLD = "600";
4919
- var LINK_TEXT_DECORATION = "underline solid 1px";
4920
4919
 
4921
4920
  var style_constants = /*#__PURE__*/Object.freeze({
4922
4921
  __proto__: null,
@@ -4927,8 +4926,7 @@ var style_constants = /*#__PURE__*/Object.freeze({
4927
4926
  COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
4928
4927
  FONT_WEIGHT_REGULAR: FONT_WEIGHT_REGULAR,
4929
4928
  FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
4930
- FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD,
4931
- LINK_TEXT_DECORATION: LINK_TEXT_DECORATION
4929
+ FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD
4932
4930
  });
4933
4931
 
4934
4932
  /*
@@ -5165,7 +5163,7 @@ var colors = /*#__PURE__*/Object.freeze({
5165
5163
  var TextSpan = styled__default.span.withConfig({
5166
5164
  displayName: "Textstyled__TextSpan",
5167
5165
  componentId: "sc-1oy97we-0"
5168
- })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";text-decoration:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
5166
+ })(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
5169
5167
  var fontSize = _ref.fontSize;
5170
5168
  return fontSize;
5171
5169
  }, function (_ref2) {
@@ -5177,8 +5175,6 @@ var TextSpan = styled__default.span.withConfig({
5177
5175
  }, function (_ref4) {
5178
5176
  var color = _ref4.color;
5179
5177
  return color;
5180
- }, function (textDecoration) {
5181
- return textDecoration;
5182
5178
  }, function (_ref5) {
5183
5179
  var $textWrap = _ref5.$textWrap;
5184
5180
  return $textWrap ? "initial" : "nowrap";
@@ -12560,43 +12556,6 @@ var Reel = function Reel(_ref) {
12560
12556
  }), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
12561
12557
  };
12562
12558
 
12563
- var ACH_METHOD = "BANK_ACCOUNT";
12564
- var CC_METHOD = "CREDIT_CARD";
12565
- var CASH_METHOD = "CASH";
12566
-
12567
- var general$1 = /*#__PURE__*/Object.freeze({
12568
- __proto__: null,
12569
- ACH_METHOD: ACH_METHOD,
12570
- CC_METHOD: CC_METHOD,
12571
- CASH_METHOD: CASH_METHOD
12572
- });
12573
-
12574
- var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
12575
-
12576
- var regex_constants = /*#__PURE__*/Object.freeze({
12577
- __proto__: null,
12578
- URL_TEST: URL_TEST
12579
- });
12580
-
12581
-
12582
-
12583
- var index$4 = /*#__PURE__*/Object.freeze({
12584
- __proto__: null,
12585
- colors: colors,
12586
- general: general$1,
12587
- regexConstants: regex_constants,
12588
- styleConstants: style_constants,
12589
- fontWeights: style_constants
12590
- });
12591
-
12592
- var WHITE$1 = WHITE,
12593
- TRANSPARENT$1 = TRANSPARENT,
12594
- SAPPHIRE_BLUE$1 = SAPPHIRE_BLUE,
12595
- PEACOCK_BLUE$1 = PEACOCK_BLUE,
12596
- MATISSE_BLUE$1 = MATISSE_BLUE,
12597
- RASPBERRY$1 = RASPBERRY,
12598
- ERROR_COLOR$1 = ERROR_COLOR;
12599
- var LINK_TEXT_DECORATION$1 = LINK_TEXT_DECORATION;
12600
12559
  var padding = {
12601
12560
  primary: "0.75rem 1.5rem",
12602
12561
  secondary: "0.75rem 1.5rem",
@@ -12612,18 +12571,18 @@ var padding = {
12612
12571
  whitePrimary: "1.125rem 0.75rem"
12613
12572
  };
12614
12573
  var color$1 = {
12615
- primary: WHITE$1,
12616
- secondary: MATISSE_BLUE$1,
12617
- back: MATISSE_BLUE$1,
12618
- smallPrimary: WHITE$1,
12619
- smallSecondary: MATISSE_BLUE$1,
12620
- smallGhost: MATISSE_BLUE$1,
12621
- ghost: MATISSE_BLUE$1,
12622
- tertiary: MATISSE_BLUE$1,
12623
- danger: WHITE$1,
12624
- dangerSecondary: ERROR_COLOR$1,
12625
- whiteSecondary: WHITE$1,
12626
- whitePrimary: WHITE$1
12574
+ primary: WHITE,
12575
+ secondary: MATISSE_BLUE,
12576
+ back: MATISSE_BLUE,
12577
+ smallPrimary: WHITE,
12578
+ smallSecondary: MATISSE_BLUE,
12579
+ smallGhost: MATISSE_BLUE,
12580
+ ghost: MATISSE_BLUE,
12581
+ tertiary: MATISSE_BLUE,
12582
+ danger: WHITE,
12583
+ dangerSecondary: ERROR_COLOR,
12584
+ whiteSecondary: WHITE,
12585
+ whitePrimary: WHITE
12627
12586
  };
12628
12587
  var fontSizeVariant = {
12629
12588
  primary: "pS",
@@ -12681,131 +12640,117 @@ var minWidth = {
12681
12640
  whiteSecondary: "160px",
12682
12641
  whitePrimary: "130px"
12683
12642
  };
12684
- var textDecoration = {
12685
- primary: "none",
12686
- secondary: "none",
12687
- back: "none",
12688
- smallPrimary: "none",
12689
- smallSecondary: "none",
12690
- smallGhost: LINK_TEXT_DECORATION$1,
12691
- ghost: LINK_TEXT_DECORATION$1,
12692
- tertiary: "none",
12693
- danger: "none",
12694
- dangerSecondary: "none",
12695
- whiteSecondary: "none",
12696
- whitePrimary: "none"
12697
- };
12698
12643
  var backgroundColor = {
12699
- primary: MATISSE_BLUE$1,
12700
- secondary: TRANSPARENT$1,
12701
- back: TRANSPARENT$1,
12702
- smallPrimary: MATISSE_BLUE$1,
12703
- smallSecondary: TRANSPARENT$1,
12704
- smallGhost: TRANSPARENT$1,
12705
- ghost: TRANSPARENT$1,
12706
- tertiary: TRANSPARENT$1,
12707
- danger: RASPBERRY$1,
12708
- dangerSecondary: TRANSPARENT$1,
12709
- whiteSecondary: TRANSPARENT$1,
12710
- whitePrimary: TRANSPARENT$1
12644
+ primary: MATISSE_BLUE,
12645
+ secondary: TRANSPARENT,
12646
+ back: TRANSPARENT,
12647
+ smallPrimary: MATISSE_BLUE,
12648
+ smallSecondary: TRANSPARENT,
12649
+ smallGhost: TRANSPARENT,
12650
+ ghost: TRANSPARENT,
12651
+ tertiary: TRANSPARENT,
12652
+ danger: RASPBERRY,
12653
+ dangerSecondary: TRANSPARENT,
12654
+ whiteSecondary: TRANSPARENT,
12655
+ whitePrimary: TRANSPARENT
12711
12656
  };
12712
12657
  var border = {
12713
- primary: "2px solid " + MATISSE_BLUE$1,
12714
- secondary: "2px solid " + MATISSE_BLUE$1,
12715
- back: "2px solid " + MATISSE_BLUE$1,
12716
- smallPrimary: "2px solid " + MATISSE_BLUE$1,
12717
- smallSecondary: "2px solid " + MATISSE_BLUE$1,
12658
+ primary: "2px solid " + MATISSE_BLUE,
12659
+ secondary: "2px solid " + MATISSE_BLUE,
12660
+ back: "2px solid " + MATISSE_BLUE,
12661
+ smallPrimary: "2px solid " + MATISSE_BLUE,
12662
+ smallSecondary: "2px solid " + MATISSE_BLUE,
12718
12663
  smallGhost: "none",
12719
12664
  ghost: "none",
12720
12665
  tertiary: "none",
12721
- danger: "2px solid " + RASPBERRY$1,
12722
- dangerSecondary: "2px solid " + ERROR_COLOR$1,
12723
- whiteSecondary: "2px solid " + WHITE$1,
12724
- whitePrimary: "2px solid " + TRANSPARENT$1
12666
+ danger: "2px solid " + RASPBERRY,
12667
+ dangerSecondary: "2px solid " + ERROR_COLOR,
12668
+ whiteSecondary: "2px solid " + WHITE,
12669
+ whitePrimary: "2px solid " + TRANSPARENT
12725
12670
  };
12726
12671
  var hoverBackgroundColor = {
12727
- primary: SAPPHIRE_BLUE$1,
12672
+ primary: SAPPHIRE_BLUE,
12728
12673
  secondary: "#DBEAF0",
12729
- back: TRANSPARENT$1,
12730
- smallPrimary: SAPPHIRE_BLUE$1,
12674
+ back: TRANSPARENT,
12675
+ smallPrimary: SAPPHIRE_BLUE,
12731
12676
  smallSecondary: "#DBEAF0",
12732
- smallGhost: TRANSPARENT$1,
12733
- ghost: TRANSPARENT$1,
12734
- tertiary: TRANSPARENT$1,
12677
+ smallGhost: TRANSPARENT,
12678
+ ghost: TRANSPARENT,
12679
+ tertiary: TRANSPARENT,
12735
12680
  danger: "#BA002C",
12736
12681
  dangerSecondary: "#FAE7EE",
12737
- whiteSecondary: TRANSPARENT$1,
12738
- whitePrimary: TRANSPARENT$1
12682
+ whiteSecondary: TRANSPARENT,
12683
+ whitePrimary: TRANSPARENT
12739
12684
  };
12740
12685
  var hoverBorderColor = {
12741
- primary: SAPPHIRE_BLUE$1,
12742
- secondary: MATISSE_BLUE$1,
12686
+ primary: SAPPHIRE_BLUE,
12687
+ secondary: MATISSE_BLUE,
12743
12688
  back: "#DCEAF1",
12744
- smallPrimary: SAPPHIRE_BLUE$1,
12745
- smallSecondary: MATISSE_BLUE$1,
12746
- smallGhost: TRANSPARENT$1,
12747
- ghost: TRANSPARENT$1,
12748
- tertiary: TRANSPARENT$1,
12689
+ smallPrimary: SAPPHIRE_BLUE,
12690
+ smallSecondary: MATISSE_BLUE,
12691
+ smallGhost: TRANSPARENT,
12692
+ ghost: TRANSPARENT,
12693
+ tertiary: TRANSPARENT,
12749
12694
  danger: "#BA002C",
12750
12695
  dangerSecondary: "#B10541",
12751
- whiteSecondary: "2px solid " + TRANSPARENT$1,
12752
- whitePrimary: "2px solid " + TRANSPARENT$1
12696
+ whiteSecondary: "2px solid " + TRANSPARENT,
12697
+ whitePrimary: "2px solid " + TRANSPARENT
12753
12698
  };
12754
12699
  var hoverColor = {
12755
- primary: WHITE$1,
12756
- secondary: SAPPHIRE_BLUE$1,
12757
- back: SAPPHIRE_BLUE$1,
12758
- smallPrimary: WHITE$1,
12759
- smallSecondary: SAPPHIRE_BLUE$1,
12760
- smallGhost: SAPPHIRE_BLUE$1,
12761
- ghost: SAPPHIRE_BLUE$1,
12762
- tertiary: SAPPHIRE_BLUE$1,
12763
- danger: WHITE$1,
12700
+ primary: WHITE,
12701
+ secondary: SAPPHIRE_BLUE,
12702
+ back: SAPPHIRE_BLUE,
12703
+ smallPrimary: WHITE,
12704
+ smallSecondary: SAPPHIRE_BLUE,
12705
+ smallGhost: SAPPHIRE_BLUE,
12706
+ ghost: SAPPHIRE_BLUE,
12707
+ tertiary: SAPPHIRE_BLUE,
12708
+ danger: WHITE,
12764
12709
  dangerSecondary: "#B10541",
12765
- whiteSecondary: WHITE$1,
12766
- whitePrimary: WHITE$1
12710
+ whiteSecondary: WHITE,
12711
+ whitePrimary: WHITE
12767
12712
  };
12768
12713
  var activeBackgroundColor = {
12769
- primary: PEACOCK_BLUE$1,
12714
+ primary: PEACOCK_BLUE,
12770
12715
  secondary: "#B8D5E1",
12771
- back: TRANSPARENT$1,
12772
- smallPrimary: PEACOCK_BLUE$1,
12716
+ back: TRANSPARENT,
12717
+ smallPrimary: PEACOCK_BLUE,
12773
12718
  smallSecondary: "#B8D5E1",
12774
- smallGhost: TRANSPARENT$1,
12775
- ghost: TRANSPARENT$1,
12776
- tertiary: TRANSPARENT$1,
12719
+ smallGhost: TRANSPARENT,
12720
+ ghost: TRANSPARENT,
12721
+ tertiary: TRANSPARENT,
12777
12722
  danger: "#870000",
12778
12723
  dangerSecondary: "#FAE7EE",
12779
- whiteSecondary: TRANSPARENT$1,
12780
- whitePrimary: TRANSPARENT$1
12724
+ whiteSecondary: TRANSPARENT,
12725
+ whitePrimary: TRANSPARENT
12781
12726
  };
12782
12727
  var activeBorderColor = {
12783
- primary: PEACOCK_BLUE$1,
12784
- secondary: MATISSE_BLUE$1,
12785
- back: PEACOCK_BLUE$1,
12786
- smallPrimary: PEACOCK_BLUE$1,
12787
- smallSecondary: MATISSE_BLUE$1,
12788
- smallGhost: TRANSPARENT$1,
12789
- ghost: TRANSPARENT$1,
12790
- tertiary: TRANSPARENT$1,
12728
+ primary: PEACOCK_BLUE,
12729
+ secondary: MATISSE_BLUE,
12730
+ back: PEACOCK_BLUE,
12731
+ smallPrimary: PEACOCK_BLUE,
12732
+ smallSecondary: MATISSE_BLUE,
12733
+ smallGhost: TRANSPARENT,
12734
+ ghost: TRANSPARENT,
12735
+ tertiary: TRANSPARENT,
12791
12736
  danger: "#870000",
12792
12737
  dangerSecondary: "#910029",
12793
- whiteSecondary: "2px solid " + TRANSPARENT$1,
12794
- whitePrimary: "2px solid " + TRANSPARENT$1
12738
+ whiteSecondary: "2px solid " + TRANSPARENT,
12739
+ whitePrimary: "2px solid " + TRANSPARENT
12795
12740
  };
12796
12741
  var activeColor = {
12797
- primary: WHITE$1,
12798
- secondary: MATISSE_BLUE$1,
12799
- back: PEACOCK_BLUE$1,
12800
- smallPrimary: WHITE$1,
12801
- smallSecondary: PEACOCK_BLUE$1,
12802
- smallGhost: PEACOCK_BLUE$1,
12803
- ghost: PEACOCK_BLUE$1,
12804
- tertiary: PEACOCK_BLUE$1,
12805
- danger: WHITE$1,
12742
+ primary: WHITE,
12743
+ secondary: MATISSE_BLUE,
12744
+ back: PEACOCK_BLUE,
12745
+ smallPrimary: WHITE,
12746
+ smallSecondary: PEACOCK_BLUE,
12747
+ smallGhost: PEACOCK_BLUE,
12748
+ ghost: PEACOCK_BLUE,
12749
+ tertiary: PEACOCK_BLUE,
12750
+ danger: WHITE,
12806
12751
  dangerSecondary: "#910029",
12807
- whiteSecondary: WHITE$1,
12808
- whitePrimary: WHITE$1
12752
+ whiteSecondary: WHITE,
12753
+ whitePrimary: WHITE
12809
12754
  };
12810
12755
  var fallbackValues$1 = {
12811
12756
  padding: padding,
@@ -12814,7 +12759,6 @@ var fallbackValues$1 = {
12814
12759
  fontWeight: fontWeight,
12815
12760
  height: height,
12816
12761
  minWidth: minWidth,
12817
- textDecoration: textDecoration,
12818
12762
  backgroundColor: backgroundColor,
12819
12763
  border: border,
12820
12764
  hoverBackgroundColor: hoverBackgroundColor,
@@ -12938,7 +12882,7 @@ var Spinner = function Spinner(_ref) {
12938
12882
 
12939
12883
  Note: the children prop is only used if contentOverride is set to true, in which case
12940
12884
  the text prop is ignored.
12941
-
12885
+
12942
12886
  */
12943
12887
 
12944
12888
  var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
@@ -12969,8 +12913,8 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12969
12913
  var themeContext = React.useContext(styled.ThemeContext);
12970
12914
  var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
12971
12915
  var isMobile = themeContext.isMobile;
12972
- var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n cursor: pointer;\n ");
12973
- var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n ");
12916
+ var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
12917
+ var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
12974
12918
  var disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n outline: 3px solid #6D717E;\n outline-offset: 2px;\n }\n ".concat(extraDisabledStyles, "\n ");
12975
12919
  return /*#__PURE__*/React__default.createElement(Box, _extends({
12976
12920
  ref: ref,
@@ -13001,7 +12945,6 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
13001
12945
  weight: themeValues.fontWeight,
13002
12946
  variant: themeValues.fontSizeVariant,
13003
12947
  color: themeValues.color,
13004
- textDecoration: themeValues.textDecoration,
13005
12948
  textWrap: textWrap,
13006
12949
  extraStyles: textExtraStyles
13007
12950
  }, text)));
@@ -20444,23 +20387,20 @@ var BoxWithShadow = function BoxWithShadow(_ref) {
20444
20387
  var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackValues$8);
20445
20388
 
20446
20389
  // import theme from "styled-theming";
20447
- var MATISSE_BLUE$2 = MATISSE_BLUE,
20448
- STORM_GREY$1 = STORM_GREY;
20449
- var LINK_TEXT_DECORATION$2 = LINK_TEXT_DECORATION;
20450
20390
 
20451
20391
  /*
20452
20392
  For now I'm using string values, eventually shared components library will have its own constants file
20453
20393
  for colors/values that should be used here instead
20454
20394
  */
20455
20395
 
20456
- var color$5 = "".concat(MATISSE_BLUE$2);
20457
- var activeColor$2 = "".concat(STORM_GREY$1);
20458
- var activeBreadcrumbColor = "".concat(STORM_GREY$1);
20396
+ var color$5 = "".concat(MATISSE_BLUE);
20397
+ var activeColor$2 = "".concat(STORM_GREY);
20398
+ var activeBreadcrumbColor = "".concat(STORM_GREY);
20459
20399
  var fontSize$2 = "0.875rem";
20460
20400
  var lineHeight = "1.25rem";
20461
20401
  var fontWeight$1 = "400";
20462
20402
  var margin = "0.5rem";
20463
- var hover = "text-decoration: ".concat(LINK_TEXT_DECORATION$2, ";");
20403
+ var hover = "text-decoration: none;";
20464
20404
  var fallbackValues$9 = {
20465
20405
  color: color$5,
20466
20406
  activeColor: activeColor$2,
@@ -20487,9 +20427,6 @@ var fallbackValues$a = {
20487
20427
  };
20488
20428
 
20489
20429
  var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
20490
- var ROYAL_BLUE$1 = ROYAL_BLUE;
20491
- var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
20492
-
20493
20430
  /*
20494
20431
  The extracting of props and the disabling of the eslint rule is to stop React from complaining about
20495
20432
  unrecognized DOM attributes.
@@ -20507,7 +20444,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20507
20444
  })).withConfig({
20508
20445
  displayName: "ExternalLinkstyled__StyledExternalLink",
20509
20446
  componentId: "sc-m1q2m2-0"
20510
- })(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
20447
+ })(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
20511
20448
  var size = _ref2.size;
20512
20449
  return size;
20513
20450
  }, function (_ref3) {
@@ -20522,10 +20459,10 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20522
20459
  }, function (_ref6) {
20523
20460
  var lineheight = _ref6.lineheight;
20524
20461
  return lineheight;
20525
- }, LINK_TEXT_DECORATION$3, function (_ref7) {
20462
+ }, function (_ref7) {
20526
20463
  var hoverColor = _ref7.hoverColor;
20527
20464
  return hoverColor;
20528
- }, ROYAL_BLUE$1, function (_ref8) {
20465
+ }, ROYAL_BLUE, function (_ref8) {
20529
20466
  var activeColor = _ref8.activeColor;
20530
20467
  return activeColor;
20531
20468
  }, function (_ref9) {
@@ -20576,9 +20513,6 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
20576
20513
  });
20577
20514
 
20578
20515
  var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
20579
- var ROYAL_BLUE$2 = ROYAL_BLUE;
20580
- var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
20581
-
20582
20516
  /*
20583
20517
  The extracting of props and the disabling of the eslint rule is to stop React from complaining about
20584
20518
  unrecognized DOM attributes.
@@ -20598,7 +20532,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20598
20532
  })).withConfig({
20599
20533
  displayName: "InternalLinkstyled__StyledInternalLink",
20600
20534
  componentId: "sc-cuqxud-0"
20601
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
20535
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
20602
20536
  var color = _ref2.color,
20603
20537
  active = _ref2.active,
20604
20538
  activeColor = _ref2.activeColor;
@@ -20618,10 +20552,10 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20618
20552
  }, function (_ref7) {
20619
20553
  var margin = _ref7.margin;
20620
20554
  return margin;
20621
- }, LINK_TEXT_DECORATION$4, function (_ref8) {
20555
+ }, function (_ref8) {
20622
20556
  var hoverColor = _ref8.hoverColor;
20623
20557
  return hoverColor;
20624
- }, ROYAL_BLUE$2, function (_ref9) {
20558
+ }, ROYAL_BLUE, function (_ref9) {
20625
20559
  var activeColor = _ref9.activeColor;
20626
20560
  return activeColor;
20627
20561
  }, function (_ref10) {
@@ -20694,7 +20628,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
20694
20628
  lineheight: themeValues.lineHeight,
20695
20629
  fontWeight: themeValues.fontWeight,
20696
20630
  margin: themeValues.margin,
20697
- extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "color: ".concat(themeValues.activeBreadcrumbColor, ";\n pointer-events: none;\n text-decoration: none;\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, ";\n }")
20631
+ extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "pointer-events: none;\n color: ".concat(themeValues.activeBreadcrumbColor, ";\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, "; \n }")
20698
20632
  }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
20699
20633
  })));
20700
20634
  };
@@ -22274,6 +22208,8 @@ _curry2(function test(pattern, str) {
22274
22208
  return _cloneRegExp(pattern).test(str);
22275
22209
  });
22276
22210
 
22211
+ var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
22212
+
22277
22213
  var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
22278
22214
  var ButtonWithLink = function ButtonWithLink(_ref) {
22279
22215
  var _ref$url = _ref.url,
@@ -22282,10 +22218,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
22282
22218
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
22283
22219
  _ref$fileLink = _ref.fileLink,
22284
22220
  fileLink = _ref$fileLink === void 0 ? false : _ref$fileLink,
22285
- _ref$extraStyles = _ref.extraStyles,
22286
- extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
22287
- _ref$linkExtraStyles = _ref.linkExtraStyles,
22288
- linkExtraStyles = _ref$linkExtraStyles === void 0 ? "" : _ref$linkExtraStyles,
22221
+ extraStyles = _ref.extraStyles,
22222
+ linkExtraStyles = _ref.linkExtraStyles,
22289
22223
  _ref$newTab = _ref.newTab,
22290
22224
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
22291
22225
  dataQa = _ref.dataQa,
@@ -25889,7 +25823,7 @@ var useToastNotification = function useToastNotification() {
25889
25823
 
25890
25824
 
25891
25825
 
25892
- var index$5 = /*#__PURE__*/Object.freeze({
25826
+ var index$4 = /*#__PURE__*/Object.freeze({
25893
25827
  __proto__: null,
25894
25828
  useOutsideClick: useOutsideClickHook,
25895
25829
  useScrollTo: useScrollTo,
@@ -39068,6 +39002,14 @@ var NavTabs = function NavTabs(_ref) {
39068
39002
  }, tabs)));
39069
39003
  };
39070
39004
 
39005
+
39006
+
39007
+ var index$5 = /*#__PURE__*/Object.freeze({
39008
+ __proto__: null,
39009
+ colors: colors,
39010
+ fontWeights: style_constants
39011
+ });
39012
+
39071
39013
  var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
39072
39014
  var LoadingPill = styled__default.div.withConfig({
39073
39015
  displayName: "LoadingPillstyled__LoadingPill",
@@ -46498,6 +46440,10 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
46498
46440
  };
46499
46441
  var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
46500
46442
 
46443
+ var ACH_METHOD = "BANK_ACCOUNT";
46444
+ var CC_METHOD = "CREDIT_CARD";
46445
+ var CASH_METHOD = "CASH";
46446
+
46501
46447
  var IconsModule = function IconsModule(_ref) {
46502
46448
  var icon = _ref.icon,
46503
46449
  iconDefault = _ref.iconDefault,
@@ -46582,17 +46528,17 @@ var AutopayModal = function AutopayModal(_ref) {
46582
46528
  var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
46583
46529
  var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
46584
46530
  var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
46585
- return "To setup ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
46531
+ return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
46586
46532
  };
46587
46533
  var plan = isPaymentPlan ? "your payment plan" : "autopay";
46588
46534
  var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
46589
- var deactivateText = "deactivate ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46590
- var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46535
+ var deactivateText = "Stop ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
46536
+ var activateText = "Set Up ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
46591
46537
  var nextDate = dueDate || nextAutopayDate;
46592
46538
  var modalExtraProps = {
46593
- modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
46594
- modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(plan, "? ").concat(!inactive && nextDate ? "Your next payment will be due on ".concat(nextDate, ".") : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
46595
- continueButtonText: autoPayActive ? "Disable ".concat(shortPlan) : "Add",
46539
+ modalHeaderText: autoPayActive ? deactivateText : activateText,
46540
+ modalBodyText: autoPayActive ? "Are you sure you want to stop ".concat(plan, "? ").concat(!inactive && nextDate && nextDate !== "On" ? "Your next payment will be due on " + nextDate + "." : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
46541
+ continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
46596
46542
  useDangerButton: autoPayActive,
46597
46543
  continueAction: autoPayActive ? function () {
46598
46544
  deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
@@ -47415,7 +47361,6 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
47415
47361
  var Pagination = function Pagination(_ref3) {
47416
47362
  var _ref3$activeBorderWid = _ref3.activeBorderWidth,
47417
47363
  activeBorderWidth = _ref3$activeBorderWid === void 0 ? "3px" : _ref3$activeBorderWid,
47418
- ariaLabel = _ref3.ariaLabel,
47419
47364
  arrowColor = _ref3.arrowColor,
47420
47365
  _ref3$borderRadius = _ref3.borderRadius,
47421
47366
  borderRadius = _ref3$borderRadius === void 0 ? "3px" : _ref3$borderRadius,
@@ -47435,10 +47380,11 @@ var Pagination = function Pagination(_ref3) {
47435
47380
  pageNext = _ref3.pageNext,
47436
47381
  pagePrevious = _ref3.pagePrevious,
47437
47382
  setCurrentPage = _ref3.setCurrentPage,
47383
+ ariaLabel = _ref3.ariaLabel,
47438
47384
  themeValues = _ref3.themeValues;
47439
47385
  var _useContext = React.useContext(styled.ThemeContext),
47440
47386
  isMobile = _useContext.isMobile;
47441
- var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\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 ");
47387
+ 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 ");
47442
47388
  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 ");
47443
47389
  return /*#__PURE__*/React__default.createElement(Cluster, {
47444
47390
  justify: "center",
@@ -49586,7 +49532,7 @@ var TabSidebar = function TabSidebar(_ref) {
49586
49532
  return /*#__PURE__*/React__default.createElement(InternalLink, {
49587
49533
  to: route,
49588
49534
  key: "".concat(route, "-").concat(index),
49589
- extraStyles: "&:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
49535
+ extraStyles: "&:hover {\n text-decoration: none; \n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
49590
49536
  }, /*#__PURE__*/React__default.createElement(Box, {
49591
49537
  padding: isMobile ? "6px 4px" : "18px 16px",
49592
49538
  background: active ? themeValues.activeTabBackground : "transparent",
@@ -50296,10 +50242,10 @@ exports.WorkflowTile = WorkflowTile;
50296
50242
  exports.XCircleIconMedium = XCircleIconMedium;
50297
50243
  exports.XCircleIconSmall = XCircleIconSmall;
50298
50244
  exports.cardRegistry = cardRegistry;
50299
- exports.constants = index$4;
50245
+ exports.constants = index$5;
50300
50246
  exports.createPartialAmountFormState = createPartialAmountFormState;
50301
50247
  exports.createPartialAmountFormValidators = createPartialAmountFormValidators;
50302
- exports.hooks = index$5;
50248
+ exports.hooks = index$4;
50303
50249
  exports.util = index$6;
50304
50250
  exports.withWindowSize = withWindowSize;
50305
50251
  //# sourceMappingURL=index.cjs.js.map