@thecb/components 5.8.1-beta.3 → 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,7 +40706,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
40706
40706
|
};
|
|
40707
40707
|
|
|
40708
40708
|
var Obligation = function Obligation(_ref) {
|
|
40709
|
-
var _obligation$customAtt;
|
|
40709
|
+
var _obligation$customAtt, _obligation$descripti, _obligation$subDescri;
|
|
40710
40710
|
|
|
40711
40711
|
var config = _ref.config,
|
|
40712
40712
|
obligations = _ref.obligations,
|
|
@@ -40738,13 +40738,13 @@ var Obligation = function Obligation(_ref) {
|
|
|
40738
40738
|
borderRadius: "4px",
|
|
40739
40739
|
boxShadow: boxShadowValue,
|
|
40740
40740
|
as: "section",
|
|
40741
|
-
"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)
|
|
40742
40742
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40743
40743
|
background: WHITE
|
|
40744
40744
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40745
40745
|
childGap: "14px"
|
|
40746
40746
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40747
|
-
key: "".concat(obligations[0].id, "-top"),
|
|
40747
|
+
key: "".concat(obligations === null || obligations === void 0 ? void 0 : obligations[0].id, "-top"),
|
|
40748
40748
|
padding: "0 8px",
|
|
40749
40749
|
minWidth: "100%"
|
|
40750
40750
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40764,12 +40764,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
40764
40764
|
iconValue: config.iconValue,
|
|
40765
40765
|
customAttributes: customAttributes
|
|
40766
40766
|
}), /*#__PURE__*/React__default.createElement(TitleModule, {
|
|
40767
|
-
title: obligation.description,
|
|
40768
|
-
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,
|
|
40769
40769
|
titleColor: BRIGHT_GREY,
|
|
40770
40770
|
isMobile: isMobile
|
|
40771
40771
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
40772
|
-
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
40772
|
+
totalAmountDue: obligations === null || obligations === void 0 ? void 0 : obligations.reduce(function (acc, curr) {
|
|
40773
40773
|
return acc + curr.amountDue;
|
|
40774
40774
|
}, 0),
|
|
40775
40775
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -40820,7 +40820,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
40820
40820
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40821
40821
|
childGap: "14px"
|
|
40822
40822
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40823
|
-
key: "".concat(
|
|
40823
|
+
key: "".concat(obligationAssocID, "-top"),
|
|
40824
40824
|
padding: "0 8px",
|
|
40825
40825
|
minWidth: "100%"
|
|
40826
40826
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|