@alma/widgets 2.8.4 → 2.11.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.
@@ -2929,7 +2929,7 @@ const STATIC_CUSTOMISATION_CLASSES$1 = {
2929
2929
  activeOption: prefix$1 + '-active-option'
2930
2930
  };
2931
2931
 
2932
- var s$c = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","polychrome":"_2icEF","notEligible":"_3O1bg","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
2932
+ var s$c = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","polychrome":"_2icEF","notEligible":"_3O1bg","hideBorder":"_3_qcn","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
2933
2933
 
2934
2934
  const VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
2935
2935
  const DEFAULT_TRANSITION_TIME = 5500;
@@ -2942,7 +2942,8 @@ const PaymentPlanWidget = ({
2942
2942
  purchaseAmount,
2943
2943
  suggestedPaymentPlan,
2944
2944
  cards,
2945
- transitionDelay
2945
+ transitionDelay,
2946
+ hideBorder: _hideBorder = false
2946
2947
  }) => {
2947
2948
  const [eligibilityPlans, status] = useFetchEligibility(purchaseAmount, apiData, configPlans);
2948
2949
  const eligiblePlans = eligibilityPlans.filter(plan => plan.eligible);
@@ -3027,7 +3028,8 @@ const PaymentPlanWidget = ({
3027
3028
  onClick: handleOpenModal,
3028
3029
  className: cx(s$c.widgetButton, {
3029
3030
  [s$c.clickable]: eligiblePlans.length > 0,
3030
- [s$c.unClickable]: eligiblePlans.length === 0
3031
+ [s$c.unClickable]: eligiblePlans.length === 0,
3032
+ [s$c.hideBorder]: _hideBorder
3031
3033
  }, STATIC_CUSTOMISATION_CLASSES$1.container),
3032
3034
  "data-testid": "widget-button"
3033
3035
  }, /*#__PURE__*/React.createElement("div", {
@@ -3083,6 +3085,7 @@ class WidgetsController {
3083
3085
  plans,
3084
3086
  transitionDelay,
3085
3087
  hideIfNotEligible,
3088
+ hideBorder = false,
3086
3089
  monochrome = true,
3087
3090
  suggestedPaymentPlan,
3088
3091
  locale = Locale.en,
@@ -3100,7 +3103,8 @@ class WidgetsController {
3100
3103
  purchaseAmount: purchaseAmount,
3101
3104
  suggestedPaymentPlan: suggestedPaymentPlan,
3102
3105
  cards: cards,
3103
- transitionDelay: transitionDelay
3106
+ transitionDelay: transitionDelay,
3107
+ hideBorder: hideBorder
3104
3108
  })), document.querySelector(container));
3105
3109
  }
3106
3110
  }