@thecb/components 9.2.10-beta.0 → 9.2.10-beta.2

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
@@ -13675,7 +13675,9 @@ var AccountNumberImage = function AccountNumberImage() {
13675
13675
  xmlns: "http://www.w3.org/2000/svg",
13676
13676
  width: "371",
13677
13677
  height: "164",
13678
- viewBox: "0 0 371 164"
13678
+ viewBox: "0 0 371 164",
13679
+ role: "img",
13680
+ "aria-label": "A check with the account number highlighted in the bottom center"
13679
13681
  }, /*#__PURE__*/React.createElement("g", {
13680
13682
  fill: "none",
13681
13683
  fillRule: "evenodd",
@@ -13756,7 +13758,9 @@ var RoutingNumberImage = function RoutingNumberImage() {
13756
13758
  xmlns: "http://www.w3.org/2000/svg",
13757
13759
  width: "371",
13758
13760
  height: "164",
13759
- viewBox: "0 0 371 164"
13761
+ viewBox: "0 0 371 164",
13762
+ role: "img",
13763
+ "aria-label": "A check with the routing number highlighted in the lower left hand corner"
13760
13764
  }, /*#__PURE__*/React.createElement("g", {
13761
13765
  fill: "none",
13762
13766
  fillRule: "evenodd",
@@ -13839,7 +13843,9 @@ var CheckmarkIcon = function CheckmarkIcon() {
13839
13843
  viewBox: "0 0 98 98",
13840
13844
  version: "1.1",
13841
13845
  xmlns: "http://www.w3.org/2000/svg",
13842
- xmlnsXlink: "http://www.w3.org/1999/xlink"
13846
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
13847
+ role: "img",
13848
+ "aria-label": "Successful payment, green checkmark"
13843
13849
  }, /*#__PURE__*/React.createElement("g", {
13844
13850
  id: "Cityville-Checkout---Desktop---Logged-In",
13845
13851
  stroke: "none",
@@ -13884,7 +13890,9 @@ var BankIcon = function BankIcon() {
13884
13890
  height: "18",
13885
13891
  viewBox: "0 0 28 18",
13886
13892
  fill: "none",
13887
- xmlns: "http://www.w3.org/2000/svg"
13893
+ xmlns: "http://www.w3.org/2000/svg",
13894
+ role: "img",
13895
+ "aria-label": "Check Payment"
13888
13896
  }, /*#__PURE__*/React.createElement("path", {
13889
13897
  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",
13890
13898
  fill: "#E4F4FD"
@@ -13931,7 +13939,9 @@ var GenericCard = function GenericCard() {
13931
13939
  height: "18",
13932
13940
  viewBox: "0 0 28 18",
13933
13941
  fill: "none",
13934
- xmlns: "http://www.w3.org/2000/svg"
13942
+ xmlns: "http://www.w3.org/2000/svg",
13943
+ role: "img",
13944
+ "aria-label": "Card Payment"
13935
13945
  }, /*#__PURE__*/React.createElement("rect", {
13936
13946
  width: "28",
13937
13947
  height: "18",
@@ -15190,7 +15200,9 @@ var GenericCardLarge = function GenericCardLarge() {
15190
15200
  height: "24",
15191
15201
  viewBox: "0 0 36 24",
15192
15202
  fill: "none",
15193
- xmlns: "http://www.w3.org/2000/svg"
15203
+ xmlns: "http://www.w3.org/2000/svg",
15204
+ role: "img",
15205
+ "aria-label": "Card Payment"
15194
15206
  }, /*#__PURE__*/React.createElement("rect", {
15195
15207
  width: "36",
15196
15208
  height: "24",
@@ -45747,9 +45759,7 @@ var Modal$1 = function Modal(_ref) {
45747
45759
  _ref$dataQa = _ref.dataQa,
45748
45760
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
45749
45761
  _ref$initialFocusSele = _ref.initialFocusSelector,
45750
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
45751
- _ref$modalName = _ref.modalName,
45752
- modalName = _ref$modalName === void 0 ? "" : _ref$modalName;
45762
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
45753
45763
 
45754
45764
  var _useContext = useContext(ThemeContext),
45755
45765
  isMobile = _useContext.isMobile;
@@ -45778,8 +45788,9 @@ var Modal$1 = function Modal(_ref) {
45778
45788
  },
45779
45789
  underlayClickExits: underlayClickExits,
45780
45790
  "aria-modal": true,
45781
- "aria-name": !!modalName.length ? modalName : modalHeaderText,
45782
- initialFocus: initialFocusSelector
45791
+ initialFocus: initialFocusSelector,
45792
+ focusDialog: !initialFocusSelector // Focus the dialogue box itself if no selector for initial focus was provided
45793
+
45783
45794
  }, /*#__PURE__*/React.createElement(Box, {
45784
45795
  padding: "0",
45785
45796
  borderRadius: "2px",
@@ -47709,7 +47720,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47709
47720
  continueAction: function continueAction() {
47710
47721
  toggleAccepted(true);
47711
47722
  toggleOpen(false);
47712
- }
47723
+ },
47724
+ initialFocusSelector: "[name='Close']"
47713
47725
  }, /*#__PURE__*/React.createElement(Text$1, {
47714
47726
  variant: "pS",
47715
47727
  onClick: function onClick() {
@@ -47969,9 +47981,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
47969
47981
  rest = _objectWithoutProperties(_ref, _excluded$y);
47970
47982
 
47971
47983
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
47972
- return /*#__PURE__*/React.createElement(TermsAndConditionsControl, _extends({
47973
- initialFocusSelector: "[role='button']:not(.modal-trigger)"
47974
- }, rest));
47984
+ return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
47975
47985
  };
47976
47986
 
47977
47987
  var PaymentFormACH = function PaymentFormACH(_ref) {