@starasia/dropdown 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,647 +1,6 @@
1
- import or, { useState as Z, useRef as H, useEffect as N, forwardRef as gn } from "react";
2
- var wr = { exports: {} }, G = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var zr;
13
- function bn() {
14
- if (zr)
15
- return G;
16
- zr = 1;
17
- var u = or, p = Symbol.for("react.element"), x = Symbol.for("react.fragment"), k = Object.prototype.hasOwnProperty, f = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function P(R, g, C) {
19
- var _, $ = {}, E = null, L = null;
20
- C !== void 0 && (E = "" + C), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (L = g.ref);
21
- for (_ in g)
22
- k.call(g, _) && !h.hasOwnProperty(_) && ($[_] = g[_]);
23
- if (R && R.defaultProps)
24
- for (_ in g = R.defaultProps, g)
25
- $[_] === void 0 && ($[_] = g[_]);
26
- return { $$typeof: p, type: R, key: E, ref: L, props: $, _owner: f.current };
27
- }
28
- return G.Fragment = x, G.jsx = P, G.jsxs = P, G;
29
- }
30
- var X = {};
31
- /**
32
- * @license React
33
- * react-jsx-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
- var Nr;
41
- function xn() {
42
- return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && function() {
43
- var u = or, p = Symbol.for("react.element"), x = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), R = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), A = Symbol.iterator, m = "@@iterator";
44
- function o(r) {
45
- if (r === null || typeof r != "object")
46
- return null;
47
- var n = A && r[A] || r[m];
48
- return typeof n == "function" ? n : null;
49
- }
50
- var v = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function l(r) {
52
- {
53
- for (var n = arguments.length, e = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
54
- e[a - 1] = arguments[a];
55
- w("error", r, e);
56
- }
57
- }
58
- function w(r, n, e) {
59
- {
60
- var a = v.ReactDebugCurrentFrame, d = a.getStackAddendum();
61
- d !== "" && (n += "%s", e = e.concat([d]));
62
- var c = e.map(function(s) {
63
- return String(s);
64
- });
65
- c.unshift("Warning: " + n), Function.prototype.apply.call(console[r], console, c);
66
- }
67
- }
68
- var j = !1, z = !1, B = !1, ir = !1, Q = !1, rr;
69
- rr = Symbol.for("react.module.reference");
70
- function Y(r) {
71
- return !!(typeof r == "string" || typeof r == "function" || r === k || r === h || Q || r === f || r === C || r === _ || ir || r === L || j || z || B || typeof r == "object" && r !== null && (r.$$typeof === E || r.$$typeof === $ || r.$$typeof === P || r.$$typeof === R || r.$$typeof === g || // This needs to include all possible module reference object
72
- // types supported by any Flight configuration anywhere since
73
- // we don't know which Flight build this will end up being used
74
- // with.
75
- r.$$typeof === rr || r.getModuleId !== void 0));
76
- }
77
- function T(r, n, e) {
78
- var a = r.displayName;
79
- if (a)
80
- return a;
81
- var d = n.displayName || n.name || "";
82
- return d !== "" ? e + "(" + d + ")" : e;
83
- }
84
- function O(r) {
85
- return r.displayName || "Context";
86
- }
87
- function D(r) {
88
- if (r == null)
89
- return null;
90
- if (typeof r.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
91
- return r.displayName || r.name || null;
92
- if (typeof r == "string")
93
- return r;
94
- switch (r) {
95
- case k:
96
- return "Fragment";
97
- case x:
98
- return "Portal";
99
- case h:
100
- return "Profiler";
101
- case f:
102
- return "StrictMode";
103
- case C:
104
- return "Suspense";
105
- case _:
106
- return "SuspenseList";
107
- }
108
- if (typeof r == "object")
109
- switch (r.$$typeof) {
110
- case R:
111
- var n = r;
112
- return O(n) + ".Consumer";
113
- case P:
114
- var e = r;
115
- return O(e._context) + ".Provider";
116
- case g:
117
- return T(r, r.render, "ForwardRef");
118
- case $:
119
- var a = r.displayName || null;
120
- return a !== null ? a : D(r.type) || "Memo";
121
- case E: {
122
- var d = r, c = d._payload, s = d._init;
123
- try {
124
- return D(s(c));
125
- } catch {
126
- return null;
127
- }
128
- }
129
- }
130
- return null;
131
- }
132
- var S = Object.assign, M = 0, gr, br, xr, mr, yr, kr, Er;
133
- function Rr() {
134
- }
135
- Rr.__reactDisabledLog = !0;
136
- function Mr() {
137
- {
138
- if (M === 0) {
139
- gr = console.log, br = console.info, xr = console.warn, mr = console.error, yr = console.group, kr = console.groupCollapsed, Er = console.groupEnd;
140
- var r = {
141
- configurable: !0,
142
- enumerable: !0,
143
- value: Rr,
144
- writable: !0
145
- };
146
- Object.defineProperties(console, {
147
- info: r,
148
- log: r,
149
- warn: r,
150
- error: r,
151
- group: r,
152
- groupCollapsed: r,
153
- groupEnd: r
154
- });
155
- }
156
- M++;
157
- }
158
- }
159
- function Vr() {
160
- {
161
- if (M--, M === 0) {
162
- var r = {
163
- configurable: !0,
164
- enumerable: !0,
165
- writable: !0
166
- };
167
- Object.defineProperties(console, {
168
- log: S({}, r, {
169
- value: gr
170
- }),
171
- info: S({}, r, {
172
- value: br
173
- }),
174
- warn: S({}, r, {
175
- value: xr
176
- }),
177
- error: S({}, r, {
178
- value: mr
179
- }),
180
- group: S({}, r, {
181
- value: yr
182
- }),
183
- groupCollapsed: S({}, r, {
184
- value: kr
185
- }),
186
- groupEnd: S({}, r, {
187
- value: Er
188
- })
189
- });
190
- }
191
- M < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
- }
193
- }
194
- var sr = v.ReactCurrentDispatcher, dr;
195
- function nr(r, n, e) {
196
- {
197
- if (dr === void 0)
198
- try {
199
- throw Error();
200
- } catch (d) {
201
- var a = d.stack.trim().match(/\n( *(at )?)/);
202
- dr = a && a[1] || "";
203
- }
204
- return `
205
- ` + dr + r;
206
- }
207
- }
208
- var lr = !1, er;
209
- {
210
- var Ur = typeof WeakMap == "function" ? WeakMap : Map;
211
- er = new Ur();
212
- }
213
- function _r(r, n) {
214
- if (!r || lr)
215
- return "";
216
- {
217
- var e = er.get(r);
218
- if (e !== void 0)
219
- return e;
220
- }
221
- var a;
222
- lr = !0;
223
- var d = Error.prepareStackTrace;
224
- Error.prepareStackTrace = void 0;
225
- var c;
226
- c = sr.current, sr.current = null, Mr();
227
- try {
228
- if (n) {
229
- var s = function() {
230
- throw Error();
231
- };
232
- if (Object.defineProperty(s.prototype, "props", {
233
- set: function() {
234
- throw Error();
235
- }
236
- }), typeof Reflect == "object" && Reflect.construct) {
237
- try {
238
- Reflect.construct(s, []);
239
- } catch (F) {
240
- a = F;
241
- }
242
- Reflect.construct(r, [], s);
243
- } else {
244
- try {
245
- s.call();
246
- } catch (F) {
247
- a = F;
248
- }
249
- r.call(s.prototype);
250
- }
251
- } else {
252
- try {
253
- throw Error();
254
- } catch (F) {
255
- a = F;
256
- }
257
- r();
258
- }
259
- } catch (F) {
260
- if (F && a && typeof F.stack == "string") {
261
- for (var i = F.stack.split(`
262
- `), I = a.stack.split(`
263
- `), b = i.length - 1, y = I.length - 1; b >= 1 && y >= 0 && i[b] !== I[y]; )
264
- y--;
265
- for (; b >= 1 && y >= 0; b--, y--)
266
- if (i[b] !== I[y]) {
267
- if (b !== 1 || y !== 1)
268
- do
269
- if (b--, y--, y < 0 || i[b] !== I[y]) {
270
- var W = `
271
- ` + i[b].replace(" at new ", " at ");
272
- return r.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", r.displayName)), typeof r == "function" && er.set(r, W), W;
273
- }
274
- while (b >= 1 && y >= 0);
275
- break;
276
- }
277
- }
278
- } finally {
279
- lr = !1, sr.current = c, Vr(), Error.prepareStackTrace = d;
280
- }
281
- var q = r ? r.displayName || r.name : "", V = q ? nr(q) : "";
282
- return typeof r == "function" && er.set(r, V), V;
283
- }
284
- function qr(r, n, e) {
285
- return _r(r, !1);
286
- }
287
- function Hr(r) {
288
- var n = r.prototype;
289
- return !!(n && n.isReactComponent);
290
- }
291
- function ar(r, n, e) {
292
- if (r == null)
293
- return "";
294
- if (typeof r == "function")
295
- return _r(r, Hr(r));
296
- if (typeof r == "string")
297
- return nr(r);
298
- switch (r) {
299
- case C:
300
- return nr("Suspense");
301
- case _:
302
- return nr("SuspenseList");
303
- }
304
- if (typeof r == "object")
305
- switch (r.$$typeof) {
306
- case g:
307
- return qr(r.render);
308
- case $:
309
- return ar(r.type, n, e);
310
- case E: {
311
- var a = r, d = a._payload, c = a._init;
312
- try {
313
- return ar(c(d), n, e);
314
- } catch {
315
- }
316
- }
317
- }
318
- return "";
319
- }
320
- var J = Object.prototype.hasOwnProperty, jr = {}, Cr = v.ReactDebugCurrentFrame;
321
- function tr(r) {
322
- if (r) {
323
- var n = r._owner, e = ar(r.type, r._source, n ? n.type : null);
324
- Cr.setExtraStackFrame(e);
325
- } else
326
- Cr.setExtraStackFrame(null);
327
- }
328
- function Jr(r, n, e, a, d) {
329
- {
330
- var c = Function.call.bind(J);
331
- for (var s in r)
332
- if (c(r, s)) {
333
- var i = void 0;
334
- try {
335
- if (typeof r[s] != "function") {
336
- var I = Error((a || "React class") + ": " + e + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw I.name = "Invariant Violation", I;
338
- }
339
- i = r[s](n, s, a, e, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (b) {
341
- i = b;
342
- }
343
- i && !(i instanceof Error) && (tr(d), l("%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).", a || "React class", e, s, typeof i), tr(null)), i instanceof Error && !(i.message in jr) && (jr[i.message] = !0, tr(d), l("Failed %s type: %s", e, i.message), tr(null));
344
- }
345
- }
346
- }
347
- var Kr = Array.isArray;
348
- function cr(r) {
349
- return Kr(r);
350
- }
351
- function Gr(r) {
352
- {
353
- var n = typeof Symbol == "function" && Symbol.toStringTag, e = n && r[Symbol.toStringTag] || r.constructor.name || "Object";
354
- return e;
355
- }
356
- }
357
- function Xr(r) {
358
- try {
359
- return Tr(r), !1;
360
- } catch {
361
- return !0;
362
- }
363
- }
364
- function Tr(r) {
365
- return "" + r;
366
- }
367
- function Or(r) {
368
- if (Xr(r))
369
- return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gr(r)), Tr(r);
370
- }
371
- var K = v.ReactCurrentOwner, Zr = {
372
- key: !0,
373
- ref: !0,
374
- __self: !0,
375
- __source: !0
376
- }, Sr, Pr, ur;
377
- ur = {};
378
- function Qr(r) {
379
- if (J.call(r, "ref")) {
380
- var n = Object.getOwnPropertyDescriptor(r, "ref").get;
381
- if (n && n.isReactWarning)
382
- return !1;
383
- }
384
- return r.ref !== void 0;
385
- }
386
- function rn(r) {
387
- if (J.call(r, "key")) {
388
- var n = Object.getOwnPropertyDescriptor(r, "key").get;
389
- if (n && n.isReactWarning)
390
- return !1;
391
- }
392
- return r.key !== void 0;
393
- }
394
- function nn(r, n) {
395
- if (typeof r.ref == "string" && K.current && n && K.current.stateNode !== n) {
396
- var e = D(K.current.type);
397
- ur[e] || (l('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', D(K.current.type), r.ref), ur[e] = !0);
398
- }
399
- }
400
- function en(r, n) {
401
- {
402
- var e = function() {
403
- Sr || (Sr = !0, l("%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));
404
- };
405
- e.isReactWarning = !0, Object.defineProperty(r, "key", {
406
- get: e,
407
- configurable: !0
408
- });
409
- }
410
- }
411
- function an(r, n) {
412
- {
413
- var e = function() {
414
- Pr || (Pr = !0, l("%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));
415
- };
416
- e.isReactWarning = !0, Object.defineProperty(r, "ref", {
417
- get: e,
418
- configurable: !0
419
- });
420
- }
421
- }
422
- var tn = function(r, n, e, a, d, c, s) {
423
- var i = {
424
- // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: p,
426
- // Built-in properties that belong on the element
427
- type: r,
428
- key: n,
429
- ref: e,
430
- props: s,
431
- // Record the component responsible for creating this element.
432
- _owner: c
433
- };
434
- return i._store = {}, Object.defineProperty(i._store, "validated", {
435
- configurable: !1,
436
- enumerable: !1,
437
- writable: !0,
438
- value: !1
439
- }), Object.defineProperty(i, "_self", {
440
- configurable: !1,
441
- enumerable: !1,
442
- writable: !1,
443
- value: a
444
- }), Object.defineProperty(i, "_source", {
445
- configurable: !1,
446
- enumerable: !1,
447
- writable: !1,
448
- value: d
449
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
450
- };
451
- function on(r, n, e, a, d) {
452
- {
453
- var c, s = {}, i = null, I = null;
454
- e !== void 0 && (Or(e), i = "" + e), rn(n) && (Or(n.key), i = "" + n.key), Qr(n) && (I = n.ref, nn(n, d));
455
- for (c in n)
456
- J.call(n, c) && !Zr.hasOwnProperty(c) && (s[c] = n[c]);
457
- if (r && r.defaultProps) {
458
- var b = r.defaultProps;
459
- for (c in b)
460
- s[c] === void 0 && (s[c] = b[c]);
461
- }
462
- if (i || I) {
463
- var y = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
464
- i && en(s, y), I && an(s, y);
465
- }
466
- return tn(r, i, I, d, a, K.current, s);
467
- }
468
- }
469
- var pr = v.ReactCurrentOwner, Ir = v.ReactDebugCurrentFrame;
470
- function U(r) {
471
- if (r) {
472
- var n = r._owner, e = ar(r.type, r._source, n ? n.type : null);
473
- Ir.setExtraStackFrame(e);
474
- } else
475
- Ir.setExtraStackFrame(null);
476
- }
477
- var fr;
478
- fr = !1;
479
- function vr(r) {
480
- return typeof r == "object" && r !== null && r.$$typeof === p;
481
- }
482
- function Dr() {
483
- {
484
- if (pr.current) {
485
- var r = D(pr.current.type);
486
- if (r)
487
- return `
488
-
489
- Check the render method of \`` + r + "`.";
490
- }
491
- return "";
492
- }
493
- }
494
- function sn(r) {
495
- {
496
- if (r !== void 0) {
497
- var n = r.fileName.replace(/^.*[\\\/]/, ""), e = r.lineNumber;
498
- return `
499
-
500
- Check your code at ` + n + ":" + e + ".";
501
- }
502
- return "";
503
- }
504
- }
505
- var Fr = {};
506
- function dn(r) {
507
- {
508
- var n = Dr();
509
- if (!n) {
510
- var e = typeof r == "string" ? r : r.displayName || r.name;
511
- e && (n = `
512
-
513
- Check the top-level render call using <` + e + ">.");
514
- }
515
- return n;
516
- }
517
- }
518
- function $r(r, n) {
519
- {
520
- if (!r._store || r._store.validated || r.key != null)
521
- return;
522
- r._store.validated = !0;
523
- var e = dn(n);
524
- if (Fr[e])
525
- return;
526
- Fr[e] = !0;
527
- var a = "";
528
- r && r._owner && r._owner !== pr.current && (a = " It was passed a child from " + D(r._owner.type) + "."), U(r), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', e, a), U(null);
529
- }
530
- }
531
- function Ar(r, n) {
532
- {
533
- if (typeof r != "object")
534
- return;
535
- if (cr(r))
536
- for (var e = 0; e < r.length; e++) {
537
- var a = r[e];
538
- vr(a) && $r(a, n);
539
- }
540
- else if (vr(r))
541
- r._store && (r._store.validated = !0);
542
- else if (r) {
543
- var d = o(r);
544
- if (typeof d == "function" && d !== r.entries)
545
- for (var c = d.call(r), s; !(s = c.next()).done; )
546
- vr(s.value) && $r(s.value, n);
547
- }
548
- }
549
- }
550
- function ln(r) {
551
- {
552
- var n = r.type;
553
- if (n == null || typeof n == "string")
554
- return;
555
- var e;
556
- if (typeof n == "function")
557
- e = n.propTypes;
558
- else if (typeof n == "object" && (n.$$typeof === g || // Note: Memo only checks outer props here.
559
- // Inner props are checked in the reconciler.
560
- n.$$typeof === $))
561
- e = n.propTypes;
562
- else
563
- return;
564
- if (e) {
565
- var a = D(n);
566
- Jr(e, r.props, "prop", a, r);
567
- } else if (n.PropTypes !== void 0 && !fr) {
568
- fr = !0;
569
- var d = D(n);
570
- l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
571
- }
572
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
- }
574
- }
575
- function cn(r) {
576
- {
577
- for (var n = Object.keys(r.props), e = 0; e < n.length; e++) {
578
- var a = n[e];
579
- if (a !== "children" && a !== "key") {
580
- U(r), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), U(null);
581
- break;
582
- }
583
- }
584
- r.ref !== null && (U(r), l("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
585
- }
586
- }
587
- var Wr = {};
588
- function Lr(r, n, e, a, d, c) {
589
- {
590
- var s = Y(r);
591
- if (!s) {
592
- var i = "";
593
- (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.");
594
- var I = sn(d);
595
- I ? i += I : i += Dr();
596
- var b;
597
- r === null ? b = "null" : cr(r) ? b = "array" : r !== void 0 && r.$$typeof === p ? (b = "<" + (D(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof r, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
598
- }
599
- var y = on(r, n, e, d, c);
600
- if (y == null)
601
- return y;
602
- if (s) {
603
- var W = n.children;
604
- if (W !== void 0)
605
- if (a)
606
- if (cr(W)) {
607
- for (var q = 0; q < W.length; q++)
608
- Ar(W[q], r);
609
- Object.freeze && Object.freeze(W);
610
- } else
611
- l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
- else
613
- Ar(W, r);
614
- }
615
- if (J.call(n, "key")) {
616
- var V = D(r), F = Object.keys(n).filter(function(wn) {
617
- return wn !== "key";
618
- }), hr = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!Wr[V + hr]) {
620
- var hn = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
621
- l(`A props object containing a "key" prop is being spread into JSX:
622
- let props = %s;
623
- <%s {...props} />
624
- React keys must be passed directly to JSX without using spread:
625
- let props = %s;
626
- <%s key={someKey} {...props} />`, hr, V, hn, V), Wr[V + hr] = !0;
627
- }
628
- }
629
- return r === k ? cn(y) : ln(y), y;
630
- }
631
- }
632
- function un(r, n, e) {
633
- return Lr(r, n, e, !0);
634
- }
635
- function pn(r, n, e) {
636
- return Lr(r, n, e, !1);
637
- }
638
- var fn = pn, vn = un;
639
- X.Fragment = k, X.jsx = fn, X.jsxs = vn;
640
- }()), X;
641
- }
642
- process.env.NODE_ENV === "production" ? wr.exports = bn() : wr.exports = xn();
643
- var t = wr.exports;
644
- const mn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
1
+ import { jsx as r, jsxs as p, Fragment as q } from "react/jsx-runtime";
2
+ import F, { useState as k, useRef as y, useEffect as b, forwardRef as M } from "react";
3
+ const P = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
645
4
  * {
646
5
  margin: 0;
647
6
  padding: 0;
@@ -844,12 +203,6 @@ const mn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
844
203
  white-space: nowrap; */
845
204
  }
846
205
 
847
- /* remove default focus outline when container is focused for keyboard handling */
848
- .starasia-input-dropdown-lists-container:focus {
849
- outline: none;
850
- box-shadow: none;
851
- }
852
-
853
206
  .starasia-input-dropdown-lists-container-bottom {
854
207
  top: 100%;
855
208
  margin-top: var(--starasia-ui-dropdown-spacing-xs);
@@ -922,10 +275,6 @@ const mn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
922
275
  /* box-shadow: 0px 0px 0px -1px #f0f0f0; */
923
276
  }
924
277
 
925
- .starasia-input-dropdwon-item.highlight {
926
- background-color: rgba(100, 181, 246, 0.21);
927
- }
928
-
929
278
  .starasia-input-dropdwon-item-disable {
930
279
  color: var(--starasia-ui-dropdown-color-disable) !important;
931
280
  pointer-events: none;
@@ -1056,23 +405,23 @@ const mn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
1056
405
  width: 100%;
1057
406
  }
1058
407
  `;
1059
- function yn(u) {
1060
- const [p, x] = Z(u), k = H(null), f = (h) => {
1061
- k.current && !k.current.contains(h.target) && x(!1);
408
+ function V(a) {
409
+ const [i, t] = k(a), c = y(null), o = (e) => {
410
+ c.current && !c.current.contains(e.target) && t(!1);
1062
411
  };
1063
- return N(() => (document.addEventListener("click", f, !0), () => {
1064
- document.removeEventListener("click", f, !0);
1065
- }), []), { ref: k, isComponentVisible: p, setIsComponentVisible: x };
412
+ return b(() => (document.addEventListener("click", o, !0), () => {
413
+ document.removeEventListener("click", o, !0);
414
+ }), []), { ref: c, isComponentVisible: i, setIsComponentVisible: t };
1066
415
  }
1067
- const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
416
+ const J = ({ ...a }) => /* @__PURE__ */ r(
1068
417
  "svg",
1069
418
  {
1070
419
  xmlns: "http://www.w3.org/2000/svg",
1071
- ...u,
420
+ ...a,
1072
421
  viewBox: "0 0 24 24",
1073
422
  fill: "none",
1074
423
  color: "#939E99",
1075
- children: /* @__PURE__ */ t.jsx(
424
+ children: /* @__PURE__ */ r(
1076
425
  "path",
1077
426
  {
1078
427
  d: "M4 9L12 17L20 9",
@@ -1083,15 +432,15 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1083
432
  }
1084
433
  )
1085
434
  }
1086
- ), En = ({ ...u }) => /* @__PURE__ */ t.jsxs(
435
+ ), G = ({ ...a }) => /* @__PURE__ */ p(
1087
436
  "svg",
1088
437
  {
1089
438
  xmlns: "http://www.w3.org/2000/svg",
1090
- ...u,
439
+ ...a,
1091
440
  viewBox: "0 0 20 20",
1092
441
  fill: "none",
1093
442
  children: [
1094
- /* @__PURE__ */ t.jsx(
443
+ /* @__PURE__ */ r(
1095
444
  "circle",
1096
445
  {
1097
446
  cx: "9.80547",
@@ -1103,7 +452,7 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1103
452
  strokeLinejoin: "round"
1104
453
  }
1105
454
  ),
1106
- /* @__PURE__ */ t.jsx(
455
+ /* @__PURE__ */ r(
1107
456
  "path",
1108
457
  {
1109
458
  d: "M15.0153 15.4043L17.9519 18.3333",
@@ -1115,19 +464,19 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1115
464
  )
1116
465
  ]
1117
466
  }
1118
- ), Rn = ({ isChecked: u }) => /* @__PURE__ */ t.jsxs("div", { className: "checkbox-wrapper-30", children: [
1119
- /* @__PURE__ */ t.jsxs("span", { className: "checkbox", children: [
1120
- /* @__PURE__ */ t.jsx(
467
+ ), K = ({ isChecked: a }) => /* @__PURE__ */ p("div", { className: "checkbox-wrapper-30", children: [
468
+ /* @__PURE__ */ p("span", { className: "checkbox", children: [
469
+ /* @__PURE__ */ r(
1121
470
  "input",
1122
471
  {
1123
472
  type: "checkbox",
1124
473
  style: { pointerEvents: "none" },
1125
- checked: u
474
+ checked: a
1126
475
  }
1127
476
  ),
1128
- /* @__PURE__ */ t.jsx("svg", { children: /* @__PURE__ */ t.jsx("use", { xlinkHref: "#checkbox-30", className: "checkbox" }) })
477
+ /* @__PURE__ */ r("svg", { children: /* @__PURE__ */ r("use", { xlinkHref: "#checkbox-30", className: "checkbox" }) })
1129
478
  ] }),
1130
- /* @__PURE__ */ t.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ t.jsx("symbol", { id: "checkbox-30", viewBox: "0 0 22 22", children: /* @__PURE__ */ t.jsx(
479
+ /* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ r("symbol", { id: "checkbox-30", viewBox: "0 0 22 22", children: /* @__PURE__ */ r(
1131
480
  "path",
1132
481
  {
1133
482
  fill: "none",
@@ -1135,98 +484,58 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1135
484
  d: "M5.5,11.3L9,14.8L20.2,3.3l0,0c-0.5-1-1.5-1.8-2.7-1.8h-13c-1.7,0-3,1.3-3,3v13c0,1.7,1.3,3,3,3h13 c1.7,0,3-1.3,3-3v-13c0-0.4-0.1-0.8-0.3-1.2"
1136
485
  }
1137
486
  ) }) })
1138
- ] }), _n = gn(
487
+ ] }), Q = M(
1139
488
  ({
1140
- positionDropdown: u,
1141
- dropdownLists: p,
1142
- isComponentVisible: x,
1143
- searchAble: k,
1144
- onSearch: f,
1145
- value: h,
1146
- handleChangeValue: P,
1147
- multiSelect: R,
1148
- searchValue: g
1149
- }, C) => {
1150
- const [_, $] = Z(0), [E, L] = Z(), A = H(null), m = H(null);
1151
- return N(() => {
1152
- if (A.current) {
1153
- const o = A.current.getBoundingClientRect();
1154
- $(o.width);
1155
- }
1156
- }, [A, x]), N(() => {
1157
- p && g ? p.forEach((o) => {
1158
- if (o.label.startsWith(g || "")) {
1159
- L(o.value);
489
+ positionDropdown: a,
490
+ dropdownLists: i,
491
+ isComponentVisible: t,
492
+ searchAble: c,
493
+ onSearch: o,
494
+ value: e,
495
+ handleChangeValue: h,
496
+ multiSelect: l,
497
+ searchValue: v
498
+ }, I) => {
499
+ const [C, R] = k(0), [$, z] = k(), w = y(null);
500
+ return b(() => {
501
+ if (w.current) {
502
+ const n = w.current.getBoundingClientRect();
503
+ R(n.width);
504
+ }
505
+ }, [w, t]), b(() => {
506
+ i && v ? i.forEach((n) => {
507
+ if (n.label.startsWith(v || "")) {
508
+ z(n.value);
1160
509
  return;
1161
510
  }
1162
- }) : L(void 0);
1163
- }, [g, p]), N(() => {
1164
- const o = m.current || (C == null ? void 0 : C.current);
1165
- if (!o || !x)
1166
- return;
1167
- const v = p.filter((w) => !w.disable), l = (w) => {
1168
- if (w.key === "ArrowDown") {
1169
- if (w.preventDefault(), !v.length)
1170
- return;
1171
- const j = v.findIndex((B) => B.value === E), z = j === -1 ? 0 : (j + 1) % v.length;
1172
- L(v[z].value);
1173
- } else if (w.key === "ArrowUp") {
1174
- if (w.preventDefault(), !v.length)
1175
- return;
1176
- const j = v.findIndex((B) => B.value === E), z = j <= 0 ? v.length - 1 : j - 1;
1177
- L(v[z].value);
1178
- } else if (w.key === "Enter") {
1179
- if (w.preventDefault(), !E)
1180
- return;
1181
- const j = p.find((z) => z.value === E);
1182
- j && !j.disable && P(j.label, j.value);
1183
- }
1184
- };
1185
- return o.addEventListener("keydown", l), () => o.removeEventListener("keydown", l);
1186
- }, [x, p, E, P, C]), N(() => {
1187
- if (!E)
1188
- return;
1189
- const o = A.current;
1190
- if (!o)
1191
- return;
1192
- const v = o.querySelector(`[data-value="${E}"]`);
1193
- v && v.scrollIntoView && v.scrollIntoView({ block: "nearest" });
1194
- }, [E]), /* @__PURE__ */ t.jsx(t.Fragment, { children: x ? /* @__PURE__ */ t.jsxs(
511
+ }) : z(void 0);
512
+ }, [v, i]), /* @__PURE__ */ r(q, { children: t ? /* @__PURE__ */ p(
1195
513
  "div",
1196
514
  {
1197
515
  className: "starasia-input-dropdown-lists-container",
1198
- onClick: (o) => o.stopPropagation(),
1199
- ref: (o) => {
1200
- if (m.current = o, typeof C == "function")
1201
- C(o);
1202
- else if (C)
1203
- try {
1204
- C.current = o;
1205
- } catch {
1206
- }
1207
- },
1208
- tabIndex: 0,
516
+ onClick: (n) => n.stopPropagation(),
517
+ ref: I,
1209
518
  children: [
1210
- k ? /* @__PURE__ */ t.jsxs(
519
+ c ? /* @__PURE__ */ p(
1211
520
  "div",
1212
521
  {
1213
522
  className: "starasia-input-dropdown-container-dropdown-search",
1214
523
  style: {
1215
- order: u == "bottom" ? 0 : 2,
524
+ order: a == "bottom" ? 0 : 2,
1216
525
  position: "sticky",
1217
526
  top: 0,
1218
527
  bottom: 0,
1219
528
  zIndex: 1
1220
529
  },
1221
530
  children: [
1222
- /* @__PURE__ */ t.jsx("div", { style: { display: "flex" }, children: /* @__PURE__ */ t.jsx(En, { strokeWidth: 2, width: 20 }) }),
1223
- /* @__PURE__ */ t.jsx(
531
+ /* @__PURE__ */ r("div", { style: { display: "flex" }, children: /* @__PURE__ */ r(G, { strokeWidth: 2, width: 20 }) }),
532
+ /* @__PURE__ */ r(
1224
533
  "input",
1225
534
  {
1226
- onChange: (o) => {
1227
- f && f(o.target.value);
535
+ onChange: (n) => {
536
+ o && o(n.target.value);
1228
537
  },
1229
- value: g,
538
+ value: v,
1230
539
  autoFocus: !0,
1231
540
  style: { width: "100%" }
1232
541
  }
@@ -1234,55 +543,54 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1234
543
  ]
1235
544
  }
1236
545
  ) : null,
1237
- /* @__PURE__ */ t.jsx(
546
+ /* @__PURE__ */ r(
1238
547
  "div",
1239
548
  {
1240
- className: `starasia-input-dropdwon-item-container ${R ? "multi" : ""}`,
1241
- ref: A,
1242
- children: p.map((o, v) => {
1243
- const l = !!(h != null && h.find((w) => w.value === o.value));
1244
- return /* @__PURE__ */ t.jsxs(
549
+ className: `starasia-input-dropdwon-item-container ${l ? "multi" : ""}`,
550
+ ref: w,
551
+ children: i.map((n, f) => {
552
+ const x = !!(e != null && e.find((E) => E.value === n.value));
553
+ return /* @__PURE__ */ p(
1245
554
  "div",
1246
555
  {
1247
- "data-value": o.value,
1248
- className: `starasia-input-dropdwon-item ${l ? "active" : " "} ${E === o.value ? "highlight" : ""} ${o.disable ? "starasia-input-dropdwon-item-disable" : null}`,
1249
- onClick: () => P(o.label, o.value),
556
+ className: `starasia-input-dropdwon-item ${x ? "active" : " "} ${n.disable ? "starasia-input-dropdwon-item-disable" : null}`,
557
+ onClick: () => h(n.label, n.value),
1250
558
  children: [
1251
- R ? /* @__PURE__ */ t.jsx("div", { style: { marginRight: "8px" }, children: /* @__PURE__ */ t.jsx(Rn, { isChecked: l }) }) : null,
1252
- o.icon ? /* @__PURE__ */ t.jsx("div", { children: or.cloneElement(o.icon, {
559
+ l ? /* @__PURE__ */ r("div", { style: { marginRight: "8px" }, children: /* @__PURE__ */ r(K, { isChecked: x }) }) : null,
560
+ n.icon ? /* @__PURE__ */ r("div", { children: F.cloneElement(n.icon, {
1253
561
  width: 16
1254
562
  }) }) : null,
1255
- /* @__PURE__ */ t.jsxs("div", { children: [
1256
- /* @__PURE__ */ t.jsx(
563
+ /* @__PURE__ */ p("div", { children: [
564
+ /* @__PURE__ */ r(
1257
565
  "p",
1258
566
  {
1259
- className: `starasia-input-dropdwon-item-text ${l ? "active" : null} ${o.disable ? "starasia-input-dropdwon-item-disable" : null}`,
567
+ className: `starasia-input-dropdwon-item-text ${x ? "active" : null} ${n.disable ? "starasia-input-dropdwon-item-disable" : null}`,
1260
568
  style: {
1261
569
  textWrap: "nowrap",
1262
- width: `${_ - 12}px`,
570
+ width: `${C - 12}px`,
1263
571
  overflow: "hidden",
1264
572
  textOverflow: "ellipsis"
1265
573
  },
1266
- children: o.label
574
+ children: n.label
1267
575
  }
1268
576
  ),
1269
- o.description ? /* @__PURE__ */ t.jsx(
577
+ n.description ? /* @__PURE__ */ r(
1270
578
  "p",
1271
579
  {
1272
- className: `starasia-input-dropdwon-item-text-description ${l ? "active" : null} ${o.disable ? "starasia-input-dropdwon-item-disable" : null}`,
580
+ className: `starasia-input-dropdwon-item-text-description ${x ? "active" : null} ${n.disable ? "starasia-input-dropdwon-item-disable" : null}`,
1273
581
  style: {
1274
582
  textWrap: "nowrap",
1275
- width: `${_ - 12}px`,
583
+ width: `${C - 12}px`,
1276
584
  overflow: "hidden",
1277
585
  textOverflow: "ellipsis"
1278
586
  },
1279
- children: o.description
587
+ children: n.description
1280
588
  }
1281
589
  ) : null
1282
590
  ] })
1283
591
  ]
1284
592
  },
1285
- v
593
+ f
1286
594
  );
1287
595
  })
1288
596
  }
@@ -1291,156 +599,149 @@ const kn = ({ ...u }) => /* @__PURE__ */ t.jsx(
1291
599
  }
1292
600
  ) : null });
1293
601
  }
1294
- ), jn = ({
1295
- children: u,
1296
- handleChangePosition: p
602
+ ), T = ({
603
+ children: a,
604
+ handleChangePosition: i
1297
605
  }) => {
1298
- const x = H(null);
1299
- N(() => {
1300
- var P;
1301
- const f = () => {
1302
- if (x.current) {
1303
- let R = x.current.parentElement;
1304
- for (; R && !k(R); )
1305
- R = R.parentElement;
1306
- R && p();
606
+ const t = y(null);
607
+ b(() => {
608
+ var h;
609
+ const o = () => {
610
+ if (t.current) {
611
+ let l = t.current.parentElement;
612
+ for (; l && !c(l); )
613
+ l = l.parentElement;
614
+ l && i();
1307
615
  }
1308
616
  };
1309
- let h = (P = x.current) == null ? void 0 : P.parentElement;
1310
- for (; h && !k(h); )
1311
- h = h.parentElement;
1312
- return h && h.addEventListener("scroll", f), f(), () => {
1313
- h && h.removeEventListener("scroll", f);
617
+ let e = (h = t.current) == null ? void 0 : h.parentElement;
618
+ for (; e && !c(e); )
619
+ e = e.parentElement;
620
+ return e && e.addEventListener("scroll", o), o(), () => {
621
+ e && e.removeEventListener("scroll", o);
1314
622
  };
1315
623
  }, []);
1316
- const k = (f) => f && (f.scrollHeight > f.clientHeight || f.scrollWidth > f.clientWidth);
1317
- return /* @__PURE__ */ t.jsx("div", { ref: x, children: u });
1318
- }, Br = "starasia-input-dropdown-styles", Cn = (u) => {
1319
- if (!document.getElementById(Br)) {
1320
- const p = document.createElement("style");
1321
- p.id = Br, p.textContent = u, document.head.appendChild(p);
624
+ const c = (o) => o && (o.scrollHeight > o.clientHeight || o.scrollWidth > o.clientWidth);
625
+ return /* @__PURE__ */ r("div", { ref: t, children: a });
626
+ }, A = "starasia-input-dropdown-styles", U = (a) => {
627
+ if (!document.getElementById(A)) {
628
+ const i = document.createElement("style");
629
+ i.id = A, i.textContent = a, document.head.appendChild(i);
1322
630
  }
1323
631
  };
1324
- Cn(mn);
1325
- const Sn = ({
1326
- dropdownLists: u,
1327
- onChange: p,
1328
- defaultValue: x,
1329
- size: k = "md",
1330
- multiSelect: f,
1331
- searchAble: h,
1332
- iconLeft: P,
1333
- placeholder: R,
1334
- onSearch: g,
1335
- error: C,
1336
- onBlur: _,
1337
- onFocus: $,
1338
- disable: E,
1339
- searchValue: L
632
+ U(P);
633
+ const _ = ({
634
+ dropdownLists: a,
635
+ onChange: i,
636
+ defaultValue: t,
637
+ size: c = "md",
638
+ multiSelect: o,
639
+ searchAble: e,
640
+ iconLeft: h,
641
+ placeholder: l,
642
+ onSearch: v,
643
+ error: I,
644
+ onBlur: C,
645
+ onFocus: R,
646
+ disable: $,
647
+ searchValue: z
1340
648
  }) => {
1341
- const A = H(), [m, o] = Z([]), [v, l] = Z(""), w = H(null), { isComponentVisible: j, ref: z, setIsComponentVisible: B } = yn(!1), ir = () => {
1342
- B((T) => !T);
1343
- }, Q = (T, O) => {
1344
- if (!f)
1345
- o([{ label: T, value: O }]), p([{ label: T, value: O }]), B(!1);
1346
- else if (m == null ? void 0 : m.find((S) => S.value === O)) {
1347
- const S = [
1348
- ...m ? m.filter((M) => M.value !== O) : []
649
+ const w = y(), [n, f] = k([]), [x, E] = k(""), g = y(null), { isComponentVisible: B, ref: L, setIsComponentVisible: N } = V(!1), H = () => {
650
+ N((s) => !s);
651
+ }, j = (s, d) => {
652
+ if (!o)
653
+ f([{ label: s, value: d }]), i([{ label: s, value: d }]), N(!1);
654
+ else if (n == null ? void 0 : n.find((u) => u.value === d)) {
655
+ const u = [
656
+ ...n ? n.filter((D) => D.value !== d) : []
1349
657
  ];
1350
- o(S), p(S);
658
+ f(u), i(u);
1351
659
  } else {
1352
- const S = [...m || [], { label: T, value: O }];
1353
- o(S), p(S);
660
+ const u = [...n || [], { label: s, value: d }];
661
+ f(u), i(u);
1354
662
  }
1355
663
  };
1356
- N(() => {
1357
- JSON.stringify(A.current) === JSON.stringify(x) || (A.current = x, o(A.current || []));
1358
- }, [x]);
1359
- const rr = () => m.length ? f ? m == null ? void 0 : m.map((T, O) => /* @__PURE__ */ t.jsxs("div", { className: "starasia-input-dropdown-preview-item", children: [
1360
- /* @__PURE__ */ t.jsx("p", { style: { minWidth: "max-content" }, children: T == null ? void 0 : T.label }, O),
1361
- /* @__PURE__ */ t.jsx(
1362
- Tn,
664
+ b(() => {
665
+ JSON.stringify(w.current) === JSON.stringify(t) || (w.current = t, f(w.current || []));
666
+ }, [t]);
667
+ const O = () => n.length ? o ? n == null ? void 0 : n.map((s, d) => /* @__PURE__ */ p("div", { className: "starasia-input-dropdown-preview-item", children: [
668
+ /* @__PURE__ */ r("p", { style: { minWidth: "max-content" }, children: s == null ? void 0 : s.label }, d),
669
+ /* @__PURE__ */ r(
670
+ X,
1363
671
  {
1364
- onClick: () => Q(T.label, T.value)
672
+ onClick: () => j(s.label, s.value)
1365
673
  }
1366
674
  )
1367
- ] })) : /* @__PURE__ */ t.jsx("p", { style: { minWidth: "max-content" }, children: m == null ? void 0 : m[0].label }) : /* @__PURE__ */ t.jsx("p", { className: "starasia-input-dropdown-placeholder", children: R }), Y = () => {
1368
- if (z.current && w.current) {
1369
- const T = window.innerHeight, O = z.current.getBoundingClientRect(), D = w.current.getBoundingClientRect(), S = O.bottom + D.height;
1370
- w.current.style.left = `${O.left}px`, w.current.style.width = `${O.width}px`, S >= T - 10 ? (w.current.style.top = `${O.top - D.height - 5}px`, l("top")) : (w.current.style.top = `${O.top + O.height}px`, l("bottom"));
675
+ ] })) : /* @__PURE__ */ r("p", { style: { minWidth: "max-content" }, children: n == null ? void 0 : n[0].label }) : /* @__PURE__ */ r("p", { className: "starasia-input-dropdown-placeholder", children: l }), m = () => {
676
+ if (L.current && g.current) {
677
+ const s = window.innerHeight, d = L.current.getBoundingClientRect(), W = g.current.getBoundingClientRect(), u = d.bottom + W.height;
678
+ g.current.style.left = `${d.left}px`, g.current.style.width = `${d.width}px`, u >= s - 10 ? (g.current.style.top = `${d.top - W.height - 5}px`, E("top")) : (g.current.style.top = `${d.top + d.height}px`, E("bottom"));
1371
679
  }
1372
680
  };
1373
- return N(() => (window.addEventListener("scroll", Y), window.addEventListener("resize", Y), () => {
1374
- window.removeEventListener("scroll", Y), window.removeEventListener("resize", Y);
1375
- }), []), N(() => {
1376
- Y();
1377
- }, [j]), N(() => {
1378
- j && w.current && !h && setTimeout(() => {
1379
- try {
1380
- w.current && w.current.focus();
1381
- } catch {
1382
- }
1383
- }, 0);
1384
- }, [j, h]), /* @__PURE__ */ t.jsx(jn, { handleChangePosition: Y, children: /* @__PURE__ */ t.jsxs(
681
+ return b(() => (window.addEventListener("scroll", m), window.addEventListener("resize", m), () => {
682
+ window.removeEventListener("scroll", m), window.removeEventListener("resize", m);
683
+ }), []), b(() => {
684
+ m();
685
+ }, [B]), /* @__PURE__ */ r(T, { handleChangePosition: m, children: /* @__PURE__ */ p(
1385
686
  "div",
1386
687
  {
1387
- className: `starasia-input-dropdown-container ${E ? "disable" : ""} starasia-input-dropdown-size-${k} ${j ? "active" : ""} ${C ? "error" : ""}`,
1388
- ref: z,
1389
- onClick: ir,
688
+ className: `starasia-input-dropdown-container ${$ ? "disable" : ""} starasia-input-dropdown-size-${c} ${B ? "active" : ""} ${I ? "error" : ""}`,
689
+ ref: L,
690
+ onClick: H,
1390
691
  children: [
1391
- /* @__PURE__ */ t.jsxs("div", { className: "starasia-input-dropdown-preview-container", children: [
1392
- P ? /* @__PURE__ */ t.jsx(t.Fragment, { children: or.cloneElement(P, {
1393
- width: Yr(k),
692
+ /* @__PURE__ */ p("div", { className: "starasia-input-dropdown-preview-container", children: [
693
+ h ? /* @__PURE__ */ r(q, { children: F.cloneElement(h, {
694
+ width: S(c),
1394
695
  color: "#939E99",
1395
696
  style: {
1396
697
  color: "#939E99"
1397
698
  }
1398
699
  }) }) : null,
1399
- /* @__PURE__ */ t.jsx(
700
+ /* @__PURE__ */ r(
1400
701
  "div",
1401
702
  {
1402
703
  className: "starasia-input-dropdown-container-preview-item",
1403
704
  tabIndex: 100,
1404
- onBlur: _,
1405
- onFocus: $,
1406
- children: rr()
705
+ onBlur: C,
706
+ onFocus: R,
707
+ children: O()
1407
708
  }
1408
709
  ),
1409
- /* @__PURE__ */ t.jsx(
1410
- kn,
710
+ /* @__PURE__ */ r(
711
+ J,
1411
712
  {
1412
713
  strokeWidth: 2,
1413
- width: Yr(k),
714
+ width: S(c),
1414
715
  style: { color: "#939E99" }
1415
716
  }
1416
717
  )
1417
718
  ] }),
1418
- /* @__PURE__ */ t.jsx(
1419
- _n,
719
+ /* @__PURE__ */ r(
720
+ Q,
1420
721
  {
1421
- dropdownLists: u,
1422
- handleChangeValue: Q,
1423
- isComponentVisible: j,
1424
- positionDropdown: v,
1425
- searchAble: !!h,
1426
- value: m,
1427
- onSearch: g,
1428
- ref: w,
1429
- multiSelect: f,
1430
- searchValue: L
722
+ dropdownLists: a,
723
+ handleChangeValue: j,
724
+ isComponentVisible: B,
725
+ positionDropdown: x,
726
+ searchAble: !!e,
727
+ value: n,
728
+ onSearch: v,
729
+ ref: g,
730
+ multiSelect: o,
731
+ searchValue: z
1431
732
  }
1432
733
  )
1433
734
  ]
1434
735
  }
1435
736
  ) });
1436
- }, Yr = (u) => {
1437
- if (u === "sm")
737
+ }, S = (a) => {
738
+ if (a === "sm")
1438
739
  return 16;
1439
- if (u === "md")
740
+ if (a === "md")
1440
741
  return 16;
1441
- if (u === "lg")
742
+ if (a === "lg")
1442
743
  return 20;
1443
- }, Tn = (u) => /* @__PURE__ */ t.jsx(
744
+ }, X = (a) => /* @__PURE__ */ r(
1444
745
  "svg",
1445
746
  {
1446
747
  xmlns: "http://www.w3.org/2000/svg",
@@ -1448,8 +749,8 @@ const Sn = ({
1448
749
  height: "18",
1449
750
  viewBox: "0 0 18 18",
1450
751
  fill: "none",
1451
- ...u,
1452
- children: /* @__PURE__ */ t.jsx(
752
+ ...a,
753
+ children: /* @__PURE__ */ r(
1453
754
  "path",
1454
755
  {
1455
756
  d: "M12 6L6 12M6.00001 6L12 12",
@@ -1462,5 +763,5 @@ const Sn = ({
1462
763
  }
1463
764
  );
1464
765
  export {
1465
- Sn as Dropdown
766
+ _ as Dropdown
1466
767
  };