@thecb/components 5.8.1-beta.1 → 5.8.1-beta.4
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
|
@@ -40706,6 +40706,8 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
40706
40706
|
};
|
|
40707
40707
|
|
|
40708
40708
|
var Obligation = function Obligation(_ref) {
|
|
40709
|
+
var _obligation$customAtt, _obligation$descripti, _obligation$subDescri;
|
|
40710
|
+
|
|
40709
40711
|
var config = _ref.config,
|
|
40710
40712
|
obligations = _ref.obligations,
|
|
40711
40713
|
actions = _ref.actions,
|
|
@@ -40729,20 +40731,20 @@ var Obligation = function Obligation(_ref) {
|
|
|
40729
40731
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
40730
40732
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
|
|
40731
40733
|
var obligation = obligations[0];
|
|
40732
|
-
var customAttributes = obligation.customAttributes;
|
|
40734
|
+
var customAttributes = (_obligation$customAtt = obligation === null || obligation === void 0 ? void 0 : obligation.customAttributes) !== null && _obligation$customAtt !== void 0 ? _obligation$customAtt : {};
|
|
40733
40735
|
var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
|
|
40734
40736
|
var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
|
|
40735
40737
|
padding: "0",
|
|
40736
40738
|
borderRadius: "4px",
|
|
40737
40739
|
boxShadow: boxShadowValue,
|
|
40738
40740
|
as: "section",
|
|
40739
|
-
"aria-label": "".concat(obligation.description, " ").concat(obligation.subDescription)
|
|
40741
|
+
"aria-label": "".concat((_obligation$descripti = obligation === null || obligation === void 0 ? void 0 : obligation.description) !== null && _obligation$descripti !== void 0 ? _obligation$descripti : "account", " ").concat((_obligation$subDescri = obligation === null || obligation === void 0 ? void 0 : obligation.subDescription) !== null && _obligation$subDescri !== void 0 ? _obligation$subDescri : obligationAssocID)
|
|
40740
40742
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40741
40743
|
background: WHITE
|
|
40742
40744
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40743
40745
|
childGap: "14px"
|
|
40744
40746
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40745
|
-
key: "".concat(obligations[0].id, "-top"),
|
|
40747
|
+
key: "".concat(obligations === null || obligations === void 0 ? void 0 : obligations[0].id, "-top"),
|
|
40746
40748
|
padding: "0 8px",
|
|
40747
40749
|
minWidth: "100%"
|
|
40748
40750
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40762,12 +40764,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
40762
40764
|
iconValue: config.iconValue,
|
|
40763
40765
|
customAttributes: customAttributes
|
|
40764
40766
|
}), /*#__PURE__*/React__default.createElement(TitleModule, {
|
|
40765
|
-
title: obligation.description,
|
|
40766
|
-
subtitle: obligation.subDescription,
|
|
40767
|
+
title: obligation === null || obligation === void 0 ? void 0 : obligation.description,
|
|
40768
|
+
subtitle: obligation === null || obligation === void 0 ? void 0 : obligation.subDescription,
|
|
40767
40769
|
titleColor: BRIGHT_GREY,
|
|
40768
40770
|
isMobile: isMobile
|
|
40769
40771
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
40770
|
-
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
40772
|
+
totalAmountDue: obligations === null || obligations === void 0 ? void 0 : obligations.reduce(function (acc, curr) {
|
|
40771
40773
|
return acc + curr.amountDue;
|
|
40772
40774
|
}, 0),
|
|
40773
40775
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -40818,7 +40820,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
40818
40820
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40819
40821
|
childGap: "14px"
|
|
40820
40822
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40821
|
-
key: "".concat(
|
|
40823
|
+
key: "".concat(obligationAssocID, "-top"),
|
|
40822
40824
|
padding: "0 8px",
|
|
40823
40825
|
minWidth: "100%"
|
|
40824
40826
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|