@thecb/components 3.7.0-beta.2 → 4.0.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 (70) hide show
  1. package/.storybook/main.js +1 -1
  2. package/.storybook/page.js +2 -0
  3. package/dist/index.cjs.js +170 -146
  4. package/package.json +2 -2
  5. package/src/components/atoms/alert/Alert.js +53 -35
  6. package/src/components/atoms/breadcrumb/Breadcrumb.js +4 -1
  7. package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -2
  8. package/src/components/atoms/checkbox/Checkbox.js +1 -0
  9. package/src/components/atoms/checkbox-list/CheckboxList.js +3 -1
  10. package/src/components/atoms/display-card/DisplayCard.js +4 -2
  11. package/src/components/atoms/dropdown/Dropdown.js +4 -4
  12. package/src/components/atoms/dropdown/Dropdown.stories.js +10 -33
  13. package/src/components/atoms/form-layouts/FormInput.js +7 -4
  14. package/src/components/atoms/form-layouts/FormLayouts.stories.js +5 -5
  15. package/src/components/atoms/hamburger-button/HamburgerButton.js +4 -3
  16. package/src/components/atoms/icons/AccountsIconSmall.js +6 -13
  17. package/src/components/atoms/icons/icons.stories.js +1 -1
  18. package/src/components/atoms/layouts/Box.styled.js +1 -0
  19. package/src/components/atoms/layouts/Cluster.styled.js +5 -1
  20. package/src/components/atoms/layouts/Sidebar.styled.js +7 -1
  21. package/src/components/atoms/radio-button/RadioButton.js +1 -0
  22. package/src/components/atoms/radio-button/RadioButton.stories.js +26 -61
  23. package/src/components/atoms/toggle-switch/ToggleSwitch.js +1 -0
  24. package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +10 -51
  25. package/src/components/molecules/editable-list/EditableList.js +11 -8
  26. package/src/components/molecules/nav-menu/NavMenuDesktop.js +2 -1
  27. package/src/components/molecules/nav-menu/NavMenuMobile.js +7 -1
  28. package/src/components/molecules/obligation/Obligation.js +9 -7
  29. package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +23 -23
  30. package/src/components/molecules/pagination/Pagination.js +20 -4
  31. package/src/components/molecules/radio-section/RadioSection.js +7 -3
  32. package/src/deprecated/components/radio-button/radio-button.js +5 -1
  33. package/src/deprecated/icons/IconInvalid.js +7 -31
  34. package/src/deprecated/icons/IconNeutral.js +5 -4
  35. package/src/deprecated/icons/IconValid.js +8 -33
  36. package/src/util/general.js +10 -1
  37. package/src/components/molecules/content/Content.js +0 -20
  38. package/src/components/molecules/content/Content.theme.js +0 -60
  39. package/src/components/molecules/content/blocks/accordion-block/AccordionBlock.js +0 -108
  40. package/src/components/molecules/content/blocks/accordion-block/index.js +0 -3
  41. package/src/components/molecules/content/blocks/article-block/ArticleBlock.js +0 -58
  42. package/src/components/molecules/content/blocks/article-block/index.js +0 -3
  43. package/src/components/molecules/content/blocks/attached-file-block/AttachedFileBlock.js +0 -60
  44. package/src/components/molecules/content/blocks/attached-file-block/index.js +0 -3
  45. package/src/components/molecules/content/blocks/featured-content-block/FeaturedContentBlock.js +0 -0
  46. package/src/components/molecules/content/blocks/featured-content-block/index.js +0 -0
  47. package/src/components/molecules/content/blocks/hero-block/HeroBlock.js +0 -54
  48. package/src/components/molecules/content/blocks/hero-block/index.js +0 -3
  49. package/src/components/molecules/content/blocks/highlight-block/HighlightBlock.js +0 -42
  50. package/src/components/molecules/content/blocks/highlight-block/index.js +0 -3
  51. package/src/components/molecules/content/blocks/index.js +0 -33
  52. package/src/components/molecules/content/blocks/info-block/InfoBlock.js +0 -15
  53. package/src/components/molecules/content/blocks/info-block/index.js +0 -3
  54. package/src/components/molecules/content/blocks/location-block/LocationBlock.js +0 -228
  55. package/src/components/molecules/content/blocks/location-block/index.js +0 -3
  56. package/src/components/molecules/content/blocks/related-links-block/RelatedLinksBlock.js +0 -35
  57. package/src/components/molecules/content/blocks/related-links-block/index.js +0 -3
  58. package/src/components/molecules/content/blocks/screendoor-block/ScreendoorBlock.js +0 -57
  59. package/src/components/molecules/content/blocks/screendoor-block/ScreendoorForm.styled.js +0 -314
  60. package/src/components/molecules/content/blocks/screendoor-block/index.js +0 -3
  61. package/src/components/molecules/content/blocks/tagline-block/TaglineBlock.js +0 -45
  62. package/src/components/molecules/content/blocks/tagline-block/index.js +0 -3
  63. package/src/components/molecules/content/blocks/task-block/TaskBlock.js +0 -40
  64. package/src/components/molecules/content/blocks/task-block/index.js +0 -3
  65. package/src/components/molecules/content/blocks/text-block/TextBlock.js +0 -40
  66. package/src/components/molecules/content/blocks/text-block/index.js +0 -3
  67. package/src/components/molecules/content/header/Header.js +0 -283
  68. package/src/components/molecules/content/header/Header.theme.js +0 -11
  69. package/src/components/molecules/content/header/index.js +0 -3
  70. package/src/components/molecules/content/index.js +0 -3
package/dist/index.cjs.js CHANGED
@@ -6087,12 +6087,19 @@ var displayCurrency = function displayCurrency(cents) {
6087
6087
  var convertCentsToMoneyInt = function convertCentsToMoneyInt(n) {
6088
6088
  return (n / 100).toFixed(0);
6089
6089
  };
6090
+
6091
+ var createUniqueId = function createUniqueId() {
6092
+ return "_" + Math.random().toString(36).substr(2, 9);
6093
+ };
6094
+
6090
6095
  var safeChildren = function safeChildren(children) {
6091
6096
  var replacement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
6092
6097
 
6093
6098
  if (children && children instanceof Array) {
6094
6099
  return children.map(function (child) {
6095
- return !child ? replacement : child;
6100
+ return !child ? /*#__PURE__*/React__default.createElement(React.Fragment, {
6101
+ key: createUniqueId()
6102
+ }, replacement) : child;
6096
6103
  });
6097
6104
  }
6098
6105
 
@@ -6251,7 +6258,8 @@ var BoxWrapper = styled__default(function (_ref) {
6251
6258
  minWidth = _ref.minWidth,
6252
6259
  maxWidth = _ref.maxWidth,
6253
6260
  padding = _ref.padding,
6254
- props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding"]);
6261
+ hiddenStyles = _ref.hiddenStyles,
6262
+ props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles"]);
6255
6263
 
6256
6264
  return /*#__PURE__*/React__default.createElement("div", props);
6257
6265
  })(_templateObject$1(), function (_ref2) {
@@ -6462,30 +6470,37 @@ function _templateObject$3() {
6462
6470
 
6463
6471
  return data;
6464
6472
  }
6465
- var ClusterWrapper = styled__default.div(_templateObject$3(), function (_ref) {
6466
- var overflow = _ref.overflow;
6473
+ /* eslint-disable no-unused-vars */
6474
+
6475
+ var ClusterWrapper = styled__default(function (_ref) {
6476
+ var overflow = _ref.overflow,
6477
+ props = _objectWithoutProperties(_ref, ["overflow"]);
6478
+
6479
+ return /*#__PURE__*/React__default.createElement("div", props);
6480
+ })(_templateObject$3(), function (_ref2) {
6481
+ var overflow = _ref2.overflow;
6467
6482
  return overflow ? "visible" : "hidden";
6468
6483
  });
6469
- var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref2) {
6470
- var nowrap = _ref2.nowrap;
6484
+ var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref3) {
6485
+ var nowrap = _ref3.nowrap;
6471
6486
  return nowrap ? "nowrap" : "wrap";
6472
- }, function (_ref3) {
6473
- var justify = _ref3.justify;
6474
- return justify;
6475
6487
  }, function (_ref4) {
6476
- var align = _ref4.align;
6477
- return align;
6488
+ var justify = _ref4.justify;
6489
+ return justify;
6478
6490
  }, function (_ref5) {
6479
- var childGap = _ref5.childGap;
6480
- return childGap;
6491
+ var align = _ref5.align;
6492
+ return align;
6481
6493
  }, function (_ref6) {
6482
- var minHeight = _ref6.minHeight;
6483
- return minHeight;
6494
+ var childGap = _ref6.childGap;
6495
+ return childGap;
6484
6496
  }, function (_ref7) {
6485
- var minWidth = _ref7.minWidth;
6486
- return minWidth;
6497
+ var minHeight = _ref7.minHeight;
6498
+ return minHeight;
6487
6499
  }, function (_ref8) {
6488
- var childGap = _ref8.childGap;
6500
+ var minWidth = _ref8.minWidth;
6501
+ return minWidth;
6502
+ }, function (_ref9) {
6503
+ var childGap = _ref9.childGap;
6489
6504
  return childGap;
6490
6505
  });
6491
6506
 
@@ -6608,25 +6623,35 @@ var SidebarWrapper = styled__default.div(_templateObject$5(), function (_ref) {
6608
6623
  var fullHeight = _ref.fullHeight;
6609
6624
  return fullHeight ? "height: 100%;" : "";
6610
6625
  });
6611
- var SidebarInnerWrapper = styled__default.div(_templateObject2$3(), function (_ref2) {
6612
- var childGap = _ref2.childGap;
6613
- return childGap;
6614
- }, function (_ref3) {
6626
+ var SidebarInnerWrapper = styled__default( // eslint-disable-next-line no-unused-vars
6627
+ function (_ref2) {
6628
+ var onRight = _ref2.onRight,
6629
+ childGap = _ref2.childGap,
6630
+ contentMinWidth = _ref2.contentMinWidth,
6631
+ minHeight = _ref2.minHeight,
6632
+ fullHeight = _ref2.fullHeight,
6633
+ props = _objectWithoutProperties(_ref2, ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"]);
6634
+
6635
+ return /*#__PURE__*/React__default.createElement("div", props);
6636
+ })(_templateObject2$3(), function (_ref3) {
6615
6637
  var childGap = _ref3.childGap;
6616
6638
  return childGap;
6617
6639
  }, function (_ref4) {
6618
- var width = _ref4.width;
6619
- return width ? "flex-basis: ".concat(width) : "";
6640
+ var childGap = _ref4.childGap;
6641
+ return childGap;
6620
6642
  }, function (_ref5) {
6621
- var minHeight = _ref5.minHeight;
6622
- return minHeight ? "margin-top: 0; margin-bottom: 0;" : "";
6643
+ var width = _ref5.width;
6644
+ return width ? "flex-basis: ".concat(width) : "";
6623
6645
  }, function (_ref6) {
6624
- var sidebarOnRight = _ref6.sidebarOnRight,
6625
- contentMinWidth = _ref6.contentMinWidth,
6626
- childGap = _ref6.childGap;
6627
- return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
6646
+ var minHeight = _ref6.minHeight;
6647
+ return minHeight ? "margin-top: 0; margin-bottom: 0;" : "";
6628
6648
  }, function (_ref7) {
6629
- var fullHeight = _ref7.fullHeight;
6649
+ var sidebarOnRight = _ref7.sidebarOnRight,
6650
+ contentMinWidth = _ref7.contentMinWidth,
6651
+ childGap = _ref7.childGap;
6652
+ return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
6653
+ }, function (_ref8) {
6654
+ var fullHeight = _ref8.fullHeight;
6630
6655
  return fullHeight ? "min-height: 100%;" : "";
6631
6656
  });
6632
6657
 
@@ -12641,7 +12666,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
12641
12666
  var loadingExtraStyles = "".concat(extraStyles, "; padding-top: 0.75rem; padding-bottom: 0.75rem;");
12642
12667
  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 ");
12643
12668
  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 ");
12644
- var disabledStyles = "\n background-clor: #6E727E;\n border-clor: #6E727E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6E727E;\n outline: none;\n }\n ";
12669
+ var disabledStyles = "\n background-clor: #6E727E;\n border-color: #6E727E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6E727E;\n outline: none;\n }\n ";
12645
12670
  return /*#__PURE__*/React__default.createElement(Box, {
12646
12671
  variant: variant,
12647
12672
  padding: themeValues.padding,
@@ -12653,7 +12678,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
12653
12678
  activeStyles: activeStyles,
12654
12679
  disabledStyles: disabledStyles,
12655
12680
  as: "button",
12656
- onClick: action,
12681
+ onClick: !isLoading && action,
12657
12682
  borderRadius: "2px",
12658
12683
  theme: themeContext,
12659
12684
  extraStyles: isLoading ? loadingExtraStyles : extraStyles,
@@ -12936,29 +12961,17 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
12936
12961
  width: "29",
12937
12962
  height: "27"
12938
12963
  })), /*#__PURE__*/React__default.createElement("g", {
12939
- id: "Random-Icon-Work",
12940
12964
  stroke: "none",
12941
12965
  strokeWidth: "1",
12942
12966
  fill: "none",
12943
12967
  fillRule: "evenodd"
12944
- }, /*#__PURE__*/React__default.createElement("g", {
12945
- id: "Header/Desktop/Menu"
12946
- }, /*#__PURE__*/React__default.createElement("g", {
12947
- id: "Header/Desktop/Menu/Accounts-Tab"
12948
- }, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", {
12949
- id: "Payments"
12950
- }, /*#__PURE__*/React__default.createElement("g", {
12951
- id: "folder-open"
12952
- }, /*#__PURE__*/React__default.createElement("mask", {
12968
+ }, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("mask", {
12953
12969
  id: "mask-2-accountssmall",
12954
12970
  fill: "white"
12955
12971
  }, /*#__PURE__*/React__default.createElement("use", {
12956
12972
  xlinkHref: "#path-1-accountssmall"
12957
- })), /*#__PURE__*/React__default.createElement("g", {
12958
- id: "Mask"
12959
- }), /*#__PURE__*/React__default.createElement("path", {
12973
+ })), /*#__PURE__*/React__default.createElement("g", null), /*#__PURE__*/React__default.createElement("path", {
12960
12974
  d: "M1.875,17.9609424 L4.30077547,13.8125148 C4.60546242,13.2968908 5.01561733,12.8867359 5.53124128,12.5820489 C6.04686523,12.277362 6.60936389,12.1250188 7.21873726,12.1250188 L7.21873726,12.1250188 L18.7499598,12.1250188 L18.7499598,10.4375228 C18.7499598,9.9687741 18.5858975,9.57033719 18.2577734,9.24221315 C17.9296494,8.91408911 17.5312125,8.75002682 17.0624638,8.75002682 L17.0624638,8.75002682 L11.4374772,8.75002682 L9.18748257,6.50003219 L3.56249598,6.50003219 C3.09374727,6.50003219 2.69531037,6.66409447 2.36718633,6.99221851 C2.03906229,7.32034255 1.875,7.71877946 1.875,8.18752816 L1.875,8.18752816 L1.875,17.9609424 Z M17.519494,20 C17.9179303,20 18.2929296,19.900391 18.6444913,19.7011726 C18.9960529,19.5019541 19.2655837,19.2265643 19.4530831,18.8750027 L19.4530831,18.8750027 L22.0194832,14.5156381 C22.1835455,14.2343887 22.1835455,13.9531394 22.0194832,13.6718901 C21.8554209,13.3906408 21.6093278,13.2500161 21.2812037,13.2500161 L21.2812037,13.2500161 L7.21873726,13.2500161 C6.82030089,13.2500161 6.4453016,13.3496251 6.09373994,13.5488435 C5.74217828,13.748062 5.47264749,14.0234517 5.28514812,14.3750134 L5.28514812,14.3750134 L2.71874799,18.734378 C2.5546857,19.0156273 2.5546857,19.2968767 2.71874799,19.578126 C2.88281028,19.8593753 3.12890344,20 3.45702748,20 L3.45702748,20 L17.519494,20 Z",
12961
- id: "f",
12962
12975
  fill: themeValues.singleIconColor,
12963
12976
  fillRule: "nonzero",
12964
12977
  mask: "url(#mask-2-accountssmall)"
@@ -13880,18 +13893,13 @@ var IconNeutral = function IconNeutral(_ref) {
13880
13893
  xmlnsXlink: "http://www.w3.org/1999/xlink",
13881
13894
  style: {
13882
13895
  margin: margin
13883
- }
13896
+ },
13897
+ "aria-label": "Neutral"
13884
13898
  }, /*#__PURE__*/React__default.createElement("g", {
13885
- id: "icon-neutral-group",
13886
13899
  fill: fill,
13887
13900
  fillRule: "nonzero",
13888
13901
  stroke: fill
13889
- }, /*#__PURE__*/React__default.createElement("g", {
13890
- id: "icon-neutral-Group-2"
13891
- }, /*#__PURE__*/React__default.createElement("g", {
13892
- id: "icon-neutral-PasswordVerification-Empty"
13893
- }, /*#__PURE__*/React__default.createElement("circle", {
13894
- id: "icon-neutral-Oval",
13902
+ }, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
13895
13903
  cx: "9",
13896
13904
  cy: "9",
13897
13905
  r: "8.5"
@@ -13918,27 +13926,22 @@ var IconValid = function IconValid(_ref) {
13918
13926
  xmlnsXlink: "http://www.w3.org/1999/xlink",
13919
13927
  style: {
13920
13928
  margin: margin
13921
- }
13929
+ },
13930
+ "aria-label": "Valid"
13922
13931
  }, /*#__PURE__*/React__default.createElement("g", {
13923
- id: "icon-valid-Authentication",
13924
13932
  stroke: "none",
13925
13933
  strokeWidth: "1",
13926
13934
  fill: "none",
13927
13935
  fillRule: "evenodd"
13928
13936
  }, /*#__PURE__*/React__default.createElement("g", {
13929
- id: "icon-valid-00.1.0.1---HSS---Register---Already-Exists-Error",
13930
13937
  transform: "translate(-538.000000, -996.000000)"
13931
13938
  }, /*#__PURE__*/React__default.createElement("g", {
13932
- id: "icon-valid-Password-Requirements",
13933
13939
  transform: "translate(457.000000, 938.000000)"
13934
13940
  }, /*#__PURE__*/React__default.createElement("g", {
13935
- id: "icon-valid-Group-2",
13936
13941
  transform: "translate(81.000000, 20.000000)"
13937
13942
  }, /*#__PURE__*/React__default.createElement("g", {
13938
- id: "icon-valid-PasswordVerification-Sucess",
13939
13943
  transform: "translate(0.000000, 38.000000)"
13940
13944
  }, /*#__PURE__*/React__default.createElement("circle", {
13941
- id: "icon-valid-Oval",
13942
13945
  stroke: bgFill,
13943
13946
  fill: bgFill,
13944
13947
  fillRule: "nonzero",
@@ -13946,13 +13949,10 @@ var IconValid = function IconValid(_ref) {
13946
13949
  cy: "9",
13947
13950
  r: "8.5"
13948
13951
  }), /*#__PURE__*/React__default.createElement("g", {
13949
- id: "icon-valid-baseline-check-24px",
13950
13952
  transform: "translate(2.000000, 2.000000)"
13951
13953
  }, /*#__PURE__*/React__default.createElement("polygon", {
13952
- id: "icon-valid-Path",
13953
13954
  points: "0 0 14 0 14 14 0 14"
13954
13955
  }), /*#__PURE__*/React__default.createElement("polygon", {
13955
- id: "icon-valid-Path-2",
13956
13956
  fill: iconFill,
13957
13957
  points: "5.25 9.4325 2.8175 7 1.98916667 7.8225 5.25 11.0833333 12.25 4.08333333 11.4275 3.26083333"
13958
13958
  }))))))));
@@ -13978,40 +13978,33 @@ var IconInvalid = function IconInvalid(_ref) {
13978
13978
  xmlnsXlink: "http://www.w3.org/1999/xlink",
13979
13979
  style: {
13980
13980
  margin: margin
13981
- }
13981
+ },
13982
+ "aria-label": "Invalid"
13982
13983
  }, /*#__PURE__*/React__default.createElement("g", {
13983
- id: "icon-invalid-Authentication",
13984
13984
  stroke: "none",
13985
13985
  strokeWidth: "1",
13986
13986
  fill: "none",
13987
13987
  fillRule: "evenodd"
13988
13988
  }, /*#__PURE__*/React__default.createElement("g", {
13989
- id: "icon-invalid-00.1.0.1---HSS---Register---Already-Exists-Error",
13990
13989
  transform: "translate(-538.000000, -1064.000000)",
13991
13990
  fillRule: "nonzero"
13992
13991
  }, /*#__PURE__*/React__default.createElement("g", {
13993
- id: "icon-invalid-Password-Requirements",
13994
13992
  transform: "translate(457.000000, 938.000000)"
13995
13993
  }, /*#__PURE__*/React__default.createElement("g", {
13996
- id: "icon-invalid-Group-2",
13997
13994
  transform: "translate(81.000000, 20.000000)"
13998
13995
  }, /*#__PURE__*/React__default.createElement("g", {
13999
- id: "icon-invalid-PasswordVerification-Error",
14000
13996
  transform: "translate(0.000000, 106.000000)"
14001
13997
  }, /*#__PURE__*/React__default.createElement("circle", {
14002
- id: "icon-invalid-Oval",
14003
13998
  stroke: bgFill,
14004
13999
  fill: bgFill,
14005
14000
  cx: "9",
14006
14001
  cy: "9",
14007
14002
  r: "8.5"
14008
14003
  }), /*#__PURE__*/React__default.createElement("g", {
14009
- id: "icon-invalid-Icon/Close",
14010
14004
  transform: "translate(2.000000, 2.000000)",
14011
14005
  fill: iconFill
14012
14006
  }, /*#__PURE__*/React__default.createElement("path", {
14013
14007
  d: "M7.58333333,7.58333333 L7.58333333,11.6666667 L6.41666667,11.6666667 L6.41666667,7.58333333 L2.33333333,7.58333333 L2.33333333,6.41666667 L6.41666667,6.41666667 L6.41666667,2.33333333 L7.58333333,2.33333333 L7.58333333,6.41666667 L11.6666667,6.41666667 L11.6666667,7.58333333 L7.58333333,7.58333333 Z",
14014
- id: "icon-invalid-x",
14015
14008
  transform: "translate(7.000000, 7.000000) rotate(45.000000) translate(-7.000000, -7.000000) "
14016
14009
  }))))))));
14017
14010
  };
@@ -14244,28 +14237,24 @@ var fallbackValues$4 = {
14244
14237
  var Alert = function Alert(_ref) {
14245
14238
  var heading = _ref.heading,
14246
14239
  text = _ref.text,
14240
+ textOverride = _ref.textOverride,
14247
14241
  variant = _ref.variant,
14248
14242
  children = _ref.children,
14249
14243
  height = _ref.height,
14250
14244
  onLinkClick = _ref.onLinkClick,
14245
+ _ref$padding = _ref.padding,
14246
+ padding = _ref$padding === void 0 ? "0.5rem" : _ref$padding,
14251
14247
  _ref$showQuitLink = _ref.showQuitLink,
14252
14248
  showQuitLink = _ref$showQuitLink === void 0 ? true : _ref$showQuitLink,
14253
- themeValues = _ref.themeValues;
14249
+ themeValues = _ref.themeValues,
14250
+ extraStyles = _ref.extraStyles,
14251
+ maxContentWidth = _ref.maxContentWidth;
14254
14252
  var Icon = AlertIcons[variant];
14255
- return /*#__PURE__*/React__default.createElement(Box, {
14256
- padding: "0.5rem",
14257
- width: "100%",
14258
- minHeight: "100px",
14259
- height: height ? height : "auto",
14260
- background: themeValues.background,
14261
- borderRadius: "4px",
14262
- borderColor: themeValues.border,
14263
- borderSize: "1px"
14264
- }, /*#__PURE__*/React__default.createElement(Sidebar, {
14253
+ var content = /*#__PURE__*/React__default.createElement(Sidebar, {
14265
14254
  width: "24px",
14266
14255
  childGap: "0rem"
14267
14256
  }, /*#__PURE__*/React__default.createElement(Box, {
14268
- padding: "0 0.5rem 0 1rem",
14257
+ padding: "0 0 0 1rem",
14269
14258
  minHeight: "100%"
14270
14259
  }, /*#__PURE__*/React__default.createElement(Cover, {
14271
14260
  minHeight: "100%",
@@ -14277,15 +14266,15 @@ var Alert = function Alert(_ref) {
14277
14266
  }, /*#__PURE__*/React__default.createElement(Icon, null)))), /*#__PURE__*/React__default.createElement(Box, {
14278
14267
  padding: "0"
14279
14268
  }, /*#__PURE__*/React__default.createElement(Sidebar, {
14280
- sidebarOnRight: true,
14269
+ onRight: true,
14281
14270
  width: "24px",
14282
14271
  childGap: "0rem"
14283
14272
  }, /*#__PURE__*/React__default.createElement(Box, {
14284
- padding: "1rem 1rem 1rem 0.5rem"
14273
+ padding: "".concat(padding, " 1rem")
14285
14274
  }, /*#__PURE__*/React__default.createElement(Cluster, {
14286
14275
  justify: "flex-start",
14287
14276
  align: "center"
14288
- }, /*#__PURE__*/React__default.createElement(Stack, {
14277
+ }, textOverride ? textOverride : /*#__PURE__*/React__default.createElement(Stack, {
14289
14278
  fullHeight: true,
14290
14279
  childGap: "0.25rem"
14291
14280
  }, /*#__PURE__*/React__default.createElement(Text$1, {
@@ -14302,7 +14291,20 @@ var Alert = function Alert(_ref) {
14302
14291
  padding: "0",
14303
14292
  minHeight: "100%",
14304
14293
  onClick: onLinkClick
14305
- }, /*#__PURE__*/React__default.createElement(IconQuit, null)))))));
14294
+ }, /*#__PURE__*/React__default.createElement(IconQuit, null))))));
14295
+ return /*#__PURE__*/React__default.createElement(Box, {
14296
+ padding: padding,
14297
+ width: "100%",
14298
+ minHeight: height && parseInt(height) < 100 ? height : "100px",
14299
+ height: height ? height : "auto",
14300
+ background: themeValues.background,
14301
+ borderRadius: "4px",
14302
+ borderColor: themeValues.border,
14303
+ borderSize: "1px",
14304
+ extraStyles: extraStyles
14305
+ }, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
14306
+ maxWidth: maxContentWidth
14307
+ }, content) : content);
14306
14308
  };
14307
14309
 
14308
14310
  var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
@@ -14648,8 +14650,8 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
14648
14650
  var themeValues = createThemeValues(themeContext, fallbackValues$7, "Breadcrumb");
14649
14651
  return /*#__PURE__*/React__default.createElement(Box, {
14650
14652
  padding: "0",
14651
- role: "region",
14652
- "aria-level": "Breadcrumb navigation"
14653
+ as: "nav",
14654
+ "aria-label": "Breadcrumb navigation"
14653
14655
  }, /*#__PURE__*/React__default.createElement(Cluster, {
14654
14656
  justify: "flex-start",
14655
14657
  align: "center"
@@ -14660,6 +14662,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
14660
14662
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
14661
14663
  key: "breadcrumb-".concat(linkText)
14662
14664
  }, /*#__PURE__*/React__default.createElement(InternalLink, {
14665
+ "aria-current": index === breadcrumbsList.length - 1 && "location",
14663
14666
  to: linkDestination,
14664
14667
  active: isActive.toString(),
14665
14668
  color: themeValues.color,
@@ -16506,6 +16509,7 @@ var Checkbox = function Checkbox(_ref4) {
16506
16509
  id: "checkbox-".concat(name),
16507
16510
  disabled: disabled,
16508
16511
  name: name,
16512
+ "aria-label": name,
16509
16513
  checked: checked,
16510
16514
  onChange: onChange,
16511
16515
  tabIndex: "-1"
@@ -16620,7 +16624,8 @@ var RadioButton = function RadioButton(_ref3) {
16620
16624
  name = _ref3.name;
16621
16625
  return /*#__PURE__*/React__default.createElement(RadioButtonBorder, {
16622
16626
  isSelected: isSelected,
16623
- name: name
16627
+ name: name,
16628
+ "aria-checked": isSelected
16624
16629
  }, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
16625
16630
  };
16626
16631
 
@@ -16666,6 +16671,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
16666
16671
  name = _ref.name,
16667
16672
  imageUrl = _ref.imageUrl,
16668
16673
  image = _ref.image,
16674
+ _ref$imageAlt = _ref.imageAlt,
16675
+ imageAlt = _ref$imageAlt === void 0 ? "checkbox icon" : _ref$imageAlt,
16669
16676
  disabled = _ref.disabled,
16670
16677
  borderColor = _ref.borderColor,
16671
16678
  color = _ref.color,
@@ -16689,6 +16696,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
16689
16696
  id: "checkbox-".concat(name, "-").concat(index)
16690
16697
  }), /*#__PURE__*/React__default.createElement(CheckboxLabel, {
16691
16698
  name: name,
16699
+ "aria-label": name,
16692
16700
  htmlFor: "checkbox-".concat(name, "-").concat(index),
16693
16701
  onClick: disabled ? noop : onSelect,
16694
16702
  onKeyDown: disabled ? noop : onSelect,
@@ -16708,7 +16716,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
16708
16716
  justify: "flex-start",
16709
16717
  align: "center"
16710
16718
  }, /*#__PURE__*/React__default.createElement(CheckboxItemIcon, {
16711
- src: imageUrl
16719
+ src: imageUrl,
16720
+ alt: imageAlt
16712
16721
  }))), /*#__PURE__*/React__default.createElement(Box, {
16713
16722
  padding: "0rem 0.5rem 0rem 0rem",
16714
16723
  hiddenStyles: !image
@@ -16805,7 +16814,7 @@ function _templateObject4$2() {
16805
16814
  }
16806
16815
 
16807
16816
  function _templateObject3$5() {
16808
- var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-size: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"]);
16817
+ var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-width: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"]);
16809
16818
 
16810
16819
  _templateObject3$5 = function _templateObject3() {
16811
16820
  return data;
@@ -17010,7 +17019,7 @@ var Dropdown = function Dropdown(_ref7) {
17010
17019
  tabIndex: 0,
17011
17020
  padding: "0",
17012
17021
  width: "100%",
17013
- focusStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
17022
+ hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
17014
17023
  "aria-expanded": isOpen
17015
17024
  }, /*#__PURE__*/React__default.createElement(Box, {
17016
17025
  as: "button",
@@ -17018,7 +17027,6 @@ var Dropdown = function Dropdown(_ref7) {
17018
17027
  width: "100%",
17019
17028
  padding: "12px",
17020
17029
  hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
17021
- focusStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
17022
17030
  borderSize: "1px",
17023
17031
  borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
17024
17032
  borderRadius: "2px",
@@ -17028,6 +17036,7 @@ var Dropdown = function Dropdown(_ref7) {
17028
17036
  direction: "row",
17029
17037
  bottomItem: 2
17030
17038
  }, isOpen ? /*#__PURE__*/React__default.createElement(SearchInput, {
17039
+ "aria-label": inputValue || "Dropdown awaiting search value",
17031
17040
  value: inputValue,
17032
17041
  onChange: noop,
17033
17042
  themeValues: themeValues
@@ -17040,7 +17049,7 @@ var Dropdown = function Dropdown(_ref7) {
17040
17049
  }, /*#__PURE__*/React__default.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React__default.createElement(DropdownContentWrapper, {
17041
17050
  open: isOpen,
17042
17051
  ref: dropdownRef,
17043
- tabIndex: -1
17052
+ tabIndex: 0
17044
17053
  }, /*#__PURE__*/React__default.createElement(Stack, {
17045
17054
  childGap: "0"
17046
17055
  }, filteredOptions.map(function (choice, i) {
@@ -18082,13 +18091,13 @@ var DisplayCard = function DisplayCard(_ref) {
18082
18091
  variant: "smallGhost",
18083
18092
  dataQa: buttonText,
18084
18093
  extraStyles: "min-width: 0;"
18085
- }) : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
18094
+ }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
18086
18095
  text: buttonText,
18087
18096
  action: buttonAction,
18088
18097
  variant: "smallGhost",
18089
18098
  dataQa: buttonText,
18090
18099
  extraStyles: "min-width: 0;"
18091
- }))))));
18100
+ }) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
18092
18101
  };
18093
18102
 
18094
18103
  var src = createCommonjsModule(function (module, exports) {
@@ -18513,7 +18522,8 @@ var InputField = styled__default.input(_templateObject$p(), function (_ref) {
18513
18522
 
18514
18523
  var FormattedInputField = styled__default(function (_ref7) {
18515
18524
  var showErrors = _ref7.showErrors,
18516
- props = _objectWithoutProperties(_ref7, ["showErrors"]);
18525
+ themeValues = _ref7.themeValues,
18526
+ props = _objectWithoutProperties(_ref7, ["showErrors", "themeValues"]);
18517
18527
 
18518
18528
  return /*#__PURE__*/React__default.createElement(src_1, props);
18519
18529
  })(_templateObject3$7(), function (_ref8) {
@@ -18572,10 +18582,12 @@ var FormInput = function FormInput(_ref13) {
18572
18582
  justify: "space-between",
18573
18583
  align: "center"
18574
18584
  }, /*#__PURE__*/React__default.createElement(Text$1, {
18585
+ as: "label",
18575
18586
  color: themeValues.labelColor,
18576
18587
  variant: "pS",
18577
18588
  weight: themeValues.fontWeight,
18578
- extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
18589
+ extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
18590
+ id: labelTextWhenNoError.replace(/\s+/g, "-")
18579
18591
  }, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Text$1, {
18580
18592
  color: themeValues.linkColor,
18581
18593
  variant: "pS",
@@ -18587,11 +18599,12 @@ var FormInput = function FormInput(_ref13) {
18587
18599
  justify: "space-between",
18588
18600
  align: "center"
18589
18601
  }, /*#__PURE__*/React__default.createElement(Text$1, {
18602
+ as: "label",
18590
18603
  color: themeValues.labelColor,
18591
18604
  variant: "pS",
18592
18605
  fontWeight: themeValues.fontWeight,
18593
18606
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
18594
- id: labelTextWhenNoError
18607
+ id: labelTextWhenNoError.replace(/\s+/g, "-")
18595
18608
  }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
18596
18609
  variant: "pS",
18597
18610
  color: themeValues.linkColor,
@@ -18611,7 +18624,7 @@ var FormInput = function FormInput(_ref13) {
18611
18624
  }, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
18612
18625
  padding: "0"
18613
18626
  }, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
18614
- "aria-labelledby": labelTextWhenNoError,
18627
+ "aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
18615
18628
  onChange: function onChange(e) {
18616
18629
  return fieldActions.set(e);
18617
18630
  },
@@ -18627,7 +18640,7 @@ var FormInput = function FormInput(_ref13) {
18627
18640
  customHeight: customHeight,
18628
18641
  extraStyles: extraStyles
18629
18642
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
18630
- "aria-labelledby": labelTextWhenNoError,
18643
+ "aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
18631
18644
  onChange: function onChange(e) {
18632
18645
  return fieldActions.set(e.target.value);
18633
18646
  },
@@ -18918,13 +18931,14 @@ var HamburgerButton = function HamburgerButton(_ref4) {
18918
18931
  inactiveColor = _ref4.inactiveColor,
18919
18932
  isActive = _ref4.isActive,
18920
18933
  _ref4$onClick = _ref4.onClick,
18921
- onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick;
18934
+ onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
18935
+ controls = _ref4.controls;
18922
18936
  return /*#__PURE__*/React__default.createElement(Hamburger, {
18923
18937
  className: isActive === true ? "active" : "",
18924
18938
  onClick: onClick,
18925
18939
  type: "button",
18926
- ariaLabel: "Menu",
18927
- ariaControls: "navigation"
18940
+ "aria-label": "Menu",
18941
+ "aria-controls": controls
18928
18942
  }, /*#__PURE__*/React__default.createElement(HamburgerBox, null, /*#__PURE__*/React__default.createElement(HamburgerInner, {
18929
18943
  className: isActive === true ? "active" : "",
18930
18944
  inactiveColor: inactiveColor,
@@ -19733,6 +19747,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
19733
19747
  animate: radioOn ? radioFocused ? "onFocused" : "on" : radioFocused ? "offFocused" : "off"
19734
19748
  }, /*#__PURE__*/React__default.createElement(HiddenRadioButton, {
19735
19749
  id: "#radio-".concat(name),
19750
+ "aria-label": name,
19736
19751
  disabled: disabled,
19737
19752
  onClick: toggleRadio,
19738
19753
  tabIndex: "-1"
@@ -30538,6 +30553,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
30538
30553
  extraStyles: "display: flex; align-items: center;",
30539
30554
  dataQa: dataQa
30540
30555
  }, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
30556
+ "aria-label": name,
30541
30557
  checked: isOn,
30542
30558
  onChange: disabled ? noop : onToggle,
30543
30559
  disabled: disabled,
@@ -32619,29 +32635,31 @@ var EditableList = function EditableList(_ref) {
32619
32635
  padding: "0",
32620
32636
  borderRadius: "4px",
32621
32637
  extraStyles: "box-shadow: 0px 2px 14px 0px rgb(246, 246, 249),\n 0px 3px 8px 0px rgb(202, 206, 216);"
32622
- }, items.map(function (props) {
32638
+ }, items.map(function (item) {
32623
32639
  var _useState = React.useState(false),
32624
32640
  _useState2 = _slicedToArray(_useState, 2),
32625
32641
  modalOpen = _useState2[0],
32626
32642
  toggleModal = _useState2[1];
32627
32643
 
32628
32644
  return /*#__PURE__*/React__default.createElement(EditableListItem, {
32629
- listItemSize: !!props.id && props.id === autoPayMethod ? "big" : listItemSize,
32630
- key: props.id
32645
+ listItemSize: !!item.id && item.id === autoPayMethod ? "big" : listItemSize,
32646
+ key: item.id || item
32631
32647
  }, /*#__PURE__*/React__default.createElement(Text$1, {
32632
32648
  variant: "p",
32633
32649
  color: CHARADE_GREY
32634
- }, renderItem(props)), /*#__PURE__*/React__default.createElement(EditableListItemControls, null, props.isPrimary && /*#__PURE__*/React__default.createElement(Text$1, {
32650
+ }, renderItem(item)), /*#__PURE__*/React__default.createElement(EditableListItemControls, null, item.isPrimary && /*#__PURE__*/React__default.createElement(Text$1, {
32635
32651
  variant: "p",
32636
32652
  color: STORM_GREY,
32637
- extraStyles: "font-style: italic;"
32653
+ extraStyles: "font-style: italic;",
32654
+ key: "Default ".concat(itemName)
32638
32655
  }, "Default ", itemName), canRemove && /*#__PURE__*/React__default.createElement(Box, {
32639
32656
  padding: "0 0.5rem",
32640
32657
  border: "2px solid transparent",
32641
32658
  extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
32642
- dataQa: qaPrefix + " Remove"
32659
+ dataQa: qaPrefix + " Remove",
32660
+ key: "Remove ".concat(item.id)
32643
32661
  }, useModal ? /*#__PURE__*/React__default.createElement(Modal, _extends({
32644
- item: _objectSpread2({}, props)
32662
+ item: _objectSpread2({}, item)
32645
32663
  }, modalProps, {
32646
32664
  modalOpen: modalOpen,
32647
32665
  toggleModal: toggleModal
@@ -32649,19 +32667,20 @@ var EditableList = function EditableList(_ref) {
32649
32667
  variant: "smallGhost",
32650
32668
  text: "Remove",
32651
32669
  action: function action() {
32652
- return removeItem(props.id);
32670
+ return removeItem(item.id);
32653
32671
  },
32654
32672
  extraStyles: "min-width: 0;"
32655
32673
  })), canEdit && /*#__PURE__*/React__default.createElement(Box, {
32656
32674
  padding: "0 0.5rem",
32657
32675
  border: "2px solid transparent",
32658
32676
  extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
32659
- dataQa: qaPrefix + " Edit"
32677
+ dataQa: qaPrefix + " Edit",
32678
+ key: "Edit ".concat(item.id)
32660
32679
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
32661
32680
  variant: "smallGhost",
32662
32681
  text: "Edit",
32663
32682
  action: function action() {
32664
- return editItem(props.id);
32683
+ return editItem(item.id);
32665
32684
  },
32666
32685
  extraStyles: "min-width: 0;"
32667
32686
  }))));
@@ -34449,7 +34468,8 @@ var fallbackValues$s = {
34449
34468
  };
34450
34469
 
34451
34470
  var NavMenuDesktop = function NavMenuDesktop(_ref) {
34452
- var _ref$top = _ref.top,
34471
+ var id = _ref.id,
34472
+ _ref$top = _ref.top,
34453
34473
  top = _ref$top === void 0 ? "125%" : _ref$top,
34454
34474
  _ref$left = _ref.left,
34455
34475
  left = _ref$left === void 0 ? "-100%" : _ref$left,
@@ -34464,6 +34484,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
34464
34484
  themeValues = _ref.themeValues;
34465
34485
  var menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: ".concat(themeValues.backgroundColor, "00; border-bottom-color: ").concat(themeValues.backgroundColor, "; border-width: 10px; margin-left: -10px; }");
34466
34486
  return /*#__PURE__*/React__default.createElement(Imposter, {
34487
+ id: id,
34467
34488
  breakout: true,
34468
34489
  top: top,
34469
34490
  left: left,
@@ -34526,12 +34547,14 @@ var menu = posed.div({
34526
34547
  var ImposterMenu = styled__default(menu)(_templateObject$y());
34527
34548
 
34528
34549
  var NavMenuMobile = function NavMenuMobile(_ref) {
34529
- var _ref$menuContent = _ref.menuContent,
34550
+ var id = _ref.id,
34551
+ _ref$menuContent = _ref.menuContent,
34530
34552
  menuContent = _ref$menuContent === void 0 ? [] : _ref$menuContent,
34531
34553
  _ref$visible = _ref.visible,
34532
34554
  visible = _ref$visible === void 0 ? false : _ref$visible,
34533
34555
  themeValues = _ref.themeValues;
34534
34556
  return /*#__PURE__*/React__default.createElement(ImposterMenu, {
34557
+ id: id,
34535
34558
  initialPose: "invisible",
34536
34559
  pose: visible ? "visible" : "invisible"
34537
34560
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -36204,9 +36227,6 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36204
36227
  justify: "space-between",
36205
36228
  align: "center",
36206
36229
  nowrap: true
36207
- }, /*#__PURE__*/React__default.createElement(Box, {
36208
- padding: "0",
36209
- width: "100%"
36210
36230
  }, /*#__PURE__*/React__default.createElement(AmountModule, {
36211
36231
  totalAmountDue: obligations.reduce(function (acc, curr) {
36212
36232
  return acc + curr.amountDue;
@@ -36216,19 +36236,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36216
36236
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36217
36237
  navigateToSettings: navigateToSettings,
36218
36238
  autoPaySchedule: autoPaySchedule
36219
- })), /*#__PURE__*/React__default.createElement(Box, {
36220
- padding: "0",
36221
- width: "100%"
36222
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36223
- isLoading: isLoading,
36224
- action: function action() {
36225
- return handleClick(obligations);
36226
- },
36227
- text: "Pay Now",
36228
- variant: isMobile ? "smallSecondary" : "secondary",
36229
- dataQa: "Pay Now",
36230
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36231
- })))), /*#__PURE__*/React__default.createElement(Box, {
36239
+ }))), /*#__PURE__*/React__default.createElement(Box, {
36232
36240
  padding: isMobile ? "16px" : "0"
36233
36241
  }, /*#__PURE__*/React__default.createElement(Cluster, {
36234
36242
  justify: isMobile ? "center" : "flex-end",
@@ -36276,7 +36284,19 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36276
36284
  variant: isMobile ? "smallSecondary" : "secondary",
36277
36285
  dataQa: "Pay Now",
36278
36286
  extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36279
- })))));
36287
+ }))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
36288
+ padding: "8px 0 0",
36289
+ width: "100%"
36290
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36291
+ isLoading: isLoading,
36292
+ action: function action() {
36293
+ return handleClick(obligations);
36294
+ },
36295
+ text: "Pay Now",
36296
+ variant: isMobile ? "smallSecondary" : "secondary",
36297
+ dataQa: "Pay Now",
36298
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36299
+ }))));
36280
36300
  };
36281
36301
 
36282
36302
  var Obligation = function Obligation(_ref) {
@@ -36314,7 +36334,7 @@ var Obligation = function Obligation(_ref) {
36314
36334
  }, /*#__PURE__*/React__default.createElement(Cluster, {
36315
36335
  justify: "flex-start",
36316
36336
  align: "center"
36317
- }, /*#__PURE__*/React__default.createElement(IconsModule, {
36337
+ }, !isMobile && /*#__PURE__*/React__default.createElement(IconsModule, {
36318
36338
  icon: config.icon,
36319
36339
  iconDefault: config.iconDefault,
36320
36340
  configIconMap: config.iconMap,
@@ -36460,7 +36480,8 @@ var PAGING_INIT_SPACE = 3; // first delimiter should appear after 3 pages
36460
36480
  var PrevNextButton = function PrevNextButton(_ref) {
36461
36481
  var action = _ref.action,
36462
36482
  type = _ref.type,
36463
- arrowColor = _ref.arrowColor;
36483
+ arrowColor = _ref.arrowColor,
36484
+ numberColor = _ref.numberColor;
36464
36485
  return /*#__PURE__*/React__default.createElement(Box, {
36465
36486
  padding: "0 10px 0",
36466
36487
  minHeight: "40px",
@@ -36469,7 +36490,7 @@ var PrevNextButton = function PrevNextButton(_ref) {
36469
36490
  action: action,
36470
36491
  contentOverride: true,
36471
36492
  dataQa: type,
36472
- extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n "
36493
+ extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, ";\n border-color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n ")
36473
36494
  }, /*#__PURE__*/React__default.createElement(Box, {
36474
36495
  padding: "0",
36475
36496
  extraStyles: type === "prev" && "transform: scaleX(-1)"
@@ -36538,7 +36559,9 @@ var Pagination = function Pagination(_ref2) {
36538
36559
  childGap: "10px"
36539
36560
  }, currentPage > 1 && /*#__PURE__*/React__default.createElement(PrevNextButton, {
36540
36561
  type: "prev",
36541
- action: pagePrevious
36562
+ action: pagePrevious,
36563
+ arrowColor: arrowColor,
36564
+ numberColor: numberColor
36542
36565
  }), getPagesPanel(currentPage, pageCount).map(function (item, index) {
36543
36566
  return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
36544
36567
  padding: "0",
@@ -36556,7 +36579,7 @@ var Pagination = function Pagination(_ref2) {
36556
36579
  });
36557
36580
  } : noop,
36558
36581
  textExtraStyles: "font-size: 17px; font-weight: 900;",
36559
- extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n }\n &:hover { ").concat(item.active ? "cursor: default;" : "background-color: ".concat(ALABASTER_WHITE), " }\n "),
36582
+ extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\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 : MATISSE_BLUE, "\n }\n }\n &:hover { ").concat(item.active ? "cursor: default;" : "background-color: ".concat(ALABASTER_WHITE), " }\n "),
36560
36583
  dataQa: index
36561
36584
  }, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
36562
36585
  padding: "0 10px"
@@ -36571,7 +36594,8 @@ var Pagination = function Pagination(_ref2) {
36571
36594
  }), currentPage < pageCount && /*#__PURE__*/React__default.createElement(PrevNextButton, {
36572
36595
  type: "next",
36573
36596
  action: pageNext,
36574
- arrowColor: arrowColor
36597
+ arrowColor: arrowColor,
36598
+ numberColor: numberColor
36575
36599
  }));
36576
36600
  };
36577
36601
 
@@ -37404,10 +37428,10 @@ var RadioSection = function RadioSection(_ref) {
37404
37428
  }, /*#__PURE__*/React__default.createElement(Box, {
37405
37429
  padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem 1.25rem 1.25rem",
37406
37430
  background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
37407
- onClick: isMobile && supportsTouch ? noop : function () {
37431
+ onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
37408
37432
  return toggleOpenSection(section.id);
37409
37433
  },
37410
- onTouchEnd: isMobile && supportsTouch ? function () {
37434
+ onTouchEnd: isMobile && supportsTouch || !section.disabled ? function () {
37411
37435
  return toggleOpenSection(section.id);
37412
37436
  } : noop,
37413
37437
  key: "header-".concat(section.id),
@@ -37431,7 +37455,7 @@ var RadioSection = function RadioSection(_ref) {
37431
37455
  name: section.id,
37432
37456
  radioOn: openSection === section.id,
37433
37457
  radioFocused: focused === section.id,
37434
- toggleRadio: function toggleRadio() {
37458
+ toggleRadio: section.disabled ? noop : function () {
37435
37459
  return toggleOpenSection(section.id);
37436
37460
  },
37437
37461
  tabIndex: "-1"