@thecb/components 12.0.0-beta.7 → 12.0.0-beta.9

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.cjs.js CHANGED
@@ -15099,7 +15099,8 @@ var AutopayOnIcon = function AutopayOnIcon(_ref) {
15099
15099
  xmlns: "http://www.w3.org/2000/svg",
15100
15100
  width: "12",
15101
15101
  height: "13",
15102
- viewBox: "0 0 12 13"
15102
+ viewBox: "0 0 12 13",
15103
+ "aria-hidden": "true"
15103
15104
  }, /*#__PURE__*/React__default.createElement("g", {
15104
15105
  fill: "none",
15105
15106
  fillRule: "evenodd",
@@ -21673,6 +21674,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
21673
21674
  });
21674
21675
  /* eslint-enable no-unused-vars */
21675
21676
 
21677
+ var _excluded$u = ["to", "color", "children", "active", "fontSize", "lineheight", "fontWeight", "variant", "margin", "tabIndex", "dataQa", "extraStyles", "isUnderlined", "hoverUnderline", "extraHoverStyles", "extraActiveStyles", "extraFocusStyles"];
21676
21678
  var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21677
21679
  var _ref$to = _ref.to,
21678
21680
  to = _ref$to === void 0 ? "" : _ref$to,
@@ -21699,10 +21701,11 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21699
21701
  _ref$extraActiveStyle = _ref.extraActiveStyles,
21700
21702
  extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
21701
21703
  _ref$extraFocusStyles = _ref.extraFocusStyles,
21702
- extraFocusStyles = _ref$extraFocusStyles === void 0 ? "" : _ref$extraFocusStyles;
21704
+ extraFocusStyles = _ref$extraFocusStyles === void 0 ? "" : _ref$extraFocusStyles,
21705
+ rest = _objectWithoutProperties(_ref, _excluded$u);
21703
21706
  var themeContext = React.useContext(styled.ThemeContext);
21704
21707
  var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
21705
- return /*#__PURE__*/React__default.createElement(StyledInternalLink, {
21708
+ return /*#__PURE__*/React__default.createElement(StyledInternalLink, _extends({
21706
21709
  to: to,
21707
21710
  color: color,
21708
21711
  lineheight: lineheight,
@@ -21722,7 +21725,7 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21722
21725
  extraFocusStyles: extraFocusStyles,
21723
21726
  "data-qa": dataQa,
21724
21727
  ref: ref
21725
- }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
21728
+ }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
21726
21729
  });
21727
21730
 
21728
21731
  var Breadcrumbs = function Breadcrumbs(_ref) {
@@ -21757,7 +21760,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
21757
21760
  })));
21758
21761
  };
21759
21762
 
21760
- var _excluded$u = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21763
+ var _excluded$v = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21761
21764
  var ButtonWithLink = function ButtonWithLink(_ref) {
21762
21765
  var _ref$url = _ref.url,
21763
21766
  url = _ref$url === void 0 ? "/" : _ref$url,
@@ -21772,7 +21775,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21772
21775
  _ref$newTab = _ref.newTab,
21773
21776
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
21774
21777
  dataQa = _ref.dataQa,
21775
- otherProps = _objectWithoutProperties(_ref, _excluded$u);
21778
+ otherProps = _objectWithoutProperties(_ref, _excluded$v);
21776
21779
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21777
21780
  var children = _ref2.children,
21778
21781
  url = _ref2.url,
@@ -21860,7 +21863,7 @@ var ParagraphText = styled__default.p.withConfig({
21860
21863
  return extraStyles;
21861
21864
  });
21862
21865
 
21863
- var _excluded$v = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
21866
+ var _excluded$w = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
21864
21867
  var Paragraph = function Paragraph(_ref) {
21865
21868
  var themeValues = _ref.themeValues,
21866
21869
  _ref$weight = _ref.weight,
@@ -21874,7 +21877,7 @@ var Paragraph = function Paragraph(_ref) {
21874
21877
  dataQa = _ref.dataQa,
21875
21878
  children = _ref.children,
21876
21879
  as = _ref.as,
21877
- rest = _objectWithoutProperties(_ref, _excluded$v);
21880
+ rest = _objectWithoutProperties(_ref, _excluded$w);
21878
21881
  return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
21879
21882
  weight: weight,
21880
21883
  color: color,
@@ -22116,7 +22119,7 @@ var ENTER = 13;
22116
22119
  var ESCAPE = 27;
22117
22120
  var SPACEBAR = 32;
22118
22121
 
22119
- var _excluded$w = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
22122
+ var _excluded$x = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
22120
22123
  var CheckboxContainer = styled__default.span.withConfig({
22121
22124
  displayName: "Checkbox__CheckboxContainer",
22122
22125
  componentId: "sc-36kqbv-0"
@@ -22186,7 +22189,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
22186
22189
  _ref5$hasIconOverride = _ref5.hasIconOverride,
22187
22190
  hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
22188
22191
  Icon = _ref5.icon,
22189
- rest = _objectWithoutProperties(_ref5, _excluded$w);
22192
+ rest = _objectWithoutProperties(_ref5, _excluded$x);
22190
22193
  var _useState = React.useState(false),
22191
22194
  _useState2 = _slicedToArray(_useState, 2),
22192
22195
  focused = _useState2[0],
@@ -22542,7 +22545,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
22542
22545
  return extraStyles;
22543
22546
  });
22544
22547
 
22545
- var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
22548
+ var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
22546
22549
  var TableRow = function TableRow(_ref) {
22547
22550
  var children = _ref.children,
22548
22551
  extraStyles = _ref.extraStyles,
@@ -22552,7 +22555,7 @@ var TableRow = function TableRow(_ref) {
22552
22555
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
22553
22556
  onClick = _ref.onClick,
22554
22557
  themeValues = _ref.themeValues,
22555
- props = _objectWithoutProperties(_ref, _excluded$x);
22558
+ props = _objectWithoutProperties(_ref, _excluded$y);
22556
22559
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
22557
22560
  onClick: onClick,
22558
22561
  hoverEffect: hoverEffect,
@@ -25389,7 +25392,7 @@ var mobileFallbackValues$1 = {
25389
25392
  };
25390
25393
  var MOBILE_BREAKPOINT$1 = 768;
25391
25394
 
25392
- var _excluded$y = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25395
+ var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25393
25396
  var isBelowBreakpoint$1 = window.innerWidth < MOBILE_BREAKPOINT$1;
25394
25397
  var isTouchDevice$1 = "ontouchstart" in window || navigator.maxTouchPoints > 1;
25395
25398
  var mobileDeviceDetected$1 = isBelowBreakpoint$1 && isTouchDevice$1;
@@ -25412,7 +25415,7 @@ var Detail = function Detail(_ref) {
25412
25415
  as = _ref$as === void 0 ? "p" : _ref$as,
25413
25416
  dataQa = _ref.dataQa,
25414
25417
  children = _ref.children,
25415
- rest = _objectWithoutProperties(_ref, _excluded$y);
25418
+ rest = _objectWithoutProperties(_ref, _excluded$z);
25416
25419
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
25417
25420
  variant: variant,
25418
25421
  as: as,
@@ -25802,7 +25805,7 @@ var fallbackValues$m = {
25802
25805
  formFooterPanel: formFooterPanel
25803
25806
  };
25804
25807
 
25805
- var _excluded$z = ["showErrors", "themeValues"],
25808
+ var _excluded$A = ["showErrors", "themeValues"],
25806
25809
  _excluded2 = ["ariaLabelledBy", "type", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
25807
25810
  var InputField = styled__default.input.withConfig({
25808
25811
  displayName: "FormInput__InputField",
@@ -25837,7 +25840,7 @@ var InputField = styled__default.input.withConfig({
25837
25840
  var FormattedInputField = styled__default(function (_ref8) {
25838
25841
  var showErrors = _ref8.showErrors,
25839
25842
  themeValues = _ref8.themeValues,
25840
- props = _objectWithoutProperties(_ref8, _excluded$z);
25843
+ props = _objectWithoutProperties(_ref8, _excluded$A);
25841
25844
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
25842
25845
  }).withConfig({
25843
25846
  displayName: "FormInput__FormattedInputField",
@@ -26042,7 +26045,7 @@ var FormInput = function FormInput(_ref15) {
26042
26045
  };
26043
26046
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
26044
26047
 
26045
- var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26048
+ var _excluded$B = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26046
26049
  var FormInputRow = function FormInputRow(_ref) {
26047
26050
  var _ref$breakpoint = _ref.breakpoint,
26048
26051
  breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
@@ -26051,7 +26054,7 @@ var FormInputRow = function FormInputRow(_ref) {
26051
26054
  largeChild = _ref.largeChild,
26052
26055
  largeChildSize = _ref.largeChildSize,
26053
26056
  children = _ref.children,
26054
- rest = _objectWithoutProperties(_ref, _excluded$A);
26057
+ rest = _objectWithoutProperties(_ref, _excluded$B);
26055
26058
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26056
26059
  padding: "0"
26057
26060
  }, rest), /*#__PURE__*/React__default.createElement(Switcher, {
@@ -26062,24 +26065,24 @@ var FormInputRow = function FormInputRow(_ref) {
26062
26065
  }, children));
26063
26066
  };
26064
26067
 
26065
- var _excluded$B = ["childGap", "bottomItem", "children"];
26068
+ var _excluded$C = ["childGap", "bottomItem", "children"];
26066
26069
  var FormInputColumn = function FormInputColumn(_ref) {
26067
26070
  var _ref$childGap = _ref.childGap,
26068
26071
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
26069
26072
  bottomItem = _ref.bottomItem,
26070
26073
  children = _ref.children,
26071
- rest = _objectWithoutProperties(_ref, _excluded$B);
26074
+ rest = _objectWithoutProperties(_ref, _excluded$C);
26072
26075
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
26073
26076
  childGap: childGap,
26074
26077
  bottomItem: bottomItem
26075
26078
  }, rest), children);
26076
26079
  };
26077
26080
 
26078
- var _excluded$C = ["themeValues", "children"];
26081
+ var _excluded$D = ["themeValues", "children"];
26079
26082
  var FormContainer = function FormContainer(_ref) {
26080
26083
  var themeValues = _ref.themeValues,
26081
26084
  children = _ref.children,
26082
- rest = _objectWithoutProperties(_ref, _excluded$C);
26085
+ rest = _objectWithoutProperties(_ref, _excluded$D);
26083
26086
  var _useContext = React.useContext(styled.ThemeContext),
26084
26087
  isMobile = _useContext.isMobile;
26085
26088
  return /*#__PURE__*/React__default.createElement(Box, _extends({
@@ -26111,7 +26114,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
26111
26114
  };
26112
26115
  var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
26113
26116
 
26114
- var _excluded$D = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
26117
+ var _excluded$E = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
26115
26118
  var TextareaField = styled__default.textarea.withConfig({
26116
26119
  displayName: "FormTextarea__TextareaField",
26117
26120
  componentId: "sc-94tlb0-0"
@@ -26174,7 +26177,7 @@ var FormTextarea = function FormTextarea(_ref8) {
26174
26177
  cols = _ref8.cols,
26175
26178
  placeholder = _ref8.placeholder,
26176
26179
  maxLength = _ref8.maxLength,
26177
- props = _objectWithoutProperties(_ref8, _excluded$D);
26180
+ props = _objectWithoutProperties(_ref8, _excluded$E);
26178
26181
  var setValue = function setValue(value) {
26179
26182
  if (removeFromValue !== undefined) {
26180
26183
  return fieldActions.set(value.replace(removeFromValue, ""));
@@ -26579,7 +26582,7 @@ var fallbackValues$q = {
26579
26582
  fontSize: fontSize$8
26580
26583
  };
26581
26584
 
26582
- var _excluded$E = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26585
+ var _excluded$F = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26583
26586
  var Heading = function Heading(_ref) {
26584
26587
  var themeValues = _ref.themeValues,
26585
26588
  _ref$weight = _ref.weight,
@@ -26598,7 +26601,7 @@ var Heading = function Heading(_ref) {
26598
26601
  as = _ref$as === void 0 ? variant : _ref$as,
26599
26602
  dataQa = _ref.dataQa,
26600
26603
  children = _ref.children,
26601
- rest = _objectWithoutProperties(_ref, _excluded$E);
26604
+ rest = _objectWithoutProperties(_ref, _excluded$F);
26602
26605
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
26603
26606
  variant: variant,
26604
26607
  as: as,
@@ -26878,11 +26881,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
26878
26881
  }, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
26879
26882
  };
26880
26883
 
26881
- var _excluded$F = ["version"];
26884
+ var _excluded$G = ["version"];
26882
26885
  var LabeledAmount = function LabeledAmount(_ref) {
26883
26886
  var _ref$version = _ref.version,
26884
26887
  version = _ref$version === void 0 ? "v1" : _ref$version,
26885
- rest = _objectWithoutProperties(_ref, _excluded$F);
26888
+ rest = _objectWithoutProperties(_ref, _excluded$G);
26886
26889
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
26887
26890
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
26888
26891
  };
@@ -26960,7 +26963,7 @@ var Loading = function Loading() {
26960
26963
  })))));
26961
26964
  };
26962
26965
 
26963
- var _excluded$G = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26966
+ var _excluded$H = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26964
26967
  var NavFooter = function NavFooter(_ref) {
26965
26968
  var leftContent = _ref.leftContent,
26966
26969
  rightContent = _ref.rightContent,
@@ -26975,7 +26978,7 @@ var NavFooter = function NavFooter(_ref) {
26975
26978
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
26976
26979
  isMobile = _ref.isMobile,
26977
26980
  footerWidth = _ref.footerWidth,
26978
- rest = _objectWithoutProperties(_ref, _excluded$G);
26981
+ rest = _objectWithoutProperties(_ref, _excluded$H);
26979
26982
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26980
26983
  padding: footerPadding,
26981
26984
  background: backgroundColor,
@@ -27006,7 +27009,7 @@ var NavFooter = function NavFooter(_ref) {
27006
27009
  }, rightContent)))))));
27007
27010
  };
27008
27011
 
27009
- var _excluded$H = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
27012
+ var _excluded$I = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
27010
27013
  var NavHeader = function NavHeader(_ref) {
27011
27014
  var leftContent = _ref.leftContent,
27012
27015
  rightContent = _ref.rightContent,
@@ -27015,7 +27018,7 @@ var NavHeader = function NavHeader(_ref) {
27015
27018
  isMobile = _ref.isMobile,
27016
27019
  backgroundColor = _ref.backgroundColor,
27017
27020
  headerWidth = _ref.headerWidth,
27018
- rest = _objectWithoutProperties(_ref, _excluded$H);
27021
+ rest = _objectWithoutProperties(_ref, _excluded$I);
27019
27022
  return /*#__PURE__*/React__default.createElement(Box, _extends({
27020
27023
  padding: "0 16px 4px",
27021
27024
  background: backgroundColor,
@@ -38876,7 +38879,7 @@ var LoadingPill = styled__default.span.withConfig({
38876
38879
  return backgroundColor;
38877
38880
  }, shineFrames);
38878
38881
 
38879
- var _excluded$I = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
38882
+ var _excluded$J = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
38880
38883
  var LoadingLine = function LoadingLine(_ref) {
38881
38884
  var minWidth = _ref.minWidth,
38882
38885
  maxWidth = _ref.maxWidth,
@@ -38890,7 +38893,7 @@ var LoadingLine = function LoadingLine(_ref) {
38890
38893
  backgroundColor = _ref$backgroundColor === void 0 ? SEASHELL_WHITE : _ref$backgroundColor,
38891
38894
  _ref$foregroundColor = _ref.foregroundColor,
38892
38895
  foregroundColor = _ref$foregroundColor === void 0 ? ALABASTER_WHITE : _ref$foregroundColor,
38893
- props = _objectWithoutProperties(_ref, _excluded$I);
38896
+ props = _objectWithoutProperties(_ref, _excluded$J);
38894
38897
  var calculatedWidth = Math.floor(Math.random() * (parseInt(maxWidth) - parseInt(minWidth) + 1) + parseInt(minWidth));
38895
38898
  return /*#__PURE__*/React__default.createElement(LoadingPill, _extends({
38896
38899
  "aria-label": "loading",
@@ -40924,7 +40927,9 @@ var EditableList = function EditableList(_ref) {
40924
40927
  _ref$editItemAriaRole = _ref.editItemAriaRole,
40925
40928
  editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
40926
40929
  _ref$disablePlacehold = _ref.disablePlaceholder,
40927
- disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
40930
+ disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold,
40931
+ _ref$getEditHref = _ref.getEditHref,
40932
+ getEditHref = _ref$getEditHref === void 0 ? null : _ref$getEditHref;
40928
40933
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
40929
40934
  return /*#__PURE__*/React__default.createElement(Box, {
40930
40935
  padding: listPadding,
@@ -40991,7 +40996,12 @@ var EditableList = function EditableList(_ref) {
40991
40996
  extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
40992
40997
  dataQa: qaPrefix + " Edit",
40993
40998
  key: "Edit ".concat(item.id)
40994
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40999
+ }, getEditHref ? /*#__PURE__*/React__default.createElement(InternalLink, {
41000
+ to: getEditHref(item),
41001
+ fontWeight: "400",
41002
+ extraStyles: "margin: 0.5rem; min-width: 0;",
41003
+ "aria-label": "Edit ".concat(ariaLabel || itemName)
41004
+ }, "Edit") : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40995
41005
  variant: "smallGhost",
40996
41006
  text: "Edit",
40997
41007
  action: function action() {
@@ -45289,11 +45299,11 @@ var Modal$2 = function Modal(_ref) {
45289
45299
  };
45290
45300
  var ModalControlV2 = withWindowSize(Modal$2);
45291
45301
 
45292
- var _excluded$J = ["version"];
45302
+ var _excluded$K = ["version"];
45293
45303
  var Modal$3 = function Modal(_ref) {
45294
45304
  var _ref$version = _ref.version,
45295
45305
  version = _ref$version === void 0 ? "v1" : _ref$version,
45296
- rest = _objectWithoutProperties(_ref, _excluded$J);
45306
+ rest = _objectWithoutProperties(_ref, _excluded$K);
45297
45307
  var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
45298
45308
  return /*#__PURE__*/React__default.createElement(ModalControl, rest);
45299
45309
  };
@@ -45817,6 +45827,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
45817
45827
  var backgroundColor$a = LINK_WATER;
45818
45828
  var borderColor$5 = MOON_RAKER;
45819
45829
  var color$c = ROYAL_BLUE_VIVID;
45830
+ var textColor$5 = BRIGHT_GREY;
45820
45831
  var fallbackValues$L = {
45821
45832
  disabledBackgroundColor: disabledBackgroundColor$1,
45822
45833
  disabledBorderColor: disabledBorderColor$1,
@@ -45824,19 +45835,20 @@ var fallbackValues$L = {
45824
45835
  activeBackgroundColor: activeBackgroundColor$1,
45825
45836
  backgroundColor: backgroundColor$a,
45826
45837
  borderColor: borderColor$5,
45827
- color: color$c
45838
+ color: color$c,
45839
+ textColor: textColor$5
45828
45840
  };
45829
45841
 
45830
- var LinkWrapper = styled__default(reactRouterDom.Link).withConfig({
45831
- displayName: "LinkCardstyled__LinkWrapper",
45842
+ var StyledAnchor = styled__default("a").withConfig({
45843
+ displayName: "LinkCardstyled__StyledAnchor",
45832
45844
  componentId: "sc-l5q1h2-0"
45833
45845
  })(["", ""], function (_ref) {
45834
- var disabled = _ref.disabled,
45846
+ var disabled = _ref.$disabled,
45835
45847
  theme = _ref.$theme,
45836
- extraStyles = _ref.extraStyles,
45837
- disabledStyles = _ref.disabledStyles,
45838
- hoverStyles = _ref.hoverStyles,
45839
- activeStyles = _ref.activeStyles;
45848
+ extraStyles = _ref.$extraStyles,
45849
+ disabledStyles = _ref.$disabledStyles,
45850
+ hoverStyles = _ref.$hoverStyles,
45851
+ activeStyles = _ref.$activeStyles;
45840
45852
  return "\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 40px;\n flex-shrink: 0;\n padding: 24px;\n align-self: stretch;\n border-radius: 8px;\n text-decoration: none;\n background-color: ".concat(disabled ? theme.disabledBackgroundColor : theme.backgroundColor, ";\n border: 1px solid\n ").concat(disabled ? theme.disabledBorderColor : theme.borderColor, ";\n transition: all 0.2s ease-in-out;\n ").concat(extraStyles || "", "\n\n ").concat(disabled ? "\n &:hover,\n &:active {\n cursor: default;\n box-shadow: none;\n border: 1px solid ".concat(theme.disabledBorderColor, ";\n ").concat(disabledStyles || "", "\n }\n ") : "\n &:hover,\n &:active {\n cursor: pointer;\n box-shadow: 0px 0px 0px 0px rgba(41, 42, 51, 0.1),\n 0px 5px 11px 0px rgba(41, 42, 51, 0.1),\n 0px 4px 19px 0px rgba(41, 42, 51, 0.09),\n 0px 27px 26px 0px rgba(41, 42, 51, 0.05),\n 0px 56px 31px 0px rgba(41, 42, 51, 0.01),\n 0px 80px 33px 0px rgba(41, 42, 51, 0);\n }\n ".concat(hoverStyles || "", "\n\n &:hover:not(:active) {\n border: 1px solid ").concat(theme.borderColor, ";\n }\n\n &:active {\n background-color: ").concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ").concat(activeStyles || "", "\n }\n "), "\n ");
45841
45853
  });
45842
45854
  var Title$2 = styled__default(Heading$1).withConfig({
@@ -45885,27 +45897,23 @@ var LinkCard = function LinkCard(_ref) {
45885
45897
  _ref$disabled = _ref.disabled,
45886
45898
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
45887
45899
  _ref$isExternalLink = _ref.isExternalLink,
45888
- isExternalLink = _ref$isExternalLink === void 0 ? false : _ref$isExternalLink,
45889
- key = _ref.key;
45890
- var _useContext = React.useContext(styled.ThemeContext),
45891
- isMobile = _useContext.isMobile;
45900
+ isExternalLink = _ref$isExternalLink === void 0 ? false : _ref$isExternalLink;
45892
45901
  var regex = /\W/g;
45893
45902
  var locatorSlug = title === null || title === void 0 || (_title$toLowerCase = title.toLowerCase) === null || _title$toLowerCase === void 0 || (_title$toLowerCase = _title$toLowerCase.call(title)) === null || _title$toLowerCase === void 0 || (_title$toLowerCase$re = _title$toLowerCase.replaceAll) === null || _title$toLowerCase$re === void 0 ? void 0 : _title$toLowerCase$re.call(_title$toLowerCase, regex, "-");
45894
- return /*#__PURE__*/React__default.createElement(LinkWrapper, {
45895
- key: key || locatorSlug,
45896
- as: reactRouterDom.Link,
45897
- to: disabled ? undefined : href,
45898
- role: "link",
45899
- isMobile: isMobile,
45900
- $theme: themeValues,
45901
- extraStyles: extraStyles,
45902
- hoverStyles: extraHoverStyles,
45903
- activeStyles: extraActiveStyles,
45903
+ return /*#__PURE__*/React__default.createElement(StyledAnchor, {
45904
+ key: "link-card-".concat(locatorSlug),
45905
+ href: disabled ? undefined : href,
45906
+ rel: isExternalLink ? "noopener noreferrer" : undefined,
45907
+ target: isExternalLink ? "_blank" : undefined,
45908
+ tabIndex: disabled ? -1 : 0,
45904
45909
  "aria-disabled": disabled,
45905
- disabled: disabled,
45910
+ $disabled: disabled,
45906
45911
  "aria-label": "".concat(title, ", ").concat(subtitle),
45907
45912
  "data-qa": "link-card-".concat(locatorSlug),
45908
- tabIndex: disabled ? -1 : 0
45913
+ $theme: themeValues,
45914
+ $extraStyles: disabled ? "pointer-events: none; ".concat(extraStyles) : extraStyles,
45915
+ $hoverStyles: extraHoverStyles,
45916
+ $activeStyles: extraActiveStyles
45909
45917
  }, /*#__PURE__*/React__default.createElement(Stack, {
45910
45918
  childGap: 0,
45911
45919
  bottomItem: 3,
@@ -46133,7 +46141,8 @@ var IconsModule = function IconsModule(_ref) {
46133
46141
  Icon = iconsMap[icon];
46134
46142
  }
46135
46143
  return /*#__PURE__*/React__default.createElement(Box, {
46136
- padding: "0 1rem 0 0"
46144
+ padding: "0 1rem 0 0",
46145
+ "aria-hidden": "true"
46137
46146
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46138
46147
  justify: "center",
46139
46148
  align: "center"
@@ -46217,7 +46226,6 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46217
46226
  } : navigateToSettings,
46218
46227
  isLoading: deactivatingSchedule
46219
46228
  };
46220
- var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
46221
46229
  var hoverStyles = "text-decoration: underline;";
46222
46230
  var activeStyles = "text-decoration: underline;";
46223
46231
  var renderAutoPayControl = function renderAutoPayControl() {
@@ -46252,28 +46260,25 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46252
46260
  {
46253
46261
  return /*#__PURE__*/React__default.createElement(Box, {
46254
46262
  padding: "0",
46263
+ role: "button",
46264
+ tabIndex: "0",
46255
46265
  onClick: onClick || function () {
46256
46266
  toggleModal(true);
46257
46267
  },
46268
+ onKeyDown: onKeyPress || function (e) {
46269
+ e.key === "Enter" && toggleModal(true);
46270
+ },
46258
46271
  hoverStyles: hoverStyles,
46259
46272
  activeStyles: activeStyles,
46260
- extraStyles: "cursor: pointer;"
46273
+ extraStyles: "cursor: pointer; margin-bottom: 5px;",
46274
+ dataQa: "".concat(shortPlan, " On")
46261
46275
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46262
46276
  justify: isMobile ? "flex-start" : "flex-end",
46263
46277
  align: "center"
46264
46278
  }, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
46265
46279
  variant: "pS",
46266
- onClick: onClick || function () {
46267
- return toggleModal(true);
46268
- },
46269
- onKeyPress: onKeyPress || function (e) {
46270
- e.key === "Enter" && toggleModal(true);
46271
- },
46272
- tabIndex: "0",
46273
- dataQa: "".concat(shortPlan, " On"),
46274
46280
  color: SEA_GREEN,
46275
46281
  weight: FONT_WEIGHT_REGULAR,
46276
- hoverStyles: modalLinkHoverFocus,
46277
46282
  extraStyles: "padding-left: 0.25rem;",
46278
46283
  disabled: disableActions
46279
46284
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
@@ -47547,7 +47552,7 @@ var fallbackValues$Q = {
47547
47552
  labeledAmountTotal: labeledAmountTotal
47548
47553
  };
47549
47554
 
47550
- var _excluded$K = ["amount"],
47555
+ var _excluded$L = ["amount"],
47551
47556
  _excluded2$1 = ["amount"];
47552
47557
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47553
47558
  var lineItemElems = _ref.lineItemElems,
@@ -47790,7 +47795,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47790
47795
  return fee.amount > 0;
47791
47796
  }).map(function (_ref5) {
47792
47797
  var amount = _ref5.amount,
47793
- rest = _objectWithoutProperties(_ref5, _excluded$K);
47798
+ rest = _objectWithoutProperties(_ref5, _excluded$L);
47794
47799
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47795
47800
  amount: displayCurrency(amount)
47796
47801
  });
@@ -48227,11 +48232,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48227
48232
  }, errorMessage))))));
48228
48233
  };
48229
48234
 
48230
- var _excluded$L = ["version"];
48235
+ var _excluded$M = ["version"];
48231
48236
  var TermsAndConditions = function TermsAndConditions(_ref) {
48232
48237
  var _ref$version = _ref.version,
48233
48238
  version = _ref$version === void 0 ? "v1" : _ref$version,
48234
- rest = _objectWithoutProperties(_ref, _excluded$L);
48239
+ rest = _objectWithoutProperties(_ref, _excluded$M);
48235
48240
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48236
48241
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
48237
48242
  };
@@ -49039,7 +49044,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49039
49044
  }, section.content))));
49040
49045
  };
49041
49046
 
49042
- var _excluded$M = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
49047
+ var _excluded$N = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
49043
49048
 
49044
49049
  /**
49045
49050
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -49089,7 +49094,7 @@ var RadioSection = function RadioSection(_ref) {
49089
49094
  _ref$groupedSections = _ref.groupedSections,
49090
49095
  groupedSections = _ref$groupedSections === void 0 ? [] : _ref$groupedSections,
49091
49096
  borderOverride = _ref.borderOverride,
49092
- rest = _objectWithoutProperties(_ref, _excluded$M);
49097
+ rest = _objectWithoutProperties(_ref, _excluded$N);
49093
49098
  var _useState = React.useState(null),
49094
49099
  _useState2 = _slicedToArray(_useState, 2),
49095
49100
  focused = _useState2[0],
@@ -49645,7 +49650,7 @@ var Tab = function Tab(_ref) {
49645
49650
  }, label));
49646
49651
  };
49647
49652
 
49648
- var _excluded$N = ["tabsConfig", "tabsDisplayMode", "tabsPadding", "contentPadding", "extraStyles"];
49653
+ var _excluded$O = ["tabsConfig", "tabsDisplayMode", "tabsPadding", "contentPadding", "extraStyles"];
49649
49654
  var HORIZONTAL = "horizontal";
49650
49655
  var Tabs = function Tabs(_ref) {
49651
49656
  var _tabsConfig$tabs$;
@@ -49658,7 +49663,7 @@ var Tabs = function Tabs(_ref) {
49658
49663
  contentPadding = _ref$contentPadding === void 0 ? "0" : _ref$contentPadding,
49659
49664
  _ref$extraStyles = _ref.extraStyles,
49660
49665
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
49661
- props = _objectWithoutProperties(_ref, _excluded$N);
49666
+ props = _objectWithoutProperties(_ref, _excluded$O);
49662
49667
  var _useState = React.useState(((_tabsConfig$tabs$ = tabsConfig.tabs[0]) === null || _tabsConfig$tabs$ === void 0 ? void 0 : _tabsConfig$tabs$.label) || null),
49663
49668
  _useState2 = _slicedToArray(_useState, 2),
49664
49669
  activeTab = _useState2[0],
@@ -49811,7 +49816,7 @@ var Timeout = function Timeout(_ref) {
49811
49816
  };
49812
49817
  var Timeout$1 = withWindowSize(Timeout);
49813
49818
 
49814
- var _excluded$O = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
49819
+ var _excluded$P = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
49815
49820
  var VARIANTS = {
49816
49821
  SUCCESS: "success",
49817
49822
  ERROR: "error"
@@ -49840,7 +49845,7 @@ var ToastNotification = function ToastNotification(_ref) {
49840
49845
  screenReaderMessage = _ref.screenReaderMessage,
49841
49846
  _ref$showScreenReader = _ref.showScreenReaderMessage,
49842
49847
  showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
49843
- rest = _objectWithoutProperties(_ref, _excluded$O);
49848
+ rest = _objectWithoutProperties(_ref, _excluded$P);
49844
49849
  var screenReaderMessageRef = React.useRef();
49845
49850
  var LIVEREGION_TRANSITION_DELAY = 1000;
49846
49851
  React.useEffect(function () {
@@ -50023,7 +50028,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
50023
50028
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
50024
50029
  });
50025
50030
 
50026
- var _excluded$P = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50031
+ var _excluded$Q = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50027
50032
  var PopupMenuItem = function PopupMenuItem(_ref) {
50028
50033
  var id = _ref.id,
50029
50034
  closeMenuCallback = _ref.closeMenuCallback,
@@ -50039,7 +50044,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50039
50044
  hoverStyles = _ref.hoverStyles,
50040
50045
  activeStyles = _ref.activeStyles,
50041
50046
  extraStyles = _ref.extraStyles,
50042
- rest = _objectWithoutProperties(_ref, _excluded$P);
50047
+ rest = _objectWithoutProperties(_ref, _excluded$Q);
50043
50048
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
50044
50049
  id: id,
50045
50050
  role: "menuItem",
@@ -50278,7 +50283,7 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50278
50283
  });
50279
50284
  });
50280
50285
 
50281
- var _excluded$Q = ["width", "height", "color"];
50286
+ var _excluded$R = ["width", "height", "color"];
50282
50287
  var DropdownIconV2 = function DropdownIconV2(_ref) {
50283
50288
  var _ref$width = _ref.width,
50284
50289
  width = _ref$width === void 0 ? "18" : _ref$width,
@@ -50286,7 +50291,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
50286
50291
  height = _ref$height === void 0 ? "19" : _ref$height,
50287
50292
  _ref$color = _ref.color,
50288
50293
  color = _ref$color === void 0 ? "#292A33" : _ref$color,
50289
- props = _objectWithoutProperties(_ref, _excluded$Q);
50294
+ props = _objectWithoutProperties(_ref, _excluded$R);
50290
50295
  return /*#__PURE__*/React__default.createElement("svg", _extends({
50291
50296
  "aria-hidden": "true",
50292
50297
  width: width,
@@ -50434,7 +50439,7 @@ var SearchBox = function SearchBox(_ref) {
50434
50439
  }));
50435
50440
  };
50436
50441
 
50437
- var _excluded$R = ["width", "height", "color"];
50442
+ var _excluded$S = ["width", "height", "color"];
50438
50443
  var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
50439
50444
  var _ref$width = _ref.width,
50440
50445
  width = _ref$width === void 0 ? "18" : _ref$width,
@@ -50442,7 +50447,7 @@ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
50442
50447
  height = _ref$height === void 0 ? "18" : _ref$height,
50443
50448
  _ref$color = _ref.color,
50444
50449
  color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
50445
- props = _objectWithoutProperties(_ref, _excluded$R);
50450
+ props = _objectWithoutProperties(_ref, _excluded$S);
50446
50451
  return /*#__PURE__*/React__default.createElement("svg", _extends({
50447
50452
  xmlns: "http://www.w3.org/2000/svg",
50448
50453
  width: width,
@@ -51138,7 +51143,7 @@ var fallbackValues$11 = {
51138
51143
  justifyContent: justifyContent
51139
51144
  };
51140
51145
 
51141
- var _excluded$S = ["variant", "imageUrl", "isMobile", "theme", "extraStyles"],
51146
+ var _excluded$T = ["variant", "imageUrl", "isMobile", "theme", "extraStyles"],
51142
51147
  _excluded2$2 = ["theme", "isMobile"],
51143
51148
  _excluded3 = ["theme", "isMobile"],
51144
51149
  _excluded4 = ["theme", "isMobile"];
@@ -51161,7 +51166,7 @@ var HeroContainer = styled__default(function (_ref2) {
51161
51166
  isMobile = _ref2.isMobile,
51162
51167
  theme = _ref2.theme,
51163
51168
  extraStyles = _ref2.extraStyles,
51164
- props = _objectWithoutProperties(_ref2, _excluded$S);
51169
+ props = _objectWithoutProperties(_ref2, _excluded$T);
51165
51170
  return /*#__PURE__*/React__default.createElement(Box, props);
51166
51171
  }).withConfig({
51167
51172
  displayName: "HeroImagestyled__HeroContainer",
@@ -51474,12 +51479,12 @@ var TurnstileWidget = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
51474
51479
  var hoverColor$6 = ROYAL_BLUE;
51475
51480
  var activeColor$b = CONGRESS_BLUE;
51476
51481
  var linkColor$6 = ROYAL_BLUE_VIVID;
51477
- var textColor$5 = CHARADE_GREY;
51482
+ var textColor$6 = CHARADE_GREY;
51478
51483
  var fallbackValues$12 = {
51479
51484
  linkColor: linkColor$6,
51480
51485
  hoverColor: hoverColor$6,
51481
51486
  activeColor: activeColor$b,
51482
- textColor: textColor$5
51487
+ textColor: textColor$6
51483
51488
  };
51484
51489
 
51485
51490
  var TOOLTIP_THEME_SOURCE = "Popover";