@thecb/components 9.2.7-beta.9 → 9.2.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -13683,7 +13683,9 @@ var AccountNumberImage = function AccountNumberImage() {
13683
13683
  xmlns: "http://www.w3.org/2000/svg",
13684
13684
  width: "371",
13685
13685
  height: "164",
13686
- viewBox: "0 0 371 164"
13686
+ viewBox: "0 0 371 164",
13687
+ role: "img",
13688
+ "aria-label": "A check with the account number highlighted in the bottom center"
13687
13689
  }, /*#__PURE__*/React__default.createElement("g", {
13688
13690
  fill: "none",
13689
13691
  fillRule: "evenodd",
@@ -13764,7 +13766,9 @@ var RoutingNumberImage = function RoutingNumberImage() {
13764
13766
  xmlns: "http://www.w3.org/2000/svg",
13765
13767
  width: "371",
13766
13768
  height: "164",
13767
- viewBox: "0 0 371 164"
13769
+ viewBox: "0 0 371 164",
13770
+ role: "img",
13771
+ "aria-label": "A check with the routing number highlighted in the lower left hand corner"
13768
13772
  }, /*#__PURE__*/React__default.createElement("g", {
13769
13773
  fill: "none",
13770
13774
  fillRule: "evenodd",
@@ -13847,7 +13851,9 @@ var CheckmarkIcon = function CheckmarkIcon() {
13847
13851
  viewBox: "0 0 98 98",
13848
13852
  version: "1.1",
13849
13853
  xmlns: "http://www.w3.org/2000/svg",
13850
- xmlnsXlink: "http://www.w3.org/1999/xlink"
13854
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
13855
+ role: "img",
13856
+ "aria-label": "Successful payment, green checkmark"
13851
13857
  }, /*#__PURE__*/React__default.createElement("g", {
13852
13858
  id: "Cityville-Checkout---Desktop---Logged-In",
13853
13859
  stroke: "none",
@@ -13892,7 +13898,9 @@ var BankIcon = function BankIcon() {
13892
13898
  height: "18",
13893
13899
  viewBox: "0 0 28 18",
13894
13900
  fill: "none",
13895
- xmlns: "http://www.w3.org/2000/svg"
13901
+ xmlns: "http://www.w3.org/2000/svg",
13902
+ role: "img",
13903
+ "aria-label": "Check Payment"
13896
13904
  }, /*#__PURE__*/React__default.createElement("path", {
13897
13905
  d: "M0 2.25C0 1.00736 1.04467 0 2.33333 0H25.6667C26.9553 0 28 1.00736 28 2.25V15.75C28 16.9926 26.9553 18 25.6667 18H2.33333C1.04467 18 0 16.9926 0 15.75V2.25Z",
13898
13906
  fill: "#E4F4FD"
@@ -13939,7 +13947,9 @@ var GenericCard = function GenericCard() {
13939
13947
  height: "18",
13940
13948
  viewBox: "0 0 28 18",
13941
13949
  fill: "none",
13942
- xmlns: "http://www.w3.org/2000/svg"
13950
+ xmlns: "http://www.w3.org/2000/svg",
13951
+ role: "img",
13952
+ "aria-label": "Card Payment"
13943
13953
  }, /*#__PURE__*/React__default.createElement("rect", {
13944
13954
  width: "28",
13945
13955
  height: "18",
@@ -23998,7 +24008,9 @@ var Dropdown = function Dropdown(_ref13) {
23998
24008
  }
23999
24009
 
24000
24010
  setFilteredOptions(options.filter(function (option) {
24001
- return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
24011
+ var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
24012
+
24013
+ return (option === null || option === void 0 ? void 0 : (_option$value = option.value) === null || _option$value === void 0 ? void 0 : (_option$value$toLower = _option$value.toLowerCase()) === null || _option$value$toLower === void 0 ? void 0 : _option$value$toLower.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0 || ((_option$text = option.text) === null || _option$text === void 0 ? void 0 : (_option$text$toLowerC = _option$text.toLowerCase()) === null || _option$text$toLowerC === void 0 ? void 0 : _option$text$toLowerC.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0;
24002
24014
  }));
24003
24015
  }, [inputValue]);
24004
24016
  React.useEffect(function () {
@@ -45751,9 +45763,7 @@ var Modal$1 = function Modal(_ref) {
45751
45763
  buttonExtraStyles = _ref.buttonExtraStyles,
45752
45764
  children = _ref.children,
45753
45765
  _ref$dataQa = _ref.dataQa,
45754
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
45755
- _ref$initialFocus = _ref.initialFocus,
45756
- initialFocus = _ref$initialFocus === void 0 ? null : _ref$initialFocus;
45766
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
45757
45767
 
45758
45768
  var _useContext = React.useContext(styled.ThemeContext),
45759
45769
  isMobile = _useContext.isMobile;
@@ -45763,7 +45773,7 @@ var Modal$1 = function Modal(_ref) {
45763
45773
  ref: modalContainerRef,
45764
45774
  "data-qa": dataQa
45765
45775
  }, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
45766
- , _extends({
45776
+ , {
45767
45777
  focusTrapOptions: {
45768
45778
  fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
45769
45779
  },
@@ -45777,14 +45787,11 @@ var Modal$1 = function Modal(_ref) {
45777
45787
  alignItems: "center"
45778
45788
  },
45779
45789
  dialogStyle: {
45780
- width: customWidth || "615px"
45790
+ width: customWidth || "615px",
45791
+ overflow: "auto"
45781
45792
  },
45782
- underlayClickExits: underlayClickExits,
45783
- "aria-modal": true,
45784
- "aria-name": modalHeaderText
45785
- }, initialFocus ? {
45786
- initialFocus: initialFocus
45787
- } : {}), /*#__PURE__*/React__default.createElement(Box, {
45793
+ underlayClickExits: underlayClickExits
45794
+ }, /*#__PURE__*/React__default.createElement(Box, {
45788
45795
  padding: "0",
45789
45796
  borderRadius: "2px",
45790
45797
  boxShadow: "inset 0px -2px 0px 0px rgb(0, 80, 149)"
@@ -45830,9 +45837,7 @@ var Modal$1 = function Modal(_ref) {
45830
45837
  text: cancelButtonText,
45831
45838
  dataQa: cancelButtonText,
45832
45839
  extraStyles: buttonExtraStyles,
45833
- className: "modal-cancel-button",
45834
- role: "button",
45835
- name: cancelButtonText
45840
+ className: "modal-cancel-button"
45836
45841
  })), /*#__PURE__*/React__default.createElement(Box, {
45837
45842
  width: "100%",
45838
45843
  padding: "0"
@@ -45844,9 +45849,7 @@ var Modal$1 = function Modal(_ref) {
45844
45849
  isLoading: isLoading,
45845
45850
  disabled: isContinueActionDisabled,
45846
45851
  extraStyles: buttonExtraStyles,
45847
- className: "modal-continue-button",
45848
- role: "button",
45849
- name: continueButtonText
45852
+ className: "modal-continue-button"
45850
45853
  }))) : /*#__PURE__*/React__default.createElement(Stack, {
45851
45854
  childGap: "1rem",
45852
45855
  direction: "row",
@@ -45857,9 +45860,7 @@ var Modal$1 = function Modal(_ref) {
45857
45860
  text: cancelButtonText,
45858
45861
  dataQa: cancelButtonText,
45859
45862
  extraStyles: buttonExtraStyles,
45860
- className: "modal-cancel-button",
45861
- role: "button",
45862
- name: cancelButtonText
45863
+ className: "modal-cancel-button"
45863
45864
  }), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
45864
45865
  variant: useDangerButton ? "danger" : "primary",
45865
45866
  action: continueAction,
@@ -45868,9 +45869,7 @@ var Modal$1 = function Modal(_ref) {
45868
45869
  isLoading: isLoading,
45869
45870
  disabled: isContinueActionDisabled,
45870
45871
  extraStyles: buttonExtraStyles,
45871
- className: "modal-continue-button",
45872
- role: "button",
45873
- name: continueButtonText
45872
+ className: "modal-continue-button"
45874
45873
  }))) : /*#__PURE__*/React__default.createElement(Box, {
45875
45874
  padding: "0.5rem"
45876
45875
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
@@ -45879,9 +45878,7 @@ var Modal$1 = function Modal(_ref) {
45879
45878
  text: closeButtonText,
45880
45879
  dataQa: closeButtonText,
45881
45880
  extraStyles: buttonExtraStyles,
45882
- className: "modal-close-button",
45883
- role: "button",
45884
- name: closeButtonText
45881
+ className: "modal-close-button"
45885
45882
  }))))))))), children);
45886
45883
  };
45887
45884
 
@@ -47726,9 +47723,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47726
47723
  color: themeValues.linkColor,
47727
47724
  weight: themeValues.fontWeight,
47728
47725
  hoverStyles: themeValues.modalLinkHoverFocus,
47729
- extraStyles: "cursor: pointer;",
47730
- role: "button",
47731
- className: "modal-trigger"
47726
+ extraStyles: "cursor: pointer;"
47732
47727
  }, link));
47733
47728
  };
47734
47729
 
@@ -47785,10 +47780,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47785
47780
  variant = _ref.variant,
47786
47781
  _ref$linkVariant = _ref.linkVariant,
47787
47782
  linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
47788
- themeValues = _ref.themeValues,
47789
- _ref$initialFocus = _ref.initialFocus,
47790
- initialFocus = _ref$initialFocus === void 0 ? null : _ref$initialFocus;
47791
- return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
47783
+ themeValues = _ref.themeValues;
47784
+ return /*#__PURE__*/React__default.createElement(Modal$1, {
47792
47785
  modalOpen: isOpen,
47793
47786
  hideModal: function hideModal() {
47794
47787
  return toggleOpen(false);
@@ -47814,9 +47807,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47814
47807
  toggleAccepted(true);
47815
47808
  toggleOpen(false);
47816
47809
  }
47817
- }, initialFocus ? {
47818
- initialFocus: initialFocus
47819
- } : {}), /*#__PURE__*/React__default.createElement(Text$1, {
47810
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
47820
47811
  variant: linkVariant,
47821
47812
  onClick: function onClick() {
47822
47813
  return toggleOpen(true);
@@ -47828,9 +47819,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47828
47819
  color: themeValues.linkColor,
47829
47820
  weight: themeValues.fontWeight,
47830
47821
  hoverStyles: themeValues.modalLinkHoverFocus,
47831
- extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
47832
- role: "button",
47833
- className: "modal-trigger"
47822
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47834
47823
  }, link));
47835
47824
  };
47836
47825
 
@@ -47865,8 +47854,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47865
47854
  terms: terms,
47866
47855
  isOpen: showTerms,
47867
47856
  toggleOpen: toggleShowTerms,
47868
- linkVariant: linkVariant,
47869
- initialFocus: "[role=\"button\"]:not(.modal-trigger)"
47857
+ linkVariant: linkVariant
47870
47858
  })))));
47871
47859
  };
47872
47860
 
@@ -47949,8 +47937,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47949
47937
  isOpen: showTerms,
47950
47938
  toggleOpen: toggleTerms,
47951
47939
  linkVariant: modalVariant,
47952
- title: modalTitle,
47953
- initialFocus: ".modal-close-button"
47940
+ title: modalTitle
47954
47941
  })), /*#__PURE__*/React__default.createElement("div", {
47955
47942
  "aria-live": "polite",
47956
47943
  "aria-atomic": true