@thecb/components 11.1.5 → 11.1.7-beta.0

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
@@ -47254,7 +47254,9 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47254
47254
  subDescription = _ref.subDescription,
47255
47255
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
47256
47256
  _ref$disableActions = _ref.disableActions,
47257
- disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
47257
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions,
47258
+ _ref$showRemoveButton = _ref.showRemoveButton,
47259
+ showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
47258
47260
  var _useState = useState(false),
47259
47261
  _useState2 = _slicedToArray(_useState, 2),
47260
47262
  modalOpen = _useState2[0],
@@ -47294,7 +47296,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47294
47296
  subDescription: subDescription,
47295
47297
  allowedPaymentInstruments: allowedPaymentInstruments,
47296
47298
  disableActions: disableActions
47297
- })), /*#__PURE__*/React.createElement(Box, {
47299
+ })), showRemoveButton && /*#__PURE__*/React.createElement(Box, {
47298
47300
  padding: "0",
47299
47301
  extraStyles: "flex-grow: 1;"
47300
47302
  }, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
@@ -47378,7 +47380,9 @@ var Obligation = function Obligation(_ref) {
47378
47380
  _ref$isInCart = _ref.isInCart,
47379
47381
  isInCart = _ref$isInCart === void 0 ? false : _ref$isInCart,
47380
47382
  _ref$isLoading = _ref.isLoading,
47381
- isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
47383
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
47384
+ _ref$showRemoveButton = _ref.showRemoveButton,
47385
+ showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
47382
47386
  /*
47383
47387
  The value of obligations is always an array. It can contain:
47384
47388
  - A single obligation
@@ -47638,7 +47642,8 @@ var Obligation = function Obligation(_ref) {
47638
47642
  description: description,
47639
47643
  subDescription: subDescription,
47640
47644
  allowedPaymentInstruments: allowedPaymentInstruments,
47641
- disableActions: isInCustomerManagement
47645
+ disableActions: isInCustomerManagement,
47646
+ showRemoveButton: showRemoveButton
47642
47647
  }))), isMobile && /*#__PURE__*/React.createElement(InactiveControlsModule, {
47643
47648
  obligations: obligations,
47644
47649
  autoPayEnabled: autoPayEnabled,
@@ -47656,7 +47661,8 @@ var Obligation = function Obligation(_ref) {
47656
47661
  description: description,
47657
47662
  subDescription: subDescription,
47658
47663
  allowedPaymentInstruments: allowedPaymentInstruments,
47659
- disableActions: isInCustomerManagement
47664
+ disableActions: isInCustomerManagement,
47665
+ showRemoveButton: showRemoveButton
47660
47666
  }))));
47661
47667
  return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
47662
47668
  };