UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

35 lines (34 loc) 750 B
"use client"; function c(u) { var f = {}, a = () => null, t = !1, n = null, r = (e) => { if (!t) { if (Array.isArray(e)) { if (!e.length) return; var o = e, [i, ...l] = o; if (typeof i == "number") { n = u.setTimeout(r.bind(null, l), i); return; } r(i), n = u.setTimeout(r.bind(null, l)); return; } typeof e == "object" && (f = e, a(f)), typeof e == "function" && e(); } }; return { stop: () => { t = !0; }, start: (e) => { t = !1, n && (n(), n = null), r(e); }, subscribe: (e) => (a = e, () => { a = () => null; }), getTimeoutController: () => u }; } export { c as createAnimateManager };