@thecb/components 9.2.10-beta.1 → 9.2.10-beta.3
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 +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -11
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
- package/src/components/molecules/modal/Modal.js +2 -3
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +1 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +1 -6
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +13 -3
package/dist/index.esm.js
CHANGED
|
@@ -45759,9 +45759,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45759
45759
|
_ref$dataQa = _ref.dataQa,
|
|
45760
45760
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
45761
45761
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
45762
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
45763
|
-
_ref$modalName = _ref.modalName,
|
|
45764
|
-
modalName = _ref$modalName === void 0 ? "" : _ref$modalName;
|
|
45762
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
45765
45763
|
|
|
45766
45764
|
var _useContext = useContext(ThemeContext),
|
|
45767
45765
|
isMobile = _useContext.isMobile;
|
|
@@ -45790,8 +45788,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45790
45788
|
},
|
|
45791
45789
|
underlayClickExits: underlayClickExits,
|
|
45792
45790
|
"aria-modal": true,
|
|
45793
|
-
|
|
45794
|
-
|
|
45791
|
+
initialFocus: initialFocusSelector,
|
|
45792
|
+
focusDialog: !initialFocusSelector // Focus the dialogue box itself if no selector for initial focus was provided
|
|
45793
|
+
|
|
45795
45794
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
45796
45795
|
padding: "0",
|
|
45797
45796
|
borderRadius: "2px",
|
|
@@ -47721,7 +47720,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47721
47720
|
continueAction: function continueAction() {
|
|
47722
47721
|
toggleAccepted(true);
|
|
47723
47722
|
toggleOpen(false);
|
|
47724
|
-
}
|
|
47723
|
+
},
|
|
47724
|
+
initialFocusSelector: "[name='Close']"
|
|
47725
47725
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47726
47726
|
variant: "pS",
|
|
47727
47727
|
onClick: function onClick() {
|
|
@@ -47981,9 +47981,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
47981
47981
|
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
47982
47982
|
|
|
47983
47983
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
47984
|
-
return /*#__PURE__*/React.createElement(TermsAndConditionsControl,
|
|
47985
|
-
initialFocusSelector: "[role='button']:not(.modal-trigger)"
|
|
47986
|
-
}, rest));
|
|
47984
|
+
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
47987
47985
|
};
|
|
47988
47986
|
|
|
47989
47987
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
@@ -48165,7 +48163,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48165
48163
|
version: "v2",
|
|
48166
48164
|
showCheckbox: false,
|
|
48167
48165
|
description: "View",
|
|
48168
|
-
terms: termsContent
|
|
48166
|
+
terms: termsContent,
|
|
48167
|
+
initialFocusSelector: ".modal-close-button"
|
|
48169
48168
|
})))));
|
|
48170
48169
|
};
|
|
48171
48170
|
|
|
@@ -48361,7 +48360,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48361
48360
|
version: "v2",
|
|
48362
48361
|
showCheckbox: false,
|
|
48363
48362
|
description: "View",
|
|
48364
|
-
terms: termsContent
|
|
48363
|
+
terms: termsContent,
|
|
48364
|
+
initialFocusSelector: ".modal-close-button"
|
|
48365
48365
|
})))));
|
|
48366
48366
|
};
|
|
48367
48367
|
|