@thecb/components 10.2.4-beta.9 → 10.3.1-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 (59) hide show
  1. package/README.md +2 -2
  2. package/dist/index.cjs.js +687 -914
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +64 -1
  5. package/dist/index.esm.js +683 -913
  6. package/dist/index.esm.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/.DS_Store +0 -0
  9. package/src/components/atoms/badge/Badge.stories.js +1 -2
  10. package/src/components/atoms/badge/Badge.theme.js +4 -8
  11. package/src/components/atoms/breadcrumb/Breadcrumb.js +4 -3
  12. package/src/components/atoms/breadcrumb/Breadcrumb.theme.js +5 -2
  13. package/src/components/atoms/button-with-action/ButtonWithAction.js +6 -14
  14. package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +0 -1
  15. package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +37 -47
  16. package/src/components/atoms/button-with-link/ButtonWithLink.js +2 -2
  17. package/src/components/atoms/form-layouts/FormInput.js +1 -1
  18. package/src/components/atoms/icons/CloseIcon.d.ts +1 -0
  19. package/src/components/atoms/icons/CloseIcon.js +48 -0
  20. package/src/components/atoms/icons/TrashIconV2.d.ts +1 -0
  21. package/src/components/atoms/icons/TrashIconV2.js +41 -0
  22. package/src/components/atoms/icons/icons.stories.js +5 -1
  23. package/src/components/atoms/icons/index.d.ts +2 -0
  24. package/src/components/atoms/icons/index.js +5 -1
  25. package/src/components/atoms/layouts/Box.js +0 -1
  26. package/src/components/atoms/layouts/examples/box-example/BoxExample.stories.js +1 -2
  27. package/src/components/atoms/link/ExternalLink.styled.js +6 -3
  28. package/src/components/atoms/link/InternalLink.styled.js +6 -3
  29. package/src/components/atoms/placeholder/Placeholder.js +74 -87
  30. package/src/components/atoms/placeholder/Placeholder.stories.js +9 -22
  31. package/src/components/atoms/text/Text.styled.js +1 -0
  32. package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
  33. package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.stories.js +41 -0
  34. package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.theme.js +10 -2
  35. package/src/components/molecules/index.d.ts +1 -0
  36. package/src/components/molecules/index.js +1 -0
  37. package/src/components/molecules/link-card/LinkCard.js +2 -5
  38. package/src/components/molecules/link-card/LinkCard.stories.js +34 -62
  39. package/src/components/molecules/link-card/LinkCard.theme.js +5 -19
  40. package/src/components/molecules/modal/Modal.js +6 -2
  41. package/src/components/molecules/modal/Modal.stories.js +2 -0
  42. package/src/components/molecules/obligation/Obligation.js +1 -4
  43. package/src/components/molecules/obligation/modules/AutopayModalModule.js +1 -4
  44. package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +1 -5
  45. package/src/components/molecules/pagination/Pagination.js +1 -7
  46. package/src/components/molecules/pagination/Pagination.stories.js +32 -0
  47. package/src/components/molecules/pagination/Pagination.theme.js +1 -2
  48. package/src/components/molecules/tab-sidebar/TabSidebar.js +2 -2
  49. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -0
  50. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +10 -2
  51. package/src/components/templates/default-page-template/DefaultPageTemplate.js +3 -2
  52. package/src/constants/index.d.ts +2 -1
  53. package/src/constants/index.js +12 -3
  54. package/src/constants/style_constants.d.ts +11 -0
  55. package/src/constants/style_constants.js +3 -1
  56. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  57. package/src/components/.DS_Store +0 -0
  58. package/src/components/atoms/.DS_Store +0 -0
  59. package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.cjs.js CHANGED
@@ -4916,6 +4916,7 @@ 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";
4919
4920
 
4920
4921
  var style_constants = /*#__PURE__*/Object.freeze({
4921
4922
  __proto__: null,
@@ -4926,7 +4927,8 @@ var style_constants = /*#__PURE__*/Object.freeze({
4926
4927
  COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
4927
4928
  FONT_WEIGHT_REGULAR: FONT_WEIGHT_REGULAR,
4928
4929
  FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
4929
- FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD
4930
+ FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD,
4931
+ LINK_TEXT_DECORATION: LINK_TEXT_DECORATION
4930
4932
  });
4931
4933
 
4932
4934
  /*
@@ -5163,7 +5165,7 @@ var colors = /*#__PURE__*/Object.freeze({
5163
5165
  var TextSpan = styled__default.span.withConfig({
5164
5166
  displayName: "Textstyled__TextSpan",
5165
5167
  componentId: "sc-1oy97we-0"
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) {
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) {
5167
5169
  var fontSize = _ref.fontSize;
5168
5170
  return fontSize;
5169
5171
  }, function (_ref2) {
@@ -5176,17 +5178,20 @@ var TextSpan = styled__default.span.withConfig({
5176
5178
  var color = _ref4.color;
5177
5179
  return color;
5178
5180
  }, function (_ref5) {
5179
- var $textWrap = _ref5.$textWrap;
5180
- return $textWrap ? "initial" : "nowrap";
5181
+ var textDecoration = _ref5.textDecoration;
5182
+ return textDecoration;
5181
5183
  }, function (_ref6) {
5182
- var hoverStyles = _ref6.hoverStyles;
5184
+ var $textWrap = _ref6.$textWrap;
5185
+ return $textWrap ? "initial" : "nowrap";
5186
+ }, function (_ref7) {
5187
+ var hoverStyles = _ref7.hoverStyles;
5183
5188
  return styled.css(["", ""], hoverStyles);
5184
- }, ROYAL_BLUE, function (_ref7) {
5185
- var disabled = _ref7.disabled,
5186
- disabledStyles = _ref7.disabledStyles;
5189
+ }, ROYAL_BLUE, function (_ref8) {
5190
+ var disabled = _ref8.disabled,
5191
+ disabledStyles = _ref8.disabledStyles;
5187
5192
  return disabled && styled.css(["", ""], disabledStyles);
5188
- }, function (_ref8) {
5189
- var extraStyles = _ref8.extraStyles;
5193
+ }, function (_ref9) {
5194
+ var extraStyles = _ref9.extraStyles;
5190
5195
  return extraStyles;
5191
5196
  });
5192
5197
 
@@ -6504,7 +6509,7 @@ var BoxWrapper = styled__default(function (_ref) {
6504
6509
  });
6505
6510
  /* eslint-enable no-unused-vars */
6506
6511
 
6507
- var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "disabled", "children"];
6512
+ var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
6508
6513
 
6509
6514
  /*
6510
6515
  Box component to create generic boxes
@@ -6552,7 +6557,6 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6552
6557
  _ref$srOnly = _ref.srOnly,
6553
6558
  srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
6554
6559
  dataQa = _ref.dataQa,
6555
- _ref$disabled = _ref.disabled,
6556
6560
  children = _ref.children,
6557
6561
  rest = _objectWithoutProperties(_ref, _excluded$3);
6558
6562
  return /*#__PURE__*/React__default.createElement(BoxWrapper, _extends({
@@ -12557,6 +12561,43 @@ var Reel = function Reel(_ref) {
12557
12561
  }), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
12558
12562
  };
12559
12563
 
12564
+ var ACH_METHOD = "BANK_ACCOUNT";
12565
+ var CC_METHOD = "CREDIT_CARD";
12566
+ var CASH_METHOD = "CASH";
12567
+
12568
+ var general$1 = /*#__PURE__*/Object.freeze({
12569
+ __proto__: null,
12570
+ ACH_METHOD: ACH_METHOD,
12571
+ CC_METHOD: CC_METHOD,
12572
+ CASH_METHOD: CASH_METHOD
12573
+ });
12574
+
12575
+ var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
12576
+
12577
+ var regex_constants = /*#__PURE__*/Object.freeze({
12578
+ __proto__: null,
12579
+ URL_TEST: URL_TEST
12580
+ });
12581
+
12582
+
12583
+
12584
+ var index$4 = /*#__PURE__*/Object.freeze({
12585
+ __proto__: null,
12586
+ colors: colors,
12587
+ general: general$1,
12588
+ regexConstants: regex_constants,
12589
+ styleConstants: style_constants,
12590
+ fontWeights: style_constants
12591
+ });
12592
+
12593
+ var WHITE$1 = WHITE,
12594
+ TRANSPARENT$1 = TRANSPARENT,
12595
+ SAPPHIRE_BLUE$1 = SAPPHIRE_BLUE,
12596
+ PEACOCK_BLUE$1 = PEACOCK_BLUE,
12597
+ MATISSE_BLUE$1 = MATISSE_BLUE,
12598
+ RASPBERRY$1 = RASPBERRY,
12599
+ ERROR_COLOR$1 = ERROR_COLOR;
12600
+ var LINK_TEXT_DECORATION$1 = LINK_TEXT_DECORATION;
12560
12601
  var padding = {
12561
12602
  primary: "0.75rem 1.5rem",
12562
12603
  secondary: "0.75rem 1.5rem",
@@ -12569,25 +12610,21 @@ var padding = {
12569
12610
  danger: "0.75rem 1.5rem",
12570
12611
  dangerSecondary: "0.75rem 1.5rem",
12571
12612
  whiteSecondary: "0.75rem 2rem",
12572
- whitePrimary: "1.125rem 0.75rem",
12573
- disabled: "0.75rem 1.5rem",
12574
- smallDisabled: "0.75rem 1rem"
12613
+ whitePrimary: "1.125rem 0.75rem"
12575
12614
  };
12576
12615
  var color$1 = {
12577
- primary: WHITE,
12578
- secondary: MATISSE_BLUE,
12579
- back: MATISSE_BLUE,
12580
- smallPrimary: WHITE,
12581
- smallSecondary: MATISSE_BLUE,
12582
- smallGhost: MATISSE_BLUE,
12583
- ghost: MATISSE_BLUE,
12584
- tertiary: MATISSE_BLUE,
12585
- danger: WHITE,
12586
- dangerSecondary: ERROR_COLOR,
12587
- whiteSecondary: WHITE,
12588
- whitePrimary: WHITE,
12589
- disabled: MANATEE_GREY,
12590
- smallDisabled: MANATEE_GREY
12616
+ primary: WHITE$1,
12617
+ secondary: MATISSE_BLUE$1,
12618
+ back: MATISSE_BLUE$1,
12619
+ smallPrimary: WHITE$1,
12620
+ smallSecondary: MATISSE_BLUE$1,
12621
+ smallGhost: MATISSE_BLUE$1,
12622
+ ghost: MATISSE_BLUE$1,
12623
+ tertiary: MATISSE_BLUE$1,
12624
+ danger: WHITE$1,
12625
+ dangerSecondary: ERROR_COLOR$1,
12626
+ whiteSecondary: WHITE$1,
12627
+ whitePrimary: WHITE$1
12591
12628
  };
12592
12629
  var fontSizeVariant = {
12593
12630
  primary: "pS",
@@ -12601,9 +12638,7 @@ var fontSizeVariant = {
12601
12638
  danger: "pS",
12602
12639
  dangerSecondary: "pS",
12603
12640
  whiteSecondary: "pS",
12604
- whitePrimary: "pS",
12605
- disabled: "pS",
12606
- smallDisabled: "pS"
12641
+ whitePrimary: "pS"
12607
12642
  };
12608
12643
  var fontWeight = {
12609
12644
  primary: "600",
@@ -12617,9 +12652,7 @@ var fontWeight = {
12617
12652
  danger: "600",
12618
12653
  dangerSecondary: "600",
12619
12654
  whiteSecondary: "600",
12620
- whitePrimary: "600",
12621
- disabled: "600",
12622
- smallDisabled: "600"
12655
+ whitePrimary: "600"
12623
12656
  };
12624
12657
  var height = {
12625
12658
  primary: "3rem",
@@ -12633,9 +12666,7 @@ var height = {
12633
12666
  danger: "3rem",
12634
12667
  dangerSecondary: "3rem",
12635
12668
  whiteSecondary: "3rem",
12636
- whitePrimary: "auto",
12637
- disabled: "3rem",
12638
- smallDisabled: "2.5rem"
12669
+ whitePrimary: "auto"
12639
12670
  };
12640
12671
  var minWidth = {
12641
12672
  primary: "130px",
@@ -12649,137 +12680,133 @@ var minWidth = {
12649
12680
  danger: "130px",
12650
12681
  dangerSecondary: "157px",
12651
12682
  whiteSecondary: "160px",
12652
- whitePrimary: "130px",
12653
- disabled: "130px",
12654
- smallDisabled: "100px"
12683
+ whitePrimary: "130px"
12684
+ };
12685
+ var textDecoration = {
12686
+ primary: "none",
12687
+ secondary: "none",
12688
+ back: "none",
12689
+ smallPrimary: "none",
12690
+ smallSecondary: "none",
12691
+ smallGhost: LINK_TEXT_DECORATION$1,
12692
+ ghost: LINK_TEXT_DECORATION$1,
12693
+ tertiary: "none",
12694
+ danger: "none",
12695
+ dangerSecondary: "none",
12696
+ whiteSecondary: "none",
12697
+ whitePrimary: "none"
12655
12698
  };
12656
12699
  var backgroundColor = {
12657
- primary: MATISSE_BLUE,
12658
- secondary: TRANSPARENT,
12659
- back: TRANSPARENT,
12660
- smallPrimary: MATISSE_BLUE,
12661
- smallSecondary: TRANSPARENT,
12662
- smallGhost: TRANSPARENT,
12663
- ghost: TRANSPARENT,
12664
- tertiary: TRANSPARENT,
12665
- danger: RASPBERRY,
12666
- dangerSecondary: TRANSPARENT,
12667
- whiteSecondary: TRANSPARENT,
12668
- whitePrimary: TRANSPARENT,
12669
- disabled: GRECIAN_GREY,
12670
- smallDisabled: GRECIAN_GREY
12700
+ primary: MATISSE_BLUE$1,
12701
+ secondary: TRANSPARENT$1,
12702
+ back: TRANSPARENT$1,
12703
+ smallPrimary: MATISSE_BLUE$1,
12704
+ smallSecondary: TRANSPARENT$1,
12705
+ smallGhost: TRANSPARENT$1,
12706
+ ghost: TRANSPARENT$1,
12707
+ tertiary: TRANSPARENT$1,
12708
+ danger: RASPBERRY$1,
12709
+ dangerSecondary: TRANSPARENT$1,
12710
+ whiteSecondary: TRANSPARENT$1,
12711
+ whitePrimary: TRANSPARENT$1
12671
12712
  };
12672
12713
  var border = {
12673
- primary: "2px solid " + MATISSE_BLUE,
12674
- secondary: "2px solid " + MATISSE_BLUE,
12675
- back: "2px solid " + MATISSE_BLUE,
12676
- smallPrimary: "2px solid " + MATISSE_BLUE,
12677
- smallSecondary: "2px solid " + MATISSE_BLUE,
12714
+ primary: "2px solid " + MATISSE_BLUE$1,
12715
+ secondary: "2px solid " + MATISSE_BLUE$1,
12716
+ back: "2px solid " + MATISSE_BLUE$1,
12717
+ smallPrimary: "2px solid " + MATISSE_BLUE$1,
12718
+ smallSecondary: "2px solid " + MATISSE_BLUE$1,
12678
12719
  smallGhost: "none",
12679
12720
  ghost: "none",
12680
12721
  tertiary: "none",
12681
- danger: "2px solid " + RASPBERRY,
12682
- dangerSecondary: "2px solid " + ERROR_COLOR,
12683
- whiteSecondary: "2px solid " + WHITE,
12684
- whitePrimary: "2px solid " + TRANSPARENT,
12685
- disabled: "2px solid " + MANATEE_GREY,
12686
- smallDisabled: "2px solid " + MANATEE_GREY
12722
+ danger: "2px solid " + RASPBERRY$1,
12723
+ dangerSecondary: "2px solid " + ERROR_COLOR$1,
12724
+ whiteSecondary: "2px solid " + WHITE$1,
12725
+ whitePrimary: "2px solid " + TRANSPARENT$1
12687
12726
  };
12688
12727
  var hoverBackgroundColor = {
12689
- primary: SAPPHIRE_BLUE,
12728
+ primary: SAPPHIRE_BLUE$1,
12690
12729
  secondary: "#DBEAF0",
12691
- back: TRANSPARENT,
12692
- smallPrimary: SAPPHIRE_BLUE,
12730
+ back: TRANSPARENT$1,
12731
+ smallPrimary: SAPPHIRE_BLUE$1,
12693
12732
  smallSecondary: "#DBEAF0",
12694
- smallGhost: TRANSPARENT,
12695
- ghost: TRANSPARENT,
12696
- tertiary: TRANSPARENT,
12733
+ smallGhost: TRANSPARENT$1,
12734
+ ghost: TRANSPARENT$1,
12735
+ tertiary: TRANSPARENT$1,
12697
12736
  danger: "#BA002C",
12698
12737
  dangerSecondary: "#FAE7EE",
12699
- whiteSecondary: TRANSPARENT,
12700
- whitePrimary: TRANSPARENT,
12701
- disabled: TRANSPARENT,
12702
- smallDisabled: TRANSPARENT
12738
+ whiteSecondary: TRANSPARENT$1,
12739
+ whitePrimary: TRANSPARENT$1
12703
12740
  };
12704
12741
  var hoverBorderColor = {
12705
- primary: SAPPHIRE_BLUE,
12706
- secondary: MATISSE_BLUE,
12742
+ primary: SAPPHIRE_BLUE$1,
12743
+ secondary: MATISSE_BLUE$1,
12707
12744
  back: "#DCEAF1",
12708
- smallPrimary: SAPPHIRE_BLUE,
12709
- smallSecondary: MATISSE_BLUE,
12710
- smallGhost: TRANSPARENT,
12711
- ghost: TRANSPARENT,
12712
- tertiary: TRANSPARENT,
12745
+ smallPrimary: SAPPHIRE_BLUE$1,
12746
+ smallSecondary: MATISSE_BLUE$1,
12747
+ smallGhost: TRANSPARENT$1,
12748
+ ghost: TRANSPARENT$1,
12749
+ tertiary: TRANSPARENT$1,
12713
12750
  danger: "#BA002C",
12714
12751
  dangerSecondary: "#B10541",
12715
- whiteSecondary: "2px solid " + TRANSPARENT,
12716
- whitePrimary: "2px solid " + TRANSPARENT,
12717
- disabled: MANATEE_GREY,
12718
- smallDisabled: MANATEE_GREY
12752
+ whiteSecondary: "2px solid " + TRANSPARENT$1,
12753
+ whitePrimary: "2px solid " + TRANSPARENT$1
12719
12754
  };
12720
12755
  var hoverColor = {
12721
- primary: WHITE,
12722
- secondary: SAPPHIRE_BLUE,
12723
- back: SAPPHIRE_BLUE,
12724
- smallPrimary: WHITE,
12725
- smallSecondary: SAPPHIRE_BLUE,
12726
- smallGhost: SAPPHIRE_BLUE,
12727
- ghost: SAPPHIRE_BLUE,
12728
- tertiary: SAPPHIRE_BLUE,
12729
- danger: WHITE,
12756
+ primary: WHITE$1,
12757
+ secondary: SAPPHIRE_BLUE$1,
12758
+ back: SAPPHIRE_BLUE$1,
12759
+ smallPrimary: WHITE$1,
12760
+ smallSecondary: SAPPHIRE_BLUE$1,
12761
+ smallGhost: SAPPHIRE_BLUE$1,
12762
+ ghost: SAPPHIRE_BLUE$1,
12763
+ tertiary: SAPPHIRE_BLUE$1,
12764
+ danger: WHITE$1,
12730
12765
  dangerSecondary: "#B10541",
12731
- whiteSecondary: WHITE,
12732
- whitePrimary: WHITE,
12733
- disabled: MANATEE_GREY,
12734
- smallDisabled: MANATEE_GREY
12766
+ whiteSecondary: WHITE$1,
12767
+ whitePrimary: WHITE$1
12735
12768
  };
12736
12769
  var activeBackgroundColor = {
12737
- primary: PEACOCK_BLUE,
12770
+ primary: PEACOCK_BLUE$1,
12738
12771
  secondary: "#B8D5E1",
12739
- back: TRANSPARENT,
12740
- smallPrimary: PEACOCK_BLUE,
12772
+ back: TRANSPARENT$1,
12773
+ smallPrimary: PEACOCK_BLUE$1,
12741
12774
  smallSecondary: "#B8D5E1",
12742
- smallGhost: TRANSPARENT,
12743
- ghost: TRANSPARENT,
12744
- tertiary: TRANSPARENT,
12775
+ smallGhost: TRANSPARENT$1,
12776
+ ghost: TRANSPARENT$1,
12777
+ tertiary: TRANSPARENT$1,
12745
12778
  danger: "#870000",
12746
12779
  dangerSecondary: "#FAE7EE",
12747
- whiteSecondary: TRANSPARENT,
12748
- whitePrimary: TRANSPARENT,
12749
- disabled: TRANSPARENT,
12750
- smallDisabled: TRANSPARENT
12780
+ whiteSecondary: TRANSPARENT$1,
12781
+ whitePrimary: TRANSPARENT$1
12751
12782
  };
12752
12783
  var activeBorderColor = {
12753
- primary: PEACOCK_BLUE,
12754
- secondary: MATISSE_BLUE,
12755
- back: PEACOCK_BLUE,
12756
- smallPrimary: PEACOCK_BLUE,
12757
- smallSecondary: MATISSE_BLUE,
12758
- smallGhost: TRANSPARENT,
12759
- ghost: TRANSPARENT,
12760
- tertiary: TRANSPARENT,
12784
+ primary: PEACOCK_BLUE$1,
12785
+ secondary: MATISSE_BLUE$1,
12786
+ back: PEACOCK_BLUE$1,
12787
+ smallPrimary: PEACOCK_BLUE$1,
12788
+ smallSecondary: MATISSE_BLUE$1,
12789
+ smallGhost: TRANSPARENT$1,
12790
+ ghost: TRANSPARENT$1,
12791
+ tertiary: TRANSPARENT$1,
12761
12792
  danger: "#870000",
12762
12793
  dangerSecondary: "#910029",
12763
- whiteSecondary: "2px solid " + TRANSPARENT,
12764
- whitePrimary: "2px solid " + TRANSPARENT,
12765
- disabled: TRANSPARENT,
12766
- smallDisabled: TRANSPARENT
12794
+ whiteSecondary: "2px solid " + TRANSPARENT$1,
12795
+ whitePrimary: "2px solid " + TRANSPARENT$1
12767
12796
  };
12768
12797
  var activeColor = {
12769
- primary: WHITE,
12770
- secondary: MATISSE_BLUE,
12771
- back: PEACOCK_BLUE,
12772
- smallPrimary: WHITE,
12773
- smallSecondary: PEACOCK_BLUE,
12774
- smallGhost: PEACOCK_BLUE,
12775
- ghost: PEACOCK_BLUE,
12776
- tertiary: PEACOCK_BLUE,
12777
- danger: WHITE,
12798
+ primary: WHITE$1,
12799
+ secondary: MATISSE_BLUE$1,
12800
+ back: PEACOCK_BLUE$1,
12801
+ smallPrimary: WHITE$1,
12802
+ smallSecondary: PEACOCK_BLUE$1,
12803
+ smallGhost: PEACOCK_BLUE$1,
12804
+ ghost: PEACOCK_BLUE$1,
12805
+ tertiary: PEACOCK_BLUE$1,
12806
+ danger: WHITE$1,
12778
12807
  dangerSecondary: "#910029",
12779
- whiteSecondary: WHITE,
12780
- whitePrimary: WHITE,
12781
- disabled: MANATEE_GREY,
12782
- smallDisabled: MANATEE_GREY
12808
+ whiteSecondary: WHITE$1,
12809
+ whitePrimary: WHITE$1
12783
12810
  };
12784
12811
  var fallbackValues$1 = {
12785
12812
  padding: padding,
@@ -12788,6 +12815,7 @@ var fallbackValues$1 = {
12788
12815
  fontWeight: fontWeight,
12789
12816
  height: height,
12790
12817
  minWidth: minWidth,
12818
+ textDecoration: textDecoration,
12791
12819
  backgroundColor: backgroundColor,
12792
12820
  border: border,
12793
12821
  hoverBackgroundColor: hoverBackgroundColor,
@@ -12911,7 +12939,7 @@ var Spinner = function Spinner(_ref) {
12911
12939
 
12912
12940
  Note: the children prop is only used if contentOverride is set to true, in which case
12913
12941
  the text prop is ignored.
12914
-
12942
+
12915
12943
  */
12916
12944
 
12917
12945
  var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
@@ -12939,13 +12967,12 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12939
12967
  children = _ref2.children,
12940
12968
  extraDisabledStyles = _ref2.extraDisabledStyles,
12941
12969
  rest = _objectWithoutProperties(_ref2, _excluded$h);
12942
- var isGhostVariant = variant === "ghost" || variant === "smallGhost";
12943
12970
  var themeContext = React.useContext(styled.ThemeContext);
12944
12971
  var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
12945
12972
  var isMobile = themeContext.isMobile;
12946
- 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 ");
12947
- 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 ");
12948
- var disabledStyles = "\n background-color: ".concat(isGhostVariant ? "transparent;" : "#6D717E;", ";\n border-color: ").concat(isGhostVariant ? "transparent;" : "#6D717E;", ";\n color: ").concat(isGhostVariant ? "#6D717E;" : "#FFFFFF", ";\n cursor: default;\n &:focus {\n outline: 3px solid #6D717E;\n outline-offset: 2px;\n }\n ").concat(extraDisabledStyles, "\n ");
12973
+ 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 ");
12974
+ var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n ");
12975
+ 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 ");
12949
12976
  return /*#__PURE__*/React__default.createElement(Box, _extends({
12950
12977
  ref: ref,
12951
12978
  variant: variant,
@@ -12975,8 +13002,9 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12975
13002
  weight: themeValues.fontWeight,
12976
13003
  variant: themeValues.fontSizeVariant,
12977
13004
  color: themeValues.color,
13005
+ textDecoration: themeValues.textDecoration,
12978
13006
  textWrap: textWrap,
12979
- extraStyles: disabled ? textExtraStyles + disabledStyles : textExtraStyles
13007
+ extraStyles: textExtraStyles
12980
13008
  }, text)));
12981
13009
  });
12982
13010
 
@@ -18280,6 +18308,84 @@ var MultiCartIcon = function MultiCartIcon(_ref) {
18280
18308
  }));
18281
18309
  };
18282
18310
 
18311
+ var _excluded$j = ["iconFill", "iconWidth", "iconHeight"];
18312
+ var CloseIcon = function CloseIcon(_ref) {
18313
+ var _ref$iconFill = _ref.iconFill,
18314
+ iconFill = _ref$iconFill === void 0 ? "#3B414D" : _ref$iconFill,
18315
+ _ref$iconWidth = _ref.iconWidth,
18316
+ iconWidth = _ref$iconWidth === void 0 ? "24" : _ref$iconWidth,
18317
+ _ref$iconHeight = _ref.iconHeight,
18318
+ iconHeight = _ref$iconHeight === void 0 ? "24" : _ref$iconHeight,
18319
+ rest = _objectWithoutProperties(_ref, _excluded$j);
18320
+ return /*#__PURE__*/React__default.createElement("svg", _extends({
18321
+ xmlns: "http://www.w3.org/2000/svg",
18322
+ width: iconWidth,
18323
+ height: iconHeight,
18324
+ viewBox: "0 0 24 24",
18325
+ fill: "none"
18326
+ }, rest), /*#__PURE__*/React__default.createElement("title", null, "Close Icon"), /*#__PURE__*/React__default.createElement("path", {
18327
+ fillRule: "evenodd",
18328
+ clipRule: "evenodd",
18329
+ d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
18330
+ fill: iconFill
18331
+ }), /*#__PURE__*/React__default.createElement("mask", {
18332
+ id: "mask0_3727_16765",
18333
+ style: {
18334
+ maskType: "luminance"
18335
+ },
18336
+ maskUnits: "userSpaceOnUse",
18337
+ x: "5",
18338
+ y: "5",
18339
+ width: "14",
18340
+ height: "14"
18341
+ }, /*#__PURE__*/React__default.createElement("path", {
18342
+ fillRule: "evenodd",
18343
+ clipRule: "evenodd",
18344
+ d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
18345
+ fill: "none"
18346
+ })), /*#__PURE__*/React__default.createElement("g", {
18347
+ mask: "url(#mask0_3727_16765)"
18348
+ }, /*#__PURE__*/React__default.createElement("path", {
18349
+ d: "M0 0H24V24H0V0Z",
18350
+ fill: iconFill
18351
+ })));
18352
+ };
18353
+
18354
+ var TrashIconV2 = function TrashIconV2(_ref) {
18355
+ var themeValues = _ref.themeValues,
18356
+ iconFill = _ref.iconFill;
18357
+ return /*#__PURE__*/React__default.createElement("svg", {
18358
+ xmlns: "http://www.w3.org/2000/svg",
18359
+ width: "18",
18360
+ height: "18",
18361
+ viewBox: "0 0 18 18",
18362
+ fill: "none"
18363
+ }, /*#__PURE__*/React__default.createElement("path", {
18364
+ fillRule: "evenodd",
18365
+ clipRule: "evenodd",
18366
+ d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
18367
+ fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
18368
+ }), /*#__PURE__*/React__default.createElement("mask", {
18369
+ id: "mask0_4292_11876",
18370
+ style: {
18371
+ maskType: "luminance"
18372
+ },
18373
+ maskUnits: "userSpaceOnUse",
18374
+ x: "4",
18375
+ y: "3",
18376
+ width: "10",
18377
+ height: "12"
18378
+ }, /*#__PURE__*/React__default.createElement("path", {
18379
+ fillRule: "evenodd",
18380
+ clipRule: "evenodd",
18381
+ d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
18382
+ fill: "white"
18383
+ })), /*#__PURE__*/React__default.createElement("g", {
18384
+ mask: "url(#mask0_4292_11876)"
18385
+ }));
18386
+ };
18387
+ var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
18388
+
18283
18389
  var color$2 = "#15749D";
18284
18390
  var hoverColor$1 = "#116285";
18285
18391
  var activeColor$1 = "#0E506D";
@@ -18926,7 +19032,7 @@ var mobileFallbackValues = {
18926
19032
  };
18927
19033
  var MOBILE_BREAKPOINT = 768;
18928
19034
 
18929
- var _excluded$j = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
19035
+ var _excluded$k = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
18930
19036
 
18931
19037
  /*
18932
19038
  New responsive text component for Title elements
@@ -18973,7 +19079,7 @@ var Title = function Title(_ref) {
18973
19079
  as = _ref$as === void 0 ? "h1" : _ref$as,
18974
19080
  dataQa = _ref.dataQa,
18975
19081
  children = _ref.children,
18976
- rest = _objectWithoutProperties(_ref, _excluded$j);
19082
+ rest = _objectWithoutProperties(_ref, _excluded$k);
18977
19083
  return /*#__PURE__*/React__default.createElement(TitleText, _extends({
18978
19084
  variant: variant,
18979
19085
  as: as,
@@ -19015,15 +19121,13 @@ var background$1 = {
19015
19121
  info: "".concat(INFO_BLUE),
19016
19122
  warn: "".concat(HALF_COLONIAL_WHITE),
19017
19123
  primary: "".concat(CORNFLOWER_BLUE),
19018
- success: "".concat(HINT_GREEN),
19019
- disabled: "".concat(GRECIAN_GREY)
19124
+ success: "".concat(HINT_GREEN)
19020
19125
  };
19021
19126
  var color$4 = {
19022
19127
  info: "".concat(MATISSE_BLUE),
19023
19128
  warn: "".concat(ZEST_ORANGE),
19024
19129
  primary: "".concat(ROYAL_BLUE_VIVID),
19025
- success: "".concat(SEA_GREEN),
19026
- disabled: "".concat(MANATEE_GREY)
19130
+ success: "".concat(SEA_GREEN)
19027
19131
  };
19028
19132
  var fallbackValues$7 = {
19029
19133
  background: background$1,
@@ -19152,6 +19256,7 @@ function _wrapNativeSuper(Class) {
19152
19256
  }
19153
19257
 
19154
19258
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19259
+
19155
19260
  /**
19156
19261
  * Parse errors.md and turn it into a simple hash of code: message
19157
19262
  * @private
@@ -19236,71 +19341,84 @@ var ERRORS = {
19236
19341
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
19237
19342
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
19238
19343
  };
19239
-
19240
19344
  /**
19241
19345
  * super basic version of sprintf
19242
19346
  * @private
19243
19347
  */
19348
+
19244
19349
  function format() {
19245
19350
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19246
19351
  args[_key] = arguments[_key];
19247
19352
  }
19353
+
19248
19354
  var a = args[0];
19249
19355
  var b = [];
19250
19356
  var c;
19357
+
19251
19358
  for (c = 1; c < args.length; c += 1) {
19252
19359
  b.push(args[c]);
19253
19360
  }
19361
+
19254
19362
  b.forEach(function (d) {
19255
19363
  a = a.replace(/%[a-z]/, d);
19256
19364
  });
19257
19365
  return a;
19258
19366
  }
19259
-
19260
19367
  /**
19261
19368
  * Create an error file out of errors.md for development and a simple web link to the full errors
19262
19369
  * in production mode.
19263
19370
  * @private
19264
19371
  */
19372
+
19373
+
19265
19374
  var PolishedError = /*#__PURE__*/function (_Error) {
19266
19375
  _inheritsLoose(PolishedError, _Error);
19376
+
19267
19377
  function PolishedError(code) {
19268
19378
  var _this;
19379
+
19269
19380
  if (process.env.NODE_ENV === 'production') {
19270
19381
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
19271
19382
  } else {
19272
19383
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19273
19384
  args[_key2 - 1] = arguments[_key2];
19274
19385
  }
19386
+
19275
19387
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19276
19388
  }
19389
+
19277
19390
  return _assertThisInitialized(_this);
19278
19391
  }
19392
+
19279
19393
  return PolishedError;
19280
19394
  }( /*#__PURE__*/_wrapNativeSuper(Error));
19281
19395
 
19282
19396
  function colorToInt(color) {
19283
19397
  return Math.round(color * 255);
19284
19398
  }
19399
+
19285
19400
  function convertToInt(red, green, blue) {
19286
19401
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19287
19402
  }
19403
+
19288
19404
  function hslToRgb(hue, saturation, lightness, convert) {
19289
19405
  if (convert === void 0) {
19290
19406
  convert = convertToInt;
19291
19407
  }
19408
+
19292
19409
  if (saturation === 0) {
19293
19410
  // achromatic
19294
19411
  return convert(lightness, lightness, lightness);
19295
- }
19412
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19413
+
19296
19414
 
19297
- // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19298
19415
  var huePrime = (hue % 360 + 360) % 360 / 60;
19299
19416
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19300
19417
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19301
19418
  var red = 0;
19302
19419
  var green = 0;
19303
19420
  var blue = 0;
19421
+
19304
19422
  if (huePrime >= 0 && huePrime < 1) {
19305
19423
  red = chroma;
19306
19424
  green = secondComponent;
@@ -19320,6 +19438,7 @@ function hslToRgb(hue, saturation, lightness, convert) {
19320
19438
  red = chroma;
19321
19439
  blue = secondComponent;
19322
19440
  }
19441
+
19323
19442
  var lightnessModification = lightness - chroma / 2;
19324
19443
  var finalRed = red + lightnessModification;
19325
19444
  var finalGreen = green + lightnessModification;
@@ -19477,11 +19596,11 @@ var namedColorMap = {
19477
19596
  yellow: 'ff0',
19478
19597
  yellowgreen: '9acd32'
19479
19598
  };
19480
-
19481
19599
  /**
19482
19600
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
19483
19601
  * @private
19484
19602
  */
19603
+
19485
19604
  function nameToHex(color) {
19486
19605
  if (typeof color !== 'string') return color;
19487
19606
  var normalizedColorName = color.toLowerCase();
@@ -19496,7 +19615,6 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
19496
19615
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19497
19616
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
19498
19617
  var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19499
-
19500
19618
  /**
19501
19619
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
19502
19620
  * if want to extract a color component. With the color util `toColorString` you
@@ -19508,11 +19626,14 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
19508
19626
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
19509
19627
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
19510
19628
  */
19629
+
19511
19630
  function parseToRgb(color) {
19512
19631
  if (typeof color !== 'string') {
19513
19632
  throw new PolishedError(3);
19514
19633
  }
19634
+
19515
19635
  var normalizedColor = nameToHex(color);
19636
+
19516
19637
  if (normalizedColor.match(hexRegex)) {
19517
19638
  return {
19518
19639
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -19520,6 +19641,7 @@ function parseToRgb(color) {
19520
19641
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
19521
19642
  };
19522
19643
  }
19644
+
19523
19645
  if (normalizedColor.match(hexRgbaRegex)) {
19524
19646
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
19525
19647
  return {
@@ -19529,6 +19651,7 @@ function parseToRgb(color) {
19529
19651
  alpha: alpha
19530
19652
  };
19531
19653
  }
19654
+
19532
19655
  if (normalizedColor.match(reducedHexRegex)) {
19533
19656
  return {
19534
19657
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -19536,8 +19659,10 @@ function parseToRgb(color) {
19536
19659
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
19537
19660
  };
19538
19661
  }
19662
+
19539
19663
  if (normalizedColor.match(reducedRgbaHexRegex)) {
19540
19664
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
19665
+
19541
19666
  return {
19542
19667
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
19543
19668
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -19545,7 +19670,9 @@ function parseToRgb(color) {
19545
19670
  alpha: _alpha
19546
19671
  };
19547
19672
  }
19673
+
19548
19674
  var rgbMatched = rgbRegex.exec(normalizedColor);
19675
+
19549
19676
  if (rgbMatched) {
19550
19677
  return {
19551
19678
  red: parseInt("" + rgbMatched[1], 10),
@@ -19553,7 +19680,9 @@ function parseToRgb(color) {
19553
19680
  blue: parseInt("" + rgbMatched[3], 10)
19554
19681
  };
19555
19682
  }
19683
+
19556
19684
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
19685
+
19557
19686
  if (rgbaMatched) {
19558
19687
  return {
19559
19688
  red: parseInt("" + rgbaMatched[1], 10),
@@ -19562,32 +19691,44 @@ function parseToRgb(color) {
19562
19691
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
19563
19692
  };
19564
19693
  }
19694
+
19565
19695
  var hslMatched = hslRegex.exec(normalizedColor);
19696
+
19566
19697
  if (hslMatched) {
19567
19698
  var hue = parseInt("" + hslMatched[1], 10);
19568
19699
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
19569
19700
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
19570
19701
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
19571
19702
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
19703
+
19572
19704
  if (!hslRgbMatched) {
19573
19705
  throw new PolishedError(4, normalizedColor, rgbColorString);
19574
19706
  }
19707
+
19575
19708
  return {
19576
19709
  red: parseInt("" + hslRgbMatched[1], 10),
19577
19710
  green: parseInt("" + hslRgbMatched[2], 10),
19578
19711
  blue: parseInt("" + hslRgbMatched[3], 10)
19579
19712
  };
19580
19713
  }
19714
+
19581
19715
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
19716
+
19582
19717
  if (hslaMatched) {
19583
19718
  var _hue = parseInt("" + hslaMatched[1], 10);
19719
+
19584
19720
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
19721
+
19585
19722
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
19723
+
19586
19724
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
19725
+
19587
19726
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
19727
+
19588
19728
  if (!_hslRgbMatched) {
19589
19729
  throw new PolishedError(4, normalizedColor, _rgbColorString);
19590
19730
  }
19731
+
19591
19732
  return {
19592
19733
  red: parseInt("" + _hslRgbMatched[1], 10),
19593
19734
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -19595,80 +19736,8 @@ function parseToRgb(color) {
19595
19736
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
19596
19737
  };
19597
19738
  }
19598
- throw new PolishedError(5);
19599
- }
19600
-
19601
- function rgbToHsl(color) {
19602
- // make sure rgb are contained in a set of [0, 255]
19603
- var red = color.red / 255;
19604
- var green = color.green / 255;
19605
- var blue = color.blue / 255;
19606
- var max = Math.max(red, green, blue);
19607
- var min = Math.min(red, green, blue);
19608
- var lightness = (max + min) / 2;
19609
- if (max === min) {
19610
- // achromatic
19611
- if (color.alpha !== undefined) {
19612
- return {
19613
- hue: 0,
19614
- saturation: 0,
19615
- lightness: lightness,
19616
- alpha: color.alpha
19617
- };
19618
- } else {
19619
- return {
19620
- hue: 0,
19621
- saturation: 0,
19622
- lightness: lightness
19623
- };
19624
- }
19625
- }
19626
- var hue;
19627
- var delta = max - min;
19628
- var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
19629
- switch (max) {
19630
- case red:
19631
- hue = (green - blue) / delta + (green < blue ? 6 : 0);
19632
- break;
19633
- case green:
19634
- hue = (blue - red) / delta + 2;
19635
- break;
19636
- default:
19637
- // blue case
19638
- hue = (red - green) / delta + 4;
19639
- break;
19640
- }
19641
- hue *= 60;
19642
- if (color.alpha !== undefined) {
19643
- return {
19644
- hue: hue,
19645
- saturation: saturation,
19646
- lightness: lightness,
19647
- alpha: color.alpha
19648
- };
19649
- }
19650
- return {
19651
- hue: hue,
19652
- saturation: saturation,
19653
- lightness: lightness
19654
- };
19655
- }
19656
19739
 
19657
- /**
19658
- * Returns an HslColor or HslaColor object. This utility function is only useful
19659
- * if want to extract a color component. With the color util `toColorString` you
19660
- * can convert a HslColor or HslaColor object back to a string.
19661
- *
19662
- * @example
19663
- * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
19664
- * const color1 = parseToHsl('rgb(255, 0, 0)');
19665
- * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
19666
- * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
19667
- */
19668
- function parseToHsl(color) {
19669
- // Note: At a later stage we can optimize this function as right now a hsl
19670
- // color would be parsed converted to rgb values and converted back to hsl.
19671
- return rgbToHsl(parseToRgb(color));
19740
+ throw new PolishedError(5);
19672
19741
  }
19673
19742
 
19674
19743
  /**
@@ -19679,8 +19748,10 @@ var reduceHexValue = function reduceHexValue(value) {
19679
19748
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
19680
19749
  return "#" + value[1] + value[3] + value[5];
19681
19750
  }
19751
+
19682
19752
  return value;
19683
19753
  };
19754
+
19684
19755
  var reduceHexValue$1 = reduceHexValue;
19685
19756
 
19686
19757
  function numberToHex(value) {
@@ -19688,83 +19759,6 @@ function numberToHex(value) {
19688
19759
  return hex.length === 1 ? "0" + hex : hex;
19689
19760
  }
19690
19761
 
19691
- function colorToHex(color) {
19692
- return numberToHex(Math.round(color * 255));
19693
- }
19694
- function convertToHex(red, green, blue) {
19695
- return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
19696
- }
19697
- function hslToHex(hue, saturation, lightness) {
19698
- return hslToRgb(hue, saturation, lightness, convertToHex);
19699
- }
19700
-
19701
- /**
19702
- * Returns a string value for the color. The returned result is the smallest possible hex notation.
19703
- *
19704
- * @example
19705
- * // Styles as object usage
19706
- * const styles = {
19707
- * background: hsl(359, 0.75, 0.4),
19708
- * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
19709
- * }
19710
- *
19711
- * // styled-components usage
19712
- * const div = styled.div`
19713
- * background: ${hsl(359, 0.75, 0.4)};
19714
- * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
19715
- * `
19716
- *
19717
- * // CSS in JS Output
19718
- *
19719
- * element {
19720
- * background: "#b3191c";
19721
- * background: "#b3191c";
19722
- * }
19723
- */
19724
- function hsl(value, saturation, lightness) {
19725
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
19726
- return hslToHex(value, saturation, lightness);
19727
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
19728
- return hslToHex(value.hue, value.saturation, value.lightness);
19729
- }
19730
- throw new PolishedError(1);
19731
- }
19732
-
19733
- /**
19734
- * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
19735
- *
19736
- * @example
19737
- * // Styles as object usage
19738
- * const styles = {
19739
- * background: hsla(359, 0.75, 0.4, 0.7),
19740
- * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
19741
- * background: hsla(359, 0.75, 0.4, 1),
19742
- * }
19743
- *
19744
- * // styled-components usage
19745
- * const div = styled.div`
19746
- * background: ${hsla(359, 0.75, 0.4, 0.7)};
19747
- * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
19748
- * background: ${hsla(359, 0.75, 0.4, 1)};
19749
- * `
19750
- *
19751
- * // CSS in JS Output
19752
- *
19753
- * element {
19754
- * background: "rgba(179,25,28,0.7)";
19755
- * background: "rgba(179,25,28,0.7)";
19756
- * background: "#b3191c";
19757
- * }
19758
- */
19759
- function hsla$1(value, saturation, lightness, alpha) {
19760
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
19761
- return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
19762
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
19763
- return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
19764
- }
19765
- throw new PolishedError(2);
19766
- }
19767
-
19768
19762
  /**
19769
19763
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
19770
19764
  *
@@ -19794,6 +19788,7 @@ function rgb(value, green, blue) {
19794
19788
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
19795
19789
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
19796
19790
  }
19791
+
19797
19792
  throw new PolishedError(6);
19798
19793
  }
19799
19794
 
@@ -19840,60 +19835,8 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
19840
19835
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
19841
19836
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
19842
19837
  }
19843
- throw new PolishedError(7);
19844
- }
19845
-
19846
- var isRgb = function isRgb(color) {
19847
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
19848
- };
19849
- var isRgba$1 = function isRgba(color) {
19850
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
19851
- };
19852
- var isHsl = function isHsl(color) {
19853
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
19854
- };
19855
- var isHsla$1 = function isHsla(color) {
19856
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
19857
- };
19858
19838
 
19859
- /**
19860
- * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
19861
- * This util is useful in case you only know on runtime which color object is
19862
- * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
19863
- *
19864
- * @example
19865
- * // Styles as object usage
19866
- * const styles = {
19867
- * background: toColorString({ red: 255, green: 205, blue: 100 }),
19868
- * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
19869
- * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
19870
- * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
19871
- * }
19872
- *
19873
- * // styled-components usage
19874
- * const div = styled.div`
19875
- * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
19876
- * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
19877
- * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
19878
- * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
19879
- * `
19880
- *
19881
- * // CSS in JS Output
19882
- * element {
19883
- * background: "#ffcd64";
19884
- * background: "rgba(255,205,100,0.72)";
19885
- * background: "#00f";
19886
- * background: "rgba(179,25,25,0.72)";
19887
- * }
19888
- */
19889
-
19890
- function toColorString(color) {
19891
- if (typeof color !== 'object') throw new PolishedError(8);
19892
- if (isRgba$1(color)) return rgba$1(color);
19893
- if (isRgb(color)) return rgb(color);
19894
- if (isHsla$1(color)) return hsla$1(color);
19895
- if (isHsl(color)) return hsl(color);
19896
- throw new PolishedError(8);
19839
+ throw new PolishedError(7);
19897
19840
  }
19898
19841
 
19899
19842
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
@@ -19906,156 +19849,14 @@ function curried(f, length, acc) {
19906
19849
  var combined = acc.concat(Array.prototype.slice.call(arguments));
19907
19850
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
19908
19851
  };
19909
- }
19852
+ } // eslint-disable-next-line no-redeclare
19853
+
19910
19854
 
19911
- // eslint-disable-next-line no-redeclare
19912
19855
  function curry(f) {
19913
19856
  // eslint-disable-line no-redeclare
19914
19857
  return curried(f, f.length, []);
19915
19858
  }
19916
19859
 
19917
- /**
19918
- * Changes the hue of the color. Hue is a number between 0 to 360. The first
19919
- * argument for adjustHue is the amount of degrees the color is rotated around
19920
- * the color wheel, always producing a positive hue value.
19921
- *
19922
- * @example
19923
- * // Styles as object usage
19924
- * const styles = {
19925
- * background: adjustHue(180, '#448'),
19926
- * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
19927
- * }
19928
- *
19929
- * // styled-components usage
19930
- * const div = styled.div`
19931
- * background: ${adjustHue(180, '#448')};
19932
- * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
19933
- * `
19934
- *
19935
- * // CSS in JS Output
19936
- * element {
19937
- * background: "#888844";
19938
- * background: "rgba(136,136,68,0.7)";
19939
- * }
19940
- */
19941
- function adjustHue(degree, color) {
19942
- if (color === 'transparent') return color;
19943
- var hslColor = parseToHsl(color);
19944
- return toColorString(_extends$1({}, hslColor, {
19945
- hue: hslColor.hue + parseFloat(degree)
19946
- }));
19947
- }
19948
-
19949
- // prettier-ignore
19950
- var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
19951
-
19952
- function guard(lowerBoundary, upperBoundary, value) {
19953
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
19954
- }
19955
-
19956
- /**
19957
- * Returns a string value for the darkened color.
19958
- *
19959
- * @example
19960
- * // Styles as object usage
19961
- * const styles = {
19962
- * background: darken(0.2, '#FFCD64'),
19963
- * background: darken('0.2', 'rgba(255,205,100,0.7)'),
19964
- * }
19965
- *
19966
- * // styled-components usage
19967
- * const div = styled.div`
19968
- * background: ${darken(0.2, '#FFCD64')};
19969
- * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
19970
- * `
19971
- *
19972
- * // CSS in JS Output
19973
- *
19974
- * element {
19975
- * background: "#ffbd31";
19976
- * background: "rgba(255,189,49,0.7)";
19977
- * }
19978
- */
19979
- function darken(amount, color) {
19980
- if (color === 'transparent') return color;
19981
- var hslColor = parseToHsl(color);
19982
- return toColorString(_extends$1({}, hslColor, {
19983
- lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
19984
- }));
19985
- }
19986
-
19987
- // prettier-ignore
19988
- var curriedDarken = curry /* ::<number | string, string, string> */(darken);
19989
-
19990
- /**
19991
- * Decreases the intensity of a color. Its range is between 0 to 1. The first
19992
- * argument of the desaturate function is the amount by how much the color
19993
- * intensity should be decreased.
19994
- *
19995
- * @example
19996
- * // Styles as object usage
19997
- * const styles = {
19998
- * background: desaturate(0.2, '#CCCD64'),
19999
- * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
20000
- * }
20001
- *
20002
- * // styled-components usage
20003
- * const div = styled.div`
20004
- * background: ${desaturate(0.2, '#CCCD64')};
20005
- * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
20006
- * `
20007
- *
20008
- * // CSS in JS Output
20009
- * element {
20010
- * background: "#b8b979";
20011
- * background: "rgba(184,185,121,0.7)";
20012
- * }
20013
- */
20014
- function desaturate(amount, color) {
20015
- if (color === 'transparent') return color;
20016
- var hslColor = parseToHsl(color);
20017
- return toColorString(_extends$1({}, hslColor, {
20018
- saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
20019
- }));
20020
- }
20021
-
20022
- // prettier-ignore
20023
- var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
20024
-
20025
- /**
20026
- * Returns a string value for the lightened color.
20027
- *
20028
- * @example
20029
- * // Styles as object usage
20030
- * const styles = {
20031
- * background: lighten(0.2, '#CCCD64'),
20032
- * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
20033
- * }
20034
- *
20035
- * // styled-components usage
20036
- * const div = styled.div`
20037
- * background: ${lighten(0.2, '#FFCD64')};
20038
- * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
20039
- * `
20040
- *
20041
- * // CSS in JS Output
20042
- *
20043
- * element {
20044
- * background: "#e5e6b1";
20045
- * background: "rgba(229,230,177,0.7)";
20046
- * }
20047
- */
20048
- function lighten(amount, color) {
20049
- if (color === 'transparent') return color;
20050
- var hslColor = parseToHsl(color);
20051
- return toColorString(_extends$1({}, hslColor, {
20052
- lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
20053
- }));
20054
- }
20055
-
20056
- // prettier-ignore
20057
- var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20058
-
20059
19860
  /**
20060
19861
  * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.
20061
19862
  *
@@ -20082,21 +19883,25 @@ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20082
19883
  * background: "rgba(63, 0, 191, 0.75)";
20083
19884
  * }
20084
19885
  */
19886
+
20085
19887
  function mix$1(weight, color, otherColor) {
20086
19888
  if (color === 'transparent') return otherColor;
20087
19889
  if (otherColor === 'transparent') return color;
20088
19890
  if (weight === 0) return otherColor;
20089
19891
  var parsedColor1 = parseToRgb(color);
19892
+
20090
19893
  var color1 = _extends$1({}, parsedColor1, {
20091
19894
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
20092
19895
  });
19896
+
20093
19897
  var parsedColor2 = parseToRgb(otherColor);
19898
+
20094
19899
  var color2 = _extends$1({}, parsedColor2, {
20095
19900
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
20096
- });
20097
-
20098
- // The formula is copied from the original Sass implementation:
19901
+ }); // The formula is copied from the original Sass implementation:
20099
19902
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
19903
+
19904
+
20100
19905
  var alphaDelta = color1.alpha - color2.alpha;
20101
19906
  var x = parseFloat(weight) * 2 - 1;
20102
19907
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -20110,217 +19915,13 @@ function mix$1(weight, color, otherColor) {
20110
19915
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
20111
19916
  };
20112
19917
  return rgba$1(mixedColor);
20113
- }
20114
-
20115
- // prettier-ignore
20116
- var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
20117
- var mix$1$1 = curriedMix;
20118
-
20119
- /**
20120
- * Increases the opacity of a color. Its range for the amount is between 0 to 1.
20121
- *
20122
- *
20123
- * @example
20124
- * // Styles as object usage
20125
- * const styles = {
20126
- * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
20127
- * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
20128
- * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
20129
- * }
20130
- *
20131
- * // styled-components usage
20132
- * const div = styled.div`
20133
- * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
20134
- * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
20135
- * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
20136
- * `
20137
- *
20138
- * // CSS in JS Output
20139
- *
20140
- * element {
20141
- * background: "#fff";
20142
- * background: "rgba(255,255,255,0.7)";
20143
- * background: "rgba(255,0,0,0.7)";
20144
- * }
20145
- */
20146
- function opacify(amount, color) {
20147
- if (color === 'transparent') return color;
20148
- var parsedColor = parseToRgb(color);
20149
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20150
- var colorWithAlpha = _extends$1({}, parsedColor, {
20151
- alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
20152
- });
20153
- return rgba$1(colorWithAlpha);
20154
- }
20155
-
20156
- // prettier-ignore
20157
- var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
20158
-
20159
- /**
20160
- * Increases the intensity of a color. Its range is between 0 to 1. The first
20161
- * argument of the saturate function is the amount by how much the color
20162
- * intensity should be increased.
20163
- *
20164
- * @example
20165
- * // Styles as object usage
20166
- * const styles = {
20167
- * background: saturate(0.2, '#CCCD64'),
20168
- * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
20169
- * }
20170
- *
20171
- * // styled-components usage
20172
- * const div = styled.div`
20173
- * background: ${saturate(0.2, '#FFCD64')};
20174
- * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
20175
- * `
20176
- *
20177
- * // CSS in JS Output
20178
- *
20179
- * element {
20180
- * background: "#e0e250";
20181
- * background: "rgba(224,226,80,0.7)";
20182
- * }
20183
- */
20184
- function saturate(amount, color) {
20185
- if (color === 'transparent') return color;
20186
- var hslColor = parseToHsl(color);
20187
- return toColorString(_extends$1({}, hslColor, {
20188
- saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
20189
- }));
20190
- }
20191
-
20192
- // prettier-ignore
20193
- var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
20194
-
20195
- /**
20196
- * Sets the hue of a color to the provided value. The hue range can be
20197
- * from 0 and 359.
20198
- *
20199
- * @example
20200
- * // Styles as object usage
20201
- * const styles = {
20202
- * background: setHue(42, '#CCCD64'),
20203
- * background: setHue('244', 'rgba(204,205,100,0.7)'),
20204
- * }
20205
- *
20206
- * // styled-components usage
20207
- * const div = styled.div`
20208
- * background: ${setHue(42, '#CCCD64')};
20209
- * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
20210
- * `
20211
- *
20212
- * // CSS in JS Output
20213
- * element {
20214
- * background: "#cdae64";
20215
- * background: "rgba(107,100,205,0.7)";
20216
- * }
20217
- */
20218
- function setHue(hue, color) {
20219
- if (color === 'transparent') return color;
20220
- return toColorString(_extends$1({}, parseToHsl(color), {
20221
- hue: parseFloat(hue)
20222
- }));
20223
- }
19918
+ } // prettier-ignore
20224
19919
 
20225
- // prettier-ignore
20226
- var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
20227
19920
 
20228
- /**
20229
- * Sets the lightness of a color to the provided value. The lightness range can be
20230
- * from 0 and 1.
20231
- *
20232
- * @example
20233
- * // Styles as object usage
20234
- * const styles = {
20235
- * background: setLightness(0.2, '#CCCD64'),
20236
- * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
20237
- * }
20238
- *
20239
- * // styled-components usage
20240
- * const div = styled.div`
20241
- * background: ${setLightness(0.2, '#CCCD64')};
20242
- * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
20243
- * `
20244
- *
20245
- * // CSS in JS Output
20246
- * element {
20247
- * background: "#4d4d19";
20248
- * background: "rgba(223,224,159,0.7)";
20249
- * }
20250
- */
20251
- function setLightness(lightness, color) {
20252
- if (color === 'transparent') return color;
20253
- return toColorString(_extends$1({}, parseToHsl(color), {
20254
- lightness: parseFloat(lightness)
20255
- }));
20256
- }
20257
-
20258
- // prettier-ignore
20259
- var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
20260
-
20261
- /**
20262
- * Sets the saturation of a color to the provided value. The saturation range can be
20263
- * from 0 and 1.
20264
- *
20265
- * @example
20266
- * // Styles as object usage
20267
- * const styles = {
20268
- * background: setSaturation(0.2, '#CCCD64'),
20269
- * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
20270
- * }
20271
- *
20272
- * // styled-components usage
20273
- * const div = styled.div`
20274
- * background: ${setSaturation(0.2, '#CCCD64')};
20275
- * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
20276
- * `
20277
- *
20278
- * // CSS in JS Output
20279
- * element {
20280
- * background: "#adad84";
20281
- * background: "rgba(228,229,76,0.7)";
20282
- * }
20283
- */
20284
- function setSaturation(saturation, color) {
20285
- if (color === 'transparent') return color;
20286
- return toColorString(_extends$1({}, parseToHsl(color), {
20287
- saturation: parseFloat(saturation)
20288
- }));
20289
- }
20290
-
20291
- // prettier-ignore
20292
- var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
20293
-
20294
- /**
20295
- * Shades a color by mixing it with black. `shade` can produce
20296
- * hue shifts, where as `darken` manipulates the luminance channel and therefore
20297
- * doesn't produce hue shifts.
20298
- *
20299
- * @example
20300
- * // Styles as object usage
20301
- * const styles = {
20302
- * background: shade(0.25, '#00f')
20303
- * }
20304
- *
20305
- * // styled-components usage
20306
- * const div = styled.div`
20307
- * background: ${shade(0.25, '#00f')};
20308
- * `
20309
- *
20310
- * // CSS in JS Output
20311
- *
20312
- * element {
20313
- * background: "#00003f";
20314
- * }
20315
- */
20316
-
20317
- function shade(percentage, color) {
20318
- if (color === 'transparent') return color;
20319
- return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
20320
- }
20321
-
20322
- // prettier-ignore
20323
- var curriedShade = curry /* ::<number | string, string, string> */(shade);
19921
+ var curriedMix = /*#__PURE__*/curry
19922
+ /* ::<number | string, string, string, string> */
19923
+ (mix$1);
19924
+ var mix$1$1 = curriedMix;
20324
19925
 
20325
19926
  /**
20326
19927
  * Tints a color by mixing it with white. `tint` can produce
@@ -20348,63 +19949,25 @@ var curriedShade = curry /* ::<number | string, string, string> */(shade);
20348
19949
  function tint(percentage, color) {
20349
19950
  if (color === 'transparent') return color;
20350
19951
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
20351
- }
19952
+ } // prettier-ignore
20352
19953
 
20353
- // prettier-ignore
20354
- var curriedTint = curry /* ::<number | string, string, string> */(tint);
20355
- var curriedTint$1 = curriedTint;
20356
19954
 
20357
- /**
20358
- * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
20359
- *
20360
- *
20361
- * @example
20362
- * // Styles as object usage
20363
- * const styles = {
20364
- * background: transparentize(0.1, '#fff'),
20365
- * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
20366
- * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
20367
- * }
20368
- *
20369
- * // styled-components usage
20370
- * const div = styled.div`
20371
- * background: ${transparentize(0.1, '#fff')};
20372
- * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
20373
- * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
20374
- * `
20375
- *
20376
- * // CSS in JS Output
20377
- *
20378
- * element {
20379
- * background: "rgba(255,255,255,0.9)";
20380
- * background: "rgba(255,255,255,0.8)";
20381
- * background: "rgba(255,0,0,0.3)";
20382
- * }
20383
- */
20384
- function transparentize(amount, color) {
20385
- if (color === 'transparent') return color;
20386
- var parsedColor = parseToRgb(color);
20387
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20388
- var colorWithAlpha = _extends$1({}, parsedColor, {
20389
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
20390
- });
20391
- return rgba$1(colorWithAlpha);
20392
- }
20393
-
20394
- // prettier-ignore
20395
- var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
19955
+ var curriedTint = /*#__PURE__*/curry
19956
+ /* ::<number | string, string, string> */
19957
+ (tint);
19958
+ var curriedTint$1 = curriedTint;
20396
19959
 
20397
19960
  var linkColor = MATISSE_BLUE;
20398
19961
  var fallbackValues$8 = {
20399
19962
  linkColor: linkColor
20400
19963
  };
20401
19964
 
20402
- var _excluded$k = ["variant", "themeValues", "children"];
19965
+ var _excluded$l = ["variant", "themeValues", "children"];
20403
19966
  var BoxWithShadow = function BoxWithShadow(_ref) {
20404
19967
  var variant = _ref.variant,
20405
19968
  themeValues = _ref.themeValues,
20406
19969
  children = _ref.children,
20407
- props = _objectWithoutProperties(_ref, _excluded$k);
19970
+ props = _objectWithoutProperties(_ref, _excluded$l);
20408
19971
  var shadowRegistry = {
20409
19972
  baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
20410
19973
  baseHover: "0px 1px 7px 0px ".concat(rgba$1(BLACK, 0.3), ", 0px 1px 4px 0px ").concat(rgba$1(BLACK, 0.2), ", 0px 7px 12px 0px ").concat(rgba$1(BLACK, 0.2), ";"),
@@ -20422,20 +19985,23 @@ var BoxWithShadow = function BoxWithShadow(_ref) {
20422
19985
  var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackValues$8);
20423
19986
 
20424
19987
  // import theme from "styled-theming";
19988
+ var MATISSE_BLUE$2 = MATISSE_BLUE,
19989
+ STORM_GREY$1 = STORM_GREY;
19990
+ var LINK_TEXT_DECORATION$2 = LINK_TEXT_DECORATION;
20425
19991
 
20426
19992
  /*
20427
19993
  For now I'm using string values, eventually shared components library will have its own constants file
20428
19994
  for colors/values that should be used here instead
20429
19995
  */
20430
19996
 
20431
- var color$5 = "".concat(MATISSE_BLUE);
20432
- var activeColor$2 = "".concat(STORM_GREY);
20433
- var activeBreadcrumbColor = "".concat(STORM_GREY);
19997
+ var color$5 = "".concat(MATISSE_BLUE$2);
19998
+ var activeColor$2 = "".concat(STORM_GREY$1);
19999
+ var activeBreadcrumbColor = "".concat(STORM_GREY$1);
20434
20000
  var fontSize$2 = "0.875rem";
20435
20001
  var lineHeight = "1.25rem";
20436
20002
  var fontWeight$1 = "400";
20437
20003
  var margin = "0.5rem";
20438
- var hover = "text-decoration: none;";
20004
+ var hover = "text-decoration: ".concat(LINK_TEXT_DECORATION$2, ";");
20439
20005
  var fallbackValues$9 = {
20440
20006
  color: color$5,
20441
20007
  activeColor: activeColor$2,
@@ -20461,7 +20027,10 @@ var fallbackValues$a = {
20461
20027
  externalLinkColor: externalLinkColor
20462
20028
  };
20463
20029
 
20464
- var _excluded$l = ["hoverColor", "activeColor", "extrastyles"];
20030
+ var _excluded$m = ["hoverColor", "activeColor", "extrastyles"];
20031
+ var ROYAL_BLUE$1 = ROYAL_BLUE;
20032
+ var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
20033
+
20465
20034
  /*
20466
20035
  The extracting of props and the disabling of the eslint rule is to stop React from complaining about
20467
20036
  unrecognized DOM attributes.
@@ -20472,14 +20041,14 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20472
20041
  var hoverColor = _ref.hoverColor,
20473
20042
  activeColor = _ref.activeColor,
20474
20043
  extrastyles = _ref.extrastyles,
20475
- props = _objectWithoutProperties(_ref, _excluded$l);
20044
+ props = _objectWithoutProperties(_ref, _excluded$m);
20476
20045
  return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
20477
20046
  ref: ref
20478
20047
  }));
20479
20048
  })).withConfig({
20480
20049
  displayName: "ExternalLinkstyled__StyledExternalLink",
20481
20050
  componentId: "sc-m1q2m2-0"
20482
- })(["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) {
20051
+ })(["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) {
20483
20052
  var size = _ref2.size;
20484
20053
  return size;
20485
20054
  }, function (_ref3) {
@@ -20494,10 +20063,10 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20494
20063
  }, function (_ref6) {
20495
20064
  var lineheight = _ref6.lineheight;
20496
20065
  return lineheight;
20497
- }, function (_ref7) {
20066
+ }, LINK_TEXT_DECORATION$3, function (_ref7) {
20498
20067
  var hoverColor = _ref7.hoverColor;
20499
20068
  return hoverColor;
20500
- }, ROYAL_BLUE, function (_ref8) {
20069
+ }, ROYAL_BLUE$1, function (_ref8) {
20501
20070
  var activeColor = _ref8.activeColor;
20502
20071
  return activeColor;
20503
20072
  }, function (_ref9) {
@@ -20547,7 +20116,10 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
20547
20116
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
20548
20117
  });
20549
20118
 
20550
- var _excluded$m = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
20119
+ var _excluded$n = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
20120
+ var ROYAL_BLUE$2 = ROYAL_BLUE;
20121
+ var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
20122
+
20551
20123
  /*
20552
20124
  The extracting of props and the disabling of the eslint rule is to stop React from complaining about
20553
20125
  unrecognized DOM attributes.
@@ -20560,14 +20132,14 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20560
20132
  active = _ref.active,
20561
20133
  color = _ref.color,
20562
20134
  extrastyles = _ref.extrastyles,
20563
- props = _objectWithoutProperties(_ref, _excluded$m);
20135
+ props = _objectWithoutProperties(_ref, _excluded$n);
20564
20136
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
20565
20137
  ref: ref
20566
20138
  }));
20567
20139
  })).withConfig({
20568
20140
  displayName: "InternalLinkstyled__StyledInternalLink",
20569
20141
  componentId: "sc-cuqxud-0"
20570
- })(["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) {
20142
+ })(["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) {
20571
20143
  var color = _ref2.color,
20572
20144
  active = _ref2.active,
20573
20145
  activeColor = _ref2.activeColor;
@@ -20587,10 +20159,10 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
20587
20159
  }, function (_ref7) {
20588
20160
  var margin = _ref7.margin;
20589
20161
  return margin;
20590
- }, function (_ref8) {
20162
+ }, LINK_TEXT_DECORATION$4, function (_ref8) {
20591
20163
  var hoverColor = _ref8.hoverColor;
20592
20164
  return hoverColor;
20593
- }, ROYAL_BLUE, function (_ref9) {
20165
+ }, ROYAL_BLUE$2, function (_ref9) {
20594
20166
  var activeColor = _ref9.activeColor;
20595
20167
  return activeColor;
20596
20168
  }, function (_ref10) {
@@ -20663,7 +20235,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
20663
20235
  lineheight: themeValues.lineHeight,
20664
20236
  fontWeight: themeValues.fontWeight,
20665
20237
  margin: themeValues.margin,
20666
- 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 }")
20238
+ extraStyles: "\n text-transform: uppercase;\n text-decoration: none;\n ".concat(isActive.toString() === "true" && "color: ".concat(themeValues.activeBreadcrumbColor, ";\n pointer-events: none;\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, ";\n }")
20667
20239
  }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
20668
20240
  })));
20669
20241
  };
@@ -22243,9 +21815,7 @@ _curry2(function test(pattern, str) {
22243
21815
  return _cloneRegExp(pattern).test(str);
22244
21816
  });
22245
21817
 
22246
- var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
22247
-
22248
- var _excluded$n = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21818
+ var _excluded$o = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
22249
21819
  var ButtonWithLink = function ButtonWithLink(_ref) {
22250
21820
  var _ref$url = _ref.url,
22251
21821
  url = _ref$url === void 0 ? "/" : _ref$url,
@@ -22253,12 +21823,14 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
22253
21823
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
22254
21824
  _ref$fileLink = _ref.fileLink,
22255
21825
  fileLink = _ref$fileLink === void 0 ? false : _ref$fileLink,
22256
- extraStyles = _ref.extraStyles,
22257
- linkExtraStyles = _ref.linkExtraStyles,
21826
+ _ref$extraStyles = _ref.extraStyles,
21827
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
21828
+ _ref$linkExtraStyles = _ref.linkExtraStyles,
21829
+ linkExtraStyles = _ref$linkExtraStyles === void 0 ? "" : _ref$linkExtraStyles,
22258
21830
  _ref$newTab = _ref.newTab,
22259
21831
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
22260
21832
  dataQa = _ref.dataQa,
22261
- otherProps = _objectWithoutProperties(_ref, _excluded$n);
21833
+ otherProps = _objectWithoutProperties(_ref, _excluded$o);
22262
21834
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
22263
21835
  var children = _ref2.children,
22264
21836
  url = _ref2.url,
@@ -22346,7 +21918,7 @@ var ParagraphText = styled__default.p.withConfig({
22346
21918
  return extraStyles;
22347
21919
  });
22348
21920
 
22349
- var _excluded$o = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
21921
+ var _excluded$p = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
22350
21922
  var Paragraph = function Paragraph(_ref) {
22351
21923
  var themeValues = _ref.themeValues,
22352
21924
  _ref$weight = _ref.weight,
@@ -22360,7 +21932,7 @@ var Paragraph = function Paragraph(_ref) {
22360
21932
  dataQa = _ref.dataQa,
22361
21933
  children = _ref.children,
22362
21934
  as = _ref.as,
22363
- rest = _objectWithoutProperties(_ref, _excluded$o);
21935
+ rest = _objectWithoutProperties(_ref, _excluded$p);
22364
21936
  return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
22365
21937
  weight: weight,
22366
21938
  color: color,
@@ -23074,19 +22646,32 @@ var toIndexedObject = function (it) {
23074
22646
  return indexedObject(requireObjectCoercible(it));
23075
22647
  };
23076
22648
 
23077
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23078
22649
  var documentAll = typeof document == 'object' && document.all;
23079
22650
 
22651
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22652
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22653
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22654
+
22655
+ var documentAll_1 = {
22656
+ all: documentAll,
22657
+ IS_HTMLDDA: IS_HTMLDDA
22658
+ };
22659
+
22660
+ var documentAll$1 = documentAll_1.all;
22661
+
23080
22662
  // `IsCallable` abstract operation
23081
22663
  // https://tc39.es/ecma262/#sec-iscallable
23082
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23083
- var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23084
- return typeof argument == 'function' || argument === documentAll;
22664
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22665
+ return typeof argument == 'function' || argument === documentAll$1;
23085
22666
  } : function (argument) {
23086
22667
  return typeof argument == 'function';
23087
22668
  };
23088
22669
 
23089
- var isObject = function (it) {
22670
+ var documentAll$2 = documentAll_1.all;
22671
+
22672
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22673
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22674
+ } : function (it) {
23090
22675
  return typeof it == 'object' ? it !== null : isCallable(it);
23091
22676
  };
23092
22677
 
@@ -23222,10 +22807,10 @@ var shared = createCommonjsModule(function (module) {
23222
22807
  (module.exports = function (key, value) {
23223
22808
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
23224
22809
  })('versions', []).push({
23225
- version: '3.35.1',
22810
+ version: '3.33.3',
23226
22811
  mode: 'global',
23227
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
23228
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
22812
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22813
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
23229
22814
  source: 'https://github.com/zloirock/core-js'
23230
22815
  });
23231
22816
  });
@@ -23522,7 +23107,7 @@ var TEMPLATE = String(String).split('String');
23522
23107
 
23523
23108
  var makeBuiltIn = module.exports = function (value, name, options) {
23524
23109
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23525
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23110
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
23526
23111
  }
23527
23112
  if (options && options.getter) name = 'get ' + name;
23528
23113
  if (options && options.setter) name = 'set ' + name;
@@ -23610,8 +23195,7 @@ var min$1 = Math.min;
23610
23195
  // `ToLength` abstract operation
23611
23196
  // https://tc39.es/ecma262/#sec-tolength
23612
23197
  var toLength = function (argument) {
23613
- var len = toIntegerOrInfinity(argument);
23614
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23198
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23615
23199
  };
23616
23200
 
23617
23201
  // `LengthOfArrayLike` abstract operation
@@ -23771,7 +23355,7 @@ var _export = function (options, source) {
23771
23355
  } else if (STATIC) {
23772
23356
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
23773
23357
  } else {
23774
- target = global_1[TARGET] && global_1[TARGET].prototype;
23358
+ target = (global_1[TARGET] || {}).prototype;
23775
23359
  }
23776
23360
  if (target) for (key in source) {
23777
23361
  sourceProperty = source[key];
@@ -24034,15 +23618,11 @@ var functionUncurryThisAccessor = function (object, key, method) {
24034
23618
  } catch (error) { /* empty */ }
24035
23619
  };
24036
23620
 
24037
- var isPossiblePrototype = function (argument) {
24038
- return isObject(argument) || argument === null;
24039
- };
24040
-
24041
23621
  var $String$4 = String;
24042
23622
  var $TypeError$6 = TypeError;
24043
23623
 
24044
23624
  var aPossiblePrototype = function (argument) {
24045
- if (isPossiblePrototype(argument)) return argument;
23625
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
24046
23626
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
24047
23627
  };
24048
23628
 
@@ -25669,7 +25249,7 @@ var mobileFallbackValues$1 = {
25669
25249
  };
25670
25250
  var MOBILE_BREAKPOINT$1 = 768;
25671
25251
 
25672
- var _excluded$p = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25252
+ var _excluded$q = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25673
25253
 
25674
25254
  /*
25675
25255
  New responsive text component for Detail elements
@@ -25719,7 +25299,7 @@ var Detail = function Detail(_ref) {
25719
25299
  as = _ref$as === void 0 ? "p" : _ref$as,
25720
25300
  dataQa = _ref.dataQa,
25721
25301
  children = _ref.children,
25722
- rest = _objectWithoutProperties(_ref, _excluded$p);
25302
+ rest = _objectWithoutProperties(_ref, _excluded$q);
25723
25303
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
25724
25304
  variant: variant,
25725
25305
  as: as,
@@ -25858,7 +25438,7 @@ var useToastNotification = function useToastNotification() {
25858
25438
 
25859
25439
 
25860
25440
 
25861
- var index$4 = /*#__PURE__*/Object.freeze({
25441
+ var index$5 = /*#__PURE__*/Object.freeze({
25862
25442
  __proto__: null,
25863
25443
  useOutsideClick: useOutsideClickHook,
25864
25444
  useScrollTo: useScrollTo,
@@ -26429,7 +26009,7 @@ var fallbackValues$k = {
26429
26009
  formFooterPanel: formFooterPanel
26430
26010
  };
26431
26011
 
26432
- var _excluded$q = ["showErrors", "themeValues"],
26012
+ var _excluded$r = ["showErrors", "themeValues"],
26433
26013
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
26434
26014
  var InputField = styled__default.input.withConfig({
26435
26015
  displayName: "FormInput__InputField",
@@ -26464,7 +26044,7 @@ var InputField = styled__default.input.withConfig({
26464
26044
  var FormattedInputField = styled__default(function (_ref8) {
26465
26045
  var showErrors = _ref8.showErrors,
26466
26046
  themeValues = _ref8.themeValues,
26467
- props = _objectWithoutProperties(_ref8, _excluded$q);
26047
+ props = _objectWithoutProperties(_ref8, _excluded$r);
26468
26048
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
26469
26049
  }).withConfig({
26470
26050
  displayName: "FormInput__FormattedInputField",
@@ -26563,7 +26143,7 @@ var FormInput = function FormInput(_ref15) {
26563
26143
  color: themeValues.linkColor,
26564
26144
  weight: themeValues.fontWeight,
26565
26145
  hoverStyles: themeValues.hoverFocusStyles,
26566
- extraStyles: "cursor: pointer; &:focus { outline-offset: -2px; }",
26146
+ extraStyles: "text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }",
26567
26147
  onClick: function onClick() {
26568
26148
  return setShowPassword(!showPassword);
26569
26149
  },
@@ -26636,7 +26216,7 @@ var FormInput = function FormInput(_ref15) {
26636
26216
  };
26637
26217
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
26638
26218
 
26639
- var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26219
+ var _excluded$s = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26640
26220
  var FormInputRow = function FormInputRow(_ref) {
26641
26221
  var _ref$breakpoint = _ref.breakpoint,
26642
26222
  breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
@@ -26645,7 +26225,7 @@ var FormInputRow = function FormInputRow(_ref) {
26645
26225
  largeChild = _ref.largeChild,
26646
26226
  largeChildSize = _ref.largeChildSize,
26647
26227
  children = _ref.children,
26648
- rest = _objectWithoutProperties(_ref, _excluded$r);
26228
+ rest = _objectWithoutProperties(_ref, _excluded$s);
26649
26229
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26650
26230
  padding: "0"
26651
26231
  }, rest), /*#__PURE__*/React__default.createElement(Switcher, {
@@ -26656,24 +26236,24 @@ var FormInputRow = function FormInputRow(_ref) {
26656
26236
  }, children));
26657
26237
  };
26658
26238
 
26659
- var _excluded$s = ["childGap", "bottomItem", "children"];
26239
+ var _excluded$t = ["childGap", "bottomItem", "children"];
26660
26240
  var FormInputColumn = function FormInputColumn(_ref) {
26661
26241
  var _ref$childGap = _ref.childGap,
26662
26242
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
26663
26243
  bottomItem = _ref.bottomItem,
26664
26244
  children = _ref.children,
26665
- rest = _objectWithoutProperties(_ref, _excluded$s);
26245
+ rest = _objectWithoutProperties(_ref, _excluded$t);
26666
26246
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
26667
26247
  childGap: childGap,
26668
26248
  bottomItem: bottomItem
26669
26249
  }, rest), children);
26670
26250
  };
26671
26251
 
26672
- var _excluded$t = ["themeValues", "children"];
26252
+ var _excluded$u = ["themeValues", "children"];
26673
26253
  var FormContainer = function FormContainer(_ref) {
26674
26254
  var themeValues = _ref.themeValues,
26675
26255
  children = _ref.children,
26676
- rest = _objectWithoutProperties(_ref, _excluded$t);
26256
+ rest = _objectWithoutProperties(_ref, _excluded$u);
26677
26257
  var _useContext = React.useContext(styled.ThemeContext),
26678
26258
  isMobile = _useContext.isMobile;
26679
26259
  return /*#__PURE__*/React__default.createElement(Box, _extends({
@@ -26983,7 +26563,7 @@ var fallbackValues$o = {
26983
26563
  fontSize: fontSize$8
26984
26564
  };
26985
26565
 
26986
- var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26566
+ var _excluded$v = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26987
26567
  var Heading = function Heading(_ref) {
26988
26568
  var themeValues = _ref.themeValues,
26989
26569
  _ref$weight = _ref.weight,
@@ -27002,7 +26582,7 @@ var Heading = function Heading(_ref) {
27002
26582
  as = _ref$as === void 0 ? variant : _ref$as,
27003
26583
  dataQa = _ref.dataQa,
27004
26584
  children = _ref.children,
27005
- rest = _objectWithoutProperties(_ref, _excluded$u);
26585
+ rest = _objectWithoutProperties(_ref, _excluded$v);
27006
26586
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
27007
26587
  variant: variant,
27008
26588
  as: as,
@@ -27203,11 +26783,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
27203
26783
  }, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
27204
26784
  };
27205
26785
 
27206
- var _excluded$v = ["version"];
26786
+ var _excluded$w = ["version"];
27207
26787
  var LabeledAmount = function LabeledAmount(_ref) {
27208
26788
  var _ref$version = _ref.version,
27209
26789
  version = _ref$version === void 0 ? "v1" : _ref$version,
27210
- rest = _objectWithoutProperties(_ref, _excluded$v);
26790
+ rest = _objectWithoutProperties(_ref, _excluded$w);
27211
26791
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
27212
26792
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
27213
26793
  };
@@ -27344,7 +26924,7 @@ var Loading = function Loading() {
27344
26924
  })))));
27345
26925
  };
27346
26926
 
27347
- var _excluded$w = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26927
+ var _excluded$x = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
27348
26928
  var NavFooter = function NavFooter(_ref) {
27349
26929
  var leftContent = _ref.leftContent,
27350
26930
  rightContent = _ref.rightContent,
@@ -27359,7 +26939,7 @@ var NavFooter = function NavFooter(_ref) {
27359
26939
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
27360
26940
  isMobile = _ref.isMobile,
27361
26941
  footerWidth = _ref.footerWidth,
27362
- rest = _objectWithoutProperties(_ref, _excluded$w);
26942
+ rest = _objectWithoutProperties(_ref, _excluded$x);
27363
26943
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27364
26944
  padding: footerPadding,
27365
26945
  background: backgroundColor,
@@ -27390,7 +26970,7 @@ var NavFooter = function NavFooter(_ref) {
27390
26970
  }, rightContent)))))));
27391
26971
  };
27392
26972
 
27393
- var _excluded$x = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26973
+ var _excluded$y = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
27394
26974
  var NavHeader = function NavHeader(_ref) {
27395
26975
  var leftContent = _ref.leftContent,
27396
26976
  rightContent = _ref.rightContent,
@@ -27399,7 +26979,7 @@ var NavHeader = function NavHeader(_ref) {
27399
26979
  isMobile = _ref.isMobile,
27400
26980
  backgroundColor = _ref.backgroundColor,
27401
26981
  headerWidth = _ref.headerWidth,
27402
- rest = _objectWithoutProperties(_ref, _excluded$x);
26982
+ rest = _objectWithoutProperties(_ref, _excluded$y);
27403
26983
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27404
26984
  padding: "0 16px 4px",
27405
26985
  background: backgroundColor,
@@ -27610,24 +27190,23 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
27610
27190
  action = _ref.action,
27611
27191
  destination = _ref.destination,
27612
27192
  children = _ref.children,
27613
- dataQa = _ref.dataQa,
27614
- _ref$disabled = _ref.disabled,
27615
- disabled = _ref$disabled === void 0 ? false : _ref$disabled;
27193
+ dataQa = _ref.dataQa;
27616
27194
  return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
27617
27195
  to: destination,
27618
27196
  "data-qa": dataQa,
27619
- "aria-disabled": disabled
27197
+ style: {
27198
+ textDecoration: "none"
27199
+ }
27620
27200
  }, /*#__PURE__*/React__default.createElement(Box, {
27621
27201
  padding: "0",
27622
27202
  minHeight: "100%",
27623
- extraStyles: disabled ? "cursor: default;" : "cursor: pointer;"
27203
+ extraStyles: "cursor: pointer;"
27624
27204
  }, children)) : /*#__PURE__*/React__default.createElement(Box, {
27625
- onClick: disabled ? noop : action,
27205
+ onClick: action,
27626
27206
  padding: "0",
27627
27207
  minHeight: "100%",
27628
- dataQa: dataQa,
27629
- "aria-disabled": disabled,
27630
- extraStyles: disabled ? "cursor: default;" : "cursor: pointer;"
27208
+ extraStyles: "cursor: pointer;",
27209
+ dataQa: dataQa
27631
27210
  }, children);
27632
27211
  };
27633
27212
  var Placeholder = function Placeholder(_ref2) {
@@ -27641,16 +27220,12 @@ var Placeholder = function Placeholder(_ref2) {
27641
27220
  variant = _ref2.variant,
27642
27221
  largeIcon = _ref2.largeIcon,
27643
27222
  themeValues = _ref2.themeValues,
27644
- dataQa = _ref2.dataQa,
27645
- _ref2$disabled = _ref2.disabled,
27646
- disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
27647
- var tintedColor = "".concat(curriedTint$1(0.9, themeValues.color));
27223
+ dataQa = _ref2.dataQa;
27648
27224
  return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
27649
27225
  isLink: isLink,
27650
27226
  action: action,
27651
27227
  destination: destination,
27652
- dataQa: dataQa,
27653
- disabled: disabled
27228
+ dataQa: dataQa
27654
27229
  }, /*#__PURE__*/React__default.createElement(Box, {
27655
27230
  padding: "0",
27656
27231
  borderRadius: "4px",
@@ -27658,14 +27233,14 @@ var Placeholder = function Placeholder(_ref2) {
27658
27233
  minHeight: themeValues.height,
27659
27234
  hiddenStyles: !visible,
27660
27235
  extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
27661
- hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : tintedColor, ";")
27236
+ hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
27662
27237
  }, /*#__PURE__*/React__default.createElement(Center, {
27663
27238
  maxWidth: "300px"
27664
27239
  }, /*#__PURE__*/React__default.createElement(Box, {
27665
27240
  padding: "0",
27666
27241
  tabIndex: "0",
27667
27242
  onKeyPress: function onKeyPress(e) {
27668
- return e.key === "Enter" && !disabled && action();
27243
+ return e.key === "Enter" && action();
27669
27244
  }
27670
27245
  }, /*#__PURE__*/React__default.createElement(Cluster, {
27671
27246
  justify: "center",
@@ -39041,14 +38616,6 @@ var NavTabs = function NavTabs(_ref) {
39041
38616
  }, tabs)));
39042
38617
  };
39043
38618
 
39044
-
39045
-
39046
- var index$5 = /*#__PURE__*/Object.freeze({
39047
- __proto__: null,
39048
- colors: colors,
39049
- fontWeights: style_constants
39050
- });
39051
-
39052
38619
  var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
39053
38620
  var LoadingPill = styled__default.div.withConfig({
39054
38621
  displayName: "LoadingPillstyled__LoadingPill",
@@ -39161,7 +38728,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
39161
38728
  return extraStyles;
39162
38729
  });
39163
38730
 
39164
- var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38731
+ var _excluded$z = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
39165
38732
  var TableRow = function TableRow(_ref) {
39166
38733
  var children = _ref.children,
39167
38734
  extraStyles = _ref.extraStyles,
@@ -39170,7 +38737,7 @@ var TableRow = function TableRow(_ref) {
39170
38737
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
39171
38738
  onClick = _ref.onClick,
39172
38739
  themeValues = _ref.themeValues,
39173
- props = _objectWithoutProperties(_ref, _excluded$y);
38740
+ props = _objectWithoutProperties(_ref, _excluded$z);
39174
38741
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
39175
38742
  onClick: onClick,
39176
38743
  hoverEffect: hoverEffect,
@@ -42495,22 +42062,10 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
42495
42062
  var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42496
42063
  var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), ACCOUNTS_DENTAL_ICON, AccountDentalIcon), ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), PROPERTIES_LAND_ICON, PropertyLandIcon), PROPERTIES_CAR_ICON, PropertyCarIcon), PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), MISC_BILL_ICON, AccountBillIcon));
42497
42064
 
42498
- var activeBackgroundColor$1 = {
42499
- primary: "".concat(CORNFLOWER_BLUE),
42500
- disabled: "".concat(ATHENS_GREY)
42501
- };
42502
- var backgroundColor$9 = {
42503
- primary: "".concat(LINK_WATER),
42504
- disabled: "".concat(ATHENS_GREY)
42505
- };
42506
- var borderColor$5 = {
42507
- primary: "".concat(MOON_RAKER),
42508
- disabled: "".concat(MANATEE_GREY)
42509
- };
42510
- var color$b = {
42511
- primary: "".concat(ROYAL_BLUE_VIVID),
42512
- disabled: "".concat(MANATEE_GREY)
42513
- };
42065
+ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
42066
+ var backgroundColor$9 = LINK_WATER;
42067
+ var borderColor$5 = MOON_RAKER;
42068
+ var color$b = ROYAL_BLUE_VIVID;
42514
42069
  var fallbackValues$I = {
42515
42070
  activeBackgroundColor: activeBackgroundColor$1,
42516
42071
  backgroundColor: backgroundColor$9,
@@ -42551,9 +42106,7 @@ var Footer = styled__default(Stack).withConfig({
42551
42106
  })(["align-items:center;width:100%;"]);
42552
42107
 
42553
42108
  var LinkCard = function LinkCard(_ref) {
42554
- var _ref$variant = _ref.variant,
42555
- variant = _ref$variant === void 0 ? "primary" : _ref$variant,
42556
- _ref$title = _ref.title,
42109
+ var _ref$title = _ref.title,
42557
42110
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42558
42111
  _ref$subtitle = _ref.subtitle,
42559
42112
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
@@ -42587,8 +42140,7 @@ var LinkCard = function LinkCard(_ref) {
42587
42140
  extraStyles: extraStyles,
42588
42141
  hoverStyles: extraHoverStyles,
42589
42142
  activeStyles: extraActiveStyles,
42590
- onClick: variant === "disabled" ? noop : onClick,
42591
- "aria-disabled": variant === "disabled"
42143
+ onClick: onClick
42592
42144
  }, /*#__PURE__*/React__default.createElement(Stack, {
42593
42145
  childGap: 0,
42594
42146
  bottomItem: 3,
@@ -42621,7 +42173,7 @@ var LinkCard = function LinkCard(_ref) {
42621
42173
  justify: "space-between"
42622
42174
  }, showLeft && !leftContent && /*#__PURE__*/React__default.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
42623
42175
  };
42624
- var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "primary");
42176
+ var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
42625
42177
 
42626
42178
  var LoginForm = function LoginForm(_ref) {
42627
42179
  var clearOnDismount = _ref.clearOnDismount,
@@ -46123,7 +45675,9 @@ var Modal$1 = function Modal(_ref) {
46123
45675
  _ref$dataQa = _ref.dataQa,
46124
45676
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
46125
45677
  _ref$initialFocusSele = _ref.initialFocusSelector,
46126
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
45678
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
45679
+ _ref$blurUnderlay = _ref.blurUnderlay,
45680
+ blurUnderlay = _ref$blurUnderlay === void 0 ? true : _ref$blurUnderlay;
46127
45681
  var _useContext = React.useContext(styled.ThemeContext),
46128
45682
  isMobile = _useContext.isMobile;
46129
45683
  var modalContainerRef = React.useRef(null);
@@ -46143,7 +45697,10 @@ var Modal$1 = function Modal(_ref) {
46143
45697
  display: "flex",
46144
45698
  flexDirection: "column",
46145
45699
  justifyContent: "center",
46146
- alignItems: "center"
45700
+ alignItems: "center",
45701
+ background: "rgba(41, 42, 51, 0.45)",
45702
+ backdropFilter: blurUnderlay ? "blur(4px)" : "none",
45703
+ WebkitBackdropFilter: blurUnderlay ? "blur(4px)" : "none"
46147
45704
  },
46148
45705
  dialogStyle: {
46149
45706
  width: customWidth || "615px",
@@ -46494,10 +46051,6 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
46494
46051
  };
46495
46052
  var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
46496
46053
 
46497
- var ACH_METHOD = "BANK_ACCOUNT";
46498
- var CC_METHOD = "CREDIT_CARD";
46499
- var CASH_METHOD = "CASH";
46500
-
46501
46054
  var IconsModule = function IconsModule(_ref) {
46502
46055
  var icon = _ref.icon,
46503
46056
  iconDefault = _ref.iconDefault,
@@ -46577,9 +46130,7 @@ var AutopayModal = function AutopayModal(_ref) {
46577
46130
  inactive = _ref.inactive,
46578
46131
  description = _ref.description,
46579
46132
  subDescription = _ref.subDescription,
46580
- allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46581
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
46582
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46133
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
46583
46134
  var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
46584
46135
  var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
46585
46136
  var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
@@ -46608,7 +46159,6 @@ var AutopayModal = function AutopayModal(_ref) {
46608
46159
  case "secondary":
46609
46160
  {
46610
46161
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46611
- disabled: isInCustomerManagement,
46612
46162
  text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46613
46163
  variant: "secondary",
46614
46164
  action: function action() {
@@ -46621,7 +46171,6 @@ var AutopayModal = function AutopayModal(_ref) {
46621
46171
  case "tertiary":
46622
46172
  {
46623
46173
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46624
- disabled: isInCustomerManagement,
46625
46174
  text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46626
46175
  variant: "tertiary",
46627
46176
  action: function action() {
@@ -46738,9 +46287,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46738
46287
  dueDate = _ref.dueDate,
46739
46288
  description = _ref.description,
46740
46289
  subDescription = _ref.subDescription,
46741
- allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46742
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
46743
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46290
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
46744
46291
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
46745
46292
  var _useState = React.useState(false),
46746
46293
  _useState2 = _slicedToArray(_useState, 2),
@@ -46820,8 +46367,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46820
46367
  handleAutopayAction();
46821
46368
  },
46822
46369
  dataQa: "Set Up Autopay",
46823
- extraStyles: isMobile && "flex-grow: 1; width: 100%;",
46824
- disabled: isInCustomerManagement
46370
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
46825
46371
  }) : /*#__PURE__*/React__default.createElement(AutopayModalModule, {
46826
46372
  autoPayActive: autoPayEnabled,
46827
46373
  autoPaySchedule: autoPaySchedule,
@@ -46847,8 +46393,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46847
46393
  },
46848
46394
  text: "Pay Now",
46849
46395
  variant: isMobile ? "smallSecondary" : "secondary",
46850
- dataQa: "Pay Now",
46851
- disabled: isInCustomerManagement
46396
+ dataQa: "Pay Now"
46852
46397
  }))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
46853
46398
  padding: "8px 0 0",
46854
46399
  width: "100%"
@@ -46860,8 +46405,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46860
46405
  text: "Pay Now",
46861
46406
  variant: isMobile ? "smallSecondary" : "secondary",
46862
46407
  dataQa: "Pay Now",
46863
- extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;",
46864
- disabled: isInCustomerManagement
46408
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
46865
46409
  }))));
46866
46410
  };
46867
46411
 
@@ -47033,9 +46577,7 @@ var Obligation = function Obligation(_ref) {
47033
46577
  _ref$inactiveLookupIn = _ref.inactiveLookupInput,
47034
46578
  inactiveLookupInput = _ref$inactiveLookupIn === void 0 ? "Account" : _ref$inactiveLookupIn,
47035
46579
  _ref$inactiveLookupVa = _ref.inactiveLookupValue,
47036
- inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa,
47037
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
47038
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46580
+ inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
47039
46581
  /*
47040
46582
  The value of obligations is always an array. It can contain:
47041
46583
  - A single obligation
@@ -47123,8 +46665,7 @@ var Obligation = function Obligation(_ref) {
47123
46665
  obligationAssocID: obligationAssocID,
47124
46666
  description: description,
47125
46667
  subDescription: subDescription,
47126
- allowedPaymentInstruments: allowedPaymentInstruments,
47127
- isInCustomerManagement: isInCustomerManagement
46668
+ allowedPaymentInstruments: allowedPaymentInstruments
47128
46669
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
47129
46670
  obligations: obligations,
47130
46671
  autoPayEnabled: autoPayEnabled,
@@ -47142,8 +46683,7 @@ var Obligation = function Obligation(_ref) {
47142
46683
  obligationAssocID: obligationAssocID,
47143
46684
  description: description,
47144
46685
  subDescription: subDescription,
47145
- allowedPaymentInstruments: allowedPaymentInstruments,
47146
- isInCustomerManagement: isInCustomerManagement
46686
+ allowedPaymentInstruments: allowedPaymentInstruments
47147
46687
  }));
47148
46688
  var inactiveObligation = /*#__PURE__*/React__default.createElement(Box, {
47149
46689
  padding: "0",
@@ -47428,6 +46968,7 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
47428
46968
  var Pagination = function Pagination(_ref3) {
47429
46969
  var _ref3$activeBorderWid = _ref3.activeBorderWidth,
47430
46970
  activeBorderWidth = _ref3$activeBorderWid === void 0 ? "3px" : _ref3$activeBorderWid,
46971
+ ariaLabel = _ref3.ariaLabel,
47431
46972
  arrowColor = _ref3.arrowColor,
47432
46973
  _ref3$borderRadius = _ref3.borderRadius,
47433
46974
  borderRadius = _ref3$borderRadius === void 0 ? "3px" : _ref3$borderRadius,
@@ -47447,11 +46988,10 @@ var Pagination = function Pagination(_ref3) {
47447
46988
  pageNext = _ref3.pageNext,
47448
46989
  pagePrevious = _ref3.pagePrevious,
47449
46990
  setCurrentPage = _ref3.setCurrentPage,
47450
- ariaLabel = _ref3.ariaLabel,
47451
46991
  themeValues = _ref3.themeValues;
47452
46992
  var _useContext = React.useContext(styled.ThemeContext),
47453
46993
  isMobile = _useContext.isMobile;
47454
- 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 ");
46994
+ 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 ");
47455
46995
  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 ");
47456
46996
  return /*#__PURE__*/React__default.createElement(Cluster, {
47457
46997
  justify: "center",
@@ -47632,7 +47172,7 @@ var fallbackValues$N = {
47632
47172
  labeledAmountTotal: labeledAmountTotal
47633
47173
  };
47634
47174
 
47635
- var _excluded$z = ["amount"],
47175
+ var _excluded$A = ["amount"],
47636
47176
  _excluded2$1 = ["amount"];
47637
47177
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47638
47178
  var lineItemElems = _ref.lineItemElems,
@@ -47872,7 +47412,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47872
47412
  return fee.amount > 0;
47873
47413
  }).map(function (_ref5) {
47874
47414
  var amount = _ref5.amount,
47875
- rest = _objectWithoutProperties(_ref5, _excluded$z);
47415
+ rest = _objectWithoutProperties(_ref5, _excluded$A);
47876
47416
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47877
47417
  amount: displayCurrency(amount)
47878
47418
  });
@@ -47989,12 +47529,16 @@ var fontWeight$7 = {
47989
47529
  var modalLinkHoverFocus$1 = {
47990
47530
  "default": "outline: none; text-decoration: underline;"
47991
47531
  };
47532
+ var linkTextDecoration = {
47533
+ "default": LINK_TEXT_DECORATION
47534
+ };
47992
47535
  var fallbackValues$O = {
47993
47536
  linkColor: linkColor$5,
47994
47537
  fontSize: fontSize$a,
47995
47538
  lineHeight: lineHeight$4,
47996
47539
  fontWeight: fontWeight$7,
47997
- modalLinkHoverFocus: modalLinkHoverFocus$1
47540
+ modalLinkHoverFocus: modalLinkHoverFocus$1,
47541
+ linkTextDecoration: linkTextDecoration
47998
47542
  };
47999
47543
 
48000
47544
  var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
@@ -48048,6 +47592,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48048
47592
  color: themeValues.linkColor,
48049
47593
  weight: themeValues.fontWeight,
48050
47594
  hoverStyles: themeValues.modalLinkHoverFocus,
47595
+ textDecoration: themeValues.linkTextDecoration,
48051
47596
  extraStyles: "cursor: pointer;",
48052
47597
  role: "button",
48053
47598
  className: "modal-trigger"
@@ -48084,6 +47629,10 @@ var modalLinkHoverFocus$2 = {
48084
47629
  "default": standardInteractionStyles,
48085
47630
  footer: standardInteractionStyles
48086
47631
  };
47632
+ var modalLinkTextDecoration = {
47633
+ "default": LINK_TEXT_DECORATION,
47634
+ footer: "none"
47635
+ };
48087
47636
  var fallbackValues$P = {
48088
47637
  backgroundColor: backgroundColor$d,
48089
47638
  linkColor: linkColor$6,
@@ -48091,7 +47640,8 @@ var fallbackValues$P = {
48091
47640
  fontSize: fontSize$b,
48092
47641
  lineHeight: lineHeight$5,
48093
47642
  fontWeight: fontWeight$8,
48094
- modalLinkHoverFocus: modalLinkHoverFocus$2
47643
+ modalLinkHoverFocus: modalLinkHoverFocus$2,
47644
+ modalLinkTextDecoration: modalLinkTextDecoration
48095
47645
  };
48096
47646
 
48097
47647
  var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
@@ -48148,6 +47698,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48148
47698
  color: themeValues.linkColor,
48149
47699
  weight: themeValues.fontWeight,
48150
47700
  hoverStyles: themeValues.modalLinkHoverFocus,
47701
+ textDecoration: themeValues.modalLinkTextDecoration,
48151
47702
  extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
48152
47703
  role: "button" // This should always be a "button" since it opens a modal
48153
47704
  ,
@@ -48281,11 +47832,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48281
47832
  }, errorMessage))))));
48282
47833
  };
48283
47834
 
48284
- var _excluded$A = ["version"];
47835
+ var _excluded$B = ["version"];
48285
47836
  var TermsAndConditions = function TermsAndConditions(_ref) {
48286
47837
  var _ref$version = _ref.version,
48287
47838
  version = _ref$version === void 0 ? "v1" : _ref$version,
48288
- rest = _objectWithoutProperties(_ref, _excluded$A);
47839
+ rest = _objectWithoutProperties(_ref, _excluded$B);
48289
47840
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48290
47841
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
48291
47842
  };
@@ -49084,7 +48635,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49084
48635
  }, section.content))));
49085
48636
  };
49086
48637
 
49087
- var _excluded$B = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
48638
+ var _excluded$C = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
49088
48639
 
49089
48640
  /**
49090
48641
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49132,7 +48683,7 @@ var RadioSection = function RadioSection(_ref) {
49132
48683
  _ref$isSectionRequire = _ref.isSectionRequired,
49133
48684
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
49134
48685
  groupedSections = _ref.groupedSections,
49135
- rest = _objectWithoutProperties(_ref, _excluded$B);
48686
+ rest = _objectWithoutProperties(_ref, _excluded$C);
49136
48687
  var _useState = React.useState(null),
49137
48688
  _useState2 = _slicedToArray(_useState, 2),
49138
48689
  focused = _useState2[0],
@@ -49604,7 +49155,7 @@ var TabSidebar = function TabSidebar(_ref) {
49604
49155
  return /*#__PURE__*/React__default.createElement(InternalLink, {
49605
49156
  to: route,
49606
49157
  key: "".concat(route, "-").concat(index),
49607
- 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 }", "}")
49158
+ extraStyles: "text-decoration: none;\n &:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
49608
49159
  }, /*#__PURE__*/React__default.createElement(Box, {
49609
49160
  padding: isMobile ? "6px 4px" : "18px 16px",
49610
49161
  background: active ? themeValues.activeTabBackground : "transparent",
@@ -49813,8 +49364,225 @@ var WorkflowTile = function WorkflowTile(_ref) {
49813
49364
  }))));
49814
49365
  };
49815
49366
 
49816
- var pageBackground = "#FBFCFD";
49367
+ var menuItemBackgroundColor = WHITE;
49368
+ var menuItemColor = ROYAL_BLUE_VIVID;
49369
+ var menuItemColorDelete = RAZZMATAZZ_RED;
49370
+ var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
49371
+ var menuItemHoverBackgroundColorDelete = BLUSH_RED;
49372
+ var menuItemHoverColor = ROYAL_BLUE_VIVID;
49817
49373
  var fallbackValues$U = {
49374
+ menuItemBackgroundColor: menuItemBackgroundColor,
49375
+ menuItemColor: menuItemColor,
49376
+ menuItemColorDelete: menuItemColorDelete,
49377
+ menuItemHoverBackgroundColor: menuItemHoverBackgroundColor,
49378
+ menuItemHoverBackgroundColorDelete: menuItemHoverBackgroundColorDelete,
49379
+ menuItemHoverColor: menuItemHoverColor
49380
+ };
49381
+
49382
+ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
49383
+ displayName: "PopupMenuItemstyled__PopupMenuItemContainer",
49384
+ componentId: "sc-urj1su-0"
49385
+ })(["width:100%;margin:0;padding:17px 11px;margin-bottom:5px;border:0;cursor:pointer;text-decoration:none;", " &:hover,&:active{text-decoration:none;", "}"], function (_ref) {
49386
+ var theme = _ref.theme,
49387
+ isDeleteAction = _ref.isDeleteAction;
49388
+ return "\n background-color: ".concat(theme.menuItemBackgroundColor, ";\n color: ").concat(isDeleteAction ? theme.menuItemColorDelete : theme.menuItemColor, ";\n ");
49389
+ }, function (_ref2) {
49390
+ var theme = _ref2.theme,
49391
+ isDeleteAction = _ref2.isDeleteAction;
49392
+ return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
49393
+ });
49394
+
49395
+ var _excluded$D = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
49396
+ var PopupMenuItem = function PopupMenuItem(_ref) {
49397
+ var id = _ref.id,
49398
+ closeMenuCallback = _ref.closeMenuCallback,
49399
+ _action = _ref.action,
49400
+ themeValues = _ref.themeValues,
49401
+ text = _ref.text,
49402
+ _ref$hasIcon = _ref.hasIcon,
49403
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
49404
+ _ref$isDeleteAction = _ref.isDeleteAction,
49405
+ isDeleteAction = _ref$isDeleteAction === void 0 ? false : _ref$isDeleteAction,
49406
+ Icon = _ref.icon,
49407
+ textExtraStyles = _ref.textExtraStyles,
49408
+ hoverStyles = _ref.hoverStyles,
49409
+ activeStyles = _ref.activeStyles,
49410
+ extraStyles = _ref.extraStyles,
49411
+ rest = _objectWithoutProperties(_ref, _excluded$D);
49412
+ return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
49413
+ id: id,
49414
+ role: "menuItem",
49415
+ text: text,
49416
+ action: function action() {
49417
+ _action();
49418
+ closeMenuCallback();
49419
+ },
49420
+ variant: "smallGhost",
49421
+ isDeleteAction: isDeleteAction,
49422
+ theme: themeValues,
49423
+ contentOverride: true,
49424
+ textExtraStyles: textExtraStyles,
49425
+ hoverStyles: hoverStyles,
49426
+ extraStyles: extraStyles,
49427
+ activeStyles: "outline: none; ".concat(activeStyles)
49428
+ }, rest), /*#__PURE__*/React__default.createElement(Box, {
49429
+ extraStyles: "\n display: flex;\n gap: 8px;\n justify-content: center;\n padding: 0;\n "
49430
+ }, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
49431
+ iconFill: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor
49432
+ }), text && /*#__PURE__*/React__default.createElement(Text$1, {
49433
+ variant: "pS",
49434
+ weight: FONT_WEIGHT_SEMIBOLD,
49435
+ fontFamily: "Public Sans, sans-serif",
49436
+ color: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor,
49437
+ extraStyles: textExtraStyles
49438
+ }, text)));
49439
+ };
49440
+ var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$U);
49441
+
49442
+ var hoverColor$6 = "#116285";
49443
+ var activeColor$a = "#0E506D";
49444
+ var menuTriggerColor = "#15749D";
49445
+ var backgroundColor$e = "white";
49446
+ var fallbackValues$V = {
49447
+ hoverColor: hoverColor$6,
49448
+ activeColor: activeColor$a,
49449
+ menuTriggerColor: menuTriggerColor,
49450
+ backgroundColor: backgroundColor$e
49451
+ };
49452
+
49453
+ var PopupMenuContainer = styled__default(Box).withConfig({
49454
+ displayName: "PopupMenustyled__PopupMenuContainer",
49455
+ componentId: "sc-1ge13q9-0"
49456
+ })(["display:flex;position:relative;padding:0;"]);
49457
+ var PopupMenuTriggerButton = styled__default(ButtonWithAction).withConfig({
49458
+ displayName: "PopupMenustyled__PopupMenuTriggerButton",
49459
+ componentId: "sc-1ge13q9-1"
49460
+ })(["padding:10px 15px;min-width:auto;&:active,&:focus{outline:none;border:1px solid rgba(196,206,244,1);background-color:rgba(235,239,251,1);}"]);
49461
+
49462
+ var PopupMenu = function PopupMenu(_ref) {
49463
+ var _ref$menuId = _ref.menuId,
49464
+ menuId = _ref$menuId === void 0 ? "popup-menu" : _ref$menuId,
49465
+ _ref$menuItems = _ref.menuItems,
49466
+ menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
49467
+ themeValues = _ref.themeValues,
49468
+ _ref$triggerText = _ref.triggerText,
49469
+ triggerText = _ref$triggerText === void 0 ? "trigger text" : _ref$triggerText,
49470
+ _ref$hasIcon = _ref.hasIcon,
49471
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
49472
+ Icon = _ref.icon,
49473
+ _ref$iconHelpText = _ref.iconHelpText,
49474
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
49475
+ menuFocus = _ref.menuFocus,
49476
+ containerExtraStyles = _ref.containerExtraStyles,
49477
+ textExtraStyles = _ref.textExtraStyles,
49478
+ _ref$minWidth = _ref.minWidth,
49479
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
49480
+ _ref$maxWidth = _ref.maxWidth,
49481
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
49482
+ _ref$height = _ref.height,
49483
+ height = _ref$height === void 0 ? "auto" : _ref$height,
49484
+ position = _ref.position,
49485
+ _ref$transform = _ref.transform,
49486
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
49487
+ buttonExtraStyles = _ref.buttonExtraStyles,
49488
+ popupExtraStyles = _ref.popupExtraStyles;
49489
+ var hoverColor = themeValues.hoverColor,
49490
+ activeColor = themeValues.activeColor,
49491
+ menuTriggerColor = themeValues.menuTriggerColor,
49492
+ backgroundColor = themeValues.backgroundColor;
49493
+ var _ref2 = position !== null && position !== void 0 ? position : {},
49494
+ _ref2$top = _ref2.top,
49495
+ top = _ref2$top === void 0 ? "".concat(height, "px") : _ref2$top,
49496
+ _ref2$right = _ref2.right,
49497
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
49498
+ _ref2$bottom = _ref2.bottom,
49499
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
49500
+ _ref2$left = _ref2.left,
49501
+ left = _ref2$left === void 0 ? "0" : _ref2$left;
49502
+ var _useState = React.useState(false),
49503
+ _useState2 = _slicedToArray(_useState, 2),
49504
+ isMenuOpen = _useState2[0],
49505
+ setIsMenuOpen = _useState2[1];
49506
+ var menuRef = React.useRef();
49507
+ var triggerRef = React.useRef();
49508
+ var toggleMenu = function toggleMenu(menuState) {
49509
+ return setIsMenuOpen(menuState);
49510
+ };
49511
+ React.useEffect(function () {
49512
+ var checkIfClickedOutside = function checkIfClickedOutside(e) {
49513
+ // If the menu is open and the clicked target is not within the menu or the trigger
49514
+ if (isMenuOpen && menuRef.current && !menuRef.current.contains(e.target) && triggerRef.current && !triggerRef.current.contains(e.target)) {
49515
+ toggleMenu(false);
49516
+ }
49517
+ };
49518
+ document.addEventListener("click", checkIfClickedOutside);
49519
+ return function () {
49520
+ document.removeEventListener("click", checkIfClickedOutside);
49521
+ };
49522
+ }, [isMenuOpen]);
49523
+ return /*#__PURE__*/React__default.createElement(PopupMenuContainer, {
49524
+ extraStyles: containerExtraStyles
49525
+ }, /*#__PURE__*/React__default.createElement(PopupMenuTriggerButton, {
49526
+ ref: triggerRef,
49527
+ action: function action() {
49528
+ toggleMenu(!isMenuOpen);
49529
+ },
49530
+ onKeyDown: function onKeyDown(e) {
49531
+ if (e.key === "Escape") {
49532
+ toggleMenu(false);
49533
+ }
49534
+ },
49535
+ contentOverride: true,
49536
+ variant: "smallGhost",
49537
+ tabIndex: "0",
49538
+ id: menuId,
49539
+ borderRadius: "8px",
49540
+ "aria-haspopup": "true",
49541
+ "aria-expanded": isMenuOpen,
49542
+ "aria-controls": "".concat(menuId, "-container"),
49543
+ extraStyles: buttonExtraStyles
49544
+ }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
49545
+ padding: "0",
49546
+ srOnly: true
49547
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
49548
+ id: "btn".concat(menuId, "_info")
49549
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
49550
+ color: menuTriggerColor,
49551
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
49552
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
49553
+ as: "div",
49554
+ id: "".concat(menuId, "-container"),
49555
+ ref: menuRef,
49556
+ onKeyDown: function onKeyDown(e) {
49557
+ if (e.key === "Escape") {
49558
+ toggleMenu(false);
49559
+ }
49560
+ },
49561
+ background: backgroundColor,
49562
+ borderRadius: "8px",
49563
+ boxShadow: "\n 0px 7px 32px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 4px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 8px -1px rgba(41, 42, 51, 0.3);\n ",
49564
+ role: "menu",
49565
+ "aria-labelledby": menuId,
49566
+ tabIndex: menuFocus && isMenuOpen ? "0" : "-1",
49567
+ minWidth: minWidth,
49568
+ maxWidth: maxWidth,
49569
+ extraStyles: "\n display: ".concat(isMenuOpen ? "block" : "none", ";\n position: absolute;\n padding: 8px 8px 3px 8px;\n top: ").concat(top, "; \n left: ").concat(left, ";\n right: ").concat(right, ";\n bottom: ").concat(bottom, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popupExtraStyles, ";\n ")
49570
+ }, menuItems.map(function (item, index) {
49571
+ return /*#__PURE__*/React__default.createElement(PopupMenuItem$1, _extends({
49572
+ key: index,
49573
+ id: "".concat(menuId, "-item-").concat(index),
49574
+ closeMenuCallback: function closeMenuCallback() {
49575
+ toggleMenu(false);
49576
+ // focus back to trigger button when menu closes
49577
+ triggerRef.current.focus();
49578
+ }
49579
+ }, item));
49580
+ })));
49581
+ };
49582
+ var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$V);
49583
+
49584
+ var pageBackground = "#FBFCFD";
49585
+ var fallbackValues$W = {
49818
49586
  pageBackground: pageBackground
49819
49587
  };
49820
49588
 
@@ -49862,7 +49630,7 @@ var CenterSingle = function CenterSingle(_ref) {
49862
49630
  padding: "0"
49863
49631
  })));
49864
49632
  };
49865
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$U));
49633
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$W));
49866
49634
 
49867
49635
  var CenterStack = function CenterStack(_ref) {
49868
49636
  var header = _ref.header,
@@ -49905,7 +49673,7 @@ var CenterStack = function CenterStack(_ref) {
49905
49673
  padding: "0"
49906
49674
  })));
49907
49675
  };
49908
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$U));
49676
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$W));
49909
49677
 
49910
49678
  var CenterSingle$2 = function CenterSingle(_ref) {
49911
49679
  var header = _ref.header,
@@ -49920,13 +49688,15 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49920
49688
  _ref$gutters = _ref.gutters,
49921
49689
  gutters = _ref$gutters === void 0 ? "2rem" : _ref$gutters,
49922
49690
  _ref$fillPageVertical = _ref.fillPageVertical,
49923
- fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical;
49691
+ fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical,
49692
+ _ref$background = _ref.background,
49693
+ background = _ref$background === void 0 ? COOL_GREY_05 : _ref$background;
49924
49694
  var themeContext = React.useContext(styled.ThemeContext);
49925
49695
  var isMobile = themeContext.isMobile;
49926
49696
  return /*#__PURE__*/React__default.createElement(Box, {
49927
49697
  padding: "0",
49928
49698
  minWidth: "100%",
49929
- background: COOL_GREY_05,
49699
+ background: background,
49930
49700
  extraStyles: "flex-grow: 1;"
49931
49701
  }, /*#__PURE__*/React__default.createElement(Cover, {
49932
49702
  childGap: "0",
@@ -49949,7 +49719,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49949
49719
  padding: "0"
49950
49720
  })));
49951
49721
  };
49952
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$U));
49722
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$W));
49953
49723
 
49954
49724
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
49955
49725
  var header = _ref.header,
@@ -50002,7 +49772,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
50002
49772
  padding: "0"
50003
49773
  })));
50004
49774
  };
50005
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$U));
49775
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$W));
50006
49776
 
50007
49777
  var SidebarStackContent = function SidebarStackContent(_ref) {
50008
49778
  var header = _ref.header,
@@ -50072,7 +49842,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
50072
49842
  key: "footer-box"
50073
49843
  })));
50074
49844
  };
50075
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49845
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$W));
50076
49846
 
50077
49847
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
50078
49848
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
@@ -50150,6 +49920,7 @@ exports.Checkbox = Checkbox$1;
50150
49920
  exports.CheckboxList = CheckboxList$1;
50151
49921
  exports.CheckmarkIcon = CheckmarkIcon;
50152
49922
  exports.ChevronIcon = ChevronIcon$1;
49923
+ exports.CloseIcon = CloseIcon;
50153
49924
  exports.Cluster = Cluster;
50154
49925
  exports.CollapsibleSection = CollapsibleSection$1;
50155
49926
  exports.Copyable = Copyable;
@@ -50244,6 +50015,7 @@ exports.Placeholder = Placeholder$1;
50244
50015
  exports.PlusCircleIcon = PlusCircleIcon;
50245
50016
  exports.PointOfSaleImage = PointOfSaleImage;
50246
50017
  exports.Popover = Popover$1;
50018
+ exports.PopupMenu = PopupMenu$1;
50247
50019
  exports.ProcessingFee = ProcessingFee$1;
50248
50020
  exports.ProfileIcon = ProfileIcon$1;
50249
50021
  exports.ProfileIconSmall = ProfileIconSmall$1;
@@ -50302,6 +50074,7 @@ exports.Title = Title$1;
50302
50074
  exports.ToastNotification = ToastNotification;
50303
50075
  exports.ToggleSwitch = ToggleSwitch$1;
50304
50076
  exports.TrashIcon = TrashIcon$1;
50077
+ exports.TrashIconV2 = TrashIconV2$1;
50305
50078
  exports.TypeaheadInput = TypeaheadInput;
50306
50079
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
50307
50080
  exports.VoidedIcon = VoidedIcon;
@@ -50314,10 +50087,10 @@ exports.WorkflowTile = WorkflowTile;
50314
50087
  exports.XCircleIconMedium = XCircleIconMedium;
50315
50088
  exports.XCircleIconSmall = XCircleIconSmall;
50316
50089
  exports.cardRegistry = cardRegistry;
50317
- exports.constants = index$5;
50090
+ exports.constants = index$4;
50318
50091
  exports.createPartialAmountFormState = createPartialAmountFormState;
50319
50092
  exports.createPartialAmountFormValidators = createPartialAmountFormValidators;
50320
- exports.hooks = index$4;
50093
+ exports.hooks = index$5;
50321
50094
  exports.util = index$6;
50322
50095
  exports.withWindowSize = withWindowSize;
50323
50096
  //# sourceMappingURL=index.cjs.js.map