@thecb/components 7.6.1-beta.0 → 7.6.1-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.cjs.js
CHANGED
|
@@ -45178,7 +45178,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
45178
45178
|
};
|
|
45179
45179
|
|
|
45180
45180
|
var Obligation = function Obligation(_ref) {
|
|
45181
|
-
var _firstObligation$cust;
|
|
45181
|
+
var _obligations$, _firstObligation$cust;
|
|
45182
45182
|
|
|
45183
45183
|
var config = _ref.config,
|
|
45184
45184
|
obligations = _ref.obligations,
|
|
@@ -45213,7 +45213,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
45213
45213
|
The top level desc/subdesc for all obligations in a collection is the same
|
|
45214
45214
|
(Collection accounts look different in the Account Details page)
|
|
45215
45215
|
*/
|
|
45216
|
-
var firstObligation = obligations[0];
|
|
45216
|
+
var firstObligation = (_obligations$ = obligations === null || obligations === void 0 ? void 0 : obligations[0]) !== null && _obligations$ !== void 0 ? _obligations$ : {};
|
|
45217
45217
|
var _firstObligation$allo = firstObligation.allowedPaymentInstruments,
|
|
45218
45218
|
allowedPaymentInstruments = _firstObligation$allo === void 0 ? [CASH_METHOD, CC_METHOD, ACH_METHOD] : _firstObligation$allo,
|
|
45219
45219
|
_firstObligation$desc = firstObligation.description,
|
|
@@ -46755,13 +46755,13 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
46755
46755
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
46756
46756
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
46757
46757
|
onKeyDown: function onKeyDown(e) {
|
|
46758
|
-
return handleKeyDown(section.id, e);
|
|
46758
|
+
return !section.disabled && handleKeyDown(section.id, e);
|
|
46759
46759
|
},
|
|
46760
46760
|
onFocus: function onFocus() {
|
|
46761
|
-
return setFocused(section.id);
|
|
46761
|
+
return !section.disabled && setFocused(section.id);
|
|
46762
46762
|
},
|
|
46763
46763
|
onBlur: function onBlur() {
|
|
46764
|
-
return setFocused(null);
|
|
46764
|
+
return !section.disabled && setFocused(null);
|
|
46765
46765
|
},
|
|
46766
46766
|
hoverStyles: themeValues.focusStyles,
|
|
46767
46767
|
animate: openSection === section.id ? "open" : "closed",
|
|
@@ -46776,7 +46776,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
46776
46776
|
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
46777
46777
|
return toggleOpenSection(section.id);
|
|
46778
46778
|
},
|
|
46779
|
-
onTouchEnd: isMobile && supportsTouch
|
|
46779
|
+
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
46780
46780
|
return toggleOpenSection(section.id);
|
|
46781
46781
|
} : noop,
|
|
46782
46782
|
key: "header-".concat(section.id),
|