Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-final-marquee

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-final-marquee - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

dist/index.d.ts

424

dist/react-final-marquee.es.js

@@ -1,10 +0,10 @@

import Oe from "react";
var H = {}, or = {
import Ce, { useRef as _e } from "react";
var W = {}, ur = {
get exports() {
return H;
return W;
},
set exports(h) {
H = h;
set exports(g) {
W = g;
}
}, k = {};
}, I = {};
/**

@@ -19,21 +19,21 @@ * @license React

*/
var Re;
function ur() {
if (Re)
return k;
Re = 1;
var h = Oe, S = Symbol.for("react.element"), M = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, F = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
function w(_, l, T) {
var d, g = {}, m = null, I = null;
T !== void 0 && (m = "" + T), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (I = l.ref);
for (d in l)
R.call(l, d) && !A.hasOwnProperty(d) && (g[d] = l[d]);
if (_ && _.defaultProps)
for (d in l = _.defaultProps, l)
g[d] === void 0 && (g[d] = l[d]);
return { $$typeof: S, type: _, key: m, ref: I, props: g, _owner: F.current };
var Te;
function sr() {
if (Te)
return I;
Te = 1;
var g = Ce, T = Symbol.for("react.element"), D = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, S = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
function O(y, l, _) {
var c, m = {}, h = null, P = null;
_ !== void 0 && (h = "" + _), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (P = l.ref);
for (c in l)
b.call(l, c) && !w.hasOwnProperty(c) && (m[c] = l[c]);
if (y && y.defaultProps)
for (c in l = y.defaultProps, l)
m[c] === void 0 && (m[c] = l[c]);
return { $$typeof: T, type: y, key: h, ref: P, props: m, _owner: S.current };
}
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
return I.Fragment = D, I.jsx = O, I.jsxs = O, I;
}
var D = {};
var $ = {};
/**

@@ -48,23 +48,23 @@ * @license React

*/
var Te;
function sr() {
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
var h = Oe, S = Symbol.for("react.element"), M = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Ce = "@@iterator";
function Pe(e) {
var Oe;
function fr() {
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
var g = Ce, T = Symbol.for("react.element"), D = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), y = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), X = Symbol.iterator, Se = "@@iterator";
function we(e) {
if (e === null || typeof e != "object")
return null;
var r = X && e[X] || e[Ce];
var r = X && e[X] || e[Se];
return typeof r == "function" ? r : null;
}
var O = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function c(e) {
var x = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function d(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
Se("error", e, t);
Pe("error", e, t);
}
}
function Se(e, r, t) {
function Pe(e, r, t) {
{
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
var n = x.ReactDebugCurrentFrame, o = n.getStackAddendum();
o !== "" && (r += "%s", t = t.concat([o]));

@@ -77,6 +77,6 @@ var u = t.map(function(i) {

}
var we = !1, xe = !1, je = !1, ke = !1, De = !1, Z;
var xe = !1, je = !1, ke = !1, De = !1, Fe = !1, Z;
Z = Symbol.for("react.module.reference");
function Fe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === R || e === A || De || e === F || e === T || e === d || ke || e === I || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === l || // This needs to include all possible module reference object
function Ae(e) {
return !!(typeof e == "string" || typeof e == "function" || e === b || e === w || Fe || e === S || e === _ || e === c || De || e === P || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === O || e.$$typeof === y || e.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -87,3 +87,3 @@ // we don't know which Flight build this will end up being used

}
function Ae(e, r, t) {
function Ie(e, r, t) {
var n = e.displayName;

@@ -101,3 +101,3 @@ if (n)

return null;
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;

@@ -107,13 +107,13 @@ if (typeof e == "string")

switch (e) {
case R:
case b:
return "Fragment";
case M:
case D:
return "Portal";
case A:
case w:
return "Profiler";
case F:
case S:
return "StrictMode";
case T:
case _:
return "Suspense";
case d:
case c:
return "SuspenseList";

@@ -123,14 +123,14 @@ }

switch (e.$$typeof) {
case _:
case y:
var r = e;
return Q(r) + ".Consumer";
case w:
case O:
var t = e;
return Q(t._context) + ".Provider";
case l:
return Ae(e, e.render, "ForwardRef");
case g:
return Ie(e, e.render, "ForwardRef");
case m:
var n = e.displayName || null;
return n !== null ? n : E(e.type) || "Memo";
case m: {
case h: {
var o = e, u = o._payload, i = o._init;

@@ -146,9 +146,9 @@ try {

}
var y = Object.assign, x = 0, ee, re, te, ne, ae, ie, oe;
var C = Object.assign, F = 0, ee, re, te, ne, ae, ie, oe;
function ue() {
}
ue.__reactDisabledLog = !0;
function Ie() {
function $e() {
{
if (x === 0) {
if (F === 0) {
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;

@@ -171,8 +171,8 @@ var e = {

}
x++;
F++;
}
}
function $e() {
function We() {
{
if (x--, x === 0) {
if (F--, F === 0) {
var e = {

@@ -184,21 +184,21 @@ configurable: !0,

Object.defineProperties(console, {
log: y({}, e, {
log: C({}, e, {
value: ee
}),
info: y({}, e, {
info: C({}, e, {
value: re
}),
warn: y({}, e, {
warn: C({}, e, {
value: te
}),
error: y({}, e, {
error: C({}, e, {
value: ne
}),
group: y({}, e, {
group: C({}, e, {
value: ae
}),
groupCollapsed: y({}, e, {
groupCollapsed: C({}, e, {
value: ie
}),
groupEnd: y({}, e, {
groupEnd: C({}, e, {
value: oe

@@ -208,9 +208,9 @@ })

}
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
F < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var V = O.ReactCurrentDispatcher, U;
function $(e, r, t) {
var U = x.ReactCurrentDispatcher, q;
function Y(e, r, t) {
{
if (U === void 0)
if (q === void 0)
try {

@@ -220,18 +220,18 @@ throw Error();

var n = o.stack.trim().match(/\n( *(at )?)/);
U = n && n[1] || "";
q = n && n[1] || "";
}
return `
` + U + e;
` + q + e;
}
}
var q = !1, W;
var B = !1, N;
{
var We = typeof WeakMap == "function" ? WeakMap : Map;
W = new We();
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
N = new Ye();
}
function se(e, r) {
if (!e || q)
if (!e || B)
return "";
{
var t = W.get(e);
var t = N.get(e);
if (t !== void 0)

@@ -241,7 +241,7 @@ return t;

var n;
q = !0;
B = !0;
var o = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = V.current, V.current = null, Ie();
u = U.current, U.current = null, $e();
try {

@@ -259,4 +259,4 @@ if (r) {

Reflect.construct(i, []);
} catch (b) {
n = b;
} catch (R) {
n = R;
}

@@ -267,4 +267,4 @@ Reflect.construct(e, [], i);

i.call();
} catch (b) {
n = b;
} catch (R) {
n = R;
}

@@ -276,10 +276,10 @@ e.call(i.prototype);

throw Error();
} catch (b) {
n = b;
} catch (R) {
n = R;
}
e();
}
} catch (b) {
if (b && n && typeof b.stack == "string") {
for (var a = b.stack.split(`
} catch (R) {
if (R && n && typeof R.stack == "string") {
for (var a = R.stack.split(`
`), v = n.stack.split(`

@@ -295,3 +295,3 @@ `), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )

` + a[s].replace(" at new ", " at ");
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p;
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, p), p;
}

@@ -303,8 +303,8 @@ while (s >= 1 && f >= 0);

} finally {
q = !1, V.current = u, $e(), Error.prepareStackTrace = o;
B = !1, U.current = u, We(), Error.prepareStackTrace = o;
}
var P = e ? e.displayName || e.name : "", ye = P ? $(P) : "";
return typeof e == "function" && W.set(e, ye), ye;
var k = e ? e.displayName || e.name : "", be = k ? Y(k) : "";
return typeof e == "function" && N.set(e, be), be;
}
function Ye(e, r, t) {
function Ne(e, r, t) {
return se(e, !1);

@@ -316,3 +316,3 @@ }

}
function Y(e, r, t) {
function L(e, r, t) {
if (e == null)

@@ -323,8 +323,8 @@ return "";

if (typeof e == "string")
return $(e);
return Y(e);
switch (e) {
case T:
return $("Suspense");
case d:
return $("SuspenseList");
case _:
return Y("Suspense");
case c:
return Y("SuspenseList");
}

@@ -334,9 +334,9 @@ if (typeof e == "object")

case l:
return Ye(e.render);
case g:
return Y(e.type, r, t);
case m: {
return Ne(e.render);
case m:
return L(e.type, r, t);
case h: {
var n = e, o = n._payload, u = n._init;
try {
return Y(u(o), r, t);
return L(u(o), r, t);
} catch {

@@ -348,6 +348,6 @@ }

}
var L = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
function N(e) {
var M = Object.prototype.hasOwnProperty, fe = {}, le = x.ReactDebugCurrentFrame;
function V(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
le.setExtraStackFrame(t);

@@ -357,5 +357,5 @@ } else

}
function Ne(e, r, t, n, o) {
function Me(e, r, t, n, o) {
{
var u = Function.call.bind(L);
var u = Function.call.bind(M);
for (var i in e)

@@ -373,11 +373,11 @@ if (u(e, i)) {

}
a && !(a instanceof Error) && (N(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), N(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, N(o), c("Failed %s type: %s", t, a.message), N(null));
a && !(a instanceof Error) && (V(o), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(o), d("Failed %s type: %s", t, a.message), V(null));
}
}
}
var Me = Array.isArray;
function B(e) {
return Me(e);
var Ve = Array.isArray;
function J(e) {
return Ve(e);
}
function Ve(e) {
function Ue(e) {
{

@@ -388,3 +388,3 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";

}
function Ue(e) {
function qe(e) {
try {

@@ -399,7 +399,7 @@ return ce(e), !1;

}
function ve(e) {
if (Ue(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), ce(e);
function de(e) {
if (qe(e))
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), ce(e);
}
var j = O.ReactCurrentOwner, qe = {
var A = x.ReactCurrentOwner, Be = {
key: !0,

@@ -409,6 +409,6 @@ ref: !0,

__source: !0
}, de, pe, J;
J = {};
function Be(e) {
if (L.call(e, "ref")) {
}, ve, pe, G;
G = {};
function Je(e) {
if (M.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;

@@ -420,4 +420,4 @@ if (r && r.isReactWarning)

}
function Je(e) {
if (L.call(e, "key")) {
function Ge(e) {
if (M.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;

@@ -429,12 +429,12 @@ if (r && r.isReactWarning)

}
function Ge(e, r) {
if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
var t = E(j.current.type);
J[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(j.current.type), e.ref), J[t] = !0);
function ze(e, r) {
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
var t = E(A.current.type);
G[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(A.current.type), e.ref), G[t] = !0);
}
}
function ze(e, r) {
function Ke(e, r) {
{
var t = function() {
de || (de = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
ve || (ve = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -447,6 +447,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

}
function Ke(e, r) {
function He(e, r) {
{
var t = function() {
pe || (pe = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
pe || (pe = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -459,6 +459,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var He = function(e, r, t, n, o, u, i) {
var Xe = function(e, r, t, n, o, u, i) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: S,
$$typeof: T,
// Built-in properties that belong on the element

@@ -489,8 +489,8 @@ type: e,

};
function Xe(e, r, t, n, o) {
function Ze(e, r, t, n, o) {
{
var u, i = {}, a = null, v = null;
t !== void 0 && (ve(t), a = "" + t), Je(r) && (ve(r.key), a = "" + r.key), Be(r) && (v = r.ref, Ge(r, o));
t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), Je(r) && (v = r.ref, ze(r, o));
for (u in r)
L.call(r, u) && !qe.hasOwnProperty(u) && (i[u] = r[u]);
M.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {

@@ -503,24 +503,24 @@ var s = e.defaultProps;

var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && ze(i, f), v && Ke(i, f);
a && Ke(i, f), v && He(i, f);
}
return He(e, a, v, o, n, j.current, i);
return Xe(e, a, v, o, n, A.current, i);
}
}
var G = O.ReactCurrentOwner, ge = O.ReactDebugCurrentFrame;
function C(e) {
var z = x.ReactCurrentOwner, me = x.ReactDebugCurrentFrame;
function j(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
ge.setExtraStackFrame(t);
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
me.setExtraStackFrame(t);
} else
ge.setExtraStackFrame(null);
me.setExtraStackFrame(null);
}
var z;
z = !1;
function K(e) {
return typeof e == "object" && e !== null && e.$$typeof === S;
var K;
K = !1;
function H(e) {
return typeof e == "object" && e !== null && e.$$typeof === T;
}
function Ee() {
function ge() {
{
if (G.current) {
var e = E(G.current.type);
if (z.current) {
var e = E(z.current.type);
if (e)

@@ -534,3 +534,3 @@ return `

}
function Ze(e) {
function Qe(e) {
{

@@ -546,6 +546,6 @@ if (e !== void 0) {

}
var be = {};
function Qe(e) {
var he = {};
function er(e) {
{
var r = Ee();
var r = ge();
if (!r) {

@@ -560,3 +560,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

}
function he(e, r) {
function ye(e, r) {
{

@@ -566,30 +566,30 @@ if (!e._store || e._store.validated || e.key != null)

e._store.validated = !0;
var t = Qe(r);
if (be[t])
var t = er(r);
if (he[t])
return;
be[t] = !0;
he[t] = !0;
var n = "";
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + E(e._owner.type) + "."), C(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), C(null);
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + E(e._owner.type) + "."), j(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
}
}
function _e(e, r) {
function Ee(e, r) {
{
if (typeof e != "object")
return;
if (B(e))
if (J(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
K(n) && he(n, r);
H(n) && ye(n, r);
}
else if (K(e))
else if (H(e))
e._store && (e._store.validated = !0);
else if (e) {
var o = Pe(e);
var o = we(e);
if (typeof o == "function" && o !== e.entries)
for (var u = o.call(e), i; !(i = u.next()).done; )
K(i.value) && he(i.value, r);
H(i.value) && ye(i.value, r);
}
}
}
function er(e) {
function rr(e) {
{

@@ -604,3 +604,3 @@ var r = e.type;

// Inner props are checked in the reconciler.
r.$$typeof === g))
r.$$typeof === m))
t = r.propTypes;

@@ -611,12 +611,12 @@ else

var n = E(r);
Ne(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !z) {
z = !0;
Me(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !K) {
K = !0;
var o = E(r);
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function rr(e) {
function tr(e) {
{

@@ -626,21 +626,21 @@ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {

if (n !== "children" && n !== "key") {
C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
j(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
break;
}
}
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
e.ref !== null && (j(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
}
}
function me(e, r, t, n, o, u) {
function Re(e, r, t, n, o, u) {
{
var i = Fe(e);
var i = Ae(e);
if (!i) {
var a = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var v = Ze(o);
v ? a += v : a += Ee();
var v = Qe(o);
v ? a += v : a += ge();
var s;
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === S ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === T ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
}
var f = Xe(e, r, t, o, u);
var f = Ze(e, r, t, o, u);
if (f == null)

@@ -652,30 +652,58 @@ return f;

if (n)
if (B(p)) {
for (var P = 0; P < p.length; P++)
_e(p[P], e);
if (J(p)) {
for (var k = 0; k < p.length; k++)
Ee(p[k], e);
Object.freeze && Object.freeze(p);
} else
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
_e(p, e);
Ee(p, e);
}
return e === R ? rr(f) : er(f), f;
return e === b ? tr(f) : rr(f), f;
}
}
function tr(e, r, t) {
return me(e, r, t, !0);
}
function nr(e, r, t) {
return me(e, r, t, !1);
return Re(e, r, t, !0);
}
var ar = nr, ir = tr;
D.Fragment = R, D.jsx = ar, D.jsxs = ir;
}()), D;
function ar(e, r, t) {
return Re(e, r, t, !1);
}
var ir = ar, or = nr;
$.Fragment = b, $.jsx = ir, $.jsxs = or;
}()), $;
}
(function(h) {
process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
})(or);
const lr = () => /* @__PURE__ */ H.jsx("div", { children: "marquee" });
(function(g) {
process.env.NODE_ENV === "production" ? g.exports = sr() : g.exports = fr();
})(ur);
const cr = ({
style: g = {},
className: T = "",
paused: D = !1,
pauseOnHover: b = !0,
direction: S = "leftToRight",
duration: w = 2,
space: O = 20,
repeat: y = 2,
children: l
}) => {
const _ = _e(null), c = _e(null), m = {
["--play"]: D ? "paused" : "running",
["--duration"]: `${w}s`,
["--space"]: `${O}px`,
["--pause-on-hover"]: b ? "paused" : "running",
...g
};
return /* @__PURE__ */ W.jsx("div", { className: `${T} react-final-marquee`, ref: _, children: /* @__PURE__ */ W.jsx("div", { className: "react-final-marquee-wrapper", "data-direction": S, children: Array.from({ length: y }, (h, P) => P).map((h) => /* @__PURE__ */ W.jsx(
"div",
{
className: "react-final-marquee-item",
ref: c,
style: { ...m },
children: l
},
h
)) }) });
};
export {
lr as default
cr as default
};

@@ -1,2 +0,2 @@

(function(y,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("react")):typeof define=="function"&&define.amd?define(["react"],m):(y=typeof globalThis<"u"?globalThis:y||self,y.Marquee=m(y.React))})(this,function(y){"use strict";var m={},Ce={get exports(){return m},set exports(b){m=b}},x={};/**
(function(y,R){typeof exports=="object"&&typeof module<"u"?module.exports=R(require("react")):typeof define=="function"&&define.amd?define(["react"],R):(y=typeof globalThis<"u"?globalThis:y||self,y.Marquee=R(y.React))})(this,function(y){"use strict";var R={},Ce={get exports(){return R},set exports(h){R=h}},A={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var Z;function Pe(){if(Z)return x;Z=1;var b=y,k=Symbol.for("react.element"),U=Symbol.for("react.fragment"),O=Object.prototype.hasOwnProperty,I=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function D(R,l,C){var v,h={},_=null,Y=null;C!==void 0&&(_=""+C),l.key!==void 0&&(_=""+l.key),l.ref!==void 0&&(Y=l.ref);for(v in l)O.call(l,v)&&!W.hasOwnProperty(v)&&(h[v]=l[v]);if(R&&R.defaultProps)for(v in l=R.defaultProps,l)h[v]===void 0&&(h[v]=l[v]);return{$$typeof:k,type:R,key:_,ref:Y,props:h,_owner:I.current}}return x.Fragment=U,x.jsx=D,x.jsxs=D,x}var j={};/**
*/var Z;function Se(){if(Z)return A;Z=1;var h=y,C=Symbol.for("react.element"),W=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,P=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function S(E,l,O){var c,m={},g=null,j=null;O!==void 0&&(g=""+O),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(j=l.ref);for(c in l)T.call(l,c)&&!x.hasOwnProperty(c)&&(m[c]=l[c]);if(E&&E.defaultProps)for(c in l=E.defaultProps,l)m[c]===void 0&&(m[c]=l[c]);return{$$typeof:C,type:E,key:g,ref:j,props:m,_owner:P.current}}return A.Fragment=W,A.jsx=S,A.jsxs=S,A}var I={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var Q;function Se(){return Q||(Q=1,process.env.NODE_ENV!=="production"&&function(){var b=y,k=Symbol.for("react.element"),U=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,we="@@iterator";function xe(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[we];return typeof r=="function"?r:null}var P=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=P.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var ke=!1,De=!1,Fe=!1,Ae=!1,Ie=!1,re;re=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===O||e===W||Ie||e===I||e===C||e===v||Ae||e===Y||ke||De||Fe||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===h||e.$$typeof===D||e.$$typeof===R||e.$$typeof===l||e.$$typeof===re||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function te(e){return e.displayName||"Context"}function g(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case U:return"Portal";case W:return"Profiler";case I:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return te(r)+".Consumer";case D:var t=e;return te(t._context)+".Provider";case l:return Ye(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:g(e.type)||"Memo";case _:{var o=e,u=o._payload,i=o._init;try{return g(i(u))}catch{return null}}}return null}var T=Object.assign,F=0,ne,ae,ie,oe,ue,se,fe;function le(){}le.__reactDisabledLog=!0;function $e(){{if(F===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Me(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:ne}),info:T({},e,{value:ae}),warn:T({},e,{value:ie}),error:T({},e,{value:oe}),group:T({},e,{value:ue}),groupCollapsed:T({},e,{value:se}),groupEnd:T({},e,{value:fe})})}F<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=P.ReactCurrentDispatcher,B;function $(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
`+B+e}}var J=!1,M;{var Le=typeof WeakMap=="function"?WeakMap:Map;M=new Le}function ce(e,r){if(!e||J)return"";{var t=M.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,$e();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){n=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){n=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){n=E}e()}}catch(E){if(E&&n&&typeof E.stack=="string"){for(var a=E.stack.split(`
`),d=n.stack.split(`
`),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var p=`
`+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,p),p}while(s>=1&&f>=0);break}}}finally{J=!1,q.current=u,Me(),Error.prepareStackTrace=o}var w=e?e.displayName||e.name:"",Oe=w?$(w):"";return typeof e=="function"&&M.set(e,Oe),Oe}function Ne(e,r,t){return ce(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return ce(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case C:return $("Suspense");case v:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ne(e.render);case h:return L(e.type,r,t);case _:{var n=e,o=n._payload,u=n._init;try{return L(u(o),r,t)}catch{}}}return""}var N=Object.prototype.hasOwnProperty,de={},ve=P.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Ue(e,r,t,n,o){{var u=Function.call.bind(N);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(V(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),V(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,V(o),c("Failed %s type: %s",t,a.message),V(null))}}}var qe=Array.isArray;function G(e){return qe(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function he(e){if(Je(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),pe(e)}var A=P.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},ge,Ee,z;z={};function ze(e){if(N.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(N.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){if(typeof e.ref=="string"&&A.current&&r&&A.current.stateNode!==r){var t=g(A.current.type);z[t]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',g(A.current.type),e.ref),z[t]=!0)}}function Xe(e,r){{var t=function(){ge||(ge=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){Ee||(Ee=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Qe=function(e,r,t,n,o,u,i){var a={$$typeof:k,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(he(t),a=""+t),Ke(r)&&(he(r.key),a=""+r.key),ze(r)&&(d=r.ref,He(r,o));for(u in r)N.call(r,u)&&!Ge.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(i,f),d&&Ze(i,f)}return Qe(e,a,d,o,n,A.current,i)}}var K=P.ReactCurrentOwner,be=P.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var H;H=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}function ye(){{if(K.current){var e=g(K.current.type);if(e)return`
*/var Q;function we(){return Q||(Q=1,process.env.NODE_ENV!=="production"&&function(){var h=y,C=Symbol.for("react.element"),W=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),ee=Symbol.iterator,Pe="@@iterator";function xe(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[Pe];return typeof r=="function"?r:null}var k=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=k.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var ke=!1,De=!1,Fe=!1,Ae=!1,Ie=!1,re;re=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===x||Ie||e===P||e===O||e===c||Ae||e===j||ke||De||Fe||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===S||e.$$typeof===E||e.$$typeof===l||e.$$typeof===re||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function te(e){return e.displayName||"Context"}function b(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case W:return"Portal";case x:return"Profiler";case P:return"StrictMode";case O:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return te(r)+".Consumer";case S:var t=e;return te(t._context)+".Provider";case l:return Ye(e,e.render,"ForwardRef");case m:var n=e.displayName||null;return n!==null?n:b(e.type)||"Memo";case g:{var o=e,u=o._payload,i=o._init;try{return b(i(u))}catch{return null}}}return null}var w=Object.assign,Y=0,ne,ae,ie,oe,ue,se,fe;function le(){}le.__reactDisabledLog=!0;function Ne(){{if(Y===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function $e(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ne}),info:w({},e,{value:ae}),warn:w({},e,{value:ie}),error:w({},e,{value:oe}),group:w({},e,{value:ue}),groupCollapsed:w({},e,{value:se}),groupEnd:w({},e,{value:fe})})}Y<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=k.ReactCurrentDispatcher,B;function $(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
`+B+e}}var J=!1,M;{var Me=typeof WeakMap=="function"?WeakMap:Map;M=new Me}function ce(e,r){if(!e||J)return"";{var t=M.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(_){n=_}Reflect.construct(e,[],i)}else{try{i.call()}catch(_){n=_}e.call(i.prototype)}}else{try{throw Error()}catch(_){n=_}e()}}catch(_){if(_&&n&&typeof _.stack=="string"){for(var a=_.stack.split(`
`),v=n.stack.split(`
`),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var p=`
`+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,p),p}while(s>=1&&f>=0);break}}}finally{J=!1,q.current=u,$e(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",Oe=F?$(F):"";return typeof e=="function"&&M.set(e,Oe),Oe}function Le(e,r,t){return ce(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return ce(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case O:return $("Suspense");case c:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Le(e.render);case m:return L(e.type,r,t);case g:{var n=e,o=n._payload,u=n._init;try{return L(u(o),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Ue(e,r,t,n,o){{var u=Function.call.bind(V);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),U(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,U(o),d("Failed %s type: %s",t,a.message),U(null))}}}var qe=Array.isArray;function G(e){return qe(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function me(e){if(Je(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),pe(e)}var N=k.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},he,ge,z;z={};function ze(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=b(N.current.type);z[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(N.current.type),e.ref),z[t]=!0)}}function Xe(e,r){{var t=function(){he||(he=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){ge||(ge=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Qe=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(me(t),a=""+t),Ke(r)&&(me(r.key),a=""+r.key),ze(r)&&(v=r.ref,He(r,o));for(u in r)V.call(r,u)&&!Ge.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(i,f),v&&Ze(i,f)}return Qe(e,a,v,o,n,N.current,i)}}var K=k.ReactCurrentOwner,ye=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var H;H=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function Re(){{if(K.current){var e=b(K.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function rr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var me={};function tr(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Ee={};function tr(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+g(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function _e(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&Re(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=xe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&Re(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=g(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=g(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}function Te(e,r,t,n,o,u){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=rr(o);d?a+=d:a+=ye();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===k?(s="<"+(g(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=er(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(G(p)){for(var w=0;w<p.length;w++)_e(p[w],e);Object.freeze&&Object.freeze(p)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _e(p,e)}return e===O?ar(f):nr(f),f}}function ir(e,r,t){return Te(e,r,t,!0)}function or(e,r,t){return Te(e,r,t,!1)}var ur=or,sr=ir;j.Fragment=O,j.jsx=ur,j.jsxs=sr}()),j}return function(b){process.env.NODE_ENV==="production"?b.exports=Pe():b.exports=Se()}(Ce),()=>m.jsx("div",{children:"marquee"})});
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(Ee[t])return;Ee[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),D(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function _e(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&be(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=xe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&be(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===m))t=r.propTypes;else return;if(t){var n=b(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=b(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Te(e,r,t,n,o,u){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=rr(o);v?a+=v:a+=Re();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=er(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(G(p)){for(var F=0;F<p.length;F++)_e(p[F],e);Object.freeze&&Object.freeze(p)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _e(p,e)}return e===T?ar(f):nr(f),f}}function ir(e,r,t){return Te(e,r,t,!0)}function or(e,r,t){return Te(e,r,t,!1)}var ur=or,sr=ir;I.Fragment=T,I.jsx=ur,I.jsxs=sr}()),I}(function(h){process.env.NODE_ENV==="production"?h.exports=Se():h.exports=we()})(Ce);const fr="";return({style:h={},className:C="",paused:W=!1,pauseOnHover:T=!0,direction:P="leftToRight",duration:x=2,space:S=20,repeat:E=2,children:l})=>{const O=y.useRef(null),c=y.useRef(null),m={["--play"]:W?"paused":"running",["--duration"]:`${x}s`,["--space"]:`${S}px`,["--pause-on-hover"]:T?"paused":"running",...h};return R.jsx("div",{className:`${C} react-final-marquee`,ref:O,children:R.jsx("div",{className:"react-final-marquee-wrapper","data-direction":P,children:Array.from({length:E},(g,j)=>j).map(g=>R.jsx("div",{className:"react-final-marquee-item",ref:c,style:{...m},children:l},g))})})}});

@@ -9,3 +9,3 @@ {

},
"version": "0.0.0",
"version": "0.0.1",
"files": [

@@ -42,4 +42,7 @@ "dist"

"@vitejs/plugin-react": "^3.1.0",
"typescript": "^4.9.3",
"vite": "^4.2.0"
"rollup-plugin-typescript2": "^0.34.1",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.2.0",
"vite-plugin-dts": "^2.3.0"
},

@@ -46,0 +49,0 @@ "peerDependencies": {

@@ -5,2 +5,11 @@ # React final marquee

## Installation
```bash
npm install react-final-marquee
# or
yarn add react-final-marquee
```
## Demo

@@ -7,0 +16,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc