@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.
@@ -3024,7 +3024,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
3024
3024
  activeOption: prefix$1 + '-active-option'
3025
3025
  };
3026
3026
 
3027
- 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"};
3027
+ 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"};
3028
3028
 
3029
3029
  var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
3030
3030
  var DEFAULT_TRANSITION_TIME = 5500;
@@ -3039,7 +3039,9 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
3039
3039
  purchaseAmount = _ref.purchaseAmount,
3040
3040
  suggestedPaymentPlan = _ref.suggestedPaymentPlan,
3041
3041
  cards = _ref.cards,
3042
- transitionDelay = _ref.transitionDelay;
3042
+ transitionDelay = _ref.transitionDelay,
3043
+ _ref$hideBorder = _ref.hideBorder,
3044
+ hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder;
3043
3045
 
3044
3046
  var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
3045
3047
  eligibilityPlans = _useFetchEligibility[0],
@@ -3137,7 +3139,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
3137
3139
 
3138
3140
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3139
3141
  onClick: handleOpenModal,
3140
- className: cx(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
3142
+ className: cx(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx[s$c.hideBorder] = hideBorder, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
3141
3143
  "data-testid": "widget-button"
3142
3144
  }, /*#__PURE__*/React.createElement("div", {
3143
3145
  className: cx(s$c.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
@@ -3195,6 +3197,8 @@ var WidgetsController = /*#__PURE__*/function () {
3195
3197
  plans = options.plans,
3196
3198
  transitionDelay = options.transitionDelay,
3197
3199
  hideIfNotEligible = options.hideIfNotEligible,
3200
+ _options$hideBorder = options.hideBorder,
3201
+ hideBorder = _options$hideBorder === void 0 ? false : _options$hideBorder,
3198
3202
  _options$monochrome = options.monochrome,
3199
3203
  monochrome = _options$monochrome === void 0 ? true : _options$monochrome,
3200
3204
  suggestedPaymentPlan = options.suggestedPaymentPlan,
@@ -3213,7 +3217,8 @@ var WidgetsController = /*#__PURE__*/function () {
3213
3217
  purchaseAmount: purchaseAmount,
3214
3218
  suggestedPaymentPlan: suggestedPaymentPlan,
3215
3219
  cards: cards,
3216
- transitionDelay: transitionDelay
3220
+ transitionDelay: transitionDelay,
3221
+ hideBorder: hideBorder
3217
3222
  })), document.querySelector(container));
3218
3223
  }
3219
3224
  }