@thecb/components 5.8.1-beta.4 → 5.8.1-beta.5
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
|
|
40709
|
+
var _firstObligation$cust, _firstObligation$desc, _firstObligation$subD;
|
|
40710
40710
|
|
|
40711
40711
|
var config = _ref.config,
|
|
40712
40712
|
obligations = _ref.obligations,
|
|
@@ -40730,21 +40730,30 @@ var Obligation = function Obligation(_ref) {
|
|
|
40730
40730
|
inactiveLookupInput = _ref$inactiveLookupIn === void 0 ? "Account" : _ref$inactiveLookupIn,
|
|
40731
40731
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
40732
40732
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
|
|
40733
|
-
|
|
40734
|
-
|
|
40733
|
+
|
|
40734
|
+
/*
|
|
40735
|
+
The value of obligations is always an array. It can contain:
|
|
40736
|
+
- A single obligation
|
|
40737
|
+
- A group of obligations (a "collection")
|
|
40738
|
+
|
|
40739
|
+
The top level desc/subdesc for all obligations in a collection is the same
|
|
40740
|
+
(Collection accounts look different in the Account Details page)
|
|
40741
|
+
*/
|
|
40742
|
+
var firstObligation = obligations[0];
|
|
40743
|
+
var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
|
|
40735
40744
|
var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
|
|
40736
40745
|
var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
|
|
40737
40746
|
padding: "0",
|
|
40738
40747
|
borderRadius: "4px",
|
|
40739
40748
|
boxShadow: boxShadowValue,
|
|
40740
40749
|
as: "section",
|
|
40741
|
-
"aria-label": "".concat((
|
|
40750
|
+
"aria-label": "".concat((_firstObligation$desc = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description) !== null && _firstObligation$desc !== void 0 ? _firstObligation$desc : "account", " ").concat((_firstObligation$subD = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription) !== null && _firstObligation$subD !== void 0 ? _firstObligation$subD : obligationAssocID)
|
|
40742
40751
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40743
40752
|
background: WHITE
|
|
40744
40753
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40745
40754
|
childGap: "14px"
|
|
40746
40755
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40747
|
-
key: "".concat(
|
|
40756
|
+
key: "".concat(firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.id, "-top"),
|
|
40748
40757
|
padding: "0 8px",
|
|
40749
40758
|
minWidth: "100%"
|
|
40750
40759
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40764,8 +40773,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
40764
40773
|
iconValue: config.iconValue,
|
|
40765
40774
|
customAttributes: customAttributes
|
|
40766
40775
|
}), /*#__PURE__*/React__default.createElement(TitleModule, {
|
|
40767
|
-
title:
|
|
40768
|
-
subtitle:
|
|
40776
|
+
title: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description,
|
|
40777
|
+
subtitle: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription,
|
|
40769
40778
|
titleColor: BRIGHT_GREY,
|
|
40770
40779
|
isMobile: isMobile
|
|
40771
40780
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|