@thecb/components 5.8.1-beta.3 → 5.8.1-beta.6
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 +24 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +24 -13
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/Obligation.js +22 -9
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +3 -1
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +4 -2
package/dist/index.cjs.js
CHANGED
|
@@ -40375,7 +40375,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
40375
40375
|
toggleModal(true);
|
|
40376
40376
|
},
|
|
40377
40377
|
dataQa: "Turn off Autopay",
|
|
40378
|
-
extraStyles: isMobile
|
|
40378
|
+
extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "margin: 0px"
|
|
40379
40379
|
});
|
|
40380
40380
|
}
|
|
40381
40381
|
|
|
@@ -40647,7 +40647,8 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
40647
40647
|
border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
|
|
40648
40648
|
borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
|
|
40649
40649
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40650
|
-
childGap: isMobile ? "8px" : "
|
|
40650
|
+
childGap: isMobile ? "8px" : "16px",
|
|
40651
|
+
nowrap: true
|
|
40651
40652
|
}, autoPayEnabled && /*#__PURE__*/React__default.createElement(Box, {
|
|
40652
40653
|
padding: "0",
|
|
40653
40654
|
extraStyles: "flex-grow: 1;"
|
|
@@ -40672,7 +40673,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
40672
40673
|
text: "Remove",
|
|
40673
40674
|
action: handleRemoveAccount,
|
|
40674
40675
|
dataQa: "Remove Account",
|
|
40675
|
-
extraStyles: isMobile
|
|
40676
|
+
extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "margin: 0px;"
|
|
40676
40677
|
}))));
|
|
40677
40678
|
};
|
|
40678
40679
|
|
|
@@ -40706,7 +40707,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
40706
40707
|
};
|
|
40707
40708
|
|
|
40708
40709
|
var Obligation = function Obligation(_ref) {
|
|
40709
|
-
var
|
|
40710
|
+
var _firstObligation$cust, _firstObligation$desc, _firstObligation$subD;
|
|
40710
40711
|
|
|
40711
40712
|
var config = _ref.config,
|
|
40712
40713
|
obligations = _ref.obligations,
|
|
@@ -40730,21 +40731,31 @@ var Obligation = function Obligation(_ref) {
|
|
|
40730
40731
|
inactiveLookupInput = _ref$inactiveLookupIn === void 0 ? "Account" : _ref$inactiveLookupIn,
|
|
40731
40732
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
40732
40733
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa;
|
|
40733
|
-
|
|
40734
|
-
|
|
40734
|
+
|
|
40735
|
+
/*
|
|
40736
|
+
The value of obligations is always an array. It can contain:
|
|
40737
|
+
- A single obligation
|
|
40738
|
+
- A group of obligations (a "collection")
|
|
40739
|
+
|
|
40740
|
+
The top level desc/subdesc for all obligations in a collection is the same
|
|
40741
|
+
(Collection accounts look different in the Account Details page)
|
|
40742
|
+
*/
|
|
40743
|
+
var firstObligation = obligations[0];
|
|
40744
|
+
var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
|
|
40735
40745
|
var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
|
|
40736
40746
|
var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
|
|
40737
40747
|
padding: "0",
|
|
40738
40748
|
borderRadius: "4px",
|
|
40739
40749
|
boxShadow: boxShadowValue,
|
|
40740
40750
|
as: "section",
|
|
40741
|
-
"aria-label": "".concat(
|
|
40751
|
+
"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
40752
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40743
|
-
background: WHITE
|
|
40753
|
+
background: WHITE,
|
|
40754
|
+
padding: "24px 16px"
|
|
40744
40755
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40745
40756
|
childGap: "14px"
|
|
40746
40757
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40747
|
-
key: "".concat(
|
|
40758
|
+
key: "".concat(firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.id, "-top"),
|
|
40748
40759
|
padding: "0 8px",
|
|
40749
40760
|
minWidth: "100%"
|
|
40750
40761
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40764,12 +40775,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
40764
40775
|
iconValue: config.iconValue,
|
|
40765
40776
|
customAttributes: customAttributes
|
|
40766
40777
|
}), /*#__PURE__*/React__default.createElement(TitleModule, {
|
|
40767
|
-
title:
|
|
40768
|
-
subtitle:
|
|
40778
|
+
title: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description,
|
|
40779
|
+
subtitle: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription,
|
|
40769
40780
|
titleColor: BRIGHT_GREY,
|
|
40770
40781
|
isMobile: isMobile
|
|
40771
40782
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
40772
|
-
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
40783
|
+
totalAmountDue: obligations === null || obligations === void 0 ? void 0 : obligations.reduce(function (acc, curr) {
|
|
40773
40784
|
return acc + curr.amountDue;
|
|
40774
40785
|
}, 0),
|
|
40775
40786
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -40820,7 +40831,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
40820
40831
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40821
40832
|
childGap: "14px"
|
|
40822
40833
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40823
|
-
key: "".concat(
|
|
40834
|
+
key: "".concat(obligationAssocID, "-top"),
|
|
40824
40835
|
padding: "0 8px",
|
|
40825
40836
|
minWidth: "100%"
|
|
40826
40837
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|