@commander-services/cmd-dropdown-portal 1.3.1 → 1.4.1
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +176 -170
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Ce from "react";
|
|
2
|
-
import
|
|
2
|
+
import A, { useState as fr } from "react";
|
|
3
3
|
import dr from "react-dom";
|
|
4
|
-
var
|
|
4
|
+
var B = { exports: {} }, Y = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,15 +15,15 @@ var Te;
|
|
|
15
15
|
function vr() {
|
|
16
16
|
if (Te) return Y;
|
|
17
17
|
Te = 1;
|
|
18
|
-
var
|
|
19
|
-
function T(
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
for (
|
|
23
|
-
if (
|
|
24
|
-
return { $$typeof:
|
|
18
|
+
var E = A, m = Symbol.for("react.element"), R = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, S = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function T(_, f, y) {
|
|
20
|
+
var l, d = {}, w = null, x = null;
|
|
21
|
+
y !== void 0 && (w = "" + y), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (x = f.ref);
|
|
22
|
+
for (l in f) h.call(f, l) && !k.hasOwnProperty(l) && (d[l] = f[l]);
|
|
23
|
+
if (_ && _.defaultProps) for (l in f = _.defaultProps, f) d[l] === void 0 && (d[l] = f[l]);
|
|
24
|
+
return { $$typeof: m, type: _, key: w, ref: x, props: d, _owner: S.current };
|
|
25
25
|
}
|
|
26
|
-
return Y.Fragment =
|
|
26
|
+
return Y.Fragment = R, Y.jsx = T, Y.jsxs = T, Y;
|
|
27
27
|
}
|
|
28
28
|
var $ = {};
|
|
29
29
|
/**
|
|
@@ -38,15 +38,15 @@ var $ = {};
|
|
|
38
38
|
var Oe;
|
|
39
39
|
function pr() {
|
|
40
40
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var
|
|
41
|
+
var E = A, m = Symbol.for("react.element"), R = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), W = Symbol.iterator, Se = "@@iterator";
|
|
42
42
|
function ke(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var r =
|
|
45
|
+
var r = W && e[W] || e[Se];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var j =
|
|
49
|
-
function
|
|
48
|
+
var j = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function v(e) {
|
|
50
50
|
{
|
|
51
51
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
52
52
|
t[n - 1] = arguments[n];
|
|
@@ -63,10 +63,10 @@ function pr() {
|
|
|
63
63
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var je = !1, De = !1,
|
|
66
|
+
var je = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Q;
|
|
67
67
|
Q = Symbol.for("react.module.reference");
|
|
68
68
|
function Le(e) {
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === k || Ie || e === S || e === y || e === l || Ae || e === x || je || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === d || e.$$typeof === T || e.$$typeof === _ || e.$$typeof === f || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
@@ -85,35 +85,35 @@ function pr() {
|
|
|
85
85
|
function O(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
|
-
if (typeof e.tag == "number" &&
|
|
88
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
89
|
return e.displayName || e.name || null;
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case g:
|
|
94
|
-
return "Fragment";
|
|
95
93
|
case h:
|
|
94
|
+
return "Fragment";
|
|
95
|
+
case R:
|
|
96
96
|
return "Portal";
|
|
97
97
|
case k:
|
|
98
98
|
return "Profiler";
|
|
99
99
|
case S:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case y:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case l:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case _:
|
|
109
109
|
var r = e;
|
|
110
110
|
return ee(r) + ".Consumer";
|
|
111
111
|
case T:
|
|
112
112
|
var t = e;
|
|
113
113
|
return ee(t._context) + ".Provider";
|
|
114
|
-
case
|
|
114
|
+
case f:
|
|
115
115
|
return Ye(e, e.render, "ForwardRef");
|
|
116
|
-
case
|
|
116
|
+
case d:
|
|
117
117
|
var n = e.displayName || null;
|
|
118
118
|
return n !== null ? n : O(e.type) || "Memo";
|
|
119
119
|
case w: {
|
|
@@ -186,30 +186,30 @@ function pr() {
|
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
I < 0 &&
|
|
189
|
+
I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var K = j.ReactCurrentDispatcher,
|
|
193
|
-
function
|
|
192
|
+
var K = j.ReactCurrentDispatcher, J;
|
|
193
|
+
function V(e, r, t) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (J === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (i) {
|
|
199
199
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
-
|
|
200
|
+
J = n && n[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + J + e;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var q = !1, M;
|
|
207
207
|
{
|
|
208
|
-
var
|
|
209
|
-
M = new
|
|
208
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
M = new Ve();
|
|
210
210
|
}
|
|
211
211
|
function le(e, r) {
|
|
212
|
-
if (!e ||
|
|
212
|
+
if (!e || q)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
215
|
var t = M.get(e);
|
|
@@ -217,7 +217,7 @@ function pr() {
|
|
|
217
217
|
return t;
|
|
218
218
|
}
|
|
219
219
|
var n;
|
|
220
|
-
|
|
220
|
+
q = !0;
|
|
221
221
|
var i = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var u;
|
|
@@ -234,81 +234,81 @@ function pr() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(o, []);
|
|
237
|
-
} catch (
|
|
238
|
-
n =
|
|
237
|
+
} catch (g) {
|
|
238
|
+
n = g;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(e, [], o);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
o.call();
|
|
244
|
-
} catch (
|
|
245
|
-
n =
|
|
244
|
+
} catch (g) {
|
|
245
|
+
n = g;
|
|
246
246
|
}
|
|
247
247
|
e.call(o.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
n =
|
|
252
|
+
} catch (g) {
|
|
253
|
+
n = g;
|
|
254
254
|
}
|
|
255
255
|
e();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var a =
|
|
260
|
-
`),
|
|
261
|
-
`),
|
|
257
|
+
} catch (g) {
|
|
258
|
+
if (g && n && typeof g.stack == "string") {
|
|
259
|
+
for (var a = g.stack.split(`
|
|
260
|
+
`), p = n.stack.split(`
|
|
261
|
+
`), s = a.length - 1, c = p.length - 1; s >= 1 && c >= 0 && a[s] !== p[c]; )
|
|
262
262
|
c--;
|
|
263
|
-
for (;
|
|
264
|
-
if (a[
|
|
265
|
-
if (
|
|
263
|
+
for (; s >= 1 && c >= 0; s--, c--)
|
|
264
|
+
if (a[s] !== p[c]) {
|
|
265
|
+
if (s !== 1 || c !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` + a[
|
|
270
|
-
return e.displayName &&
|
|
267
|
+
if (s--, c--, c < 0 || a[s] !== p[c]) {
|
|
268
|
+
var b = `
|
|
269
|
+
` + a[s].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, b), b;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (s >= 1 && c >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
q = !1, K.current = u, We(), Error.prepareStackTrace = i;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
279
|
+
var F = e ? e.displayName || e.name : "", C = F ? V(F) : "";
|
|
280
280
|
return typeof e == "function" && M.set(e, C), C;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Me(e, r, t) {
|
|
283
283
|
return le(e, !1);
|
|
284
284
|
}
|
|
285
285
|
function Ue(e) {
|
|
286
286
|
var r = e.prototype;
|
|
287
287
|
return !!(r && r.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function U(e, r, t) {
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
293
293
|
return le(e, Ue(e));
|
|
294
294
|
if (typeof e == "string")
|
|
295
|
-
return
|
|
295
|
+
return V(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
298
|
-
return
|
|
299
|
-
case
|
|
300
|
-
return
|
|
297
|
+
case y:
|
|
298
|
+
return V("Suspense");
|
|
299
|
+
case l:
|
|
300
|
+
return V("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
return
|
|
304
|
+
case f:
|
|
305
|
+
return Me(e.render);
|
|
306
|
+
case d:
|
|
307
|
+
return U(e.type, r, t);
|
|
308
308
|
case w: {
|
|
309
309
|
var n = e, i = n._payload, u = n._init;
|
|
310
310
|
try {
|
|
311
|
-
return
|
|
311
|
+
return U(u(i), r, t);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -316,9 +316,9 @@ function pr() {
|
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
318
|
var L = Object.prototype.hasOwnProperty, ce = {}, fe = j.ReactDebugCurrentFrame;
|
|
319
|
-
function
|
|
319
|
+
function N(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var r = e._owner, t =
|
|
321
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
322
322
|
fe.setExtraStackFrame(t);
|
|
323
323
|
} else
|
|
324
324
|
fe.setExtraStackFrame(null);
|
|
@@ -331,22 +331,22 @@ function pr() {
|
|
|
331
331
|
var a = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof e[o] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw p.name = "Invariant Violation", p;
|
|
336
336
|
}
|
|
337
337
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
a =
|
|
338
|
+
} catch (s) {
|
|
339
|
+
a = s;
|
|
340
340
|
}
|
|
341
|
-
a && !(a instanceof Error) && (
|
|
341
|
+
a && !(a instanceof Error) && (N(i), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), N(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, N(i), v("Failed %s type: %s", t, a.message), N(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
var Be = Array.isArray;
|
|
346
|
+
function z(e) {
|
|
347
|
+
return Be(e);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Ke(e) {
|
|
350
350
|
{
|
|
351
351
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
352
|
return t;
|
|
@@ -364,7 +364,7 @@ function pr() {
|
|
|
364
364
|
}
|
|
365
365
|
function ve(e) {
|
|
366
366
|
if (Je(e))
|
|
367
|
-
return
|
|
367
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), de(e);
|
|
368
368
|
}
|
|
369
369
|
var pe = j.ReactCurrentOwner, qe = {
|
|
370
370
|
key: !0,
|
|
@@ -388,13 +388,13 @@ function pr() {
|
|
|
388
388
|
}
|
|
389
389
|
return e.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function He(e, r) {
|
|
392
392
|
typeof e.ref == "string" && pe.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Xe(e, r) {
|
|
395
395
|
{
|
|
396
396
|
var t = function() {
|
|
397
|
-
Ee || (Ee = !0,
|
|
397
|
+
Ee || (Ee = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
398
398
|
};
|
|
399
399
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
400
400
|
get: t,
|
|
@@ -405,7 +405,7 @@ function pr() {
|
|
|
405
405
|
function Ze(e, r) {
|
|
406
406
|
{
|
|
407
407
|
var t = function() {
|
|
408
|
-
me || (me = !0,
|
|
408
|
+
me || (me = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
409
409
|
};
|
|
410
410
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
411
411
|
get: t,
|
|
@@ -416,7 +416,7 @@ function pr() {
|
|
|
416
416
|
var Qe = function(e, r, t, n, i, u, o) {
|
|
417
417
|
var a = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
|
-
$$typeof:
|
|
419
|
+
$$typeof: m,
|
|
420
420
|
// Built-in properties that belong on the element
|
|
421
421
|
type: e,
|
|
422
422
|
key: r,
|
|
@@ -444,39 +444,39 @@ function pr() {
|
|
|
444
444
|
};
|
|
445
445
|
function er(e, r, t, n, i) {
|
|
446
446
|
{
|
|
447
|
-
var u, o = {}, a = null,
|
|
448
|
-
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (
|
|
447
|
+
var u, o = {}, a = null, p = null;
|
|
448
|
+
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (p = r.ref, He(r, i));
|
|
449
449
|
for (u in r)
|
|
450
450
|
L.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
|
|
451
451
|
if (e && e.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for (u in
|
|
454
|
-
o[u] === void 0 && (o[u] =
|
|
452
|
+
var s = e.defaultProps;
|
|
453
|
+
for (u in s)
|
|
454
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
455
455
|
}
|
|
456
|
-
if (a ||
|
|
456
|
+
if (a || p) {
|
|
457
457
|
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
-
a &&
|
|
458
|
+
a && Xe(o, c), p && Ze(o, c);
|
|
459
459
|
}
|
|
460
|
-
return Qe(e, a,
|
|
460
|
+
return Qe(e, a, p, i, n, pe.current, o);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var G = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
|
|
464
464
|
function D(e) {
|
|
465
465
|
if (e) {
|
|
466
|
-
var r = e._owner, t =
|
|
466
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
467
467
|
ge.setExtraStackFrame(t);
|
|
468
468
|
} else
|
|
469
469
|
ge.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
471
|
+
var H;
|
|
472
|
+
H = !1;
|
|
473
473
|
function X(e) {
|
|
474
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
474
|
+
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function he() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var e = O(
|
|
478
|
+
if (G.current) {
|
|
479
|
+
var e = O(G.current.type);
|
|
480
480
|
if (e)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -488,10 +488,10 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
function rr(e) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
|
-
var
|
|
491
|
+
var ye = {};
|
|
492
492
|
function tr(e) {
|
|
493
493
|
{
|
|
494
|
-
var r =
|
|
494
|
+
var r = he();
|
|
495
495
|
if (!r) {
|
|
496
496
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
497
|
t && (r = `
|
|
@@ -507,18 +507,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
509
|
var t = tr(r);
|
|
510
|
-
if (
|
|
510
|
+
if (ye[t])
|
|
511
511
|
return;
|
|
512
|
-
|
|
512
|
+
ye[t] = !0;
|
|
513
513
|
var n = "";
|
|
514
|
-
e && e._owner && e._owner !==
|
|
514
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + O(e._owner.type) + "."), D(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function be(e, r) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof e != "object")
|
|
520
520
|
return;
|
|
521
|
-
if (
|
|
521
|
+
if (z(e))
|
|
522
522
|
for (var t = 0; t < e.length; t++) {
|
|
523
523
|
var n = e[t];
|
|
524
524
|
X(n) && Re(n, r);
|
|
@@ -541,21 +541,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
var t;
|
|
542
542
|
if (typeof r == "function")
|
|
543
543
|
t = r.propTypes;
|
|
544
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
544
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
|
-
r.$$typeof ===
|
|
546
|
+
r.$$typeof === d))
|
|
547
547
|
t = r.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (t) {
|
|
551
551
|
var n = O(r);
|
|
552
552
|
Ne(t, e.props, "prop", n, e);
|
|
553
|
-
} else if (r.PropTypes !== void 0 && !
|
|
554
|
-
|
|
553
|
+
} else if (r.PropTypes !== void 0 && !H) {
|
|
554
|
+
H = !0;
|
|
555
555
|
var i = O(r);
|
|
556
|
-
|
|
556
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function ar(e) {
|
|
@@ -563,11 +563,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
563
563
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
564
564
|
var n = r[t];
|
|
565
565
|
if (n !== "children" && n !== "key") {
|
|
566
|
-
D(e),
|
|
566
|
+
D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
e.ref !== null && (D(e),
|
|
570
|
+
e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var _e = {};
|
|
@@ -577,42 +577,42 @@ Check the top-level render call using <` + t + ">.");
|
|
|
577
577
|
if (!o) {
|
|
578
578
|
var a = "";
|
|
579
579
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
-
var
|
|
581
|
-
|
|
582
|
-
var
|
|
583
|
-
e === null ?
|
|
580
|
+
var p = rr();
|
|
581
|
+
p ? a += p : a += he();
|
|
582
|
+
var s;
|
|
583
|
+
e === null ? s = "null" : z(e) ? s = "array" : e !== void 0 && e.$$typeof === m ? (s = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
584
584
|
}
|
|
585
585
|
var c = er(e, r, t, i, u);
|
|
586
586
|
if (c == null)
|
|
587
587
|
return c;
|
|
588
588
|
if (o) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
var b = r.children;
|
|
590
|
+
if (b !== void 0)
|
|
591
591
|
if (n)
|
|
592
|
-
if (
|
|
593
|
-
for (var
|
|
594
|
-
be(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (z(b)) {
|
|
593
|
+
for (var F = 0; F < b.length; F++)
|
|
594
|
+
be(b[F], e);
|
|
595
|
+
Object.freeze && Object.freeze(b);
|
|
596
596
|
} else
|
|
597
|
-
|
|
597
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
be(
|
|
599
|
+
be(b, e);
|
|
600
600
|
}
|
|
601
601
|
if (L.call(r, "key")) {
|
|
602
|
-
var C = O(e),
|
|
602
|
+
var C = O(e), g = Object.keys(r).filter(function(cr) {
|
|
603
603
|
return cr !== "key";
|
|
604
|
-
}),
|
|
605
|
-
if (!_e[C +
|
|
606
|
-
var lr =
|
|
607
|
-
|
|
604
|
+
}), Z = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!_e[C + Z]) {
|
|
606
|
+
var lr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`,
|
|
612
|
+
<%s key={someKey} {...props} />`, Z, C, lr, C), _e[C + Z] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return e ===
|
|
615
|
+
return e === h ? ar(c) : nr(c), c;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function or(e, r, t) {
|
|
@@ -622,70 +622,76 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
622
|
return we(e, r, t, !1);
|
|
623
623
|
}
|
|
624
624
|
var ur = ir, sr = or;
|
|
625
|
-
$.Fragment =
|
|
625
|
+
$.Fragment = h, $.jsx = ur, $.jsxs = sr;
|
|
626
626
|
}()), $;
|
|
627
627
|
}
|
|
628
628
|
var Pe;
|
|
629
629
|
function Er() {
|
|
630
|
-
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ?
|
|
630
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? B.exports = vr() : B.exports = pr()), B.exports;
|
|
631
631
|
}
|
|
632
632
|
var mr = Er();
|
|
633
|
-
const gr = (
|
|
634
|
-
const
|
|
635
|
-
|
|
633
|
+
const gr = (E, m) => {
|
|
634
|
+
const R = (h) => {
|
|
635
|
+
E.current && !E.current.contains(h.target) && m(h);
|
|
636
636
|
};
|
|
637
|
-
Ce.useEffect(() => (document.addEventListener("click",
|
|
638
|
-
document.removeEventListener("click",
|
|
637
|
+
Ce.useEffect(() => (document.addEventListener("click", R, { capture: !0 }), () => {
|
|
638
|
+
document.removeEventListener("click", R, { capture: !0 });
|
|
639
639
|
}));
|
|
640
|
-
},
|
|
641
|
-
const
|
|
642
|
-
|
|
640
|
+
}, hr = "Escape", yr = (E, m) => {
|
|
641
|
+
const R = ({ key: h }) => {
|
|
642
|
+
h === E && m();
|
|
643
643
|
};
|
|
644
|
-
Ce.useEffect(() => (document.addEventListener("keyup",
|
|
645
|
-
document.removeEventListener("keyup",
|
|
644
|
+
Ce.useEffect(() => (document.addEventListener("keyup", R), () => {
|
|
645
|
+
document.removeEventListener("keyup", R);
|
|
646
646
|
}), []);
|
|
647
|
-
}, Rr = () => ({ useOutsideClick: gr, useKeyPress:
|
|
648
|
-
|
|
647
|
+
}, Rr = () => ({ useOutsideClick: gr, useKeyPress: yr, ESCAPE_KEY: hr }), br = Rr;
|
|
648
|
+
function Tr(E) {
|
|
649
|
+
const [m, R] = fr(null), { useOutsideClick: h, useKeyPress: S, ESCAPE_KEY: k } = br(), T = A.useRef(), _ = () => {
|
|
649
650
|
setTimeout(function() {
|
|
650
|
-
|
|
651
|
+
E.handleOpen(!1);
|
|
651
652
|
}, 50);
|
|
652
653
|
};
|
|
653
|
-
|
|
654
|
-
|
|
654
|
+
h(T, () => {
|
|
655
|
+
_();
|
|
655
656
|
}), S(k, () => {
|
|
656
|
-
|
|
657
|
+
_();
|
|
657
658
|
});
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
659
|
+
const f = (l) => {
|
|
660
|
+
if (!l) return !1;
|
|
661
|
+
const d = l.getBoundingClientRect();
|
|
662
|
+
return d.top >= 0 && d.bottom <= (window.innerHeight || document.documentElement.clientHeight);
|
|
663
|
+
}, y = A.useCallback(() => {
|
|
664
|
+
const l = document.getElementById(E.elementId);
|
|
665
|
+
if (l && f(l)) {
|
|
666
|
+
const d = l.getBoundingClientRect(), w = d.left, x = d.bottom, W = d.width;
|
|
667
|
+
R({ left: w, bottom: x, width: W });
|
|
668
|
+
} else
|
|
669
|
+
R(null);
|
|
664
670
|
}, []);
|
|
665
|
-
return
|
|
666
|
-
window.removeEventListener("scroll",
|
|
667
|
-
}), [
|
|
668
|
-
|
|
669
|
-
}, [
|
|
671
|
+
return A.useEffect(() => (window.addEventListener("scroll", y, { capture: !0 }), window.addEventListener("resize", y, { capture: !0 }), () => {
|
|
672
|
+
window.removeEventListener("scroll", y, { capture: !0 }), window.removeEventListener("resize", y, { capture: !0 });
|
|
673
|
+
}), [y]), A.useEffect(() => {
|
|
674
|
+
y();
|
|
675
|
+
}, [E.elementId]), m ? dr.createPortal(
|
|
670
676
|
/* @__PURE__ */ mr.jsx(
|
|
671
677
|
"div",
|
|
672
678
|
{
|
|
673
679
|
className: "font-poppins",
|
|
674
|
-
id: `cmd-dropdown-portal-${
|
|
680
|
+
id: `cmd-dropdown-portal-${E.elementId}`,
|
|
675
681
|
ref: T,
|
|
676
682
|
style: {
|
|
677
683
|
position: "absolute",
|
|
678
|
-
top:
|
|
679
|
-
left:
|
|
680
|
-
width:
|
|
681
|
-
zIndex:
|
|
684
|
+
top: m.bottom,
|
|
685
|
+
left: m.left,
|
|
686
|
+
width: m.width,
|
|
687
|
+
zIndex: 999
|
|
682
688
|
},
|
|
683
|
-
children:
|
|
689
|
+
children: E.children
|
|
684
690
|
}
|
|
685
691
|
),
|
|
686
692
|
document.body
|
|
687
693
|
) : null;
|
|
688
|
-
}
|
|
694
|
+
}
|
|
689
695
|
export {
|
|
690
696
|
Tr as default
|
|
691
697
|
};
|