@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.esm.js
CHANGED
|
@@ -45170,7 +45170,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
45170
45170
|
};
|
|
45171
45171
|
|
|
45172
45172
|
var Obligation = function Obligation(_ref) {
|
|
45173
|
-
var _firstObligation$cust;
|
|
45173
|
+
var _obligations$, _firstObligation$cust;
|
|
45174
45174
|
|
|
45175
45175
|
var config = _ref.config,
|
|
45176
45176
|
obligations = _ref.obligations,
|
|
@@ -45205,7 +45205,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
45205
45205
|
The top level desc/subdesc for all obligations in a collection is the same
|
|
45206
45206
|
(Collection accounts look different in the Account Details page)
|
|
45207
45207
|
*/
|
|
45208
|
-
var firstObligation = obligations[0];
|
|
45208
|
+
var firstObligation = (_obligations$ = obligations === null || obligations === void 0 ? void 0 : obligations[0]) !== null && _obligations$ !== void 0 ? _obligations$ : {};
|
|
45209
45209
|
var _firstObligation$allo = firstObligation.allowedPaymentInstruments,
|
|
45210
45210
|
allowedPaymentInstruments = _firstObligation$allo === void 0 ? [CASH_METHOD, CC_METHOD, ACH_METHOD] : _firstObligation$allo,
|
|
45211
45211
|
_firstObligation$desc = firstObligation.description,
|
|
@@ -46747,13 +46747,13 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
46747
46747
|
return /*#__PURE__*/React.createElement(Motion, {
|
|
46748
46748
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
46749
46749
|
onKeyDown: function onKeyDown(e) {
|
|
46750
|
-
return handleKeyDown(section.id, e);
|
|
46750
|
+
return !section.disabled && handleKeyDown(section.id, e);
|
|
46751
46751
|
},
|
|
46752
46752
|
onFocus: function onFocus() {
|
|
46753
|
-
return setFocused(section.id);
|
|
46753
|
+
return !section.disabled && setFocused(section.id);
|
|
46754
46754
|
},
|
|
46755
46755
|
onBlur: function onBlur() {
|
|
46756
|
-
return setFocused(null);
|
|
46756
|
+
return !section.disabled && setFocused(null);
|
|
46757
46757
|
},
|
|
46758
46758
|
hoverStyles: themeValues.focusStyles,
|
|
46759
46759
|
animate: openSection === section.id ? "open" : "closed",
|
|
@@ -46768,7 +46768,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
46768
46768
|
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
46769
46769
|
return toggleOpenSection(section.id);
|
|
46770
46770
|
},
|
|
46771
|
-
onTouchEnd: isMobile && supportsTouch
|
|
46771
|
+
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
46772
46772
|
return toggleOpenSection(section.id);
|
|
46773
46773
|
} : noop,
|
|
46774
46774
|
key: "header-".concat(section.id),
|