@thecb/components 8.0.3-beta.3 → 8.0.3-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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +6 -5
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +2 -4
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -37968,7 +37968,6 @@ var Card = function Card(_ref) {
|
|
|
37968
37968
|
_ref$width = _ref.width,
|
|
37969
37969
|
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
37970
37970
|
children = _ref.children;
|
|
37971
|
-
console.log("themeValues.imageBackgroundColor", themeValues.imageBackgroundColor);
|
|
37972
37971
|
var hasImage = Image || imgSrc;
|
|
37973
37972
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
37974
37973
|
return /*#__PURE__*/React.createElement(BoxWithShadow$1, {
|
|
@@ -37999,7 +37998,8 @@ var Card = function Card(_ref) {
|
|
|
37999
37998
|
}, Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
|
|
38000
37999
|
minHeight: imgHeight,
|
|
38001
38000
|
padding: "0",
|
|
38002
|
-
background:
|
|
38001
|
+
background: themeValues.imageBackgroundColor,
|
|
38002
|
+
extraStyles: "background-color: ".concat(themeValues.imageBackgroundColor)
|
|
38003
38003
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
38004
38004
|
minHeight: imgHeight,
|
|
38005
38005
|
singleChild: true
|
|
@@ -46641,7 +46641,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46641
46641
|
var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
|
|
46642
46642
|
var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
|
|
46643
46643
|
var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
|
|
46644
|
-
return "To setup ".concat(planText, " you must have a saved ").concat(methodRequired, " and address
|
|
46644
|
+
return "To setup ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
|
|
46645
46645
|
};
|
|
46646
46646
|
|
|
46647
46647
|
var plan = isPaymentPlan ? "your payment plan" : "autopay";
|
|
@@ -46652,7 +46652,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46652
46652
|
var modalExtraProps = {
|
|
46653
46653
|
modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
|
|
46654
46654
|
modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(plan, "? ").concat(!inactive && nextDate ? "Your next payment will be due on ".concat(nextDate, ".") : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
|
|
46655
|
-
continueButtonText: autoPayActive ? "Disable ".concat(shortPlan) : "Add
|
|
46655
|
+
continueButtonText: autoPayActive ? "Disable ".concat(shortPlan) : "Add",
|
|
46656
46656
|
useDangerButton: autoPayActive,
|
|
46657
46657
|
continueAction: autoPayActive ? function () {
|
|
46658
46658
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
@@ -46960,7 +46960,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
46960
46960
|
},
|
|
46961
46961
|
modalOpen: modalIsOpen,
|
|
46962
46962
|
modalHeaderText: "Remove ".concat(accountType),
|
|
46963
|
-
modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, "
|
|
46963
|
+
modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, "? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
|
|
46964
46964
|
continueButtonText: "Remove",
|
|
46965
46965
|
continueAction: function continueAction() {
|
|
46966
46966
|
removeAccount();
|