@thecb/components 10.4.0-beta.1 → 10.4.0-beta.2
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 +21 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/Obligation.js +1 -0
- package/src/components/molecules/obligation/modules/AmountModule.js +3 -1
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +8 -5
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +3 -4
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -46774,27 +46774,27 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46774
46774
|
case "secondary":
|
|
46775
46775
|
{
|
|
46776
46776
|
return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46777
|
-
disabled: isInCustomerManagement,
|
|
46778
46777
|
text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
|
|
46779
46778
|
variant: "secondary",
|
|
46780
46779
|
action: function action() {
|
|
46781
|
-
toggleModal(true);
|
|
46780
|
+
isInCustomerManagement ? noop$1 : toggleModal(true);
|
|
46782
46781
|
},
|
|
46783
46782
|
dataQa: "Turn off Autopay",
|
|
46784
|
-
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;"
|
|
46783
|
+
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;",
|
|
46784
|
+
disabled: isInCustomerManagement
|
|
46785
46785
|
});
|
|
46786
46786
|
}
|
|
46787
46787
|
case "tertiary":
|
|
46788
46788
|
{
|
|
46789
46789
|
return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46790
|
-
disabled: isInCustomerManagement,
|
|
46791
46790
|
text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
|
|
46792
|
-
variant:
|
|
46791
|
+
variant: "tertiary",
|
|
46793
46792
|
action: function action() {
|
|
46794
46793
|
isInCustomerManagement ? noop$1 : toggleModal(true);
|
|
46795
46794
|
},
|
|
46796
46795
|
dataQa: "Manage Autopay",
|
|
46797
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
46796
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;",
|
|
46797
|
+
disabled: isInCustomerManagement
|
|
46798
46798
|
});
|
|
46799
46799
|
}
|
|
46800
46800
|
case "link":
|
|
@@ -46813,7 +46813,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46813
46813
|
}, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46814
46814
|
variant: "pS",
|
|
46815
46815
|
onClick: function onClick() {
|
|
46816
|
-
return toggleModal(true);
|
|
46816
|
+
return isInCustomerManagement ? noop$1 : toggleModal(true);
|
|
46817
46817
|
},
|
|
46818
46818
|
onKeyPress: isInCustomerManagement ? noop$1 : function (e) {
|
|
46819
46819
|
e.key === "Enter" && toggleModal(true);
|
|
@@ -46823,7 +46823,8 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46823
46823
|
color: SEA_GREEN,
|
|
46824
46824
|
weight: themeValues.fontWeight,
|
|
46825
46825
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
46826
|
-
extraStyles: "padding-left: 0.25rem;"
|
|
46826
|
+
extraStyles: "padding-left: 0.25rem;",
|
|
46827
|
+
disabled: isInCustomerManagement
|
|
46827
46828
|
}, "".concat(shortPlan, " ").concat(nextAutopayDate))));
|
|
46828
46829
|
}
|
|
46829
46830
|
}
|
|
@@ -46852,7 +46853,9 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46852
46853
|
nextAutopayDate = _ref.nextAutopayDate,
|
|
46853
46854
|
description = _ref.description,
|
|
46854
46855
|
subDescription = _ref.subDescription,
|
|
46855
|
-
allowedPaymentInstruments = _ref.allowedPaymentInstruments
|
|
46856
|
+
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
46857
|
+
_ref$isInCustomerMana = _ref.isInCustomerManagement,
|
|
46858
|
+
isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
|
|
46856
46859
|
var _useState = React.useState(false),
|
|
46857
46860
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46858
46861
|
modalOpen = _useState2[0],
|
|
@@ -46882,7 +46885,8 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46882
46885
|
controlType: "link",
|
|
46883
46886
|
description: description,
|
|
46884
46887
|
subDescription: subDescription,
|
|
46885
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
46888
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46889
|
+
isInCustomerManagement: isInCustomerManagement
|
|
46886
46890
|
})));
|
|
46887
46891
|
};
|
|
46888
46892
|
|
|
@@ -46959,7 +46963,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46959
46963
|
nextAutopayDate: nextAutopayDate,
|
|
46960
46964
|
description: description,
|
|
46961
46965
|
subDescription: subDescription,
|
|
46962
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
46966
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46967
|
+
isInCustomerManagement: isInCustomerManagement
|
|
46963
46968
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
46964
46969
|
padding: isMobile ? "16px" : "0"
|
|
46965
46970
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -46970,7 +46975,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46970
46975
|
padding: isMobile ? "0 8px 0 0" : "0",
|
|
46971
46976
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
46972
46977
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46973
|
-
variant:
|
|
46978
|
+
variant: "tertiary",
|
|
46974
46979
|
text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
|
|
46975
46980
|
action: handleDetailsClick,
|
|
46976
46981
|
dataQa: "Account Details",
|
|
@@ -46979,7 +46984,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46979
46984
|
padding: isMobile ? "0 8px 0 0" : "0",
|
|
46980
46985
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
46981
46986
|
}, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46982
|
-
variant:
|
|
46987
|
+
variant: "tertiary",
|
|
46983
46988
|
text: "Set Up ".concat(planType),
|
|
46984
46989
|
action: function action() {
|
|
46985
46990
|
setDetailedObligation(obligations, config, obligationAssocID);
|
|
@@ -47073,7 +47078,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47073
47078
|
extraStyles: "flex-grow: 1;"
|
|
47074
47079
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47075
47080
|
text: "Remove",
|
|
47076
|
-
variant:
|
|
47081
|
+
variant: "secondary",
|
|
47077
47082
|
action: isInCustomerManagement ? noop : function () {
|
|
47078
47083
|
return setModalIsOpen(true);
|
|
47079
47084
|
},
|
|
@@ -47279,7 +47284,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47279
47284
|
nextAutopayDate: nextAutopayDate,
|
|
47280
47285
|
description: description,
|
|
47281
47286
|
subDescription: subDescription,
|
|
47282
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
47287
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47288
|
+
isInCustomerManagement: isInCustomerManagement
|
|
47283
47289
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
47284
47290
|
obligations: obligations,
|
|
47285
47291
|
autoPayEnabled: autoPayEnabled,
|