@alma/widgets 2.8.3 → 2.8.4

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.
@@ -20356,11 +20356,12 @@
20356
20356
  setUpdate = _useState2[1];
20357
20357
 
20358
20358
  react.useEffect(function () {
20359
+ var timeout;
20359
20360
  var isMounted = true;
20360
20361
 
20361
20362
  if (iterateValues.length !== 0) {
20362
20363
  if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
20363
- setTimeout(function () {
20364
+ timeout = setTimeout(function () {
20364
20365
  if (update && isMounted) {
20365
20366
  setCurrent(iterateValues[iterateValues.includes(current) ? (iterateValues.indexOf(current) + 1) % iterateValues.length : 0]);
20366
20367
  }
@@ -20369,6 +20370,7 @@
20369
20370
 
20370
20371
  return function () {
20371
20372
  isMounted = false;
20373
+ clearTimeout(timeout);
20372
20374
  };
20373
20375
  }, [iterateValues, current]);
20374
20376
  return {
@@ -20566,7 +20568,11 @@
20566
20568
  onMouseEnter: function onMouseEnter() {
20567
20569
  return onHover(key);
20568
20570
  },
20571
+ onTouchStart: function onTouchStart() {
20572
+ return onHover(key);
20573
+ },
20569
20574
  onMouseOut: onLeave,
20575
+ onTouchEnd: onLeave,
20570
20576
  className: classnames(s$c.plan, (_cx2 = {}, _cx2[classnames(s$c.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$c.polychrome] = !monochrome && isCurrent, _cx2[classnames(s$c.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
20571
20577
  }, paymentPlanShorthandName(eligibilityPlan));
20572
20578
  }))), /*#__PURE__*/react.createElement("div", {