@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.m.js
CHANGED
|
@@ -2943,11 +2943,12 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2943
2943
|
setUpdate = _useState2[1];
|
|
2944
2944
|
|
|
2945
2945
|
useEffect(function () {
|
|
2946
|
+
var timeout;
|
|
2946
2947
|
var isMounted = true;
|
|
2947
2948
|
|
|
2948
2949
|
if (iterateValues.length !== 0) {
|
|
2949
2950
|
if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
|
|
2950
|
-
setTimeout(function () {
|
|
2951
|
+
timeout = setTimeout(function () {
|
|
2951
2952
|
if (update && isMounted) {
|
|
2952
2953
|
setCurrent(iterateValues[iterateValues.includes(current) ? (iterateValues.indexOf(current) + 1) % iterateValues.length : 0]);
|
|
2953
2954
|
}
|
|
@@ -2956,6 +2957,7 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
|
|
|
2956
2957
|
|
|
2957
2958
|
return function () {
|
|
2958
2959
|
isMounted = false;
|
|
2960
|
+
clearTimeout(timeout);
|
|
2959
2961
|
};
|
|
2960
2962
|
}, [iterateValues, current]);
|
|
2961
2963
|
return {
|
|
@@ -3153,7 +3155,11 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3153
3155
|
onMouseEnter: function onMouseEnter() {
|
|
3154
3156
|
return onHover(key);
|
|
3155
3157
|
},
|
|
3158
|
+
onTouchStart: function onTouchStart() {
|
|
3159
|
+
return onHover(key);
|
|
3160
|
+
},
|
|
3156
3161
|
onMouseOut: onLeave,
|
|
3162
|
+
onTouchEnd: onLeave,
|
|
3157
3163
|
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))
|
|
3158
3164
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
3159
3165
|
}))), /*#__PURE__*/React.createElement("div", {
|