@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.
@@ -20437,7 +20437,7 @@
20437
20437
  activeOption: prefix$1 + '-active-option'
20438
20438
  };
20439
20439
 
20440
- 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"};
20440
+ 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"};
20441
20441
 
20442
20442
  var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
20443
20443
  var DEFAULT_TRANSITION_TIME = 5500;
@@ -20452,7 +20452,9 @@
20452
20452
  purchaseAmount = _ref.purchaseAmount,
20453
20453
  suggestedPaymentPlan = _ref.suggestedPaymentPlan,
20454
20454
  cards = _ref.cards,
20455
- transitionDelay = _ref.transitionDelay;
20455
+ transitionDelay = _ref.transitionDelay,
20456
+ _ref$hideBorder = _ref.hideBorder,
20457
+ hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder;
20456
20458
 
20457
20459
  var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
20458
20460
  eligibilityPlans = _useFetchEligibility[0],
@@ -20550,7 +20552,7 @@
20550
20552
 
20551
20553
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
20552
20554
  onClick: handleOpenModal,
20553
- className: classnames(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
20555
+ className: classnames(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),
20554
20556
  "data-testid": "widget-button"
20555
20557
  }, /*#__PURE__*/react.createElement("div", {
20556
20558
  className: classnames(s$c.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
@@ -20608,6 +20610,8 @@
20608
20610
  plans = options.plans,
20609
20611
  transitionDelay = options.transitionDelay,
20610
20612
  hideIfNotEligible = options.hideIfNotEligible,
20613
+ _options$hideBorder = options.hideBorder,
20614
+ hideBorder = _options$hideBorder === void 0 ? false : _options$hideBorder,
20611
20615
  _options$monochrome = options.monochrome,
20612
20616
  monochrome = _options$monochrome === void 0 ? true : _options$monochrome,
20613
20617
  suggestedPaymentPlan = options.suggestedPaymentPlan,
@@ -20626,7 +20630,8 @@
20626
20630
  purchaseAmount: purchaseAmount,
20627
20631
  suggestedPaymentPlan: suggestedPaymentPlan,
20628
20632
  cards: cards,
20629
- transitionDelay: transitionDelay
20633
+ transitionDelay: transitionDelay,
20634
+ hideBorder: hideBorder
20630
20635
  })), document.querySelector(container));
20631
20636
  }
20632
20637
  }