@thecb/components 10.7.1-beta.1 → 10.7.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -4929,6 +4929,18 @@ var SPACING = {
4929
4929
  // Figma: Spacing/XS
4930
4930
  MD: "1.5rem" // Figma: Spacing/Normal
4931
4931
  };
4932
+ var SCREEN_READER_ONLY = {
4933
+ border: 0,
4934
+ clip: "rect(0 0 0 0)",
4935
+ clipPath: "inset(50%)",
4936
+ height: "1px",
4937
+ margin: "-1px",
4938
+ overflow: "hidden",
4939
+ padding: 0,
4940
+ position: "absolute",
4941
+ width: "1px",
4942
+ whiteSpace: "nowrap"
4943
+ };
4932
4944
 
4933
4945
  var style_constants = /*#__PURE__*/Object.freeze({
4934
4946
  __proto__: null,
@@ -4944,7 +4956,8 @@ var style_constants = /*#__PURE__*/Object.freeze({
4944
4956
  JUMBO_HEIGHT: JUMBO_HEIGHT,
4945
4957
  SPACER_HEIGHT: SPACER_HEIGHT,
4946
4958
  LINK_TEXT_DECORATION: LINK_TEXT_DECORATION,
4947
- SPACING: SPACING
4959
+ SPACING: SPACING,
4960
+ SCREEN_READER_ONLY: SCREEN_READER_ONLY
4948
4961
  });
4949
4962
 
4950
4963
  /*
@@ -19317,7 +19330,14 @@ var Alert = function Alert(_ref) {
19317
19330
  }, showQuitLink && /*#__PURE__*/React.createElement(Box, {
19318
19331
  padding: "0",
19319
19332
  minHeight: "100%",
19320
- onClick: onLinkClick
19333
+ onClick: onLinkClick,
19334
+ onKeyDown: function onKeyDown(e) {
19335
+ return e.key === "Enter" && onLinkClick();
19336
+ },
19337
+ role: "button",
19338
+ tabIndex: 0,
19339
+ "aria-label": "Close Alert: ".concat(heading),
19340
+ extraStyles: "cursor: pointer;"
19321
19341
  }, /*#__PURE__*/React.createElement(IconQuit, null))))));
19322
19342
  return /*#__PURE__*/React.createElement(Box, _extends({
19323
19343
  padding: padding,
@@ -39706,11 +39726,7 @@ var WalletName = function WalletName(_ref) {
39706
39726
  _ref$linkButtonExtraS = _ref.linkButtonExtraStyles,
39707
39727
  linkButtonExtraStyles = _ref$linkButtonExtraS === void 0 ? "" : _ref$linkButtonExtraS,
39708
39728
  _ref$isLoading = _ref.isLoading,
39709
- isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
39710
- _ref$dataQa = _ref.dataQa,
39711
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
39712
- _ref$actionTextPositi = _ref.actionTextPositionMobile,
39713
- actionTextPositionMobile = _ref$actionTextPositi === void 0 ? "outside" : _ref$actionTextPositi;
39729
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
39714
39730
  var _useContext = useContext(ThemeContext),
39715
39731
  isMobile = _useContext.isMobile;
39716
39732
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Module$1, {
@@ -39733,18 +39749,17 @@ var WalletName = function WalletName(_ref) {
39733
39749
  radius: "10",
39734
39750
  cx: "12",
39735
39751
  cy: "12"
39736
- })) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), (actionTextPositionMobile === "inside" || !isMobile) && /*#__PURE__*/React.createElement(Box, {
39752
+ })) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), !isMobile && /*#__PURE__*/React.createElement(Box, {
39737
39753
  padding: "0"
39738
39754
  }, text && /*#__PURE__*/React.createElement(Text$1, {
39739
39755
  variant: "pXS"
39740
39756
  }, text), (text || actionText) && /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
39741
39757
  disabled: disableAction,
39742
39758
  text: actionText,
39743
- dataQa: dataQa,
39744
39759
  action: action,
39745
39760
  variant: "smallGhost",
39746
39761
  extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(linkButtonExtraStyles, "\n ")
39747
- })))), !!isMobile && actionTextPositionMobile === "outside" && /*#__PURE__*/React.createElement(Cluster, {
39762
+ })))), isMobile && /*#__PURE__*/React.createElement(Cluster, {
39748
39763
  align: "center",
39749
39764
  justify: text || actionText ? "flex-end" : "flex-start",
39750
39765
  extraStyles: "margin-top: 0.5rem;"
@@ -46371,15 +46386,13 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
46371
46386
  };
46372
46387
  var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
46373
46388
 
46374
- // Uses the theme values (singleIconColor) for the other icons, located in /atoms/icons
46375
-
46376
46389
  var IconsModule = function IconsModule(_ref) {
46377
46390
  var icon = _ref.icon,
46378
46391
  iconDefault = _ref.iconDefault,
46379
46392
  configIconMap = _ref.configIconMap,
46380
46393
  iconValue = _ref.iconValue,
46381
46394
  customAttributes = _ref.customAttributes,
46382
- themeValues = _ref.themeValues;
46395
+ iconColor = _ref.iconColor;
46383
46396
  var Icon;
46384
46397
  if (_typeof(icon) === "object") {
46385
46398
  var _configIconMap$iconID;
@@ -46395,10 +46408,9 @@ var IconsModule = function IconsModule(_ref) {
46395
46408
  justify: "center",
46396
46409
  align: "center"
46397
46410
  }, /*#__PURE__*/React.createElement(Icon, {
46398
- color: themeValues.singleIconColor
46411
+ color: iconColor
46399
46412
  })));
46400
46413
  };
46401
- var IconModule = themeComponent(IconsModule, "Icon", fallbackValues$2, "primary");
46402
46414
 
46403
46415
  var TitleModule = function TitleModule(_ref) {
46404
46416
  var title = _ref.title,
@@ -46423,22 +46435,7 @@ var TitleModule = function TitleModule(_ref) {
46423
46435
  }, subtitle)));
46424
46436
  };
46425
46437
 
46426
- var color$c = "#15749D";
46427
- var hoverColor$5 = "#116285";
46428
- var activeColor$8 = "#0E506D";
46429
- var linkColor$4 = "#3176AA";
46430
- var fontWeight$6 = FONT_WEIGHT_REGULAR;
46431
- var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
46432
- var fallbackValues$L = {
46433
- color: color$c,
46434
- hoverColor: hoverColor$5,
46435
- activeColor: activeColor$8,
46436
- linkColor: linkColor$4,
46437
- fontWeight: fontWeight$6,
46438
- modalLinkHoverFocus: modalLinkHoverFocus
46439
- };
46440
-
46441
- var AutopayModal = function AutopayModal(_ref) {
46438
+ var AutopayModalModule = function AutopayModalModule(_ref) {
46442
46439
  var autoPayActive = _ref.autoPayActive,
46443
46440
  autoPaySchedule = _ref.autoPaySchedule,
46444
46441
  paymentPlanSchedule = _ref.paymentPlanSchedule,
@@ -46449,7 +46446,6 @@ var AutopayModal = function AutopayModal(_ref) {
46449
46446
  _ref$controlType = _ref.controlType,
46450
46447
  controlType = _ref$controlType === void 0 ? "tertiary" : _ref$controlType,
46451
46448
  isMobile = _ref.isMobile,
46452
- themeValues = _ref.themeValues,
46453
46449
  isPaymentPlan = _ref.isPaymentPlan,
46454
46450
  nextAutopayDate = _ref.nextAutopayDate,
46455
46451
  dueDate = _ref.dueDate,
@@ -46483,6 +46479,7 @@ var AutopayModal = function AutopayModal(_ref) {
46483
46479
  toggleModal(false);
46484
46480
  } : navigateToSettings
46485
46481
  };
46482
+ var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
46486
46483
  var hoverStyles = "text-decoration: underline;";
46487
46484
  var activeStyles = "text-decoration: underline;";
46488
46485
  var renderAutoPayControl = function renderAutoPayControl() {
@@ -46537,8 +46534,8 @@ var AutopayModal = function AutopayModal(_ref) {
46537
46534
  tabIndex: "0",
46538
46535
  dataQa: "".concat(shortPlan, " On"),
46539
46536
  color: SEA_GREEN,
46540
- weight: themeValues.fontWeight,
46541
- hoverStyles: themeValues.modalLinkHoverFocus,
46537
+ weight: FONT_WEIGHT_REGULAR,
46538
+ hoverStyles: modalLinkHoverFocus,
46542
46539
  extraStyles: "padding-left: 0.25rem;",
46543
46540
  disabled: disableActions
46544
46541
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
@@ -46555,7 +46552,6 @@ var AutopayModal = function AutopayModal(_ref) {
46555
46552
  modalOpen: modalOpen
46556
46553
  }, modalExtraProps), renderAutoPayControl());
46557
46554
  };
46558
- var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$L);
46559
46555
 
46560
46556
  var AmountModule = function AmountModule(_ref) {
46561
46557
  var totalAmountDue = _ref.totalAmountDue,
@@ -46914,6 +46910,11 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
46914
46910
  }, "This may mean that the balance has been paid, or there was an error loading it.".concat(autoPayEnabled ? " You may disable autopay for this account by pressing the 'Turn off Autopay' button." : ""))));
46915
46911
  };
46916
46912
 
46913
+ var iconColor = ROYAL_BLUE_VIVID;
46914
+ var fallbackValues$L = {
46915
+ iconColor: iconColor
46916
+ };
46917
+
46917
46918
  var Obligation = function Obligation(_ref) {
46918
46919
  var _obligations$, _firstObligation$cust;
46919
46920
  var config = _ref.config,
@@ -46941,7 +46942,8 @@ var Obligation = function Obligation(_ref) {
46941
46942
  _ref$inactiveLookupVa = _ref.inactiveLookupValue,
46942
46943
  inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa,
46943
46944
  _ref$isInCustomerMana = _ref.isInCustomerManagement,
46944
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46945
+ isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana,
46946
+ themeValues = _ref.themeValues;
46945
46947
  /*
46946
46948
  The value of obligations is always an array. It can contain:
46947
46949
  - A single obligation
@@ -46986,12 +46988,13 @@ var Obligation = function Obligation(_ref) {
46986
46988
  }, /*#__PURE__*/React.createElement(Cluster, {
46987
46989
  justify: "flex-start",
46988
46990
  align: "center"
46989
- }, !isMobile && /*#__PURE__*/React.createElement(IconModule, {
46991
+ }, !isMobile && /*#__PURE__*/React.createElement(IconsModule, {
46990
46992
  icon: config.icon,
46991
46993
  iconDefault: config.iconDefault,
46992
46994
  configIconMap: config.iconMap,
46993
46995
  iconValue: config.iconValue,
46994
- customAttributes: customAttributes
46996
+ customAttributes: customAttributes,
46997
+ iconColor: themeValues.iconColor
46995
46998
  }), /*#__PURE__*/React.createElement(TitleModule, {
46996
46999
  title: description,
46997
47000
  subtitle: subDescription,
@@ -47078,12 +47081,13 @@ var Obligation = function Obligation(_ref) {
47078
47081
  justify: "flex-start",
47079
47082
  align: "center",
47080
47083
  nowrap: true
47081
- }, /*#__PURE__*/React.createElement(IconModule, {
47084
+ }, /*#__PURE__*/React.createElement(IconsModule, {
47082
47085
  icon: config.icon,
47083
47086
  iconDefault: config.iconDefault,
47084
47087
  configIconMap: config.iconMap,
47085
47088
  iconValue: config.iconValue,
47086
- customAttributes: customAttributes
47089
+ customAttributes: customAttributes,
47090
+ iconColor: themeValues.iconColor
47087
47091
  }), /*#__PURE__*/React.createElement(InactiveTitleModule, {
47088
47092
  title: inactiveLookupTitle,
47089
47093
  subtitle: "".concat(inactiveLookupInput, ": ").concat(inactiveLookupValue),
@@ -47129,6 +47133,7 @@ var Obligation = function Obligation(_ref) {
47129
47133
  }))));
47130
47134
  return inactive ? inactiveObligation : activeObligation;
47131
47135
  };
47136
+ var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$L);
47132
47137
 
47133
47138
  var PartialAmountField = function PartialAmountField(_ref) {
47134
47139
  var lineItem = _ref.lineItem,
@@ -47265,9 +47270,9 @@ var arrowColor = WHITE;
47265
47270
  var numberColor = MATISSE_BLUE;
47266
47271
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47267
47272
  var activeBackgroundColor$2 = WHITE;
47268
- var activeColor$9 = MATISSE_BLUE;
47273
+ var activeColor$8 = MATISSE_BLUE;
47269
47274
  var fallbackValues$M = {
47270
- activeColor: activeColor$9,
47275
+ activeColor: activeColor$8,
47271
47276
  activeBackgroundColor: activeBackgroundColor$2,
47272
47277
  arrowColor: arrowColor,
47273
47278
  hoverBackgroundColor: hoverBackgroundColor$2,
@@ -47490,11 +47495,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47490
47495
  buttonGroupStyles = _ref.buttonGroupStyles,
47491
47496
  _ref$hideAdditionalBu = _ref.hideAdditionalButton,
47492
47497
  hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
47493
- additionalButton = _ref.additionalButton,
47494
- _ref$nextButtonTestId = _ref.nextButtonTestId,
47495
- nextButtonTestId = _ref$nextButtonTestId === void 0 ? null : _ref$nextButtonTestId,
47496
- _ref$backButtonTestId = _ref.backButtonTestId,
47497
- backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
47498
+ additionalButton = _ref.additionalButton;
47498
47499
  var _useContext = useContext(ThemeContext),
47499
47500
  isMobile = _useContext.isMobile;
47500
47501
  var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React.createElement(ButtonWithLink, {
@@ -47502,7 +47503,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47502
47503
  url: cancelURL,
47503
47504
  variant: backButtonVariant,
47504
47505
  extraStyles: isMobile && "flex-grow: 1",
47505
- dataQa: backButtonTestId || cancelText,
47506
+ dataQa: cancelText,
47506
47507
  "aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
47507
47508
  role: "link"
47508
47509
  }) : backButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
@@ -47519,7 +47520,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47519
47520
  text: redirectText,
47520
47521
  variant: forwardButtonVariant,
47521
47522
  extraStyles: isMobile && "flex-grow: 1",
47522
- dataQa: nextButtonTestId || redirectText,
47523
+ dataQa: redirectText,
47523
47524
  disabled: isForwardButtonDisabled,
47524
47525
  "aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
47525
47526
  role: forwardButtonAriaRole
@@ -47529,7 +47530,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47529
47530
  action: forwardButtonAction,
47530
47531
  isLoading: forwardButtonLoading,
47531
47532
  extraStyles: isMobile && "flex-grow: 1",
47532
- dataQa: nextButtonTestId || forwardButtonText,
47533
+ dataQa: forwardButtonText,
47533
47534
  disabled: isForwardButtonDisabled,
47534
47535
  "aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
47535
47536
  role: forwardButtonAriaRole
@@ -47934,7 +47935,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47934
47935
  };
47935
47936
  var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$N, "default");
47936
47937
 
47937
- var linkColor$5 = {
47938
+ var linkColor$4 = {
47938
47939
  "default": "#3176AA"
47939
47940
  };
47940
47941
  var fontSize$a = {
@@ -47943,21 +47944,21 @@ var fontSize$a = {
47943
47944
  var lineHeight$4 = {
47944
47945
  "default": "1.5rem"
47945
47946
  };
47946
- var fontWeight$7 = {
47947
+ var fontWeight$6 = {
47947
47948
  "default": FONT_WEIGHT_REGULAR
47948
47949
  };
47949
- var modalLinkHoverFocus$1 = {
47950
+ var modalLinkHoverFocus = {
47950
47951
  "default": "outline: none; text-decoration: underline;"
47951
47952
  };
47952
47953
  var linkTextDecoration = {
47953
47954
  "default": LINK_TEXT_DECORATION
47954
47955
  };
47955
47956
  var fallbackValues$O = {
47956
- linkColor: linkColor$5,
47957
+ linkColor: linkColor$4,
47957
47958
  fontSize: fontSize$a,
47958
47959
  lineHeight: lineHeight$4,
47959
- fontWeight: fontWeight$7,
47960
- modalLinkHoverFocus: modalLinkHoverFocus$1,
47960
+ fontWeight: fontWeight$6,
47961
+ modalLinkHoverFocus: modalLinkHoverFocus,
47961
47962
  linkTextDecoration: linkTextDecoration
47962
47963
  };
47963
47964
 
@@ -48022,7 +48023,7 @@ var backgroundColor$d = {
48022
48023
  "default": "#ffffff",
48023
48024
  footer: "#ffffff"
48024
48025
  };
48025
- var linkColor$6 = {
48026
+ var linkColor$5 = {
48026
48027
  "default": "#3176AA",
48027
48028
  footer: "#ffffff"
48028
48029
  };
@@ -48038,12 +48039,12 @@ var lineHeight$5 = {
48038
48039
  "default": "1.5rem",
48039
48040
  footer: "1.25rem"
48040
48041
  };
48041
- var fontWeight$8 = {
48042
+ var fontWeight$7 = {
48042
48043
  "default": FONT_WEIGHT_REGULAR,
48043
48044
  footer: FONT_WEIGHT_SEMIBOLD
48044
48045
  };
48045
48046
  var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
48046
- var modalLinkHoverFocus$2 = {
48047
+ var modalLinkHoverFocus$1 = {
48047
48048
  "default": standardInteractionStyles,
48048
48049
  footer: standardInteractionStyles
48049
48050
  };
@@ -48053,12 +48054,12 @@ var modalLinkTextDecoration = {
48053
48054
  };
48054
48055
  var fallbackValues$P = {
48055
48056
  backgroundColor: backgroundColor$d,
48056
- linkColor: linkColor$6,
48057
+ linkColor: linkColor$5,
48057
48058
  border: border$3,
48058
48059
  fontSize: fontSize$b,
48059
48060
  lineHeight: lineHeight$5,
48060
- fontWeight: fontWeight$8,
48061
- modalLinkHoverFocus: modalLinkHoverFocus$2,
48061
+ fontWeight: fontWeight$7,
48062
+ modalLinkHoverFocus: modalLinkHoverFocus$1,
48062
48063
  modalLinkTextDecoration: modalLinkTextDecoration
48063
48064
  };
48064
48065
 
@@ -49053,7 +49054,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49053
49054
  }, section.content))));
49054
49055
  };
49055
49056
 
49056
- var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
49057
+ var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
49057
49058
 
49058
49059
  /**
49059
49060
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49101,7 +49102,6 @@ var RadioSection = function RadioSection(_ref) {
49101
49102
  _ref$isSectionRequire = _ref.isSectionRequired,
49102
49103
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
49103
49104
  groupedSections = _ref.groupedSections,
49104
- borderOverride = _ref.borderOverride,
49105
49105
  rest = _objectWithoutProperties(_ref, _excluded$E);
49106
49106
  var _useState = useState(null),
49107
49107
  _useState2 = _slicedToArray(_useState, 2),
@@ -49134,7 +49134,7 @@ var RadioSection = function RadioSection(_ref) {
49134
49134
  };
49135
49135
  return /*#__PURE__*/React.createElement(Box, _extends({
49136
49136
  padding: "1px",
49137
- border: borderOverride || "1px solid ".concat(themeValues.borderColor),
49137
+ border: "1px solid ".concat(themeValues.borderColor),
49138
49138
  borderRadius: "4px",
49139
49139
  extraStyles: containerStyles,
49140
49140
  role: "radiogroup",
@@ -49649,7 +49649,7 @@ var Timeout = function Timeout(_ref) {
49649
49649
  };
49650
49650
  var Timeout$1 = withWindowSize(Timeout);
49651
49651
 
49652
- var _excluded$F = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive"];
49652
+ var _excluded$F = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
49653
49653
  var VARIANTS = {
49654
49654
  SUCCESS: "success",
49655
49655
  ERROR: "error"
@@ -49672,11 +49672,28 @@ var ToastNotification = function ToastNotification(_ref) {
49672
49672
  childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
49673
49673
  backgroundColor = _ref.backgroundColor,
49674
49674
  _ref$role = _ref.role,
49675
- role = _ref$role === void 0 ? "alert" : _ref$role,
49675
+ role = _ref$role === void 0 ? "status" : _ref$role,
49676
49676
  _ref$ariaLive = _ref.ariaLive,
49677
49677
  ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
49678
+ screenReaderMessage = _ref.screenReaderMessage,
49679
+ _ref$showScreenReader = _ref.showScreenReaderMessage,
49680
+ showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
49678
49681
  rest = _objectWithoutProperties(_ref, _excluded$F);
49679
- return /*#__PURE__*/React.createElement(Box, _extends({
49682
+ var screenReaderMessageRef = useRef();
49683
+ var LIVEREGION_TRANSITION_DELAY = 1000;
49684
+ useEffect$1(function () {
49685
+ if (showScreenReaderMessage) {
49686
+ var timeout = setTimeout(function () {
49687
+ if (screenReaderMessageRef.current) {
49688
+ screenReaderMessageRef.current.textContent = "".concat(screenReaderMessage ? screenReaderMessage : message ? message : "");
49689
+ }
49690
+ }, LIVEREGION_TRANSITION_DELAY);
49691
+ return function () {
49692
+ return clearTimeout(timeout);
49693
+ };
49694
+ }
49695
+ }, [showScreenReaderMessage, screenReaderMessage, message]);
49696
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _extends({
49680
49697
  onClick: closeToastNotification,
49681
49698
  onKeyDown: function onKeyDown(e) {
49682
49699
  return e.key === "Enter" && closeToastNotification();
@@ -49689,9 +49706,7 @@ var ToastNotification = function ToastNotification(_ref) {
49689
49706
  padding: "0rem 1rem",
49690
49707
  borderRadius: "4px",
49691
49708
  boxShadow: generateShadows().standard.base,
49692
- extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n "),
49693
- role: role,
49694
- "aria-live": ariaLive
49709
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
49695
49710
  }, rest), /*#__PURE__*/React.createElement(Cluster, {
49696
49711
  align: "center",
49697
49712
  childGap: childGap,
@@ -49705,16 +49720,22 @@ var ToastNotification = function ToastNotification(_ref) {
49705
49720
  }, /*#__PURE__*/React.createElement(Paragraph$1, {
49706
49721
  weight: FONT_WEIGHT_SEMIBOLD,
49707
49722
  extraStyles: "word-break: break-word;"
49708
- }, message))), /*#__PURE__*/React.createElement(IconQuitLarge, null)));
49723
+ }, message))), /*#__PURE__*/React.createElement(IconQuitLarge, null))), showScreenReaderMessage && /*#__PURE__*/React.createElement("span", {
49724
+ ref: screenReaderMessageRef,
49725
+ style: SCREEN_READER_ONLY,
49726
+ role: role,
49727
+ "aria-live": ariaLive,
49728
+ "aria-atomic": true
49729
+ }));
49709
49730
  };
49710
49731
 
49711
- var fontWeight$9 = "600";
49732
+ var fontWeight$8 = "600";
49712
49733
  var fontColor$1 = WHITE;
49713
49734
  var textAlign$1 = "left";
49714
49735
  var headerBackgroundColor$1 = BRIGHT_GREY;
49715
49736
  var imageBackgroundColor$1 = MATISSE_BLUE;
49716
49737
  var fallbackValues$V = {
49717
- fontWeight: fontWeight$9,
49738
+ fontWeight: fontWeight$8,
49718
49739
  fontColor: fontColor$1,
49719
49740
  textAlign: textAlign$1,
49720
49741
  headerBackgroundColor: headerBackgroundColor$1,
@@ -49887,13 +49908,13 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
49887
49908
  };
49888
49909
  var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$W);
49889
49910
 
49890
- var hoverColor$6 = "#116285";
49891
- var activeColor$a = "#0E506D";
49911
+ var hoverColor$5 = "#116285";
49912
+ var activeColor$9 = "#0E506D";
49892
49913
  var menuTriggerColor = "#15749D";
49893
49914
  var backgroundColor$e = "white";
49894
49915
  var fallbackValues$X = {
49895
- hoverColor: hoverColor$6,
49896
- activeColor: activeColor$a,
49916
+ hoverColor: hoverColor$5,
49917
+ activeColor: activeColor$9,
49897
49918
  menuTriggerColor: menuTriggerColor,
49898
49919
  backgroundColor: backgroundColor$e
49899
49920
  };
@@ -50322,5 +50343,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
50322
50343
  useToastNotification: useToastNotification
50323
50344
  });
50324
50345
 
50325
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
50346
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
50326
50347
  //# sourceMappingURL=index.esm.js.map