@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.esm.js
CHANGED
|
@@ -40698,6 +40698,8 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
40698
40698
|
};
|
|
40699
40699
|
|
|
40700
40700
|
var Obligation = function Obligation(_ref) {
|
|
40701
|
+
var _obligation$customAtt, _obligation$descripti, _obligation$subDescri;
|
|
40702
|
+
|
|
40701
40703
|
var config = _ref.config,
|
|
40702
40704
|
obligations = _ref.obligations,
|
|
40703
40705
|
actions = _ref.actions,
|
|
@@ -40721,20 +40723,20 @@ var Obligation = function Obligation(_ref) {
|
|
|
40721
40723
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
40722
40724
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
|
|
40723
40725
|
var obligation = obligations[0];
|
|
40724
|
-
var customAttributes = obligation.customAttributes;
|
|
40726
|
+
var customAttributes = (_obligation$customAtt = obligation === null || obligation === void 0 ? void 0 : obligation.customAttributes) !== null && _obligation$customAtt !== void 0 ? _obligation$customAtt : {};
|
|
40725
40727
|
var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
|
|
40726
40728
|
var activeObligation = /*#__PURE__*/React.createElement(Box, {
|
|
40727
40729
|
padding: "0",
|
|
40728
40730
|
borderRadius: "4px",
|
|
40729
40731
|
boxShadow: boxShadowValue,
|
|
40730
40732
|
as: "section",
|
|
40731
|
-
"aria-label": "".concat(obligation.description, " ").concat(obligation.subDescription)
|
|
40733
|
+
"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)
|
|
40732
40734
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40733
40735
|
background: WHITE
|
|
40734
40736
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
40735
40737
|
childGap: "14px"
|
|
40736
40738
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40737
|
-
key: "".concat(obligations[0].id, "-top"),
|
|
40739
|
+
key: "".concat(obligations === null || obligations === void 0 ? void 0 : obligations[0].id, "-top"),
|
|
40738
40740
|
padding: "0 8px",
|
|
40739
40741
|
minWidth: "100%"
|
|
40740
40742
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -40754,12 +40756,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
40754
40756
|
iconValue: config.iconValue,
|
|
40755
40757
|
customAttributes: customAttributes
|
|
40756
40758
|
}), /*#__PURE__*/React.createElement(TitleModule, {
|
|
40757
|
-
title: obligation.description,
|
|
40758
|
-
subtitle: obligation.subDescription,
|
|
40759
|
+
title: obligation === null || obligation === void 0 ? void 0 : obligation.description,
|
|
40760
|
+
subtitle: obligation === null || obligation === void 0 ? void 0 : obligation.subDescription,
|
|
40759
40761
|
titleColor: BRIGHT_GREY,
|
|
40760
40762
|
isMobile: isMobile
|
|
40761
40763
|
}))), !isMobile && /*#__PURE__*/React.createElement(AmountModule, {
|
|
40762
|
-
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
40764
|
+
totalAmountDue: obligations === null || obligations === void 0 ? void 0 : obligations.reduce(function (acc, curr) {
|
|
40763
40765
|
return acc + curr.amountDue;
|
|
40764
40766
|
}, 0),
|
|
40765
40767
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -40810,7 +40812,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
40810
40812
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
40811
40813
|
childGap: "14px"
|
|
40812
40814
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40813
|
-
key: "".concat(
|
|
40815
|
+
key: "".concat(obligationAssocID, "-top"),
|
|
40814
40816
|
padding: "0 8px",
|
|
40815
40817
|
minWidth: "100%"
|
|
40816
40818
|
}, /*#__PURE__*/React.createElement(Cluster, {
|