New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hudoro/dropdown

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hudoro/dropdown - npm Package Compare versions

Comparing version 0.0.1-beta.9 to 0.0.1-beta.10

436

dist/dropdown.es.js

@@ -1,3 +0,3 @@

import K, { useState as se, useRef as dr, useEffect as le, useMemo as fr } from "react";
var ue = { exports: {} }, L = {};
import K, { useState as ie, useRef as dr, useEffect as Ae } from "react";
var se = { exports: {} }, L = {};
/**

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

*/
var Ie;
function pr() {
if (Ie)
var Fe;
function fr() {
if (Fe)
return L;
Ie = 1;
var d = K, b = Symbol.for("react.element"), y = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, _ = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
function P(C, v, F) {
var g, c = {}, w = null, D = null;
F !== void 0 && (w = "" + F), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (D = v.ref);
Fe = 1;
var p = K, b = Symbol.for("react.element"), R = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, _ = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
function S(C, v, P) {
var g, c = {}, y = null, D = null;
P !== void 0 && (y = "" + P), v.key !== void 0 && (y = "" + v.key), v.ref !== void 0 && (D = v.ref);
for (g in v)
x.call(v, g) && !S.hasOwnProperty(g) && (c[g] = v[g]);
x.call(v, g) && !O.hasOwnProperty(g) && (c[g] = v[g]);
if (C && C.defaultProps)
for (g in v = C.defaultProps, v)
c[g] === void 0 && (c[g] = v[g]);
return { $$typeof: b, type: C, key: w, ref: D, props: c, _owner: _.current };
return { $$typeof: b, type: C, key: y, ref: D, props: c, _owner: _.current };
}
return L.Fragment = y, L.jsx = P, L.jsxs = P, L;
return L.Fragment = R, L.jsx = S, L.jsxs = S, L;
}
var Y = {};
var V = {};
/**

@@ -41,13 +41,13 @@ * @license React

*/
var Ae;
function vr() {
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
var d = K, b = Symbol.for("react.element"), y = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), V = Symbol.iterator, M = "@@iterator";
var De;
function pr() {
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
var p = K, b = Symbol.for("react.element"), R = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), Y = Symbol.iterator, M = "@@iterator";
function H(e) {
if (e === null || typeof e != "object")
return null;
var r = V && e[V] || e[M];
var r = Y && e[Y] || e[M];
return typeof r == "function" ? r : null;
}
var j = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var F = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function h(e) {

@@ -57,8 +57,8 @@ {

n[t - 1] = arguments[t];
X("error", e, n);
s("error", e, n);
}
}
function X(e, r, n) {
function s(e, r, n) {
{
var t = j.ReactDebugCurrentFrame, i = t.getStackAddendum();
var t = F.ReactDebugCurrentFrame, i = t.getStackAddendum();
i !== "" && (r += "%s", n = n.concat([i]));

@@ -71,10 +71,10 @@ var l = n.map(function(a) {

}
var s = !1, E = !1, U = !1, T = !1, Z = !1, ce;
ce = Symbol.for("react.module.reference");
var w = !1, U = !1, j = !1, X = !1, $e = !1, le;
le = Symbol.for("react.module.reference");
function Ne(e) {
return !!(typeof e == "string" || typeof e == "function" || e === x || e === S || Z || e === _ || e === F || e === g || T || e === D || s || E || U || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === c || e.$$typeof === P || e.$$typeof === C || e.$$typeof === v || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === x || e === O || $e || e === _ || e === P || e === g || X || e === D || w || U || j || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === c || e.$$typeof === S || e.$$typeof === C || e.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === ce || e.getModuleId !== void 0));
e.$$typeof === le || e.getModuleId !== void 0));
}

@@ -88,6 +88,6 @@ function Le(e, r, n) {

}
function de(e) {
function ue(e) {
return e.displayName || "Context";
}
function k(e) {
function T(e) {
if (e == null)

@@ -102,9 +102,9 @@ return null;

return "Fragment";
case y:
case R:
return "Portal";
case S:
case O:
return "Profiler";
case _:
return "StrictMode";
case F:
case P:
return "Suspense";

@@ -118,6 +118,6 @@ case g:

var r = e;
return de(r) + ".Consumer";
case P:
return ue(r) + ".Consumer";
case S:
var n = e;
return de(n._context) + ".Provider";
return ue(n._context) + ".Provider";
case v:

@@ -127,7 +127,7 @@ return Le(e, e.render, "ForwardRef");

var t = e.displayName || null;
return t !== null ? t : k(e.type) || "Memo";
case w: {
return t !== null ? t : T(e.type) || "Memo";
case y: {
var i = e, l = i._payload, a = i._init;
try {
return k(a(l));
return T(a(l));
} catch {

@@ -140,14 +140,14 @@ return null;

}
var I = Object.assign, $ = 0, fe, pe, ve, he, ge, be, me;
function xe() {
var I = Object.assign, $ = 0, ce, de, fe, pe, ve, he, ge;
function be() {
}
xe.__reactDisabledLog = !0;
function Ye() {
be.__reactDisabledLog = !0;
function Ve() {
{
if ($ === 0) {
fe = console.log, pe = console.info, ve = console.warn, he = console.error, ge = console.group, be = console.groupCollapsed, me = console.groupEnd;
ce = console.log, de = console.info, fe = console.warn, pe = console.error, ve = console.group, he = console.groupCollapsed, ge = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: xe,
value: be,
writable: !0

@@ -168,3 +168,3 @@ };

}
function Ve() {
function Ye() {
{

@@ -179,21 +179,21 @@ if ($--, $ === 0) {

log: I({}, e, {
value: fe
value: ce
}),
info: I({}, e, {
value: pe
value: de
}),
warn: I({}, e, {
value: ve
value: fe
}),
error: I({}, e, {
value: he
value: pe
}),
group: I({}, e, {
value: ge
value: ve
}),
groupCollapsed: I({}, e, {
value: be
value: he
}),
groupEnd: I({}, e, {
value: me
value: ge
})

@@ -205,6 +205,6 @@ });

}
var Q = j.ReactCurrentDispatcher, ee;
var Z = F.ReactCurrentDispatcher, Q;
function B(e, r, n) {
{
if (ee === void 0)
if (Q === void 0)
try {

@@ -214,9 +214,9 @@ throw Error();

var t = i.stack.trim().match(/\n( *(at )?)/);
ee = t && t[1] || "";
Q = t && t[1] || "";
}
return `
` + ee + e;
` + Q + e;
}
}
var re = !1, z;
var ee = !1, z;
{

@@ -226,4 +226,4 @@ var Me = typeof WeakMap == "function" ? WeakMap : Map;

}
function ye(e, r) {
if (!e || re)
function me(e, r) {
if (!e || ee)
return "";

@@ -236,7 +236,7 @@ {

var t;
re = !0;
ee = !0;
var i = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var l;
l = Q.current, Q.current = null, Ye();
l = Z.current, Z.current = null, Ve();
try {

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

Reflect.construct(a, []);
} catch (O) {
t = O;
} catch (k) {
t = k;
}

@@ -262,4 +262,4 @@ Reflect.construct(e, [], a);

a.call();
} catch (O) {
t = O;
} catch (k) {
t = k;
}

@@ -271,23 +271,23 @@ e.call(a.prototype);

throw Error();
} catch (O) {
t = O;
} catch (k) {
t = k;
}
e();
}
} catch (O) {
if (O && t && typeof O.stack == "string") {
for (var o = O.stack.split(`
} catch (k) {
if (k && t && typeof k.stack == "string") {
for (var o = k.stack.split(`
`), m = t.stack.split(`
`), f = o.length - 1, p = m.length - 1; f >= 1 && p >= 0 && o[f] !== m[p]; )
p--;
for (; f >= 1 && p >= 0; f--, p--)
if (o[f] !== m[p]) {
if (f !== 1 || p !== 1)
`), d = o.length - 1, f = m.length - 1; d >= 1 && f >= 0 && o[d] !== m[f]; )
f--;
for (; d >= 1 && f >= 0; d--, f--)
if (o[d] !== m[f]) {
if (d !== 1 || f !== 1)
do
if (f--, p--, p < 0 || o[f] !== m[p]) {
var R = `
` + o[f].replace(" at new ", " at ");
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, R), R;
if (d--, f--, f < 0 || o[d] !== m[f]) {
var E = `
` + o[d].replace(" at new ", " at ");
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, E), E;
}
while (f >= 1 && p >= 0);
while (d >= 1 && f >= 0);
break;

@@ -297,9 +297,9 @@ }

} finally {
re = !1, Q.current = l, Ve(), Error.prepareStackTrace = i;
ee = !1, Z.current = l, Ye(), Error.prepareStackTrace = i;
}
var W = e ? e.displayName || e.name : "", De = W ? B(W) : "";
return typeof e == "function" && z.set(e, De), De;
var A = e ? e.displayName || e.name : "", Pe = A ? B(A) : "";
return typeof e == "function" && z.set(e, Pe), Pe;
}
function Ue(e, r, n) {
return ye(e, !1);
return me(e, !1);
}

@@ -314,7 +314,7 @@ function Be(e) {

if (typeof e == "function")
return ye(e, Be(e));
return me(e, Be(e));
if (typeof e == "string")
return B(e);
switch (e) {
case F:
case P:
return B("Suspense");

@@ -330,3 +330,3 @@ case g:

return q(e.type, r, n);
case w: {
case y: {
var t = e, i = t._payload, l = t._init;

@@ -341,9 +341,9 @@ try {

}
var J = Object.prototype.hasOwnProperty, we = {}, Ee = j.ReactDebugCurrentFrame;
var J = Object.prototype.hasOwnProperty, xe = {}, ye = F.ReactDebugCurrentFrame;
function G(e) {
if (e) {
var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
Ee.setExtraStackFrame(n);
ye.setExtraStackFrame(n);
} else
Ee.setExtraStackFrame(null);
ye.setExtraStackFrame(null);
}

@@ -362,6 +362,6 @@ function ze(e, r, n, t, i) {

o = e[a](r, a, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (f) {
o = f;
} catch (d) {
o = d;
}
o && !(o instanceof Error) && (G(i), h("%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).", t || "React class", n, a, typeof o), G(null)), o instanceof Error && !(o.message in we) && (we[o.message] = !0, G(i), h("Failed %s type: %s", n, o.message), G(null));
o && !(o instanceof Error) && (G(i), h("%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).", t || "React class", n, a, typeof o), G(null)), o instanceof Error && !(o.message in xe) && (xe[o.message] = !0, G(i), h("Failed %s type: %s", n, o.message), G(null));
}

@@ -371,3 +371,3 @@ }

var qe = Array.isArray;
function ne(e) {
function re(e) {
return qe(e);

@@ -383,3 +383,3 @@ }

try {
return Re(e), !1;
return we(e), !1;
} catch {

@@ -389,10 +389,10 @@ return !0;

}
function Re(e) {
function we(e) {
return "" + e;
}
function _e(e) {
function Ee(e) {
if (Ge(e))
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Re(e);
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), we(e);
}
var N = j.ReactCurrentOwner, Ke = {
var N = F.ReactCurrentOwner, Ke = {
key: !0,

@@ -402,4 +402,4 @@ ref: !0,

__source: !0
}, Ce, je, te;
te = {};
}, Re, _e, ne;
ne = {};
function He(e) {

@@ -423,4 +423,4 @@ if (J.call(e, "ref")) {

if (typeof e.ref == "string" && N.current && r && N.current.stateNode !== r) {
var n = k(N.current.type);
te[n] || (h('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', k(N.current.type), e.ref), te[n] = !0);
var n = T(N.current.type);
ne[n] || (h('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', T(N.current.type), e.ref), ne[n] = !0);
}

@@ -431,3 +431,3 @@ }

var n = function() {
Ce || (Ce = !0, h("%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));
Re || (Re = !0, h("%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));
};

@@ -443,3 +443,3 @@ n.isReactWarning = !0, Object.defineProperty(e, "key", {

var n = function() {
je || (je = !0, h("%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));
_e || (_e = !0, h("%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));
};

@@ -484,13 +484,13 @@ n.isReactWarning = !0, Object.defineProperty(e, "ref", {

var l, a = {}, o = null, m = null;
n !== void 0 && (_e(n), o = "" + n), Xe(r) && (_e(r.key), o = "" + r.key), He(r) && (m = r.ref, Ze(r, i));
n !== void 0 && (Ee(n), o = "" + n), Xe(r) && (Ee(r.key), o = "" + r.key), He(r) && (m = r.ref, Ze(r, i));
for (l in r)
J.call(r, l) && !Ke.hasOwnProperty(l) && (a[l] = r[l]);
if (e && e.defaultProps) {
var f = e.defaultProps;
for (l in f)
a[l] === void 0 && (a[l] = f[l]);
var d = e.defaultProps;
for (l in d)
a[l] === void 0 && (a[l] = d[l]);
}
if (o || m) {
var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && Qe(a, p), m && er(a, p);
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && Qe(a, f), m && er(a, f);
}

@@ -500,19 +500,19 @@ return rr(e, o, m, i, t, N.current, a);

}
var oe = j.ReactCurrentOwner, Te = j.ReactDebugCurrentFrame;
function A(e) {
var te = F.ReactCurrentOwner, Ce = F.ReactDebugCurrentFrame;
function W(e) {
if (e) {
var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
Te.setExtraStackFrame(n);
Ce.setExtraStackFrame(n);
} else
Te.setExtraStackFrame(null);
Ce.setExtraStackFrame(null);
}
var ae;
ae = !1;
function ie(e) {
var oe;
oe = !1;
function ae(e) {
return typeof e == "object" && e !== null && e.$$typeof === b;
}
function ke() {
function je() {
{
if (oe.current) {
var e = k(oe.current.type);
if (te.current) {
var e = T(te.current.type);
if (e)

@@ -537,6 +537,6 @@ return `

}
var Oe = {};
var Te = {};
function or(e) {
{
var r = ke();
var r = je();
if (!r) {

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

}
function Se(e, r) {
function ke(e, r) {
{

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

var n = or(r);
if (Oe[n])
if (Te[n])
return;
Oe[n] = !0;
Te[n] = !0;
var t = "";
e && e._owner && e._owner !== oe.current && (t = " It was passed a child from " + k(e._owner.type) + "."), A(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), A(null);
e && e._owner && e._owner !== te.current && (t = " It was passed a child from " + T(e._owner.type) + "."), W(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), W(null);
}
}
function Pe(e, r) {
function Oe(e, r) {
{
if (typeof e != "object")
return;
if (ne(e))
if (re(e))
for (var n = 0; n < e.length; n++) {
var t = e[n];
ie(t) && Se(t, r);
ae(t) && ke(t, r);
}
else if (ie(e))
else if (ae(e))
e._store && (e._store.validated = !0);

@@ -581,3 +581,3 @@ else if (e) {

for (var l = i.call(e), a; !(a = l.next()).done; )
ie(a.value) && Se(a.value, r);
ae(a.value) && ke(a.value, r);
}

@@ -601,7 +601,7 @@ }

if (n) {
var t = k(r);
var t = T(r);
ze(n, e.props, "prop", t, e);
} else if (r.PropTypes !== void 0 && !ae) {
ae = !0;
var i = k(r);
} else if (r.PropTypes !== void 0 && !oe) {
oe = !0;
var i = T(r);
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");

@@ -617,10 +617,10 @@ }

if (t !== "children" && t !== "key") {
A(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), A(null);
W(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), W(null);
break;
}
}
e.ref !== null && (A(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
e.ref !== null && (W(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
}
}
function Fe(e, r, n, t, i, l) {
function Se(e, r, n, t, i, l) {
{

@@ -632,38 +632,38 @@ var a = Ne(e);

var m = tr(i);
m ? o += m : o += ke();
var f;
e === null ? f = "null" : ne(e) ? f = "array" : e !== void 0 && e.$$typeof === b ? (f = "<" + (k(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, o);
m ? o += m : o += je();
var d;
e === null ? d = "null" : re(e) ? d = "array" : e !== void 0 && e.$$typeof === b ? (d = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o);
}
var p = nr(e, r, n, i, l);
if (p == null)
return p;
var f = nr(e, r, n, i, l);
if (f == null)
return f;
if (a) {
var R = r.children;
if (R !== void 0)
var E = r.children;
if (E !== void 0)
if (t)
if (ne(R)) {
for (var W = 0; W < R.length; W++)
Pe(R[W], e);
Object.freeze && Object.freeze(R);
if (re(E)) {
for (var A = 0; A < E.length; A++)
Oe(E[A], e);
Object.freeze && Object.freeze(E);
} else
h("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
Pe(R, e);
Oe(E, e);
}
return e === x ? ir(p) : ar(p), p;
return e === x ? ir(f) : ar(f), f;
}
}
function sr(e, r, n) {
return Fe(e, r, n, !0);
return Se(e, r, n, !0);
}
function lr(e, r, n) {
return Fe(e, r, n, !1);
return Se(e, r, n, !1);
}
var ur = lr, cr = sr;
Y.Fragment = x, Y.jsx = ur, Y.jsxs = cr;
}()), Y;
V.Fragment = x, V.jsx = ur, V.jsxs = cr;
}()), V;
}
process.env.NODE_ENV === "production" ? ue.exports = pr() : ue.exports = vr();
var u = ue.exports;
const hr = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
process.env.NODE_ENV === "production" ? se.exports = fr() : se.exports = pr();
var u = se.exports;
const vr = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

@@ -740,3 +740,3 @@ * {

left: 0;
right: 0;
/* right: 0; */
margin-top: 8px;

@@ -751,2 +751,3 @@ padding: 8px;

z-index: 999;
min-width: max-content;
}

@@ -817,65 +818,71 @@

`;
function gr(d) {
const [b, y] = se(d), x = dr(null), _ = (S) => {
x.current && !x.current.contains(S.target) && y(!1);
function hr(p) {
const [b, R] = ie(p), x = dr(null), _ = (O) => {
x.current && !x.current.contains(O.target) && R(!1);
};
return le(() => (document.addEventListener("click", _, !0), () => {
return Ae(() => (document.addEventListener("click", _, !0), () => {
document.removeEventListener("click", _, !0);
}), []), { ref: x, isComponentVisible: b, setIsComponentVisible: y };
}), []), { ref: x, isComponentVisible: b, setIsComponentVisible: R };
}
const We = "hudoro-input-dropdown-styles", br = (d) => {
if (!document.getElementById(We)) {
const Ie = "hudoro-input-dropdown-styles", gr = (p) => {
if (!document.getElementById(Ie)) {
const b = document.createElement("style");
b.id = We, b.textContent = d, document.head.appendChild(b);
b.id = Ie, b.textContent = p, document.head.appendChild(b);
}
};
br(hr);
const wr = ({
dropdownLists: d,
gr(vr);
const yr = ({
dropdownLists: p,
onChange: b,
defaultValue: y,
defaultValue: R,
size: x = "md",
multiSelect: _,
searchAble: S,
iconLeft: P,
searchAble: O,
iconLeft: S,
placeholder: C,
onSearch: v
}) => {
const [F, g] = se(""), [c, w] = se(), { isComponentVisible: D, ref: V, setIsComponentVisible: M } = gr(!1), H = d == null ? void 0 : d.filter(
(s) => s.label.toLowerCase().includes(F.toLowerCase())
), j = fr(() => d.map((s) => s), [d]), h = () => {
const [P, g] = ie(""), [c, y] = ie(), { isComponentVisible: D, ref: Y, setIsComponentVisible: M } = hr(!1), H = p == null ? void 0 : p.filter(
(s) => s.label.toLowerCase().includes(P.toLowerCase())
), F = () => {
M((s) => !s), g("");
}, X = (s, E) => {
}, h = (s, w) => {
if (!_)
w([{ label: s, value: E }]), b([{ label: s, value: E }]), M(!1);
else if (c == null ? void 0 : c.find((T) => T.value === E)) {
const T = [
...c ? c.filter((Z) => Z.value !== E) : []
y([{ label: s, value: w }]), b([{ label: s, value: w }]), M(!1);
else if (c == null ? void 0 : c.find((j) => j.value === w)) {
const j = [
...c ? c.filter((X) => X.value !== w) : []
];
w(T), b(T);
y(j), b(j);
} else {
const T = [...c || [], { label: s, value: E }];
w(T), b(T);
const j = [...c || [], { label: s, value: w }];
y(j), b(j);
}
};
return le(() => {
y && w(y);
}, [y]), le(() => {
j.length && (y != null && y.length);
}, [j]), /* @__PURE__ */ u.jsxs(
return Ae(() => {
R && y(R);
}, [R]), /* @__PURE__ */ u.jsxs(
"div",
{
className: `hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${D ? "active" : ""}`,
ref: V,
onClick: h,
ref: Y,
onClick: F,
children: [
/* @__PURE__ */ u.jsxs("div", { className: "hsd-input-dropdown-preview-container", children: [
P ? /* @__PURE__ */ u.jsx(u.Fragment, { children: K.cloneElement(P, {
width: $e(x),
S ? /* @__PURE__ */ u.jsx(u.Fragment, { children: K.cloneElement(S, {
width: We(x),
color: "#939E99"
}) }) : null,
/* @__PURE__ */ u.jsx("div", { className: "hsd-input-dropdown-container-preview-item", children: (c == null ? void 0 : c.map(
(s, E) => _ ? /* @__PURE__ */ u.jsx("p", { className: "hsd-input-dropdown-preview-item", children: s == null ? void 0 : s.label }, E) : /* @__PURE__ */ u.jsx("p", { children: s == null ? void 0 : s.label }, E)
(s, w) => _ ? /* @__PURE__ */ u.jsx(
"p",
{
style: { minWidth: "max-content" },
className: "hsd-input-dropdown-preview-item",
children: s == null ? void 0 : s.label
},
w
) : /* @__PURE__ */ u.jsx("p", { style: { minWidth: "max-content" }, children: s == null ? void 0 : s.label }, w)
)) || /* @__PURE__ */ u.jsx("p", { className: "hsd-input-dropdown-placeholder", children: C || "Search" }) }),
/* @__PURE__ */ u.jsx(xr, { strokeWidth: 2, width: $e(x) })
/* @__PURE__ */ u.jsx(mr, { strokeWidth: 2, width: We(x) })
] }),

@@ -888,4 +895,4 @@ D ? /* @__PURE__ */ u.jsxs(

children: [
S ? /* @__PURE__ */ u.jsxs("div", { className: "hsd-input-dropdown-container-dropdown-search", children: [
/* @__PURE__ */ u.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ u.jsx(mr, { strokeWidth: 2, width: 20 }) }),
O ? /* @__PURE__ */ u.jsxs("div", { className: "hsd-input-dropdown-container-dropdown-search", children: [
/* @__PURE__ */ u.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ u.jsx(br, { strokeWidth: 2, width: 20 }) }),
/* @__PURE__ */ u.jsx(

@@ -900,15 +907,18 @@ "input",

] }) : null,
/* @__PURE__ */ u.jsx("div", { className: "hsd-input-dropdwon-item-container", children: H.map((s, E) => /* @__PURE__ */ u.jsxs(
/* @__PURE__ */ u.jsx("div", { className: "hsd-input-dropdwon-item-container", children: H.map((s, w) => /* @__PURE__ */ u.jsxs(
"div",
{
className: `hsd-input-dropdwon-item ${c != null && c.find((U) => U.value === s.value) ? "active" : ""}`,
onClick: () => X(s.label, s.value),
onClick: () => h(s.label, s.value),
children: [
s.icon ? /* @__PURE__ */ u.jsx(u.Fragment, { children: K.cloneElement(s.icon, {
s.icon ? /* @__PURE__ */ u.jsx("div", { children: K.cloneElement(s.icon, {
width: 16
}) }) : null,
/* @__PURE__ */ u.jsx("p", { children: s.label })
/* @__PURE__ */ u.jsxs("div", { children: [
" ",
/* @__PURE__ */ u.jsx("p", { children: s.label })
] })
]
},
E
w
)) })

@@ -921,7 +931,7 @@ ]

);
}, mr = ({ ...d }) => /* @__PURE__ */ u.jsxs(
}, br = ({ ...p }) => /* @__PURE__ */ u.jsxs(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
...d,
...p,
viewBox: "0 0 20 20",

@@ -954,7 +964,7 @@ fill: "none",

}
), xr = ({ ...d }) => /* @__PURE__ */ u.jsx(
), mr = ({ ...p }) => /* @__PURE__ */ u.jsx(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
...d,
...p,
viewBox: "0 0 24 24",

@@ -973,12 +983,12 @@ fill: "none",

}
), $e = (d) => {
if (d === "sm")
), We = (p) => {
if (p === "sm")
return 16;
if (d === "md")
if (p === "md")
return 20;
if (d === "lg")
if (p === "lg")
return 20;
};
export {
wr as Dropdown
yr as Dropdown
};

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

(function(I,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(I=typeof globalThis<"u"?globalThis:I||self,g(I.Dropdown={},I.React))})(this,function(I,g){"use strict";var Z={exports:{}},Y={};/**
(function(I,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(I=typeof globalThis<"u"?globalThis:I||self,x(I.Dropdown={},I.React))})(this,function(I,x){"use strict";var Z={exports:{}},V={};/**
* @license React

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

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

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

* LICENSE file in the root directory of this source tree.
*/var ce;function Le(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var d=g,m=Symbol.for("react.element"),w=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),j=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),B=Symbol.iterator,z="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=B&&e[B]||e[z];return typeof r=="function"?r:null}var T=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];q("error",e,n)}}function q(e,r,n){{var t=T.ReactDebugCurrentFrame,i=t.getStackAddendum();i!==""&&(r+="%s",n=n.concat([i]));var l=n.map(function(a){return String(a)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var s=!1,R=!1,J=!1,S=!1,ee=!1,pe;pe=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===P||ee||e===C||e===D||e===b||S||e===A||s||R||J||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===c||e.$$typeof===F||e.$$typeof===j||e.$$typeof===v||e.$$typeof===pe||e.getModuleId!==void 0))}function Je(e,r,n){var t=e.displayName;if(t)return t;var i=r.displayName||r.name||"";return i!==""?n+"("+i+")":n}function ve(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&h("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 y:return"Fragment";case w:return"Portal";case P:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return ve(r)+".Consumer";case F:var n=e;return ve(n._context)+".Provider";case v:return Je(e,e.render,"ForwardRef");case c:var t=e.displayName||null;return t!==null?t:k(e.type)||"Memo";case E:{var i=e,l=i._payload,a=i._init;try{return k(a(l))}catch{return null}}}return null}var W=Object.assign,M=0,he,ge,be,me,xe,ye,we;function Ee(){}Ee.__reactDisabledLog=!0;function Ge(){{if(M===0){he=console.log,ge=console.info,be=console.warn,me=console.error,xe=console.group,ye=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Ke(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:he}),info:W({},e,{value:ge}),warn:W({},e,{value:be}),error:W({},e,{value:me}),group:W({},e,{value:xe}),groupCollapsed:W({},e,{value:ye}),groupEnd:W({},e,{value:we})})}M<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=T.ReactCurrentDispatcher,ne;function G(e,r,n){{if(ne===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||""}return`
`+ne+e}}var te=!1,K;{var $e=typeof WeakMap=="function"?WeakMap:Map;K=new $e}function Re(e,r){if(!e||te)return"";{var n=K.get(e);if(n!==void 0)return n}var t;te=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=re.current,re.current=null,Ge();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(O){t=O}Reflect.construct(e,[],a)}else{try{a.call()}catch(O){t=O}e.call(a.prototype)}}else{try{throw Error()}catch(O){t=O}e()}}catch(O){if(O&&t&&typeof O.stack=="string"){for(var o=O.stack.split(`
`),x=t.stack.split(`
`),f=o.length-1,p=x.length-1;f>=1&&p>=0&&o[f]!==x[p];)p--;for(;f>=1&&p>=0;f--,p--)if(o[f]!==x[p]){if(f!==1||p!==1)do if(f--,p--,p<0||o[f]!==x[p]){var _=`
`+o[f].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,_),_}while(f>=1&&p>=0);break}}}finally{te=!1,re.current=l,Ke(),Error.prepareStackTrace=i}var L=e?e.displayName||e.name:"",We=L?G(L):"";return typeof e=="function"&&K.set(e,We),We}function He(e,r,n){return Re(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function $(e,r,n){if(e==null)return"";if(typeof e=="function")return Re(e,Xe(e));if(typeof e=="string")return G(e);switch(e){case D:return G("Suspense");case b:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return He(e.render);case c:return $(e.type,r,n);case E:{var t=e,i=t._payload,l=t._init;try{return $(l(i),r,n)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,_e={},Ce=T.ReactDebugCurrentFrame;function X(e){if(e){var r=e._owner,n=$(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(n)}else Ce.setExtraStackFrame(null)}function Ze(e,r,n,t,i){{var l=Function.call.bind(H);for(var a in e)if(l(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var x=Error((t||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}o=e[a](r,a,t,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){o=f}o&&!(o instanceof Error)&&(X(i),h("%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).",t||"React class",n,a,typeof o),X(null)),o instanceof Error&&!(o.message in _e)&&(_e[o.message]=!0,X(i),h("Failed %s type: %s",n,o.message),X(null))}}}var Qe=Array.isArray;function oe(e){return Qe(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function er(e){try{return je(e),!1}catch{return!0}}function je(e){return""+e}function Te(e){if(er(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),je(e)}var U=T.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Se,ke,ae;ae={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var n=k(U.current.type);ae[n]||(h('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',k(U.current.type),e.ref),ae[n]=!0)}}function ar(e,r){{var n=function(){Se||(Se=!0,h("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function ir(e,r){{var n=function(){ke||(ke=!0,h("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var sr=function(e,r,n,t,i,l,a){var o={$$typeof:m,type:e,key:r,ref:n,props:a,_owner:l};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function lr(e,r,n,t,i){{var l,a={},o=null,x=null;n!==void 0&&(Te(n),o=""+n),tr(r)&&(Te(r.key),o=""+r.key),nr(r)&&(x=r.ref,or(r,i));for(l in r)H.call(r,l)&&!rr.hasOwnProperty(l)&&(a[l]=r[l]);if(e&&e.defaultProps){var f=e.defaultProps;for(l in f)a[l]===void 0&&(a[l]=f[l])}if(o||x){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ar(a,p),x&&ir(a,p)}return sr(e,o,x,i,t,U.current,a)}}var ie=T.ReactCurrentOwner,Oe=T.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,n=$(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var se;se=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function Pe(){{if(ie.current){var e=k(ie.current.type);if(e)return`
*/var ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var p=x,b=Symbol.for("react.element"),_=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),j=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),B=Symbol.iterator,z="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=B&&e[B]||e[z];return typeof r=="function"?r:null}var F=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];s("error",e,n)}}function s(e,r,n){{var t=F.ReactDebugCurrentFrame,i=t.getStackAddendum();i!==""&&(r+="%s",n=n.concat([i]));var l=n.map(function(a){return String(a)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var E=!1,$=!1,T=!1,q=!1,Be=!1,fe;fe=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===O||Be||e===C||e===D||e===g||q||e===W||E||$||T||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===c||e.$$typeof===P||e.$$typeof===j||e.$$typeof===v||e.$$typeof===fe||e.getModuleId!==void 0))}function $e(e,r,n){var t=e.displayName;if(t)return t;var i=r.displayName||r.name||"";return i!==""?n+"("+i+")":n}function pe(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&h("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 y:return"Fragment";case _:return"Portal";case O:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:var r=e;return pe(r)+".Consumer";case P:var n=e;return pe(n._context)+".Provider";case v:return $e(e,e.render,"ForwardRef");case c:var t=e.displayName||null;return t!==null?t:S(e.type)||"Memo";case w:{var i=e,l=i._payload,a=i._init;try{return S(a(l))}catch{return null}}}return null}var A=Object.assign,M=0,ve,he,ge,be,me,xe,ye;function we(){}we.__reactDisabledLog=!0;function Je(){{if(M===0){ve=console.log,he=console.info,ge=console.warn,be=console.error,me=console.group,xe=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Ge(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:ve}),info:A({},e,{value:he}),warn:A({},e,{value:ge}),error:A({},e,{value:be}),group:A({},e,{value:me}),groupCollapsed:A({},e,{value:xe}),groupEnd:A({},e,{value:ye})})}M<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=F.ReactCurrentDispatcher,re;function J(e,r,n){{if(re===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||""}return`
`+re+e}}var ne=!1,G;{var Ke=typeof WeakMap=="function"?WeakMap:Map;G=new Ke}function Ee(e,r){if(!e||ne)return"";{var n=G.get(e);if(n!==void 0)return n}var t;ne=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=ee.current,ee.current=null,Je();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(k){t=k}Reflect.construct(e,[],a)}else{try{a.call()}catch(k){t=k}e.call(a.prototype)}}else{try{throw Error()}catch(k){t=k}e()}}catch(k){if(k&&t&&typeof k.stack=="string"){for(var o=k.stack.split(`
`),m=t.stack.split(`
`),d=o.length-1,f=m.length-1;d>=1&&f>=0&&o[d]!==m[f];)f--;for(;d>=1&&f>=0;d--,f--)if(o[d]!==m[f]){if(d!==1||f!==1)do if(d--,f--,f<0||o[d]!==m[f]){var R=`
`+o[d].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,R),R}while(d>=1&&f>=0);break}}}finally{ne=!1,ee.current=l,Ge(),Error.prepareStackTrace=i}var L=e?e.displayName||e.name:"",We=L?J(L):"";return typeof e=="function"&&G.set(e,We),We}function He(e,r,n){return Ee(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,n){if(e==null)return"";if(typeof e=="function")return Ee(e,Xe(e));if(typeof e=="string")return J(e);switch(e){case D:return J("Suspense");case g:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return He(e.render);case c:return K(e.type,r,n);case w:{var t=e,i=t._payload,l=t._init;try{return K(l(i),r,n)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Re={},_e=F.ReactDebugCurrentFrame;function X(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(n)}else _e.setExtraStackFrame(null)}function Ze(e,r,n,t,i){{var l=Function.call.bind(H);for(var a in e)if(l(e,a)){var o=void 0;try{if(typeof e[a]!="function"){var m=Error((t||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}o=e[a](r,a,t,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(X(i),h("%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).",t||"React class",n,a,typeof o),X(null)),o instanceof Error&&!(o.message in Re)&&(Re[o.message]=!0,X(i),h("Failed %s type: %s",n,o.message),X(null))}}}var Qe=Array.isArray;function te(e){return Qe(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function er(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function je(e){if(er(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),Ce(e)}var U=F.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Te,Se,oe;oe={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var n=S(U.current.type);oe[n]||(h('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',S(U.current.type),e.ref),oe[n]=!0)}}function ar(e,r){{var n=function(){Te||(Te=!0,h("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function ir(e,r){{var n=function(){Se||(Se=!0,h("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var sr=function(e,r,n,t,i,l,a){var o={$$typeof:b,type:e,key:r,ref:n,props:a,_owner:l};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function lr(e,r,n,t,i){{var l,a={},o=null,m=null;n!==void 0&&(je(n),o=""+n),tr(r)&&(je(r.key),o=""+r.key),nr(r)&&(m=r.ref,or(r,i));for(l in r)H.call(r,l)&&!rr.hasOwnProperty(l)&&(a[l]=r[l]);if(e&&e.defaultProps){var d=e.defaultProps;for(l in d)a[l]===void 0&&(a[l]=d[l])}if(o||m){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ar(a,f),m&&ir(a,f)}return sr(e,o,m,i,t,U.current,a)}}var ae=F.ReactCurrentOwner,ke=F.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);ke.setExtraStackFrame(n)}else ke.setExtraStackFrame(null)}var ie;ie=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function Oe(){{if(ae.current){var e=S(ae.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function ur(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return`
Check your code at `+r+":"+n+"."}return""}}var Fe={};function cr(e){{var r=Pe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
Check your code at `+r+":"+n+"."}return""}}var Pe={};function cr(e){{var r=Oe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=cr(r);if(Fe[n])return;Fe[n]=!0;var t="";e&&e._owner&&e._owner!==ie.current&&(t=" It was passed a child from "+k(e._owner.type)+"."),N(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,t),N(null)}}function Ie(e,r){{if(typeof e!="object")return;if(oe(e))for(var n=0;n<e.length;n++){var t=e[n];le(t)&&De(t,r)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var i=Q(e);if(typeof i=="function"&&i!==e.entries)for(var l=i.call(e),a;!(a=l.next()).done;)le(a.value)&&De(a.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===c))n=r.propTypes;else return;if(n){var t=k(r);Ze(n,e.props,"prop",t,e)}else if(r.PropTypes!==void 0&&!se){se=!0;var i=k(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var t=r[n];if(t!=="children"&&t!=="key"){N(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),N(null);break}}e.ref!==null&&(N(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}function Ae(e,r,n,t,i,l){{var a=ze(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 x=ur(i);x?o+=x:o+=Pe();var f;e===null?f="null":oe(e)?f="array":e!==void 0&&e.$$typeof===m?(f="<"+(k(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,o)}var p=lr(e,r,n,i,l);if(p==null)return p;if(a){var _=r.children;if(_!==void 0)if(t)if(oe(_)){for(var L=0;L<_.length;L++)Ie(_[L],e);Object.freeze&&Object.freeze(_)}else h("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 Ie(_,e)}return e===y?fr(p):dr(p),p}}function pr(e,r,n){return Ae(e,r,n,!0)}function vr(e,r,n){return Ae(e,r,n,!1)}var hr=vr,gr=pr;V.Fragment=y,V.jsx=hr,V.jsxs=gr}()),V}process.env.NODE_ENV==="production"?Z.exports=Ne():Z.exports=Le();var u=Z.exports;const Ye=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
Check the top-level render call using <`+n+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=cr(r);if(Pe[n])return;Pe[n]=!0;var t="";e&&e._owner&&e._owner!==ae.current&&(t=" It was passed a child from "+S(e._owner.type)+"."),N(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,t),N(null)}}function Fe(e,r){{if(typeof e!="object")return;if(te(e))for(var n=0;n<e.length;n++){var t=e[n];se(t)&&De(t,r)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var i=Q(e);if(typeof i=="function"&&i!==e.entries)for(var l=i.call(e),a;!(a=l.next()).done;)se(a.value)&&De(a.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===c))n=r.propTypes;else return;if(n){var t=S(r);Ze(n,e.props,"prop",t,e)}else if(r.PropTypes!==void 0&&!ie){ie=!0;var i=S(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var t=r[n];if(t!=="children"&&t!=="key"){N(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),N(null);break}}e.ref!==null&&(N(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}function Ie(e,r,n,t,i,l){{var a=ze(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 m=ur(i);m?o+=m:o+=Oe();var d;e===null?d="null":te(e)?d="array":e!==void 0&&e.$$typeof===b?(d="<"+(S(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var f=lr(e,r,n,i,l);if(f==null)return f;if(a){var R=r.children;if(R!==void 0)if(t)if(te(R)){for(var L=0;L<R.length;L++)Fe(R[L],e);Object.freeze&&Object.freeze(R)}else h("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 Fe(R,e)}return e===y?fr(f):dr(f),f}}function pr(e,r,n){return Ie(e,r,n,!0)}function vr(e,r,n){return Ie(e,r,n,!1)}var hr=vr,gr=pr;Y.Fragment=y,Y.jsx=hr,Y.jsxs=gr}()),Y}process.env.NODE_ENV==="production"?Z.exports=Ae():Z.exports=Ne();var u=Z.exports;const Le=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

@@ -101,3 +101,3 @@ * {

left: 0;
right: 0;
/* right: 0; */
margin-top: 8px;

@@ -112,2 +112,3 @@ padding: 8px;

z-index: 999;
min-width: max-content;
}

@@ -177,2 +178,2 @@

}
`;function Ve(d){const[m,w]=g.useState(d),y=g.useRef(null),C=P=>{y.current&&!y.current.contains(P.target)&&w(!1)};return g.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[]),{ref:y,isComponentVisible:m,setIsComponentVisible:w}}const de="hudoro-input-dropdown-styles";(d=>{if(!document.getElementById(de)){const m=document.createElement("style");m.id=de,m.textContent=d,document.head.appendChild(m)}})(Ye);const Me=({dropdownLists:d,onChange:m,defaultValue:w,size:y="md",multiSelect:C,searchAble:P,iconLeft:F,placeholder:j,onSearch:v})=>{const[D,b]=g.useState(""),[c,E]=g.useState(),{isComponentVisible:A,ref:B,setIsComponentVisible:z}=Ve(!1),Q=d==null?void 0:d.filter(s=>s.label.toLowerCase().includes(D.toLowerCase())),T=g.useMemo(()=>d.map(s=>s),[d]),h=()=>{z(s=>!s),b("")},q=(s,R)=>{if(!C)E([{label:s,value:R}]),m([{label:s,value:R}]),z(!1);else if(c==null?void 0:c.find(S=>S.value===R)){const S=[...c?c.filter(ee=>ee.value!==R):[]];E(S),m(S)}else{const S=[...c||[],{label:s,value:R}];E(S),m(S)}};return g.useEffect(()=>{w&&E(w)},[w]),g.useEffect(()=>{T.length&&(w!=null&&w.length)},[T]),u.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${y} ${A?"active":""}`,ref:B,onClick:h,children:[u.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[F?u.jsx(u.Fragment,{children:g.cloneElement(F,{width:fe(y),color:"#939E99"})}):null,u.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:(c==null?void 0:c.map((s,R)=>C?u.jsx("p",{className:"hsd-input-dropdown-preview-item",children:s==null?void 0:s.label},R):u.jsx("p",{children:s==null?void 0:s.label},R)))||u.jsx("p",{className:"hsd-input-dropdown-placeholder",children:j||"Search"})}),u.jsx(Be,{strokeWidth:2,width:fe(y)})]}),A?u.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:s=>s.stopPropagation(),children:[P?u.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[u.jsx("div",{style:{display:"flex"},children:u.jsx(Ue,{strokeWidth:2,width:20})}),u.jsx("input",{onChange:s=>{b(s.target.value),v&&v(s.target.value)}})]}):null,u.jsx("div",{className:"hsd-input-dropdwon-item-container",children:Q.map((s,R)=>u.jsxs("div",{className:`hsd-input-dropdwon-item ${c!=null&&c.find(J=>J.value===s.value)?"active":""}`,onClick:()=>q(s.label,s.value),children:[s.icon?u.jsx(u.Fragment,{children:g.cloneElement(s.icon,{width:16})}):null,u.jsx("p",{children:s.label})]},R))})]}):null]})},Ue=({...d})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 20 20",fill:"none",children:[u.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Be=({...d})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:u.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),fe=d=>{if(d==="sm")return 16;if(d==="md")return 20;if(d==="lg")return 20};I.Dropdown=Me,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
`;function Ve(p){const[b,_]=x.useState(p),y=x.useRef(null),C=O=>{y.current&&!y.current.contains(O.target)&&_(!1)};return x.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[]),{ref:y,isComponentVisible:b,setIsComponentVisible:_}}const ce="hudoro-input-dropdown-styles";(p=>{if(!document.getElementById(ce)){const b=document.createElement("style");b.id=ce,b.textContent=p,document.head.appendChild(b)}})(Le);const Ye=({dropdownLists:p,onChange:b,defaultValue:_,size:y="md",multiSelect:C,searchAble:O,iconLeft:P,placeholder:j,onSearch:v})=>{const[D,g]=x.useState(""),[c,w]=x.useState(),{isComponentVisible:W,ref:B,setIsComponentVisible:z}=Ve(!1),Q=p==null?void 0:p.filter(s=>s.label.toLowerCase().includes(D.toLowerCase())),F=()=>{z(s=>!s),g("")},h=(s,E)=>{if(!C)w([{label:s,value:E}]),b([{label:s,value:E}]),z(!1);else if(c==null?void 0:c.find(T=>T.value===E)){const T=[...c?c.filter(q=>q.value!==E):[]];w(T),b(T)}else{const T=[...c||[],{label:s,value:E}];w(T),b(T)}};return x.useEffect(()=>{_&&w(_)},[_]),u.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${y} ${W?"active":""}`,ref:B,onClick:F,children:[u.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[P?u.jsx(u.Fragment,{children:x.cloneElement(P,{width:de(y),color:"#939E99"})}):null,u.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:(c==null?void 0:c.map((s,E)=>C?u.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:s==null?void 0:s.label},E):u.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s.label},E)))||u.jsx("p",{className:"hsd-input-dropdown-placeholder",children:j||"Search"})}),u.jsx(Ue,{strokeWidth:2,width:de(y)})]}),W?u.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:s=>s.stopPropagation(),children:[O?u.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[u.jsx("div",{style:{display:"flex"},children:u.jsx(Me,{strokeWidth:2,width:20})}),u.jsx("input",{onChange:s=>{g(s.target.value),v&&v(s.target.value)}})]}):null,u.jsx("div",{className:"hsd-input-dropdwon-item-container",children:Q.map((s,E)=>u.jsxs("div",{className:`hsd-input-dropdwon-item ${c!=null&&c.find($=>$.value===s.value)?"active":""}`,onClick:()=>h(s.label,s.value),children:[s.icon?u.jsx("div",{children:x.cloneElement(s.icon,{width:16})}):null,u.jsxs("div",{children:[" ",u.jsx("p",{children:s.label})]})]},E))})]}):null]})},Me=({...p})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...p,viewBox:"0 0 20 20",fill:"none",children:[u.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ue=({...p})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...p,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:u.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),de=p=>{if(p==="sm")return 16;if(p==="md")return 20;if(p==="lg")return 20};I.Dropdown=Ye,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
{
"name": "@hudoro/dropdown",
"version": "0.0.1-beta.9",
"version": "0.0.1-beta.10",
"description": "dropdown component for Hudoro UI",

@@ -5,0 +5,0 @@ "author": "Prawito Hudoro",

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