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.3-beta.23 to 0.0.3-beta.24

171

dist/dropdown.es.js
import K, { useState as ar, useRef as fn, useEffect as Wr } from "react";
var sr = { exports: {} }, $ = {};
var dr = { exports: {} }, L = {};
/**

@@ -15,8 +15,8 @@ * @license React

if (Fr)
return $;
return L;
Fr = 1;
var h = K, g = Symbol.for("react.element"), R = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, _ = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
function P(C, p, m) {
function P(C, p, b) {
var w, s = {}, j = null, I = null;
m !== void 0 && (j = "" + m), p.key !== void 0 && (j = "" + p.key), p.ref !== void 0 && (I = p.ref);
b !== void 0 && (j = "" + b), p.key !== void 0 && (j = "" + p.key), p.ref !== void 0 && (I = p.ref);
for (w in p)

@@ -29,3 +29,3 @@ y.call(p, w) && !S.hasOwnProperty(w) && (s[w] = p[w]);

}
return $.Fragment = R, $.jsx = P, $.jsxs = P, $;
return L.Fragment = R, L.jsx = P, L.jsxs = P, L;
}

@@ -45,3 +45,3 @@ var z = {};

return Ir || (Ir = 1, process.env.NODE_ENV !== "production" && function() {
var h = K, g = Symbol.for("react.element"), R = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), C = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), Y = Symbol.iterator, V = "@@iterator";
var h = K, g = Symbol.for("react.element"), R = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), C = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), Y = Symbol.iterator, V = "@@iterator";
function H(r) {

@@ -71,12 +71,12 @@ if (r === null || typeof r != "object")

}
var x = !1, M = !1, k = !1, X = !1, Nr = !1, dr;
dr = Symbol.for("react.module.reference");
function Lr(r) {
return !!(typeof r == "string" || typeof r == "function" || r === y || r === S || Nr || r === _ || r === m || r === w || X || r === I || x || M || k || typeof r == "object" && r !== null && (r.$$typeof === j || r.$$typeof === s || r.$$typeof === P || r.$$typeof === C || r.$$typeof === p || // This needs to include all possible module reference object
var x = !1, M = !1, k = !1, X = !1, Nr = !1, sr;
sr = Symbol.for("react.module.reference");
function $r(r) {
return !!(typeof r == "string" || typeof r == "function" || r === y || r === S || Nr || r === _ || r === b || r === w || X || r === I || x || M || k || typeof r == "object" && r !== null && (r.$$typeof === j || r.$$typeof === s || r.$$typeof === P || r.$$typeof === C || r.$$typeof === p || // 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.
r.$$typeof === dr || r.getModuleId !== void 0));
r.$$typeof === sr || r.getModuleId !== void 0));
}
function $r(r, n, e) {
function Lr(r, n, e) {
var o = r.displayName;

@@ -107,3 +107,3 @@ if (o)

return "StrictMode";
case m:
case b:
return "Suspense";

@@ -122,3 +122,3 @@ case w:

case p:
return $r(r, r.render, "ForwardRef");
return Lr(r, r.render, "ForwardRef");
case s:

@@ -139,5 +139,5 @@ var o = r.displayName || null;

var D = Object.assign, N = 0, lr, cr, fr, pr, hr, vr, gr;
function mr() {
function br() {
}
mr.__reactDisabledLog = !0;
br.__reactDisabledLog = !0;
function zr() {

@@ -150,3 +150,3 @@ {

enumerable: !0,
value: mr,
value: br,
writable: !0

@@ -216,6 +216,6 @@ };

}
var rr = !1, B;
var rr = !1, q;
{
var Vr = typeof WeakMap == "function" ? WeakMap : Map;
B = new Vr();
q = new Vr();
}

@@ -226,3 +226,3 @@ function wr(r, n) {

{
var e = B.get(r);
var e = q.get(r);
if (e !== void 0)

@@ -272,13 +272,13 @@ return e;

for (var i = O.stack.split(`
`), b = o.stack.split(`
`), c = i.length - 1, f = b.length - 1; c >= 1 && f >= 0 && i[c] !== b[f]; )
`), m = o.stack.split(`
`), c = i.length - 1, f = m.length - 1; c >= 1 && f >= 0 && i[c] !== m[f]; )
f--;
for (; c >= 1 && f >= 0; c--, f--)
if (i[c] !== b[f]) {
if (i[c] !== m[f]) {
if (c !== 1 || f !== 1)
do
if (c--, f--, f < 0 || i[c] !== b[f]) {
if (c--, f--, f < 0 || i[c] !== m[f]) {
var E = `
` + i[c].replace(" at new ", " at ");
return r.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", r.displayName)), typeof r == "function" && B.set(r, E), E;
return r.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", r.displayName)), typeof r == "function" && q.set(r, E), E;
}

@@ -293,3 +293,3 @@ while (c >= 1 && f >= 0);

var W = r ? r.displayName || r.name : "", Pr = W ? U(W) : "";
return typeof r == "function" && B.set(r, Pr), Pr;
return typeof r == "function" && q.set(r, Pr), Pr;
}

@@ -303,3 +303,3 @@ function Mr(r, n, e) {

}
function q(r, n, e) {
function B(r, n, e) {
if (r == null)

@@ -312,3 +312,3 @@ return "";

switch (r) {
case m:
case b:
return U("Suspense");

@@ -323,7 +323,7 @@ case w:

case s:
return q(r.type, n, e);
return B(r.type, n, e);
case j: {
var o = r, a = o._payload, u = o._init;
try {
return q(u(a), n, e);
return B(u(a), n, e);
} catch {

@@ -335,6 +335,6 @@ }

}
var J = Object.prototype.hasOwnProperty, br = {}, yr = F.ReactDebugCurrentFrame;
var J = Object.prototype.hasOwnProperty, mr = {}, yr = F.ReactDebugCurrentFrame;
function G(r) {
if (r) {
var n = r._owner, e = q(r.type, r._source, n ? n.type : null);
var n = r._owner, e = B(r.type, r._source, n ? n.type : null);
yr.setExtraStackFrame(e);

@@ -344,3 +344,3 @@ } else

}
function Br(r, n, e, o, a) {
function qr(r, n, e, o, a) {
{

@@ -353,4 +353,4 @@ var u = Function.call.bind(J);

if (typeof r[t] != "function") {
var b = Error((o || "React class") + ": " + e + " type `" + t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw b.name = "Invariant Violation", b;
var m = Error((o || "React class") + ": " + e + " type `" + t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw m.name = "Invariant Violation", m;
}

@@ -361,9 +361,9 @@ i = r[t](n, t, o, e, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");

}
i && !(i instanceof Error) && (G(a), v("%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).", o || "React class", e, t, typeof i), G(null)), i instanceof Error && !(i.message in br) && (br[i.message] = !0, G(a), v("Failed %s type: %s", e, i.message), G(null));
i && !(i instanceof Error) && (G(a), v("%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).", o || "React class", e, t, typeof i), G(null)), i instanceof Error && !(i.message in mr) && (mr[i.message] = !0, G(a), v("Failed %s type: %s", e, i.message), G(null));
}
}
}
var qr = Array.isArray;
var Br = Array.isArray;
function nr(r) {
return qr(r);
return Br(r);
}

@@ -390,3 +390,3 @@ function Jr(r) {

}
var L = F.ReactCurrentOwner, Kr = {
var $ = F.ReactCurrentOwner, Kr = {
key: !0,

@@ -415,5 +415,5 @@ ref: !0,

function Zr(r, n) {
if (typeof r.ref == "string" && L.current && n && L.current.stateNode !== n) {
var e = T(L.current.type);
er[e] || (v('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(L.current.type), r.ref), er[e] = !0);
if (typeof r.ref == "string" && $.current && n && $.current.stateNode !== n) {
var e = T($.current.type);
er[e] || (v('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($.current.type), r.ref), er[e] = !0);
}

@@ -474,4 +474,4 @@ }

{
var u, t = {}, i = null, b = null;
e !== void 0 && (Er(e), i = "" + e), Xr(n) && (Er(n.key), i = "" + n.key), Hr(n) && (b = n.ref, Zr(n, a));
var u, t = {}, i = null, m = null;
e !== void 0 && (Er(e), i = "" + e), Xr(n) && (Er(n.key), i = "" + n.key), Hr(n) && (m = n.ref, Zr(n, a));
for (u in n)

@@ -484,7 +484,7 @@ J.call(n, u) && !Kr.hasOwnProperty(u) && (t[u] = n[u]);

}
if (i || b) {
if (i || m) {
var f = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
i && Qr(t, f), b && rn(t, f);
i && Qr(t, f), m && rn(t, f);
}
return nn(r, i, b, a, o, L.current, t);
return nn(r, i, m, a, o, $.current, t);
}

@@ -495,3 +495,3 @@ }

if (r) {
var n = r._owner, e = q(r.type, r._source, n ? n.type : null);
var n = r._owner, e = B(r.type, r._source, n ? n.type : null);
jr.setExtraStackFrame(e);

@@ -590,3 +590,3 @@ } else

var o = T(n);
Br(e, r.props, "prop", o, r);
qr(e, r.props, "prop", o, r);
} else if (n.PropTypes !== void 0 && !ir) {

@@ -600,3 +600,3 @@ ir = !0;

}
function sn(r) {
function dn(r) {
{

@@ -615,8 +615,8 @@ for (var n = Object.keys(r.props), e = 0; e < n.length; e++) {

{
var t = Lr(r);
var t = $r(r);
if (!t) {
var i = "";
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " 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 b = on(a);
b ? i += b : i += Cr();
var m = on(a);
m ? i += m : i += Cr();
var c;

@@ -641,6 +641,6 @@ r === null ? c = "null" : nr(r) ? c = "array" : r !== void 0 && r.$$typeof === g ? (c = "<" + (T(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : c = typeof r, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, i);

}
return r === y ? sn(f) : an(f), f;
return r === y ? dn(f) : an(f), f;
}
}
function dn(r, n, e) {
function sn(r, n, e) {
return Sr(r, n, e, !0);

@@ -651,8 +651,8 @@ }

}
var ln = un, cn = dn;
var ln = un, cn = sn;
z.Fragment = y, z.jsx = ln, z.jsxs = cn;
}()), z;
}
process.env.NODE_ENV === "production" ? sr.exports = pn() : sr.exports = hn();
var l = sr.exports;
process.env.NODE_ENV === "production" ? dr.exports = pn() : dr.exports = hn();
var l = dr.exports;
const vn = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

@@ -666,9 +666,37 @@ * {

:root {
/* color */
/* blue */
--hsd-ui-dropdown-color-primary-blue: var(--hsd-ui-color-blue-700, #1d4ed8);
--hsd-ui-dropdown-color-secondary-blue: var(--hsd-ui-color-blue-500, #3b82f6);
--hsd-ui-dropdown-color-tertiary-blue: var(--hsd-ui-color-blue-300, #93c5fd);
--hsd-ui-dropdown-color-quaternary-blue: var(
--hsd-ui-color-blue-100,
#dbeafe
);
--hsd-ui-dropdown-color-quinary-blue: var(--hsd-ui-color-blue-50, #eff6ff);
/* gray */
--hsd-ui-dropdown-color-primary-gray: var(--hsd-ui-color-gray-700, #374151);
--hsd-ui-dropdown-color-secondary-gray: var(--hsd-ui-color-gray-500, #6b7280);
--hsd-ui-dropdown-color-tertiary-gray: var(--hsd-ui-color-gray-300, #d1d5db);
--hsd-ui-dropdown-color-quaternary-gray: var(
--hsd-ui-color-gray-100,
#f3f4f6
);
--hsd-ui-dropdown-color-quinary-gray: var(--hsd-ui-color-gray-50, #f9fafb);
/* bg color */
--hsd-ui-dropdown-background-color-primary: var(
--hsd-ui-color-blue-500,
--hsd-ui-dropdown-color-secondary-blue,
#3b82f6
);
--hsd-ui-dropdown-background-color-secondary: rgba(100, 181, 246, 0.21);
--hsd-ui-dropdown-background-color-secondary: var(
--hsd-ui-dropdown-color-quinary-blue,
#eff6ff
);
/* disalble color */
--hsd-ui-dropdown-color-disable: var(
--hsd-ui-dropdown-color-tertiary-gray,
#d1d5db
);
/* border color */

@@ -829,2 +857,7 @@ --hsd-ui-dropdown-border-color-primary: var(--hsd-ui-color-blue-500, #3b82f6);

.hsd-input-dropdwon-item-disable {
color: var(--hsd-ui-dropdown-color-disable) !important;
pointer-events: none;
}
.hsd-input-dropdown-container-preview-item {

@@ -861,3 +894,3 @@ flex: 1;

}
const Dr = "hudoro-input-dropdown-styles", mn = (h) => {
const Dr = "hudoro-input-dropdown-styles", bn = (h) => {
if (!document.getElementById(Dr)) {

@@ -868,3 +901,3 @@ const g = document.createElement("style");

};
mn(vn);
bn(vn);
const xn = ({

@@ -881,3 +914,3 @@ dropdownLists: h,

}) => {
const [m, w] = ar([]), [s, j] = ar([]), { isComponentVisible: I, ref: Y, setIsComponentVisible: V } = gn(!1), H = () => {
const [b, w] = ar([]), [s, j] = ar([]), { isComponentVisible: I, ref: Y, setIsComponentVisible: V } = gn(!1), H = () => {
V((d) => !d);

@@ -898,3 +931,3 @@ }, F = (d, x) => {

Wr(() => {
R && (JSON.stringify(m) === JSON.stringify(R) || w(R));
R && (JSON.stringify(b) === JSON.stringify(R) || w(R));
}, [R]);

@@ -909,3 +942,3 @@ const v = () => s.length ? _ ? s == null ? void 0 : s.map((d, x) => /* @__PURE__ */ l.jsx(

x
)) : /* @__PURE__ */ l.jsx("p", { style: { minWidth: "max-content" }, children: s == null ? void 0 : s[0].label }) : m.length ? _ ? m == null ? void 0 : m.map((d, x) => /* @__PURE__ */ l.jsx(
)) : /* @__PURE__ */ l.jsx("p", { style: { minWidth: "max-content" }, children: s == null ? void 0 : s[0].label }) : b.length ? _ ? b == null ? void 0 : b.map((d, x) => /* @__PURE__ */ l.jsx(
"p",

@@ -918,3 +951,3 @@ {

x
)) : /* @__PURE__ */ l.jsx("p", { style: { minWidth: "max-content" }, children: m == null ? void 0 : m[0].label }) : /* @__PURE__ */ l.jsx("p", { className: "hsd-input-dropdown-placeholder", children: C || "Search" });
)) : /* @__PURE__ */ l.jsx("p", { style: { minWidth: "max-content" }, children: b == null ? void 0 : b[0].label }) : /* @__PURE__ */ l.jsx("p", { className: "hsd-input-dropdown-placeholder", children: C || "Search" });
return /* @__PURE__ */ l.jsxs(

@@ -933,3 +966,3 @@ "div",

/* @__PURE__ */ l.jsx("div", { className: "hsd-input-dropdown-container-preview-item", children: v() }),
/* @__PURE__ */ l.jsx(bn, { strokeWidth: 2, width: Ar(y) })
/* @__PURE__ */ l.jsx(mn, { strokeWidth: 2, width: Ar(y) })
] }),

@@ -956,3 +989,3 @@ I ? /* @__PURE__ */ l.jsxs(

{
className: `hsd-input-dropdwon-item ${s != null && s.find((M) => M.value === d.value) ? "active" : ""}`,
className: `hsd-input-dropdwon-item ${s != null && s.find((M) => M.value === d.value) ? "active" : ""} ${d.disable ? "hsd-input-dropdwon-item-disable" : null}`,
onClick: () => F(d.label, d.value),

@@ -1009,3 +1042,3 @@ children: [

}
), bn = ({ ...h }) => /* @__PURE__ */ l.jsx(
), mn = ({ ...h }) => /* @__PURE__ */ l.jsx(
"svg",

@@ -1012,0 +1045,0 @@ {

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

(function(D,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],y):(D=typeof globalThis<"u"?globalThis:D||self,y(D.Dropdown={},D.React))})(this,function(D,y){"use strict";var q={exports:{}},z={};/**
(function(D,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],y):(D=typeof globalThis<"u"?globalThis:D||self,y(D.Dropdown={},D.React))})(this,function(D,y){"use strict";var X={exports:{}},z={};/**
* @license React

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

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

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

* LICENSE file in the root directory of this source tree.
*/var ur;function Nr(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&function(){var h=y,g=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),T=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),U=Symbol.iterator,B="@@iterator";function Z(r){if(r===null||typeof r!="object")return null;var n=U&&r[U]||r[B];return typeof n=="function"?n:null}var I=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(r){{for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o<n;o++)e[o-1]=arguments[o];d("error",r,e)}}function d(r,n,e){{var o=I.ReactDebugCurrentFrame,a=o.getStackAddendum();a!==""&&(n+="%s",e=e.concat([a]));var u=e.map(function(i){return String(i)});u.unshift("Warning: "+n),Function.prototype.apply.call(console[r],console,u)}}var E=!1,J=!1,k=!1,Q=!1,Ur=!1,fr;fr=Symbol.for("react.module.reference");function Br(r){return!!(typeof r=="string"||typeof r=="function"||r===x||r===P||Ur||r===j||r===m||r===w||Q||r===A||E||J||k||typeof r=="object"&&r!==null&&(r.$$typeof===C||r.$$typeof===s||r.$$typeof===F||r.$$typeof===T||r.$$typeof===p||r.$$typeof===fr||r.getModuleId!==void 0))}function Jr(r,n,e){var o=r.displayName;if(o)return o;var a=n.displayName||n.name||"";return a!==""?e+"("+a+")":e}function pr(r){return r.displayName||"Context"}function S(r){if(r==null)return null;if(typeof r.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case _:return"Portal";case P:return"Profiler";case j:return"StrictMode";case m:return"Suspense";case w:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case T:var n=r;return pr(n)+".Consumer";case F:var e=r;return pr(e._context)+".Provider";case p:return Jr(r,r.render,"ForwardRef");case s:var o=r.displayName||null;return o!==null?o:S(r.type)||"Memo";case C:{var a=r,u=a._payload,i=a._init;try{return S(i(u))}catch{return null}}}return null}var W=Object.assign,V=0,hr,vr,gr,mr,wr,br,yr;function xr(){}xr.__reactDisabledLog=!0;function $r(){{if(V===0){hr=console.log,vr=console.info,gr=console.warn,mr=console.error,wr=console.group,br=console.groupCollapsed,yr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:xr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}V++}}function Gr(){{if(V--,V===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},r,{value:hr}),info:W({},r,{value:vr}),warn:W({},r,{value:gr}),error:W({},r,{value:mr}),group:W({},r,{value:wr}),groupCollapsed:W({},r,{value:br}),groupEnd:W({},r,{value:yr})})}V<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rr=I.ReactCurrentDispatcher,nr;function $(r,n,e){{if(nr===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);nr=o&&o[1]||""}return`
`+nr+r}}var er=!1,G;{var Kr=typeof WeakMap=="function"?WeakMap:Map;G=new Kr}function Er(r,n){if(!r||er)return"";{var e=G.get(r);if(e!==void 0)return e}var o;er=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=rr.current,rr.current=null,$r();try{if(n){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(O){o=O}Reflect.construct(r,[],i)}else{try{i.call()}catch(O){o=O}r.call(i.prototype)}}else{try{throw Error()}catch(O){o=O}r()}}catch(O){if(O&&o&&typeof O.stack=="string"){for(var t=O.stack.split(`
`),b=o.stack.split(`
`),c=t.length-1,f=b.length-1;c>=1&&f>=0&&t[c]!==b[f];)f--;for(;c>=1&&f>=0;c--,f--)if(t[c]!==b[f]){if(c!==1||f!==1)do if(c--,f--,f<0||t[c]!==b[f]){var R=`
`+t[c].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),typeof r=="function"&&G.set(r,R),R}while(c>=1&&f>=0);break}}}finally{er=!1,rr.current=u,Gr(),Error.prepareStackTrace=a}var L=r?r.displayName||r.name:"",Ar=L?$(L):"";return typeof r=="function"&&G.set(r,Ar),Ar}function Hr(r,n,e){return Er(r,!1)}function Xr(r){var n=r.prototype;return!!(n&&n.isReactComponent)}function K(r,n,e){if(r==null)return"";if(typeof r=="function")return Er(r,Xr(r));if(typeof r=="string")return $(r);switch(r){case m:return $("Suspense");case w:return $("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case p:return Hr(r.render);case s:return K(r.type,n,e);case C:{var o=r,a=o._payload,u=o._init;try{return K(u(a),n,e)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Rr={},_r=I.ReactDebugCurrentFrame;function X(r){if(r){var n=r._owner,e=K(r.type,r._source,n?n.type:null);_r.setExtraStackFrame(e)}else _r.setExtraStackFrame(null)}function qr(r,n,e,o,a){{var u=Function.call.bind(H);for(var i in r)if(u(r,i)){var t=void 0;try{if(typeof r[i]!="function"){var b=Error((o||"React class")+": "+e+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}t=r[i](n,i,o,e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){t=c}t&&!(t instanceof Error)&&(X(a),v("%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).",o||"React class",e,i,typeof t),X(null)),t instanceof Error&&!(t.message in Rr)&&(Rr[t.message]=!0,X(a),v("Failed %s type: %s",e,t.message),X(null))}}}var Zr=Array.isArray;function or(r){return Zr(r)}function Qr(r){{var n=typeof Symbol=="function"&&Symbol.toStringTag,e=n&&r[Symbol.toStringTag]||r.constructor.name||"Object";return e}}function rn(r){try{return jr(r),!1}catch{return!0}}function jr(r){return""+r}function Cr(r){if(rn(r))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qr(r)),jr(r)}var M=I.ReactCurrentOwner,nn={key:!0,ref:!0,__self:!0,__source:!0},Tr,kr,tr;tr={};function en(r){if(H.call(r,"ref")){var n=Object.getOwnPropertyDescriptor(r,"ref").get;if(n&&n.isReactWarning)return!1}return r.ref!==void 0}function on(r){if(H.call(r,"key")){var n=Object.getOwnPropertyDescriptor(r,"key").get;if(n&&n.isReactWarning)return!1}return r.key!==void 0}function tn(r,n){if(typeof r.ref=="string"&&M.current&&n&&M.current.stateNode!==n){var e=S(M.current.type);tr[e]||(v('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(M.current.type),r.ref),tr[e]=!0)}}function an(r,n){{var e=function(){Tr||(Tr=!0,v("%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)",n))};e.isReactWarning=!0,Object.defineProperty(r,"key",{get:e,configurable:!0})}}function sn(r,n){{var e=function(){kr||(kr=!0,v("%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)",n))};e.isReactWarning=!0,Object.defineProperty(r,"ref",{get:e,configurable:!0})}}var dn=function(r,n,e,o,a,u,i){var t={$$typeof:g,type:r,key:n,ref:e,props:i,_owner:u};return t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t};function un(r,n,e,o,a){{var u,i={},t=null,b=null;e!==void 0&&(Cr(e),t=""+e),on(n)&&(Cr(n.key),t=""+n.key),en(n)&&(b=n.ref,tn(n,a));for(u in n)H.call(n,u)&&!nn.hasOwnProperty(u)&&(i[u]=n[u]);if(r&&r.defaultProps){var c=r.defaultProps;for(u in c)i[u]===void 0&&(i[u]=c[u])}if(t||b){var f=typeof r=="function"?r.displayName||r.name||"Unknown":r;t&&an(i,f),b&&sn(i,f)}return dn(r,t,b,a,o,M.current,i)}}var ir=I.ReactCurrentOwner,Sr=I.ReactDebugCurrentFrame;function N(r){if(r){var n=r._owner,e=K(r.type,r._source,n?n.type:null);Sr.setExtraStackFrame(e)}else Sr.setExtraStackFrame(null)}var ar;ar=!1;function sr(r){return typeof r=="object"&&r!==null&&r.$$typeof===g}function Or(){{if(ir.current){var r=S(ir.current.type);if(r)return`
*/var ur;function Nr(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&function(){var h=y,g=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),T=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),U=Symbol.iterator,B="@@iterator";function Z(r){if(r===null||typeof r!="object")return null;var n=U&&r[U]||r[B];return typeof n=="function"?n:null}var I=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(r){{for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o<n;o++)e[o-1]=arguments[o];d("error",r,e)}}function d(r,n,e){{var o=I.ReactDebugCurrentFrame,a=o.getStackAddendum();a!==""&&(n+="%s",e=e.concat([a]));var u=e.map(function(t){return String(t)});u.unshift("Warning: "+n),Function.prototype.apply.call(console[r],console,u)}}var E=!1,J=!1,k=!1,Q=!1,Ur=!1,fr;fr=Symbol.for("react.module.reference");function Br(r){return!!(typeof r=="string"||typeof r=="function"||r===x||r===P||Ur||r===j||r===b||r===w||Q||r===A||E||J||k||typeof r=="object"&&r!==null&&(r.$$typeof===C||r.$$typeof===s||r.$$typeof===F||r.$$typeof===T||r.$$typeof===p||r.$$typeof===fr||r.getModuleId!==void 0))}function Jr(r,n,e){var o=r.displayName;if(o)return o;var a=n.displayName||n.name||"";return a!==""?e+"("+a+")":e}function pr(r){return r.displayName||"Context"}function S(r){if(r==null)return null;if(typeof r.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case _:return"Portal";case P:return"Profiler";case j:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case T:var n=r;return pr(n)+".Consumer";case F:var e=r;return pr(e._context)+".Provider";case p:return Jr(r,r.render,"ForwardRef");case s:var o=r.displayName||null;return o!==null?o:S(r.type)||"Memo";case C:{var a=r,u=a._payload,t=a._init;try{return S(t(u))}catch{return null}}}return null}var W=Object.assign,V=0,hr,vr,gr,br,wr,mr,yr;function xr(){}xr.__reactDisabledLog=!0;function $r(){{if(V===0){hr=console.log,vr=console.info,gr=console.warn,br=console.error,wr=console.group,mr=console.groupCollapsed,yr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:xr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}V++}}function qr(){{if(V--,V===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},r,{value:hr}),info:W({},r,{value:vr}),warn:W({},r,{value:gr}),error:W({},r,{value:br}),group:W({},r,{value:wr}),groupCollapsed:W({},r,{value:mr}),groupEnd:W({},r,{value:yr})})}V<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rr=I.ReactCurrentDispatcher,nr;function $(r,n,e){{if(nr===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);nr=o&&o[1]||""}return`
`+nr+r}}var er=!1,q;{var Gr=typeof WeakMap=="function"?WeakMap:Map;q=new Gr}function Er(r,n){if(!r||er)return"";{var e=q.get(r);if(e!==void 0)return e}var o;er=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=rr.current,rr.current=null,$r();try{if(n){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(O){o=O}Reflect.construct(r,[],t)}else{try{t.call()}catch(O){o=O}r.call(t.prototype)}}else{try{throw Error()}catch(O){o=O}r()}}catch(O){if(O&&o&&typeof O.stack=="string"){for(var i=O.stack.split(`
`),m=o.stack.split(`
`),c=i.length-1,f=m.length-1;c>=1&&f>=0&&i[c]!==m[f];)f--;for(;c>=1&&f>=0;c--,f--)if(i[c]!==m[f]){if(c!==1||f!==1)do if(c--,f--,f<0||i[c]!==m[f]){var R=`
`+i[c].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),typeof r=="function"&&q.set(r,R),R}while(c>=1&&f>=0);break}}}finally{er=!1,rr.current=u,qr(),Error.prepareStackTrace=a}var L=r?r.displayName||r.name:"",Ar=L?$(L):"";return typeof r=="function"&&q.set(r,Ar),Ar}function Kr(r,n,e){return Er(r,!1)}function Hr(r){var n=r.prototype;return!!(n&&n.isReactComponent)}function G(r,n,e){if(r==null)return"";if(typeof r=="function")return Er(r,Hr(r));if(typeof r=="string")return $(r);switch(r){case b:return $("Suspense");case w:return $("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case p:return Kr(r.render);case s:return G(r.type,n,e);case C:{var o=r,a=o._payload,u=o._init;try{return G(u(a),n,e)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Rr={},_r=I.ReactDebugCurrentFrame;function H(r){if(r){var n=r._owner,e=G(r.type,r._source,n?n.type:null);_r.setExtraStackFrame(e)}else _r.setExtraStackFrame(null)}function Xr(r,n,e,o,a){{var u=Function.call.bind(K);for(var t in r)if(u(r,t)){var i=void 0;try{if(typeof r[t]!="function"){var m=Error((o||"React class")+": "+e+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}i=r[t](n,t,o,e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){i=c}i&&!(i instanceof Error)&&(H(a),v("%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).",o||"React class",e,t,typeof i),H(null)),i instanceof Error&&!(i.message in Rr)&&(Rr[i.message]=!0,H(a),v("Failed %s type: %s",e,i.message),H(null))}}}var Zr=Array.isArray;function or(r){return Zr(r)}function Qr(r){{var n=typeof Symbol=="function"&&Symbol.toStringTag,e=n&&r[Symbol.toStringTag]||r.constructor.name||"Object";return e}}function rn(r){try{return jr(r),!1}catch{return!0}}function jr(r){return""+r}function Cr(r){if(rn(r))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qr(r)),jr(r)}var M=I.ReactCurrentOwner,nn={key:!0,ref:!0,__self:!0,__source:!0},Tr,kr,ir;ir={};function en(r){if(K.call(r,"ref")){var n=Object.getOwnPropertyDescriptor(r,"ref").get;if(n&&n.isReactWarning)return!1}return r.ref!==void 0}function on(r){if(K.call(r,"key")){var n=Object.getOwnPropertyDescriptor(r,"key").get;if(n&&n.isReactWarning)return!1}return r.key!==void 0}function tn(r,n){if(typeof r.ref=="string"&&M.current&&n&&M.current.stateNode!==n){var e=S(M.current.type);ir[e]||(v('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(M.current.type),r.ref),ir[e]=!0)}}function an(r,n){{var e=function(){Tr||(Tr=!0,v("%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)",n))};e.isReactWarning=!0,Object.defineProperty(r,"key",{get:e,configurable:!0})}}function dn(r,n){{var e=function(){kr||(kr=!0,v("%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)",n))};e.isReactWarning=!0,Object.defineProperty(r,"ref",{get:e,configurable:!0})}}var sn=function(r,n,e,o,a,u,t){var i={$$typeof:g,type:r,key:n,ref:e,props:t,_owner:u};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function un(r,n,e,o,a){{var u,t={},i=null,m=null;e!==void 0&&(Cr(e),i=""+e),on(n)&&(Cr(n.key),i=""+n.key),en(n)&&(m=n.ref,tn(n,a));for(u in n)K.call(n,u)&&!nn.hasOwnProperty(u)&&(t[u]=n[u]);if(r&&r.defaultProps){var c=r.defaultProps;for(u in c)t[u]===void 0&&(t[u]=c[u])}if(i||m){var f=typeof r=="function"?r.displayName||r.name||"Unknown":r;i&&an(t,f),m&&dn(t,f)}return sn(r,i,m,a,o,M.current,t)}}var tr=I.ReactCurrentOwner,Sr=I.ReactDebugCurrentFrame;function N(r){if(r){var n=r._owner,e=G(r.type,r._source,n?n.type:null);Sr.setExtraStackFrame(e)}else Sr.setExtraStackFrame(null)}var ar;ar=!1;function dr(r){return typeof r=="object"&&r!==null&&r.$$typeof===g}function Or(){{if(tr.current){var r=S(tr.current.type);if(r)return`

@@ -29,3 +29,3 @@ Check the render method of \``+r+"`."}return""}}function ln(r){{if(r!==void 0){var n=r.fileName.replace(/^.*[\\\/]/,""),e=r.lineNumber;return`

Check the top-level render call using <`+e+">.")}return n}}function Fr(r,n){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var e=cn(n);if(Pr[e])return;Pr[e]=!0;var o="";r&&r._owner&&r._owner!==ir.current&&(o=" It was passed a child from "+S(r._owner.type)+"."),N(r),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',e,o),N(null)}}function Ir(r,n){{if(typeof r!="object")return;if(or(r))for(var e=0;e<r.length;e++){var o=r[e];sr(o)&&Fr(o,n)}else if(sr(r))r._store&&(r._store.validated=!0);else if(r){var a=Z(r);if(typeof a=="function"&&a!==r.entries)for(var u=a.call(r),i;!(i=u.next()).done;)sr(i.value)&&Fr(i.value,n)}}}function fn(r){{var n=r.type;if(n==null||typeof n=="string")return;var e;if(typeof n=="function")e=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===p||n.$$typeof===s))e=n.propTypes;else return;if(e){var o=S(n);qr(e,r.props,"prop",o,r)}else if(n.PropTypes!==void 0&&!ar){ar=!0;var a=S(n);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",a||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pn(r){{for(var n=Object.keys(r.props),e=0;e<n.length;e++){var o=n[e];if(o!=="children"&&o!=="key"){N(r),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),N(null);break}}r.ref!==null&&(N(r),v("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}function Dr(r,n,e,o,a,u){{var i=Br(r);if(!i){var t="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(t+=" 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 b=ln(a);b?t+=b:t+=Or();var c;r===null?c="null":or(r)?c="array":r!==void 0&&r.$$typeof===g?(c="<"+(S(r.type)||"Unknown")+" />",t=" Did you accidentally export a JSX literal instead of a component?"):c=typeof r,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,t)}var f=un(r,n,e,a,u);if(f==null)return f;if(i){var R=n.children;if(R!==void 0)if(o)if(or(R)){for(var L=0;L<R.length;L++)Ir(R[L],r);Object.freeze&&Object.freeze(R)}else v("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 Ir(R,r)}return r===x?pn(f):fn(f),f}}function hn(r,n,e){return Dr(r,n,e,!0)}function vn(r,n,e){return Dr(r,n,e,!1)}var gn=vn,mn=hn;Y.Fragment=x,Y.jsx=gn,Y.jsxs=mn}()),Y}process.env.NODE_ENV==="production"?q.exports=Wr():q.exports=Nr();var l=q.exports;const Lr=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
Check the top-level render call using <`+e+">.")}return n}}function Fr(r,n){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var e=cn(n);if(Pr[e])return;Pr[e]=!0;var o="";r&&r._owner&&r._owner!==tr.current&&(o=" It was passed a child from "+S(r._owner.type)+"."),N(r),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',e,o),N(null)}}function Ir(r,n){{if(typeof r!="object")return;if(or(r))for(var e=0;e<r.length;e++){var o=r[e];dr(o)&&Fr(o,n)}else if(dr(r))r._store&&(r._store.validated=!0);else if(r){var a=Z(r);if(typeof a=="function"&&a!==r.entries)for(var u=a.call(r),t;!(t=u.next()).done;)dr(t.value)&&Fr(t.value,n)}}}function fn(r){{var n=r.type;if(n==null||typeof n=="string")return;var e;if(typeof n=="function")e=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===p||n.$$typeof===s))e=n.propTypes;else return;if(e){var o=S(n);Xr(e,r.props,"prop",o,r)}else if(n.PropTypes!==void 0&&!ar){ar=!0;var a=S(n);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",a||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pn(r){{for(var n=Object.keys(r.props),e=0;e<n.length;e++){var o=n[e];if(o!=="children"&&o!=="key"){N(r),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),N(null);break}}r.ref!==null&&(N(r),v("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}function Dr(r,n,e,o,a,u){{var t=Br(r);if(!t){var i="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(i+=" 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=ln(a);m?i+=m:i+=Or();var c;r===null?c="null":or(r)?c="array":r!==void 0&&r.$$typeof===g?(c="<"+(S(r.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):c=typeof r,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,i)}var f=un(r,n,e,a,u);if(f==null)return f;if(t){var R=n.children;if(R!==void 0)if(o)if(or(R)){for(var L=0;L<R.length;L++)Ir(R[L],r);Object.freeze&&Object.freeze(R)}else v("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 Ir(R,r)}return r===x?pn(f):fn(f),f}}function hn(r,n,e){return Dr(r,n,e,!0)}function vn(r,n,e){return Dr(r,n,e,!1)}var gn=vn,bn=hn;Y.Fragment=x,Y.jsx=gn,Y.jsxs=bn}()),Y}process.env.NODE_ENV==="production"?X.exports=Wr():X.exports=Nr();var l=X.exports;const Lr=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {

@@ -38,9 +38,37 @@ margin: 0;

:root {
/* color */
/* blue */
--hsd-ui-dropdown-color-primary-blue: var(--hsd-ui-color-blue-700, #1d4ed8);
--hsd-ui-dropdown-color-secondary-blue: var(--hsd-ui-color-blue-500, #3b82f6);
--hsd-ui-dropdown-color-tertiary-blue: var(--hsd-ui-color-blue-300, #93c5fd);
--hsd-ui-dropdown-color-quaternary-blue: var(
--hsd-ui-color-blue-100,
#dbeafe
);
--hsd-ui-dropdown-color-quinary-blue: var(--hsd-ui-color-blue-50, #eff6ff);
/* gray */
--hsd-ui-dropdown-color-primary-gray: var(--hsd-ui-color-gray-700, #374151);
--hsd-ui-dropdown-color-secondary-gray: var(--hsd-ui-color-gray-500, #6b7280);
--hsd-ui-dropdown-color-tertiary-gray: var(--hsd-ui-color-gray-300, #d1d5db);
--hsd-ui-dropdown-color-quaternary-gray: var(
--hsd-ui-color-gray-100,
#f3f4f6
);
--hsd-ui-dropdown-color-quinary-gray: var(--hsd-ui-color-gray-50, #f9fafb);
/* bg color */
--hsd-ui-dropdown-background-color-primary: var(
--hsd-ui-color-blue-500,
--hsd-ui-dropdown-color-secondary-blue,
#3b82f6
);
--hsd-ui-dropdown-background-color-secondary: rgba(100, 181, 246, 0.21);
--hsd-ui-dropdown-background-color-secondary: var(
--hsd-ui-dropdown-color-quinary-blue,
#eff6ff
);
/* disalble color */
--hsd-ui-dropdown-color-disable: var(
--hsd-ui-dropdown-color-tertiary-gray,
#d1d5db
);
/* border color */

@@ -201,2 +229,7 @@ --hsd-ui-dropdown-border-color-primary: var(--hsd-ui-color-blue-500, #3b82f6);

.hsd-input-dropdwon-item-disable {
color: var(--hsd-ui-dropdown-color-disable) !important;
pointer-events: none;
}
.hsd-input-dropdown-container-preview-item {

@@ -224,2 +257,2 @@ flex: 1;

}
`;function zr(h){const[g,_]=y.useState(h),x=y.useRef(null),j=P=>{x.current&&!x.current.contains(P.target)&&_(!1)};return y.useEffect(()=>(document.addEventListener("click",j,!0),()=>{document.removeEventListener("click",j,!0)}),[]),{ref:x,isComponentVisible:g,setIsComponentVisible:_}}const lr="hudoro-input-dropdown-styles";(h=>{if(!document.getElementById(lr)){const g=document.createElement("style");g.id=lr,g.textContent=h,document.head.appendChild(g)}})(Lr);const Yr=({dropdownLists:h,onChange:g,defaultValue:_,size:x="md",multiSelect:j,searchAble:P,iconLeft:F,placeholder:T,onSearch:p})=>{const[m,w]=y.useState([]),[s,C]=y.useState([]),{isComponentVisible:A,ref:U,setIsComponentVisible:B}=zr(!1),Z=()=>{B(d=>!d)},I=(d,E)=>{if(!j)C([{label:d,value:E}]),g([{label:d,value:E}]),B(!1);else if(s==null?void 0:s.find(k=>k.value===E)){const k=[...s?s.filter(Q=>Q.value!==E):[]];C(k),g(k)}else{const k=[...s||[],{label:d,value:E}];C(k),g(k)}};y.useEffect(()=>{_&&(JSON.stringify(m)===JSON.stringify(_)||w(_))},[_]);const v=()=>s.length?j?s==null?void 0:s.map((d,E)=>l.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:d==null?void 0:d.label},E)):l.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s[0].label}):m.length?j?m==null?void 0:m.map((d,E)=>l.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:d==null?void 0:d.label},E)):l.jsx("p",{style:{minWidth:"max-content"},children:m==null?void 0:m[0].label}):l.jsx("p",{className:"hsd-input-dropdown-placeholder",children:T||"Search"});return l.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${A?"active":""}`,ref:U,onClick:Z,children:[l.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[F?l.jsx(l.Fragment,{children:y.cloneElement(F,{width:cr(x),color:"#939E99"})}):null,l.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:v()}),l.jsx(Mr,{strokeWidth:2,width:cr(x)})]}),A?l.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:d=>d.stopPropagation(),children:[P?l.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[l.jsx("div",{style:{display:"flex"},children:l.jsx(Vr,{strokeWidth:2,width:20})}),l.jsx("input",{onChange:d=>{p&&p(d.target.value)}})]}):null,l.jsx("div",{className:"hsd-input-dropdwon-item-container",children:h.map((d,E)=>l.jsxs("div",{className:`hsd-input-dropdwon-item ${s!=null&&s.find(J=>J.value===d.value)?"active":""}`,onClick:()=>I(d.label,d.value),children:[d.icon?l.jsx("div",{children:y.cloneElement(d.icon,{width:16})}):null,l.jsxs("div",{children:[" ",l.jsx("p",{children:d.label})]})]},E))})]}):null]})},Vr=({...h})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...h,viewBox:"0 0 20 20",fill:"none",children:[l.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Mr=({...h})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...h,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:l.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),cr=h=>{if(h==="sm")return 16;if(h==="md")return 20;if(h==="lg")return 20};D.Dropdown=Yr,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
`;function zr(h){const[g,_]=y.useState(h),x=y.useRef(null),j=P=>{x.current&&!x.current.contains(P.target)&&_(!1)};return y.useEffect(()=>(document.addEventListener("click",j,!0),()=>{document.removeEventListener("click",j,!0)}),[]),{ref:x,isComponentVisible:g,setIsComponentVisible:_}}const lr="hudoro-input-dropdown-styles";(h=>{if(!document.getElementById(lr)){const g=document.createElement("style");g.id=lr,g.textContent=h,document.head.appendChild(g)}})(Lr);const Yr=({dropdownLists:h,onChange:g,defaultValue:_,size:x="md",multiSelect:j,searchAble:P,iconLeft:F,placeholder:T,onSearch:p})=>{const[b,w]=y.useState([]),[s,C]=y.useState([]),{isComponentVisible:A,ref:U,setIsComponentVisible:B}=zr(!1),Z=()=>{B(d=>!d)},I=(d,E)=>{if(!j)C([{label:d,value:E}]),g([{label:d,value:E}]),B(!1);else if(s==null?void 0:s.find(k=>k.value===E)){const k=[...s?s.filter(Q=>Q.value!==E):[]];C(k),g(k)}else{const k=[...s||[],{label:d,value:E}];C(k),g(k)}};y.useEffect(()=>{_&&(JSON.stringify(b)===JSON.stringify(_)||w(_))},[_]);const v=()=>s.length?j?s==null?void 0:s.map((d,E)=>l.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:d==null?void 0:d.label},E)):l.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s[0].label}):b.length?j?b==null?void 0:b.map((d,E)=>l.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:d==null?void 0:d.label},E)):l.jsx("p",{style:{minWidth:"max-content"},children:b==null?void 0:b[0].label}):l.jsx("p",{className:"hsd-input-dropdown-placeholder",children:T||"Search"});return l.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${A?"active":""}`,ref:U,onClick:Z,children:[l.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[F?l.jsx(l.Fragment,{children:y.cloneElement(F,{width:cr(x),color:"#939E99"})}):null,l.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:v()}),l.jsx(Mr,{strokeWidth:2,width:cr(x)})]}),A?l.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:d=>d.stopPropagation(),children:[P?l.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[l.jsx("div",{style:{display:"flex"},children:l.jsx(Vr,{strokeWidth:2,width:20})}),l.jsx("input",{onChange:d=>{p&&p(d.target.value)}})]}):null,l.jsx("div",{className:"hsd-input-dropdwon-item-container",children:h.map((d,E)=>l.jsxs("div",{className:`hsd-input-dropdwon-item ${s!=null&&s.find(J=>J.value===d.value)?"active":""} ${d.disable?"hsd-input-dropdwon-item-disable":null}`,onClick:()=>I(d.label,d.value),children:[d.icon?l.jsx("div",{children:y.cloneElement(d.icon,{width:16})}):null,l.jsxs("div",{children:[" ",l.jsx("p",{children:d.label})]})]},E))})]}):null]})},Vr=({...h})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...h,viewBox:"0 0 20 20",fill:"none",children:[l.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Mr=({...h})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...h,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:l.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),cr=h=>{if(h==="sm")return 16;if(h==="md")return 20;if(h==="lg")return 20};D.Dropdown=Yr,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});

@@ -12,2 +12,3 @@ export interface IconPropsDropdown extends React.SVGProps<SVGSVGElement> {

value: string;
disable?: boolean;
}[];

@@ -14,0 +15,0 @@ defaultValue?: {

{
"name": "@hudoro/dropdown",
"version": "0.0.3-beta.23",
"version": "0.0.3-beta.24",
"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