@thecb/components 10.4.0-beta.1 → 10.4.0-beta.2

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
@@ -46766,27 +46766,27 @@ var AutopayModal = function AutopayModal(_ref) {
46766
46766
  case "secondary":
46767
46767
  {
46768
46768
  return /*#__PURE__*/React.createElement(ButtonWithAction, {
46769
- disabled: isInCustomerManagement,
46770
46769
  text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46771
46770
  variant: "secondary",
46772
46771
  action: function action() {
46773
- toggleModal(true);
46772
+ isInCustomerManagement ? noop$1 : toggleModal(true);
46774
46773
  },
46775
46774
  dataQa: "Turn off Autopay",
46776
- extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;"
46775
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;",
46776
+ disabled: isInCustomerManagement
46777
46777
  });
46778
46778
  }
46779
46779
  case "tertiary":
46780
46780
  {
46781
46781
  return /*#__PURE__*/React.createElement(ButtonWithAction, {
46782
- disabled: isInCustomerManagement,
46783
46782
  text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46784
- variant: isInCustomerManagement ? "disabledTertiary" : "tertiary",
46783
+ variant: "tertiary",
46785
46784
  action: function action() {
46786
46785
  isInCustomerManagement ? noop$1 : toggleModal(true);
46787
46786
  },
46788
46787
  dataQa: "Manage Autopay",
46789
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
46788
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;",
46789
+ disabled: isInCustomerManagement
46790
46790
  });
46791
46791
  }
46792
46792
  case "link":
@@ -46805,7 +46805,7 @@ var AutopayModal = function AutopayModal(_ref) {
46805
46805
  }, /*#__PURE__*/React.createElement(AutopayOnIcon, null), /*#__PURE__*/React.createElement(Text$1, {
46806
46806
  variant: "pS",
46807
46807
  onClick: function onClick() {
46808
- return toggleModal(true);
46808
+ return isInCustomerManagement ? noop$1 : toggleModal(true);
46809
46809
  },
46810
46810
  onKeyPress: isInCustomerManagement ? noop$1 : function (e) {
46811
46811
  e.key === "Enter" && toggleModal(true);
@@ -46815,7 +46815,8 @@ var AutopayModal = function AutopayModal(_ref) {
46815
46815
  color: SEA_GREEN,
46816
46816
  weight: themeValues.fontWeight,
46817
46817
  hoverStyles: themeValues.modalLinkHoverFocus,
46818
- extraStyles: "padding-left: 0.25rem;"
46818
+ extraStyles: "padding-left: 0.25rem;",
46819
+ disabled: isInCustomerManagement
46819
46820
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
46820
46821
  }
46821
46822
  }
@@ -46844,7 +46845,9 @@ var AmountModule = function AmountModule(_ref) {
46844
46845
  nextAutopayDate = _ref.nextAutopayDate,
46845
46846
  description = _ref.description,
46846
46847
  subDescription = _ref.subDescription,
46847
- allowedPaymentInstruments = _ref.allowedPaymentInstruments;
46848
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46849
+ _ref$isInCustomerMana = _ref.isInCustomerManagement,
46850
+ isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46848
46851
  var _useState = useState(false),
46849
46852
  _useState2 = _slicedToArray(_useState, 2),
46850
46853
  modalOpen = _useState2[0],
@@ -46874,7 +46877,8 @@ var AmountModule = function AmountModule(_ref) {
46874
46877
  controlType: "link",
46875
46878
  description: description,
46876
46879
  subDescription: subDescription,
46877
- allowedPaymentInstruments: allowedPaymentInstruments
46880
+ allowedPaymentInstruments: allowedPaymentInstruments,
46881
+ isInCustomerManagement: isInCustomerManagement
46878
46882
  })));
46879
46883
  };
46880
46884
 
@@ -46951,7 +46955,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46951
46955
  nextAutopayDate: nextAutopayDate,
46952
46956
  description: description,
46953
46957
  subDescription: subDescription,
46954
- allowedPaymentInstruments: allowedPaymentInstruments
46958
+ allowedPaymentInstruments: allowedPaymentInstruments,
46959
+ isInCustomerManagement: isInCustomerManagement
46955
46960
  }))), /*#__PURE__*/React.createElement(Box, {
46956
46961
  padding: isMobile ? "16px" : "0"
46957
46962
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -46962,7 +46967,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46962
46967
  padding: isMobile ? "0 8px 0 0" : "0",
46963
46968
  extraStyles: isMobile && "flex-grow: 1;"
46964
46969
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
46965
- variant: isInCustomerManagement ? "disabledTertiary" : "tertiary",
46970
+ variant: "tertiary",
46966
46971
  text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
46967
46972
  action: handleDetailsClick,
46968
46973
  dataQa: "Account Details",
@@ -46971,7 +46976,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46971
46976
  padding: isMobile ? "0 8px 0 0" : "0",
46972
46977
  extraStyles: isMobile && "flex-grow: 1;"
46973
46978
  }, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React.createElement(ButtonWithAction, {
46974
- variant: isInCustomerManagement ? "disabledTertiary" : "tertiary",
46979
+ variant: "tertiary",
46975
46980
  text: "Set Up ".concat(planType),
46976
46981
  action: function action() {
46977
46982
  setDetailedObligation(obligations, config, obligationAssocID);
@@ -47065,7 +47070,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
47065
47070
  extraStyles: "flex-grow: 1;"
47066
47071
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
47067
47072
  text: "Remove",
47068
- variant: isInCustomerManagement ? "disabledSecondary" : "secondary",
47073
+ variant: "secondary",
47069
47074
  action: isInCustomerManagement ? noop : function () {
47070
47075
  return setModalIsOpen(true);
47071
47076
  },
@@ -47271,7 +47276,8 @@ var Obligation = function Obligation(_ref) {
47271
47276
  nextAutopayDate: nextAutopayDate,
47272
47277
  description: description,
47273
47278
  subDescription: subDescription,
47274
- allowedPaymentInstruments: allowedPaymentInstruments
47279
+ allowedPaymentInstruments: allowedPaymentInstruments,
47280
+ isInCustomerManagement: isInCustomerManagement
47275
47281
  }))), !isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
47276
47282
  obligations: obligations,
47277
47283
  autoPayEnabled: autoPayEnabled,