@thecb/components 11.1.6 → 11.1.7
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 +11 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/Obligation.js +4 -1
- package/src/components/molecules/obligation/Obligation.stories.js +2 -1
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +13 -10
- package/src/components/atoms/.DS_Store +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -47255,7 +47255,9 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
47255
47255
|
subDescription = _ref.subDescription,
|
|
47256
47256
|
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
47257
47257
|
_ref$disableActions = _ref.disableActions,
|
|
47258
|
-
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions
|
|
47258
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions,
|
|
47259
|
+
_ref$showRemoveButton = _ref.showRemoveButton,
|
|
47260
|
+
showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
|
|
47259
47261
|
var _useState = useState(false),
|
|
47260
47262
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47261
47263
|
modalOpen = _useState2[0],
|
|
@@ -47295,7 +47297,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
47295
47297
|
subDescription: subDescription,
|
|
47296
47298
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47297
47299
|
disableActions: disableActions
|
|
47298
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
47300
|
+
})), showRemoveButton && /*#__PURE__*/React.createElement(Box, {
|
|
47299
47301
|
padding: "0",
|
|
47300
47302
|
extraStyles: "flex-grow: 1;"
|
|
47301
47303
|
}, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
|
|
@@ -47379,7 +47381,9 @@ var Obligation = function Obligation(_ref) {
|
|
|
47379
47381
|
_ref$isInCart = _ref.isInCart,
|
|
47380
47382
|
isInCart = _ref$isInCart === void 0 ? false : _ref$isInCart,
|
|
47381
47383
|
_ref$isLoading = _ref.isLoading,
|
|
47382
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
47384
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
47385
|
+
_ref$showRemoveButton = _ref.showRemoveButton,
|
|
47386
|
+
showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
|
|
47383
47387
|
/*
|
|
47384
47388
|
The value of obligations is always an array. It can contain:
|
|
47385
47389
|
- A single obligation
|
|
@@ -47639,7 +47643,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47639
47643
|
description: description,
|
|
47640
47644
|
subDescription: subDescription,
|
|
47641
47645
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47642
|
-
disableActions: isInCustomerManagement
|
|
47646
|
+
disableActions: isInCustomerManagement,
|
|
47647
|
+
showRemoveButton: showRemoveButton
|
|
47643
47648
|
}))), isMobile && /*#__PURE__*/React.createElement(InactiveControlsModule, {
|
|
47644
47649
|
obligations: obligations,
|
|
47645
47650
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -47657,7 +47662,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47657
47662
|
description: description,
|
|
47658
47663
|
subDescription: subDescription,
|
|
47659
47664
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47660
|
-
disableActions: isInCustomerManagement
|
|
47665
|
+
disableActions: isInCustomerManagement,
|
|
47666
|
+
showRemoveButton: showRemoveButton
|
|
47661
47667
|
}))));
|
|
47662
47668
|
return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
|
|
47663
47669
|
};
|