@hudoro/dropdown
Advanced tools
Comparing version 0.0.1-beta.10 to 0.0.2-beta.0
@@ -1,3 +0,3 @@ | ||
import K, { useState as ie, useRef as dr, useEffect as Ae } from "react"; | ||
var se = { exports: {} }, L = {}; | ||
import K, { useState as ie, useRef as dr, useEffect as se } from "react"; | ||
var le = { exports: {} }, L = {}; | ||
/** | ||
@@ -17,16 +17,16 @@ * @license React | ||
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 }; | ||
var d = K, b = Symbol.for("react.element"), R = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, _ = d.__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); | ||
var g, u = {}, y = null, F = null; | ||
P !== void 0 && (y = "" + P), v.key !== void 0 && (y = "" + v.key), v.ref !== void 0 && (F = v.ref); | ||
for (g in v) | ||
x.call(v, g) && !O.hasOwnProperty(g) && (c[g] = v[g]); | ||
x.call(v, g) && !O.hasOwnProperty(g) && (u[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: y, ref: D, props: c, _owner: _.current }; | ||
u[g] === void 0 && (u[g] = v[g]); | ||
return { $$typeof: b, type: C, key: y, ref: F, props: u, _owner: _.current }; | ||
} | ||
return L.Fragment = R, L.jsx = S, L.jsxs = S, L; | ||
} | ||
var V = {}; | ||
var Y = {}; | ||
/** | ||
@@ -41,13 +41,13 @@ * @license React | ||
*/ | ||
var De; | ||
var Ie; | ||
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"; | ||
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() { | ||
var d = 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"), u = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), M = Symbol.iterator, U = "@@iterator"; | ||
function H(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = Y && e[Y] || e[M]; | ||
var r = M && e[M] || e[U]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var F = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var D = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function h(e) { | ||
@@ -62,3 +62,3 @@ { | ||
{ | ||
var t = F.ReactDebugCurrentFrame, i = t.getStackAddendum(); | ||
var t = D.ReactDebugCurrentFrame, i = t.getStackAddendum(); | ||
i !== "" && (r += "%s", n = n.concat([i])); | ||
@@ -71,12 +71,12 @@ var l = n.map(function(a) { | ||
} | ||
var w = !1, U = !1, j = !1, X = !1, $e = !1, le; | ||
le = Symbol.for("react.module.reference"); | ||
var w = !1, W = !1, j = !1, X = !1, $e = !1, ue; | ||
ue = Symbol.for("react.module.reference"); | ||
function Ne(e) { | ||
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 | ||
return !!(typeof e == "string" || typeof e == "function" || e === x || e === O || $e || e === _ || e === P || e === g || X || e === F || w || W || j || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === u || 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 === le || e.getModuleId !== void 0)); | ||
e.$$typeof === ue || e.getModuleId !== void 0)); | ||
} | ||
function Le(e, r, n) { | ||
function Ve(e, r, n) { | ||
var t = e.displayName; | ||
@@ -88,3 +88,3 @@ if (t) | ||
} | ||
function ue(e) { | ||
function ce(e) { | ||
return e.displayName || "Context"; | ||
@@ -117,9 +117,9 @@ } | ||
var r = e; | ||
return ue(r) + ".Consumer"; | ||
return ce(r) + ".Consumer"; | ||
case S: | ||
var n = e; | ||
return ue(n._context) + ".Provider"; | ||
return ce(n._context) + ".Provider"; | ||
case v: | ||
return Le(e, e.render, "ForwardRef"); | ||
case c: | ||
return Ve(e, e.render, "ForwardRef"); | ||
case u: | ||
var t = e.displayName || null; | ||
@@ -138,14 +138,14 @@ return t !== null ? t : T(e.type) || "Memo"; | ||
} | ||
var I = Object.assign, $ = 0, ce, de, fe, pe, ve, he, ge; | ||
function be() { | ||
var I = Object.assign, N = 0, de, fe, pe, ve, he, ge, be; | ||
function me() { | ||
} | ||
be.__reactDisabledLog = !0; | ||
function Ve() { | ||
me.__reactDisabledLog = !0; | ||
function Le() { | ||
{ | ||
if ($ === 0) { | ||
ce = console.log, de = console.info, fe = console.warn, pe = console.error, ve = console.group, he = console.groupCollapsed, ge = console.groupEnd; | ||
if (N === 0) { | ||
de = console.log, fe = console.info, pe = console.warn, ve = console.error, he = console.group, ge = console.groupCollapsed, be = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: be, | ||
value: me, | ||
writable: !0 | ||
@@ -163,3 +163,3 @@ }; | ||
} | ||
$++; | ||
N++; | ||
} | ||
@@ -169,3 +169,3 @@ } | ||
{ | ||
if ($--, $ === 0) { | ||
if (N--, N === 0) { | ||
var e = { | ||
@@ -178,28 +178,28 @@ configurable: !0, | ||
log: I({}, e, { | ||
value: ce | ||
value: de | ||
}), | ||
info: I({}, e, { | ||
value: de | ||
value: fe | ||
}), | ||
warn: I({}, e, { | ||
value: fe | ||
value: pe | ||
}), | ||
error: I({}, e, { | ||
value: pe | ||
value: ve | ||
}), | ||
group: I({}, e, { | ||
value: ve | ||
value: he | ||
}), | ||
groupCollapsed: I({}, e, { | ||
value: he | ||
value: ge | ||
}), | ||
groupEnd: I({}, e, { | ||
value: ge | ||
value: be | ||
}) | ||
}); | ||
} | ||
$ < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
N < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var Z = F.ReactCurrentDispatcher, Q; | ||
var Z = D.ReactCurrentDispatcher, Q; | ||
function B(e, r, n) { | ||
@@ -223,3 +223,3 @@ { | ||
} | ||
function me(e, r) { | ||
function xe(e, r) { | ||
if (!e || ee) | ||
@@ -237,3 +237,3 @@ return ""; | ||
var l; | ||
l = Z.current, Z.current = null, Ve(); | ||
l = Z.current, Z.current = null, Le(); | ||
try { | ||
@@ -275,14 +275,14 @@ if (r) { | ||
`), 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) | ||
`), 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) | ||
do | ||
if (d--, f--, f < 0 || o[d] !== m[f]) { | ||
if (f--, p--, p < 0 || o[f] !== m[p]) { | ||
var E = ` | ||
` + o[d].replace(" at new ", " at "); | ||
` + o[f].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 (d >= 1 && f >= 0); | ||
while (f >= 1 && p >= 0); | ||
break; | ||
@@ -294,7 +294,7 @@ } | ||
} | ||
var A = e ? e.displayName || e.name : "", Pe = A ? B(A) : ""; | ||
return typeof e == "function" && z.set(e, Pe), Pe; | ||
var $ = e ? e.displayName || e.name : "", De = $ ? B($) : ""; | ||
return typeof e == "function" && z.set(e, De), De; | ||
} | ||
function Ue(e, r, n) { | ||
return me(e, !1); | ||
return xe(e, !1); | ||
} | ||
@@ -309,3 +309,3 @@ function Be(e) { | ||
if (typeof e == "function") | ||
return me(e, Be(e)); | ||
return xe(e, Be(e)); | ||
if (typeof e == "string") | ||
@@ -323,3 +323,3 @@ return B(e); | ||
return Ue(e.render); | ||
case c: | ||
case u: | ||
return q(e.type, r, n); | ||
@@ -336,9 +336,9 @@ case y: { | ||
} | ||
var J = Object.prototype.hasOwnProperty, xe = {}, ye = F.ReactDebugCurrentFrame; | ||
var J = Object.prototype.hasOwnProperty, ye = {}, we = D.ReactDebugCurrentFrame; | ||
function G(e) { | ||
if (e) { | ||
var r = e._owner, n = q(e.type, e._source, r ? r.type : null); | ||
ye.setExtraStackFrame(n); | ||
we.setExtraStackFrame(n); | ||
} else | ||
ye.setExtraStackFrame(null); | ||
we.setExtraStackFrame(null); | ||
} | ||
@@ -357,6 +357,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 (d) { | ||
o = d; | ||
} catch (f) { | ||
o = f; | ||
} | ||
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)); | ||
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 ye) && (ye[o.message] = !0, G(i), h("Failed %s type: %s", n, o.message), G(null)); | ||
} | ||
@@ -377,3 +377,3 @@ } | ||
try { | ||
return we(e), !1; | ||
return Ee(e), !1; | ||
} catch { | ||
@@ -383,10 +383,10 @@ return !0; | ||
} | ||
function we(e) { | ||
function Ee(e) { | ||
return "" + e; | ||
} | ||
function Ee(e) { | ||
function Re(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)), we(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)), Ee(e); | ||
} | ||
var N = F.ReactCurrentOwner, Ke = { | ||
var V = D.ReactCurrentOwner, Ke = { | ||
key: !0, | ||
@@ -396,3 +396,3 @@ ref: !0, | ||
__source: !0 | ||
}, Re, _e, ne; | ||
}, _e, Ce, ne; | ||
ne = {}; | ||
@@ -416,5 +416,5 @@ function He(e) { | ||
function Ze(e, r) { | ||
if (typeof e.ref == "string" && N.current && r && N.current.stateNode !== r) { | ||
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); | ||
if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) { | ||
var n = T(V.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(V.current.type), e.ref), ne[n] = !0); | ||
} | ||
@@ -425,3 +425,3 @@ } | ||
var n = function() { | ||
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)); | ||
_e || (_e = !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)); | ||
}; | ||
@@ -437,3 +437,3 @@ n.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
var n = function() { | ||
_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)); | ||
Ce || (Ce = !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)); | ||
}; | ||
@@ -478,24 +478,24 @@ n.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
var l, a = {}, o = null, m = null; | ||
n !== void 0 && (Ee(n), o = "" + n), Xe(r) && (Ee(r.key), o = "" + r.key), He(r) && (m = r.ref, Ze(r, i)); | ||
n !== void 0 && (Re(n), o = "" + n), Xe(r) && (Re(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 d = e.defaultProps; | ||
for (l in d) | ||
a[l] === void 0 && (a[l] = d[l]); | ||
var f = e.defaultProps; | ||
for (l in f) | ||
a[l] === void 0 && (a[l] = f[l]); | ||
} | ||
if (o || m) { | ||
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
o && Qe(a, f), m && er(a, f); | ||
var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
o && Qe(a, p), m && er(a, p); | ||
} | ||
return rr(e, o, m, i, t, N.current, a); | ||
return rr(e, o, m, i, t, V.current, a); | ||
} | ||
} | ||
var te = F.ReactCurrentOwner, Ce = F.ReactDebugCurrentFrame; | ||
function W(e) { | ||
var te = D.ReactCurrentOwner, je = D.ReactDebugCurrentFrame; | ||
function A(e) { | ||
if (e) { | ||
var r = e._owner, n = q(e.type, e._source, r ? r.type : null); | ||
Ce.setExtraStackFrame(n); | ||
je.setExtraStackFrame(n); | ||
} else | ||
Ce.setExtraStackFrame(null); | ||
je.setExtraStackFrame(null); | ||
} | ||
@@ -507,3 +507,3 @@ var oe; | ||
} | ||
function je() { | ||
function Te() { | ||
{ | ||
@@ -531,6 +531,6 @@ if (te.current) { | ||
} | ||
var Te = {}; | ||
var ke = {}; | ||
function or(e) { | ||
{ | ||
var r = je(); | ||
var r = Te(); | ||
if (!r) { | ||
@@ -545,3 +545,3 @@ var n = typeof e == "string" ? e : e.displayName || e.name; | ||
} | ||
function ke(e, r) { | ||
function Oe(e, r) { | ||
{ | ||
@@ -552,10 +552,10 @@ if (!e._store || e._store.validated || e.key != null) | ||
var n = or(r); | ||
if (Te[n]) | ||
if (ke[n]) | ||
return; | ||
Te[n] = !0; | ||
ke[n] = !0; | ||
var t = ""; | ||
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); | ||
e && e._owner && e._owner !== te.current && (t = " It was passed a child from " + T(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); | ||
} | ||
} | ||
function Oe(e, r) { | ||
function Se(e, r) { | ||
{ | ||
@@ -567,3 +567,3 @@ if (typeof e != "object") | ||
var t = e[n]; | ||
ae(t) && ke(t, r); | ||
ae(t) && Oe(t, r); | ||
} | ||
@@ -576,3 +576,3 @@ else if (ae(e)) | ||
for (var l = i.call(e), a; !(a = l.next()).done; ) | ||
ae(a.value) && ke(a.value, r); | ||
ae(a.value) && Oe(a.value, r); | ||
} | ||
@@ -591,3 +591,3 @@ } | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === c)) | ||
r.$$typeof === u)) | ||
n = r.propTypes; | ||
@@ -612,10 +612,10 @@ else | ||
if (t !== "children" && t !== "key") { | ||
W(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), W(null); | ||
A(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), A(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (W(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), W(null)); | ||
e.ref !== null && (A(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), A(null)); | ||
} | ||
} | ||
function Se(e, r, n, t, i, l) { | ||
function Pe(e, r, n, t, i, l) { | ||
{ | ||
@@ -627,9 +627,9 @@ var a = Ne(e); | ||
var m = tr(i); | ||
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); | ||
m ? o += m : o += Te(); | ||
var f; | ||
e === null ? f = "null" : re(e) ? f = "array" : e !== void 0 && e.$$typeof === b ? (f = "<" + (T(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 f = nr(e, r, n, i, l); | ||
if (f == null) | ||
return f; | ||
var p = nr(e, r, n, i, l); | ||
if (p == null) | ||
return p; | ||
if (a) { | ||
@@ -640,4 +640,4 @@ var E = r.children; | ||
if (re(E)) { | ||
for (var A = 0; A < E.length; A++) | ||
Oe(E[A], e); | ||
for (var $ = 0; $ < E.length; $++) | ||
Se(E[$], e); | ||
Object.freeze && Object.freeze(E); | ||
@@ -647,19 +647,19 @@ } else | ||
else | ||
Oe(E, e); | ||
Se(E, e); | ||
} | ||
return e === x ? ir(f) : ar(f), f; | ||
return e === x ? ir(p) : ar(p), p; | ||
} | ||
} | ||
function sr(e, r, n) { | ||
return Se(e, r, n, !0); | ||
return Pe(e, r, n, !0); | ||
} | ||
function lr(e, r, n) { | ||
return Se(e, r, n, !1); | ||
return Pe(e, r, n, !1); | ||
} | ||
var ur = lr, cr = sr; | ||
V.Fragment = x, V.jsx = ur, V.jsxs = cr; | ||
}()), V; | ||
Y.Fragment = x, Y.jsx = ur, Y.jsxs = cr; | ||
}()), Y; | ||
} | ||
process.env.NODE_ENV === "production" ? se.exports = fr() : se.exports = pr(); | ||
var u = se.exports; | ||
process.env.NODE_ENV === "production" ? le.exports = fr() : le.exports = pr(); | ||
var c = le.exports; | ||
const vr = `@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap"); | ||
@@ -813,14 +813,14 @@ | ||
`; | ||
function hr(p) { | ||
const [b, R] = ie(p), x = dr(null), _ = (O) => { | ||
function hr(d) { | ||
const [b, R] = ie(d), x = dr(null), _ = (O) => { | ||
x.current && !x.current.contains(O.target) && R(!1); | ||
}; | ||
return Ae(() => (document.addEventListener("click", _, !0), () => { | ||
return se(() => (document.addEventListener("click", _, !0), () => { | ||
document.removeEventListener("click", _, !0); | ||
}), []), { ref: x, isComponentVisible: b, setIsComponentVisible: R }; | ||
} | ||
const Ie = "hudoro-input-dropdown-styles", gr = (p) => { | ||
if (!document.getElementById(Ie)) { | ||
const We = "hudoro-input-dropdown-styles", gr = (d) => { | ||
if (!document.getElementById(We)) { | ||
const b = document.createElement("style"); | ||
b.id = Ie, b.textContent = p, document.head.appendChild(b); | ||
b.id = We, b.textContent = d, document.head.appendChild(b); | ||
} | ||
@@ -830,3 +830,3 @@ }; | ||
const yr = ({ | ||
dropdownLists: p, | ||
dropdownLists: d, | ||
onChange: b, | ||
@@ -841,35 +841,39 @@ defaultValue: R, | ||
}) => { | ||
const [P, g] = ie(""), [c, y] = ie(), { isComponentVisible: D, ref: Y, setIsComponentVisible: M } = hr(!1), H = p == null ? void 0 : p.filter( | ||
const [P, g] = ie(""), [u, y] = ie(), { isComponentVisible: F, ref: M, setIsComponentVisible: U } = hr(!1), H = d == null ? void 0 : d.filter( | ||
(s) => s.label.toLowerCase().includes(P.toLowerCase()) | ||
), F = () => { | ||
M((s) => !s), g(""); | ||
), D = () => { | ||
U((s) => !s), g(""); | ||
}, h = (s, w) => { | ||
if (!_) | ||
y([{ label: s, value: w }]), b([{ label: s, value: w }]), M(!1); | ||
else if (c == null ? void 0 : c.find((j) => j.value === w)) { | ||
y([{ label: s, value: w }]), b([{ label: s, value: w }]), U(!1); | ||
else if (u == null ? void 0 : u.find((j) => j.value === w)) { | ||
const j = [ | ||
...c ? c.filter((X) => X.value !== w) : [] | ||
...u ? u.filter((X) => X.value !== w) : [] | ||
]; | ||
y(j), b(j); | ||
} else { | ||
const j = [...c || [], { label: s, value: w }]; | ||
const j = [...u || [], { label: s, value: w }]; | ||
y(j), b(j); | ||
} | ||
}; | ||
return Ae(() => { | ||
return se(() => { | ||
R && y(R); | ||
}, [R]), /* @__PURE__ */ u.jsxs( | ||
}, [R]), se(() => { | ||
if (u) | ||
for (let s of u) | ||
d.find((W) => W.value === s.value) || y([]); | ||
}, [d]), /* @__PURE__ */ c.jsxs( | ||
"div", | ||
{ | ||
className: `hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${D ? "active" : ""}`, | ||
ref: Y, | ||
onClick: F, | ||
className: `hsd-input-dropdown-container hsd-input-dropdown-size-${x} ${F ? "active" : ""}`, | ||
ref: M, | ||
onClick: D, | ||
children: [ | ||
/* @__PURE__ */ u.jsxs("div", { className: "hsd-input-dropdown-preview-container", children: [ | ||
S ? /* @__PURE__ */ u.jsx(u.Fragment, { children: K.cloneElement(S, { | ||
width: We(x), | ||
/* @__PURE__ */ c.jsxs("div", { className: "hsd-input-dropdown-preview-container", children: [ | ||
S ? /* @__PURE__ */ c.jsx(c.Fragment, { children: K.cloneElement(S, { | ||
width: Ae(x), | ||
color: "#939E99" | ||
}) }) : null, | ||
/* @__PURE__ */ u.jsx("div", { className: "hsd-input-dropdown-container-preview-item", children: (c == null ? void 0 : c.map( | ||
(s, w) => _ ? /* @__PURE__ */ u.jsx( | ||
/* @__PURE__ */ c.jsx("div", { className: "hsd-input-dropdown-container-preview-item", children: (u == null ? void 0 : u.map( | ||
(s, w) => _ ? /* @__PURE__ */ c.jsx( | ||
"p", | ||
@@ -882,7 +886,7 @@ { | ||
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(mr, { strokeWidth: 2, width: We(x) }) | ||
) : /* @__PURE__ */ c.jsx("p", { style: { minWidth: "max-content" }, children: s == null ? void 0 : s.label }, w) | ||
)) || /* @__PURE__ */ c.jsx("p", { className: "hsd-input-dropdown-placeholder", children: C || "Search" }) }), | ||
/* @__PURE__ */ c.jsx(mr, { strokeWidth: 2, width: Ae(x) }) | ||
] }), | ||
D ? /* @__PURE__ */ u.jsxs( | ||
F ? /* @__PURE__ */ c.jsxs( | ||
"div", | ||
@@ -893,5 +897,5 @@ { | ||
children: [ | ||
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( | ||
O ? /* @__PURE__ */ c.jsxs("div", { className: "hsd-input-dropdown-container-dropdown-search", children: [ | ||
/* @__PURE__ */ c.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ c.jsx(br, { strokeWidth: 2, width: 20 }) }), | ||
/* @__PURE__ */ c.jsx( | ||
"input", | ||
@@ -905,14 +909,14 @@ { | ||
] }) : null, | ||
/* @__PURE__ */ u.jsx("div", { className: "hsd-input-dropdwon-item-container", children: H.map((s, w) => /* @__PURE__ */ u.jsxs( | ||
/* @__PURE__ */ c.jsx("div", { className: "hsd-input-dropdwon-item-container", children: H.map((s, w) => /* @__PURE__ */ c.jsxs( | ||
"div", | ||
{ | ||
className: `hsd-input-dropdwon-item ${c != null && c.find((U) => U.value === s.value) ? "active" : ""}`, | ||
className: `hsd-input-dropdwon-item ${u != null && u.find((W) => W.value === s.value) ? "active" : ""}`, | ||
onClick: () => h(s.label, s.value), | ||
children: [ | ||
s.icon ? /* @__PURE__ */ u.jsx("div", { children: K.cloneElement(s.icon, { | ||
s.icon ? /* @__PURE__ */ c.jsx("div", { children: K.cloneElement(s.icon, { | ||
width: 16 | ||
}) }) : null, | ||
/* @__PURE__ */ u.jsxs("div", { children: [ | ||
/* @__PURE__ */ c.jsxs("div", { children: [ | ||
" ", | ||
/* @__PURE__ */ u.jsx("p", { children: s.label }) | ||
/* @__PURE__ */ c.jsx("p", { children: s.label }) | ||
] }) | ||
@@ -929,11 +933,11 @@ ] | ||
); | ||
}, br = ({ ...p }) => /* @__PURE__ */ u.jsxs( | ||
}, br = ({ ...d }) => /* @__PURE__ */ c.jsxs( | ||
"svg", | ||
{ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
...p, | ||
...d, | ||
viewBox: "0 0 20 20", | ||
fill: "none", | ||
children: [ | ||
/* @__PURE__ */ u.jsx( | ||
/* @__PURE__ */ c.jsx( | ||
"circle", | ||
@@ -950,3 +954,3 @@ { | ||
), | ||
/* @__PURE__ */ u.jsx( | ||
/* @__PURE__ */ c.jsx( | ||
"path", | ||
@@ -963,11 +967,11 @@ { | ||
} | ||
), mr = ({ ...p }) => /* @__PURE__ */ u.jsx( | ||
), mr = ({ ...d }) => /* @__PURE__ */ c.jsx( | ||
"svg", | ||
{ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
...p, | ||
...d, | ||
viewBox: "0 0 24 24", | ||
fill: "none", | ||
color: "#1976D2", | ||
children: /* @__PURE__ */ u.jsx( | ||
children: /* @__PURE__ */ c.jsx( | ||
"path", | ||
@@ -982,8 +986,8 @@ { | ||
} | ||
), We = (p) => { | ||
if (p === "sm") | ||
), Ae = (d) => { | ||
if (d === "sm") | ||
return 16; | ||
if (p === "md") | ||
if (d === "md") | ||
return 20; | ||
if (p === "lg") | ||
if (d === "lg") | ||
return 20; | ||
@@ -990,0 +994,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
(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={};/** | ||
(function(I,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(I=typeof globalThis<"u"?globalThis:I||self,b(I.Dropdown={},I.React))})(this,function(I,b){"use strict";var Z={exports:{}},Y={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/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={};/** | ||
*/var le;function Ae(){if(le)return Y;le=1;var d=b,m=Symbol.for("react.element"),_=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,C=d.__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,u={},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)&&(u[g]=v[g]);if(j&&j.defaultProps)for(g in v=j.defaultProps,v)u[g]===void 0&&(u[g]=v[g]);return{$$typeof:m,type:j,key:w,ref:W,props:u,_owner:C.current}}return Y.Fragment=_,Y.jsx=P,Y.jsxs=P,Y}var M={};/** | ||
* @license React | ||
@@ -18,7 +18,7 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/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` | ||
*/var ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var d=b,m=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"),u=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),z=Symbol.iterator,J="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var r=z&&e[z]||e[J];return typeof r=="function"?r:null}var F=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];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,N=!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||N||T||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===u||e.$$typeof===P||e.$$typeof===j||e.$$typeof===v||e.$$typeof===fe||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 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 Je(e,e.render,"ForwardRef");case u: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,U=0,ve,he,ge,be,me,xe,ye;function we(){}we.__reactDisabledLog=!0;function Ge(){{if(U===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})}U++}}function $e(){{if(U--,U===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})})}U<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=F.ReactCurrentDispatcher,re;function G(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,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function Ee(e,r){if(!e||ne)return"";{var n=$.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,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(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(` | ||
`),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 R=` | ||
`+o[f].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,R),R}while(f>=1&&p>=0);break}}}finally{ne=!1,ee.current=l,$e(),Error.prepareStackTrace=i}var L=e?e.displayName||e.name:"",We=L?G(L):"";return typeof e=="function"&&$.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 G(e);switch(e){case D:return G("Suspense");case g:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return He(e.render);case u: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 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 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 B=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"&&B.current&&r&&B.current.stateNode!==r){var n=S(B.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(B.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: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&&(je(n),o=""+n),tr(r)&&(je(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,B.current,a)}}var ae=F.ReactCurrentOwner,ke=F.ReactDebugCurrentFrame;function V(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===m}function Oe(){{if(ae.current){var e=S(ae.current.type);if(e)return` | ||
@@ -29,3 +29,3 @@ Check the render method of \``+e+"`."}return""}}function ur(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return` | ||
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"); | ||
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)+"."),V(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),V(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===u))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"){V(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",t),V(null);break}}e.ref!==null&&(V(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),V(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 x=ur(i);x?o+=x:o+=Oe();var f;e===null?f="null":te(e)?f="array":e!==void 0&&e.$$typeof===m?(f="<"+(S(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=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(p):dr(p),p}}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;M.Fragment=y,M.jsx=hr,M.jsxs=gr}()),M}process.env.NODE_ENV==="production"?Z.exports=Ae():Z.exports=Ne();var c=Z.exports;const Ve=`@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap"); | ||
@@ -177,2 +177,2 @@ * { | ||
} | ||
`;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"})}); | ||
`;function Le(d){const[m,_]=b.useState(d),y=b.useRef(null),C=O=>{y.current&&!y.current.contains(O.target)&&_(!1)};return b.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[]),{ref:y,isComponentVisible:m,setIsComponentVisible:_}}const ce="hudoro-input-dropdown-styles";(d=>{if(!document.getElementById(ce)){const m=document.createElement("style");m.id=ce,m.textContent=d,document.head.appendChild(m)}})(Ve);const Ye=({dropdownLists:d,onChange:m,defaultValue:_,size:y="md",multiSelect:C,searchAble:O,iconLeft:P,placeholder:j,onSearch:v})=>{const[D,g]=b.useState(""),[u,w]=b.useState(),{isComponentVisible:W,ref:z,setIsComponentVisible:J}=Le(!1),Q=d==null?void 0:d.filter(s=>s.label.toLowerCase().includes(D.toLowerCase())),F=()=>{J(s=>!s),g("")},h=(s,E)=>{if(!C)w([{label:s,value:E}]),m([{label:s,value:E}]),J(!1);else if(u==null?void 0:u.find(T=>T.value===E)){const T=[...u?u.filter(q=>q.value!==E):[]];w(T),m(T)}else{const T=[...u||[],{label:s,value:E}];w(T),m(T)}};return b.useEffect(()=>{_&&w(_)},[_]),b.useEffect(()=>{if(u)for(let s of u)d.find(N=>N.value===s.value)||w([])},[d]),c.jsxs("div",{className:`hsd-input-dropdown-container hsd-input-dropdown-size-${y} ${W?"active":""}`,ref:z,onClick:F,children:[c.jsxs("div",{className:"hsd-input-dropdown-preview-container",children:[P?c.jsx(c.Fragment,{children:b.cloneElement(P,{width:de(y),color:"#939E99"})}):null,c.jsx("div",{className:"hsd-input-dropdown-container-preview-item",children:(u==null?void 0:u.map((s,E)=>C?c.jsx("p",{style:{minWidth:"max-content"},className:"hsd-input-dropdown-preview-item",children:s==null?void 0:s.label},E):c.jsx("p",{style:{minWidth:"max-content"},children:s==null?void 0:s.label},E)))||c.jsx("p",{className:"hsd-input-dropdown-placeholder",children:j||"Search"})}),c.jsx(Ue,{strokeWidth:2,width:de(y)})]}),W?c.jsxs("div",{className:"hsd-input-dropdown-lists-container",onClick:s=>s.stopPropagation(),children:[O?c.jsxs("div",{className:"hsd-input-dropdown-container-dropdown-search",children:[c.jsx("div",{style:{display:"flex"},children:c.jsx(Me,{strokeWidth:2,width:20})}),c.jsx("input",{onChange:s=>{g(s.target.value),v&&v(s.target.value)}})]}):null,c.jsx("div",{className:"hsd-input-dropdwon-item-container",children:Q.map((s,E)=>c.jsxs("div",{className:`hsd-input-dropdwon-item ${u!=null&&u.find(N=>N.value===s.value)?"active":""}`,onClick:()=>h(s.label,s.value),children:[s.icon?c.jsx("div",{children:b.cloneElement(s.icon,{width:16})}):null,c.jsxs("div",{children:[" ",c.jsx("p",{children:s.label})]})]},E))})]}):null]})},Me=({...d})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 20 20",fill:"none",children:[c.jsx("circle",{cx:"9.80547",cy:"9.8055",r:"7.49047",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M15.0153 15.4043L17.9519 18.3333",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ue=({...d})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...d,viewBox:"0 0 24 24",fill:"none",color:"#1976D2",children:c.jsx("path",{d:"M4 9L12 17L20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),de=d=>{if(d==="sm")return 16;if(d==="md")return 20;if(d==="lg")return 20};I.Dropdown=Ye,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@hudoro/dropdown", | ||
"version": "0.0.1-beta.10", | ||
"version": "0.0.2-beta.0", | ||
"description": "dropdown component for Hudoro UI", | ||
@@ -5,0 +5,0 @@ "author": "Prawito Hudoro", |
56461
1189