@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.
- package/dist/raw/widgets.js +7 -1
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +7 -1
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +5 -1
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +7 -1
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/hooks/useButtonAnimation.d.ts +2 -1
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/raw/widgets.js
CHANGED
|
@@ -2946,11 +2946,12 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2946
2946
|
setUpdate = _useState2[1];
|
|
2947
2947
|
|
|
2948
2948
|
React.useEffect(function () {
|
|
2949
|
+
var timeout;
|
|
2949
2950
|
var isMounted = true;
|
|
2950
2951
|
|
|
2951
2952
|
if (iterateValues.length !== 0) {
|
|
2952
2953
|
if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
|
|
2953
|
-
setTimeout(function () {
|
|
2954
|
+
timeout = setTimeout(function () {
|
|
2954
2955
|
if (update && isMounted) {
|
|
2955
2956
|
setCurrent(iterateValues[iterateValues.includes(current) ? (iterateValues.indexOf(current) + 1) % iterateValues.length : 0]);
|
|
2956
2957
|
}
|
|
@@ -2959,6 +2960,7 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2959
2960
|
|
|
2960
2961
|
return function () {
|
|
2961
2962
|
isMounted = false;
|
|
2963
|
+
clearTimeout(timeout);
|
|
2962
2964
|
};
|
|
2963
2965
|
}, [iterateValues, current]);
|
|
2964
2966
|
return {
|
|
@@ -3156,7 +3158,11 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3156
3158
|
onMouseEnter: function onMouseEnter() {
|
|
3157
3159
|
return onHover(key);
|
|
3158
3160
|
},
|
|
3161
|
+
onTouchStart: function onTouchStart() {
|
|
3162
|
+
return onHover(key);
|
|
3163
|
+
},
|
|
3159
3164
|
onMouseOut: onLeave,
|
|
3165
|
+
onTouchEnd: onLeave,
|
|
3160
3166
|
className: cx(s$c.plan, (_cx2 = {}, _cx2[cx(s$c.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$c.polychrome] = !monochrome && isCurrent, _cx2[cx(s$c.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
|
|
3161
3167
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
3162
3168
|
}))), /*#__PURE__*/React__default.createElement("div", {
|