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