@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 CHANGED
@@ -47263,7 +47263,9 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47263
47263
  subDescription = _ref.subDescription,
47264
47264
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
47265
47265
  _ref$disableActions = _ref.disableActions,
47266
- disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
47266
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions,
47267
+ _ref$showRemoveButton = _ref.showRemoveButton,
47268
+ showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
47267
47269
  var _useState = React.useState(false),
47268
47270
  _useState2 = _slicedToArray(_useState, 2),
47269
47271
  modalOpen = _useState2[0],
@@ -47303,7 +47305,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47303
47305
  subDescription: subDescription,
47304
47306
  allowedPaymentInstruments: allowedPaymentInstruments,
47305
47307
  disableActions: disableActions
47306
- })), /*#__PURE__*/React__default.createElement(Box, {
47308
+ })), showRemoveButton && /*#__PURE__*/React__default.createElement(Box, {
47307
47309
  padding: "0",
47308
47310
  extraStyles: "flex-grow: 1;"
47309
47311
  }, /*#__PURE__*/React__default.createElement(RemoveAccountModalModule, {
@@ -47387,7 +47389,9 @@ var Obligation = function Obligation(_ref) {
47387
47389
  _ref$isInCart = _ref.isInCart,
47388
47390
  isInCart = _ref$isInCart === void 0 ? false : _ref$isInCart,
47389
47391
  _ref$isLoading = _ref.isLoading,
47390
- isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
47392
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
47393
+ _ref$showRemoveButton = _ref.showRemoveButton,
47394
+ showRemoveButton = _ref$showRemoveButton === void 0 ? true : _ref$showRemoveButton;
47391
47395
  /*
47392
47396
  The value of obligations is always an array. It can contain:
47393
47397
  - A single obligation
@@ -47647,7 +47651,8 @@ var Obligation = function Obligation(_ref) {
47647
47651
  description: description,
47648
47652
  subDescription: subDescription,
47649
47653
  allowedPaymentInstruments: allowedPaymentInstruments,
47650
- disableActions: isInCustomerManagement
47654
+ disableActions: isInCustomerManagement,
47655
+ showRemoveButton: showRemoveButton
47651
47656
  }))), isMobile && /*#__PURE__*/React__default.createElement(InactiveControlsModule, {
47652
47657
  obligations: obligations,
47653
47658
  autoPayEnabled: autoPayEnabled,
@@ -47665,7 +47670,8 @@ var Obligation = function Obligation(_ref) {
47665
47670
  description: description,
47666
47671
  subDescription: subDescription,
47667
47672
  allowedPaymentInstruments: allowedPaymentInstruments,
47668
- disableActions: isInCustomerManagement
47673
+ disableActions: isInCustomerManagement,
47674
+ showRemoveButton: showRemoveButton
47669
47675
  }))));
47670
47676
  return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
47671
47677
  };