@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.
@@ -571,6 +571,10 @@
571
571
  cursor: not-allowed;
572
572
  }
573
573
 
574
+ ._3_qcn {
575
+ border: none;
576
+ }
577
+
574
578
  ._25GrF {
575
579
  font-family: Public Sans, sans-serif;
576
580
  font-style: normal;
@@ -3027,7 +3027,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
3027
3027
  activeOption: prefix$1 + '-active-option'
3028
3028
  };
3029
3029
 
3030
- 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"};
3030
+ 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"};
3031
3031
 
3032
3032
  var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
3033
3033
  var DEFAULT_TRANSITION_TIME = 5500;
@@ -3042,7 +3042,9 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
3042
3042
  purchaseAmount = _ref.purchaseAmount,
3043
3043
  suggestedPaymentPlan = _ref.suggestedPaymentPlan,
3044
3044
  cards = _ref.cards,
3045
- transitionDelay = _ref.transitionDelay;
3045
+ transitionDelay = _ref.transitionDelay,
3046
+ _ref$hideBorder = _ref.hideBorder,
3047
+ hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder;
3046
3048
 
3047
3049
  var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
3048
3050
  eligibilityPlans = _useFetchEligibility[0],
@@ -3140,7 +3142,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
3140
3142
 
3141
3143
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
3142
3144
  onClick: handleOpenModal,
3143
- 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),
3145
+ 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),
3144
3146
  "data-testid": "widget-button"
3145
3147
  }, /*#__PURE__*/React__default.createElement("div", {
3146
3148
  className: cx(s$c.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
@@ -3198,6 +3200,8 @@ var WidgetsController = /*#__PURE__*/function () {
3198
3200
  plans = options.plans,
3199
3201
  transitionDelay = options.transitionDelay,
3200
3202
  hideIfNotEligible = options.hideIfNotEligible,
3203
+ _options$hideBorder = options.hideBorder,
3204
+ hideBorder = _options$hideBorder === void 0 ? false : _options$hideBorder,
3201
3205
  _options$monochrome = options.monochrome,
3202
3206
  monochrome = _options$monochrome === void 0 ? true : _options$monochrome,
3203
3207
  suggestedPaymentPlan = options.suggestedPaymentPlan,
@@ -3216,7 +3220,8 @@ var WidgetsController = /*#__PURE__*/function () {
3216
3220
  purchaseAmount: purchaseAmount,
3217
3221
  suggestedPaymentPlan: suggestedPaymentPlan,
3218
3222
  cards: cards,
3219
- transitionDelay: transitionDelay
3223
+ transitionDelay: transitionDelay,
3224
+ hideBorder: hideBorder
3220
3225
  })), document.querySelector(container));
3221
3226
  }
3222
3227
  }