@blocknote/mantine 0.15.0 → 0.15.3
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,5 +1,5 @@
|
|
|
1
1
|
import D, { forwardRef as R, useRef as Z, useEffect as Je, createContext as Br, useState as Yr, useCallback as fe, useContext as Ur } from "react";
|
|
2
|
-
import { assertEmpty as
|
|
2
|
+
import { assertEmpty as p, isSafari as ve, mergeCSSClasses as Gr } from "@blocknote/core";
|
|
3
3
|
import { elementOverflow as qe, useBlockNoteContext as Kr, usePrefersColorScheme as Hr, ComponentsContext as Jr, BlockNoteViewRaw as qr } from "@blocknote/react";
|
|
4
4
|
import { Group as F, Loader as Xe, Menu as O, CheckIcon as Ze, Tabs as X, LoadingOverlay as Xr, Button as U, FileInput as Zr, TextInput as Qe, Popover as Qr, PopoverTarget as et, PopoverDropdown as rt, ActionIcon as er, Stack as me, Text as Q, Badge as tt, Tooltip as nt, MantineProvider as ot } from "@mantine/core";
|
|
5
5
|
import { mergeRefs as te, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
|
|
@@ -15,18 +15,14 @@ var be = { exports: {} }, B = {};
|
|
|
15
15
|
*/
|
|
16
16
|
var We;
|
|
17
17
|
function st() {
|
|
18
|
-
if (We)
|
|
19
|
-
return B;
|
|
18
|
+
if (We) return B;
|
|
20
19
|
We = 1;
|
|
21
20
|
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
21
|
function f(c, d, b) {
|
|
23
|
-
var
|
|
22
|
+
var h, w = {}, T = null, G = null;
|
|
24
23
|
b !== void 0 && (T = "" + b), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (G = d.ref);
|
|
25
|
-
for (
|
|
26
|
-
|
|
27
|
-
if (c && c.defaultProps)
|
|
28
|
-
for (x in d = c.defaultProps, d)
|
|
29
|
-
w[x] === void 0 && (w[x] = d[x]);
|
|
24
|
+
for (h in d) o.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
|
|
25
|
+
if (c && c.defaultProps) for (h in d = c.defaultProps, d) w[h] === void 0 && (w[h] = d[h]);
|
|
30
26
|
return { $$typeof: n, type: c, key: T, ref: G, props: w, _owner: i.current };
|
|
31
27
|
}
|
|
32
28
|
return B.Fragment = t, B.jsx = f, B.jsxs = f, B;
|
|
@@ -44,7 +40,7 @@ var Y = {};
|
|
|
44
40
|
var Ve;
|
|
45
41
|
function lt() {
|
|
46
42
|
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"),
|
|
43
|
+
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), ge = Symbol.iterator, ir = "@@iterator";
|
|
48
44
|
function sr(e) {
|
|
49
45
|
if (e === null || typeof e != "object")
|
|
50
46
|
return null;
|
|
@@ -61,8 +57,8 @@ function lt() {
|
|
|
61
57
|
}
|
|
62
58
|
function lr(e, a, s) {
|
|
63
59
|
{
|
|
64
|
-
var v = L.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
60
|
+
var v = L.ReactDebugCurrentFrame, x = v.getStackAddendum();
|
|
61
|
+
x !== "" && (a += "%s", s = s.concat([x]));
|
|
66
62
|
var j = s.map(function(g) {
|
|
67
63
|
return String(g);
|
|
68
64
|
});
|
|
@@ -72,7 +68,7 @@ function lt() {
|
|
|
72
68
|
var ur = !1, cr = !1, dr = !1, fr = !1, vr = !1, pe;
|
|
73
69
|
pe = Symbol.for("react.module.reference");
|
|
74
70
|
function br(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || vr || e === i || e === b || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || vr || e === i || e === b || e === h || fr || e === G || ur || cr || dr || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
|
|
76
72
|
// types supported by any Flight configuration anywhere since
|
|
77
73
|
// we don't know which Flight build this will end up being used
|
|
78
74
|
// with.
|
|
@@ -82,8 +78,8 @@ function lt() {
|
|
|
82
78
|
var v = e.displayName;
|
|
83
79
|
if (v)
|
|
84
80
|
return v;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
81
|
+
var x = a.displayName || a.name || "";
|
|
82
|
+
return x !== "" ? s + "(" + x + ")" : s;
|
|
87
83
|
}
|
|
88
84
|
function he(e) {
|
|
89
85
|
return e.displayName || "Context";
|
|
@@ -106,7 +102,7 @@ function lt() {
|
|
|
106
102
|
return "StrictMode";
|
|
107
103
|
case b:
|
|
108
104
|
return "Suspense";
|
|
109
|
-
case
|
|
105
|
+
case h:
|
|
110
106
|
return "SuspenseList";
|
|
111
107
|
}
|
|
112
108
|
if (typeof e == "object")
|
|
@@ -123,7 +119,7 @@ function lt() {
|
|
|
123
119
|
var v = e.displayName || null;
|
|
124
120
|
return v !== null ? v : N(e.type) || "Memo";
|
|
125
121
|
case T: {
|
|
126
|
-
var
|
|
122
|
+
var x = e, j = x._payload, g = x._init;
|
|
127
123
|
try {
|
|
128
124
|
return N(g(j));
|
|
129
125
|
} catch {
|
|
@@ -201,8 +197,8 @@ function lt() {
|
|
|
201
197
|
if (oe === void 0)
|
|
202
198
|
try {
|
|
203
199
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var v =
|
|
200
|
+
} catch (x) {
|
|
201
|
+
var v = x.stack.trim().match(/\n( *(at )?)/);
|
|
206
202
|
oe = v && v[1] || "";
|
|
207
203
|
}
|
|
208
204
|
return `
|
|
@@ -224,7 +220,7 @@ function lt() {
|
|
|
224
220
|
}
|
|
225
221
|
var v;
|
|
226
222
|
ae = !0;
|
|
227
|
-
var
|
|
223
|
+
var x = Error.prepareStackTrace;
|
|
228
224
|
Error.prepareStackTrace = void 0;
|
|
229
225
|
var j;
|
|
230
226
|
j = ne.current, ne.current = null, gr();
|
|
@@ -240,47 +236,47 @@ function lt() {
|
|
|
240
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
237
|
try {
|
|
242
238
|
Reflect.construct(g, []);
|
|
243
|
-
} catch (
|
|
244
|
-
v =
|
|
239
|
+
} catch (_) {
|
|
240
|
+
v = _;
|
|
245
241
|
}
|
|
246
242
|
Reflect.construct(e, [], g);
|
|
247
243
|
} else {
|
|
248
244
|
try {
|
|
249
245
|
g.call();
|
|
250
|
-
} catch (
|
|
251
|
-
v =
|
|
246
|
+
} catch (_) {
|
|
247
|
+
v = _;
|
|
252
248
|
}
|
|
253
249
|
e.call(g.prototype);
|
|
254
250
|
}
|
|
255
251
|
} else {
|
|
256
252
|
try {
|
|
257
253
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
v =
|
|
254
|
+
} catch (_) {
|
|
255
|
+
v = _;
|
|
260
256
|
}
|
|
261
257
|
e();
|
|
262
258
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var m =
|
|
266
|
-
`),
|
|
267
|
-
`), E = m.length - 1, S =
|
|
259
|
+
} catch (_) {
|
|
260
|
+
if (_ && v && typeof _.stack == "string") {
|
|
261
|
+
for (var m = _.stack.split(`
|
|
262
|
+
`), P = v.stack.split(`
|
|
263
|
+
`), E = m.length - 1, S = P.length - 1; E >= 1 && S >= 0 && m[E] !== P[S]; )
|
|
268
264
|
S--;
|
|
269
265
|
for (; E >= 1 && S >= 0; E--, S--)
|
|
270
|
-
if (m[E] !==
|
|
266
|
+
if (m[E] !== P[S]) {
|
|
271
267
|
if (E !== 1 || S !== 1)
|
|
272
268
|
do
|
|
273
|
-
if (E--, S--, S < 0 || m[E] !==
|
|
274
|
-
var
|
|
269
|
+
if (E--, S--, S < 0 || m[E] !== P[S]) {
|
|
270
|
+
var C = `
|
|
275
271
|
` + m[E].replace(" at new ", " at ");
|
|
276
|
-
return e.displayName &&
|
|
272
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, C), C;
|
|
277
273
|
}
|
|
278
274
|
while (E >= 1 && S >= 0);
|
|
279
275
|
break;
|
|
280
276
|
}
|
|
281
277
|
}
|
|
282
278
|
} finally {
|
|
283
|
-
ae = !1, ne.current = j, pr(), Error.prepareStackTrace =
|
|
279
|
+
ae = !1, ne.current = j, pr(), Error.prepareStackTrace = x;
|
|
284
280
|
}
|
|
285
281
|
var $ = e ? e.displayName || e.name : "", I = $ ? K($) : "";
|
|
286
282
|
return typeof e == "function" && H.set(e, I), I;
|
|
@@ -302,7 +298,7 @@ function lt() {
|
|
|
302
298
|
switch (e) {
|
|
303
299
|
case b:
|
|
304
300
|
return K("Suspense");
|
|
305
|
-
case
|
|
301
|
+
case h:
|
|
306
302
|
return K("SuspenseList");
|
|
307
303
|
}
|
|
308
304
|
if (typeof e == "object")
|
|
@@ -312,24 +308,24 @@ function lt() {
|
|
|
312
308
|
case w:
|
|
313
309
|
return J(e.type, a, s);
|
|
314
310
|
case T: {
|
|
315
|
-
var v = e,
|
|
311
|
+
var v = e, x = v._payload, j = v._init;
|
|
316
312
|
try {
|
|
317
|
-
return J(j(
|
|
313
|
+
return J(j(x), a, s);
|
|
318
314
|
} catch {
|
|
319
315
|
}
|
|
320
316
|
}
|
|
321
317
|
}
|
|
322
318
|
return "";
|
|
323
319
|
}
|
|
324
|
-
var W = Object.prototype.hasOwnProperty,
|
|
320
|
+
var W = Object.prototype.hasOwnProperty, Pe = {}, _e = L.ReactDebugCurrentFrame;
|
|
325
321
|
function q(e) {
|
|
326
322
|
if (e) {
|
|
327
323
|
var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
|
|
328
|
-
|
|
324
|
+
_e.setExtraStackFrame(s);
|
|
329
325
|
} else
|
|
330
|
-
|
|
326
|
+
_e.setExtraStackFrame(null);
|
|
331
327
|
}
|
|
332
|
-
function jr(e, a, s, v,
|
|
328
|
+
function jr(e, a, s, v, x) {
|
|
333
329
|
{
|
|
334
330
|
var j = Function.call.bind(W);
|
|
335
331
|
for (var g in e)
|
|
@@ -337,14 +333,14 @@ function lt() {
|
|
|
337
333
|
var m = void 0;
|
|
338
334
|
try {
|
|
339
335
|
if (typeof e[g] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
336
|
+
var P = Error((v || "React class") + ": " + s + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw P.name = "Invariant Violation", P;
|
|
342
338
|
}
|
|
343
339
|
m = e[g](a, g, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
340
|
} catch (E) {
|
|
345
341
|
m = E;
|
|
346
342
|
}
|
|
347
|
-
m && !(m instanceof Error) && (q(
|
|
343
|
+
m && !(m instanceof Error) && (q(x), k("%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).", v || "React class", s, g, typeof m), q(null)), m instanceof Error && !(m.message in Pe) && (Pe[m.message] = !0, q(x), k("Failed %s type: %s", s, m.message), q(null));
|
|
348
344
|
}
|
|
349
345
|
}
|
|
350
346
|
}
|
|
@@ -360,17 +356,17 @@ function lt() {
|
|
|
360
356
|
}
|
|
361
357
|
function Sr(e) {
|
|
362
358
|
try {
|
|
363
|
-
return
|
|
359
|
+
return Ce(e), !1;
|
|
364
360
|
} catch {
|
|
365
361
|
return !0;
|
|
366
362
|
}
|
|
367
363
|
}
|
|
368
|
-
function
|
|
364
|
+
function Ce(e) {
|
|
369
365
|
return "" + e;
|
|
370
366
|
}
|
|
371
367
|
function Oe(e) {
|
|
372
368
|
if (Sr(e))
|
|
373
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Er(e)),
|
|
369
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Er(e)), Ce(e);
|
|
374
370
|
}
|
|
375
371
|
var V = L.ReactCurrentOwner, wr = {
|
|
376
372
|
key: !0,
|
|
@@ -395,13 +391,13 @@ function lt() {
|
|
|
395
391
|
}
|
|
396
392
|
return e.key !== void 0;
|
|
397
393
|
}
|
|
398
|
-
function
|
|
394
|
+
function Pr(e, a) {
|
|
399
395
|
if (typeof e.ref == "string" && V.current && a && V.current.stateNode !== a) {
|
|
400
396
|
var s = N(V.current.type);
|
|
401
397
|
se[s] || (k('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', N(V.current.type), e.ref), se[s] = !0);
|
|
402
398
|
}
|
|
403
399
|
}
|
|
404
|
-
function
|
|
400
|
+
function _r(e, a) {
|
|
405
401
|
{
|
|
406
402
|
var s = function() {
|
|
407
403
|
Fe || (Fe = !0, k("%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)", a));
|
|
@@ -412,7 +408,7 @@ function lt() {
|
|
|
412
408
|
});
|
|
413
409
|
}
|
|
414
410
|
}
|
|
415
|
-
function
|
|
411
|
+
function Cr(e, a) {
|
|
416
412
|
{
|
|
417
413
|
var s = function() {
|
|
418
414
|
Ne || (Ne = !0, k("%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)", a));
|
|
@@ -423,7 +419,7 @@ function lt() {
|
|
|
423
419
|
});
|
|
424
420
|
}
|
|
425
421
|
}
|
|
426
|
-
var Or = function(e, a, s, v,
|
|
422
|
+
var Or = function(e, a, s, v, x, j, g) {
|
|
427
423
|
var m = {
|
|
428
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
425
|
$$typeof: n,
|
|
@@ -449,13 +445,13 @@ function lt() {
|
|
|
449
445
|
configurable: !1,
|
|
450
446
|
enumerable: !1,
|
|
451
447
|
writable: !1,
|
|
452
|
-
value:
|
|
448
|
+
value: x
|
|
453
449
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
454
450
|
};
|
|
455
|
-
function Fr(e, a, s, v,
|
|
451
|
+
function Fr(e, a, s, v, x) {
|
|
456
452
|
{
|
|
457
|
-
var j, g = {}, m = null,
|
|
458
|
-
s !== void 0 && (Oe(s), m = "" + s), kr(a) && (Oe(a.key), m = "" + a.key), Tr(a) && (
|
|
453
|
+
var j, g = {}, m = null, P = null;
|
|
454
|
+
s !== void 0 && (Oe(s), m = "" + s), kr(a) && (Oe(a.key), m = "" + a.key), Tr(a) && (P = a.ref, Pr(a, x));
|
|
459
455
|
for (j in a)
|
|
460
456
|
W.call(a, j) && !wr.hasOwnProperty(j) && (g[j] = a[j]);
|
|
461
457
|
if (e && e.defaultProps) {
|
|
@@ -463,11 +459,11 @@ function lt() {
|
|
|
463
459
|
for (j in E)
|
|
464
460
|
g[j] === void 0 && (g[j] = E[j]);
|
|
465
461
|
}
|
|
466
|
-
if (m ||
|
|
462
|
+
if (m || P) {
|
|
467
463
|
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
m &&
|
|
464
|
+
m && _r(g, S), P && Cr(g, S);
|
|
469
465
|
}
|
|
470
|
-
return Or(e, m,
|
|
466
|
+
return Or(e, m, P, x, v, V.current, g);
|
|
471
467
|
}
|
|
472
468
|
}
|
|
473
469
|
var le = L.ReactCurrentOwner, De = L.ReactDebugCurrentFrame;
|
|
@@ -496,15 +492,7 @@ Check the render method of \`` + e + "`.";
|
|
|
496
492
|
}
|
|
497
493
|
}
|
|
498
494
|
function Nr(e) {
|
|
499
|
-
|
|
500
|
-
if (e !== void 0) {
|
|
501
|
-
var a = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
|
|
502
|
-
return `
|
|
503
|
-
|
|
504
|
-
Check your code at ` + a + ":" + s + ".";
|
|
505
|
-
}
|
|
506
|
-
return "";
|
|
507
|
-
}
|
|
495
|
+
return "";
|
|
508
496
|
}
|
|
509
497
|
var Ie = {};
|
|
510
498
|
function Dr(e) {
|
|
@@ -544,9 +532,9 @@ Check the top-level render call using <` + s + ">.");
|
|
|
544
532
|
else if (ce(e))
|
|
545
533
|
e._store && (e._store.validated = !0);
|
|
546
534
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var j =
|
|
535
|
+
var x = sr(e);
|
|
536
|
+
if (typeof x == "function" && x !== e.entries)
|
|
537
|
+
for (var j = x.call(e), g; !(g = j.next()).done; )
|
|
550
538
|
ce(g.value) && Le(g.value, a);
|
|
551
539
|
}
|
|
552
540
|
}
|
|
@@ -570,8 +558,8 @@ Check the top-level render call using <` + s + ">.");
|
|
|
570
558
|
jr(s, e.props, "prop", v, e);
|
|
571
559
|
} else if (a.PropTypes !== void 0 && !ue) {
|
|
572
560
|
ue = !0;
|
|
573
|
-
var
|
|
574
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
561
|
+
var x = N(a);
|
|
562
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
575
563
|
}
|
|
576
564
|
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
565
|
}
|
|
@@ -589,39 +577,39 @@ Check the top-level render call using <` + s + ">.");
|
|
|
589
577
|
}
|
|
590
578
|
}
|
|
591
579
|
var $e = {};
|
|
592
|
-
function ze(e, a, s, v,
|
|
580
|
+
function ze(e, a, s, v, x, j) {
|
|
593
581
|
{
|
|
594
582
|
var g = br(e);
|
|
595
583
|
if (!g) {
|
|
596
584
|
var m = "";
|
|
597
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var
|
|
599
|
-
|
|
586
|
+
var P = Nr();
|
|
587
|
+
P ? m += P : m += Me();
|
|
600
588
|
var E;
|
|
601
589
|
e === null ? E = "null" : ie(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (N(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, m);
|
|
602
590
|
}
|
|
603
|
-
var S = Fr(e, a, s,
|
|
591
|
+
var S = Fr(e, a, s, x, j);
|
|
604
592
|
if (S == null)
|
|
605
593
|
return S;
|
|
606
594
|
if (g) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
595
|
+
var C = a.children;
|
|
596
|
+
if (C !== void 0)
|
|
609
597
|
if (v)
|
|
610
|
-
if (ie(
|
|
611
|
-
for (var $ = 0; $ <
|
|
612
|
-
Ae(
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
598
|
+
if (ie(C)) {
|
|
599
|
+
for (var $ = 0; $ < C.length; $++)
|
|
600
|
+
Ae(C[$], e);
|
|
601
|
+
Object.freeze && Object.freeze(C);
|
|
614
602
|
} else
|
|
615
603
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
616
604
|
else
|
|
617
|
-
Ae(
|
|
605
|
+
Ae(C, e);
|
|
618
606
|
}
|
|
619
607
|
if (W.call(a, "key")) {
|
|
620
|
-
var I = N(e),
|
|
608
|
+
var I = N(e), _ = Object.keys(a).filter(function(Vr) {
|
|
621
609
|
return Vr !== "key";
|
|
622
|
-
}), de =
|
|
610
|
+
}), de = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
611
|
if (!$e[I + de]) {
|
|
624
|
-
var Wr =
|
|
612
|
+
var Wr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
|
|
625
613
|
k(`A props object containing a "key" prop is being spread into JSX:
|
|
626
614
|
let props = %s;
|
|
627
615
|
<%s {...props} />
|
|
@@ -726,7 +714,7 @@ const rr = (r, n, t = !1) => {
|
|
|
726
714
|
fontFamily: void 0
|
|
727
715
|
}, ct = (r) => rr(ut, r, !0), dt = R((r, n) => {
|
|
728
716
|
const { className: t, children: o, id: i, columns: u, ...f } = r;
|
|
729
|
-
return
|
|
717
|
+
return p(f), /* @__PURE__ */ l.jsx(
|
|
730
718
|
"div",
|
|
731
719
|
{
|
|
732
720
|
className: t,
|
|
@@ -739,7 +727,7 @@ const rr = (r, n, t = !1) => {
|
|
|
739
727
|
);
|
|
740
728
|
}), ft = R((r, n) => {
|
|
741
729
|
const { className: t, children: o, columns: i, ...u } = r;
|
|
742
|
-
return
|
|
730
|
+
return p(u), /* @__PURE__ */ l.jsx(
|
|
743
731
|
F,
|
|
744
732
|
{
|
|
745
733
|
className: t,
|
|
@@ -750,7 +738,7 @@ const rr = (r, n, t = !1) => {
|
|
|
750
738
|
);
|
|
751
739
|
}), vt = R((r, n) => {
|
|
752
740
|
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
753
|
-
|
|
741
|
+
p(c);
|
|
754
742
|
const d = Z(null);
|
|
755
743
|
return Je(() => {
|
|
756
744
|
if (!d.current || !o)
|
|
@@ -777,7 +765,7 @@ const rr = (r, n, t = !1) => {
|
|
|
777
765
|
columns: i,
|
|
778
766
|
...u
|
|
779
767
|
} = r;
|
|
780
|
-
return
|
|
768
|
+
return p(u), /* @__PURE__ */ l.jsx(
|
|
781
769
|
Xe,
|
|
782
770
|
{
|
|
783
771
|
className: t,
|
|
@@ -795,8 +783,7 @@ var tr = {
|
|
|
795
783
|
attr: void 0
|
|
796
784
|
}, Ye = D.createContext && /* @__PURE__ */ D.createContext(tr), mt = ["attr", "size", "title"];
|
|
797
785
|
function gt(r, n) {
|
|
798
|
-
if (r == null)
|
|
799
|
-
return {};
|
|
786
|
+
if (r == null) return {};
|
|
800
787
|
var t = pt(r, n), o, i;
|
|
801
788
|
if (Object.getOwnPropertySymbols) {
|
|
802
789
|
var u = Object.getOwnPropertySymbols(r);
|
|
@@ -806,13 +793,11 @@ function gt(r, n) {
|
|
|
806
793
|
return t;
|
|
807
794
|
}
|
|
808
795
|
function pt(r, n) {
|
|
809
|
-
if (r == null)
|
|
810
|
-
return {};
|
|
796
|
+
if (r == null) return {};
|
|
811
797
|
var t = {};
|
|
812
798
|
for (var o in r)
|
|
813
799
|
if (Object.prototype.hasOwnProperty.call(r, o)) {
|
|
814
|
-
if (n.indexOf(o) >= 0)
|
|
815
|
-
continue;
|
|
800
|
+
if (n.indexOf(o) >= 0) continue;
|
|
816
801
|
t[o] = r[o];
|
|
817
802
|
}
|
|
818
803
|
return t;
|
|
@@ -856,13 +841,11 @@ function xt(r) {
|
|
|
856
841
|
return typeof n == "symbol" ? n : n + "";
|
|
857
842
|
}
|
|
858
843
|
function yt(r, n) {
|
|
859
|
-
if (typeof r != "object" || !r)
|
|
860
|
-
return r;
|
|
844
|
+
if (typeof r != "object" || !r) return r;
|
|
861
845
|
var t = r[Symbol.toPrimitive];
|
|
862
846
|
if (t !== void 0) {
|
|
863
847
|
var o = t.call(r, n || "default");
|
|
864
|
-
if (typeof o != "object")
|
|
865
|
-
return o;
|
|
848
|
+
if (typeof o != "object") return o;
|
|
866
849
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
867
850
|
}
|
|
868
851
|
return (n === "string" ? String : Number)(r);
|
|
@@ -915,13 +898,13 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
915
898
|
// not used
|
|
916
899
|
...f
|
|
917
900
|
} = r;
|
|
918
|
-
|
|
919
|
-
const [c, d] = Yr(!1), b = Z(null),
|
|
920
|
-
|
|
901
|
+
p(f);
|
|
902
|
+
const [c, d] = Yr(!1), b = Z(null), h = Z(), w = fe(() => {
|
|
903
|
+
h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
921
904
|
d(!1);
|
|
922
905
|
}, 250);
|
|
923
906
|
}, []), T = fe(() => {
|
|
924
|
-
|
|
907
|
+
h.current && clearTimeout(h.current), d(!0);
|
|
925
908
|
}, []);
|
|
926
909
|
return /* @__PURE__ */ l.jsx(
|
|
927
910
|
ar.Provider,
|
|
@@ -958,7 +941,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
958
941
|
);
|
|
959
942
|
}), wt = (r) => {
|
|
960
943
|
const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
|
|
961
|
-
return
|
|
944
|
+
return p(u), i ? /* @__PURE__ */ l.jsx(St, { ...r }) : /* @__PURE__ */ l.jsx(
|
|
962
945
|
O,
|
|
963
946
|
{
|
|
964
947
|
withinPortal: !1,
|
|
@@ -971,7 +954,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
971
954
|
);
|
|
972
955
|
}, Tt = R((r, n) => {
|
|
973
956
|
const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
|
|
974
|
-
return
|
|
957
|
+
return p(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
|
|
975
958
|
o,
|
|
976
959
|
/* @__PURE__ */ l.jsx(Et, { size: 15 })
|
|
977
960
|
] }) : /* @__PURE__ */ l.jsx(
|
|
@@ -993,8 +976,8 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
993
976
|
// unused
|
|
994
977
|
...o
|
|
995
978
|
} = r;
|
|
996
|
-
return
|
|
997
|
-
},
|
|
979
|
+
return p(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
|
|
980
|
+
}, Pt = R((r, n) => {
|
|
998
981
|
const {
|
|
999
982
|
className: t,
|
|
1000
983
|
children: o,
|
|
@@ -1002,7 +985,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1002
985
|
//unused
|
|
1003
986
|
...u
|
|
1004
987
|
} = r;
|
|
1005
|
-
|
|
988
|
+
p(u);
|
|
1006
989
|
const f = Ur(ar);
|
|
1007
990
|
return /* @__PURE__ */ l.jsx(
|
|
1008
991
|
O.Dropdown,
|
|
@@ -1014,12 +997,12 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1014
997
|
children: o
|
|
1015
998
|
}
|
|
1016
999
|
);
|
|
1017
|
-
}), Pt = R((r, n) => {
|
|
1018
|
-
const { className: t, ...o } = r;
|
|
1019
|
-
return h(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
|
|
1020
1000
|
}), _t = R((r, n) => {
|
|
1001
|
+
const { className: t, ...o } = r;
|
|
1002
|
+
return p(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
|
|
1003
|
+
}), Ct = R((r, n) => {
|
|
1021
1004
|
const { className: t, children: o, ...i } = r;
|
|
1022
|
-
return
|
|
1005
|
+
return p(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
|
|
1023
1006
|
}), Ot = R((r, n) => {
|
|
1024
1007
|
const {
|
|
1025
1008
|
className: t,
|
|
@@ -1030,7 +1013,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1030
1013
|
loading: c,
|
|
1031
1014
|
...d
|
|
1032
1015
|
} = r;
|
|
1033
|
-
return
|
|
1016
|
+
return p(d), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
|
|
1034
1017
|
X,
|
|
1035
1018
|
{
|
|
1036
1019
|
value: u,
|
|
@@ -1053,7 +1036,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1053
1036
|
) });
|
|
1054
1037
|
}), Ft = R((r, n) => {
|
|
1055
1038
|
const { className: t, children: o, onClick: i, label: u, ...f } = r;
|
|
1056
|
-
return
|
|
1039
|
+
return p(f), /* @__PURE__ */ l.jsx(
|
|
1057
1040
|
U,
|
|
1058
1041
|
{
|
|
1059
1042
|
size: "xs",
|
|
@@ -1067,7 +1050,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1067
1050
|
);
|
|
1068
1051
|
}), Nt = R((r, n) => {
|
|
1069
1052
|
const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
|
|
1070
|
-
return
|
|
1053
|
+
return p(c), /* @__PURE__ */ l.jsx(
|
|
1071
1054
|
Zr,
|
|
1072
1055
|
{
|
|
1073
1056
|
size: "xs",
|
|
@@ -1082,10 +1065,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1082
1065
|
);
|
|
1083
1066
|
}), Dt = R((r, n) => {
|
|
1084
1067
|
const { className: t, children: o, ...i } = r;
|
|
1085
|
-
return
|
|
1068
|
+
return p(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
|
|
1086
1069
|
}), Mt = R((r, n) => {
|
|
1087
1070
|
const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
|
|
1088
|
-
return
|
|
1071
|
+
return p(c), /* @__PURE__ */ l.jsx(
|
|
1089
1072
|
Qe,
|
|
1090
1073
|
{
|
|
1091
1074
|
size: "xs",
|
|
@@ -1100,7 +1083,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1100
1083
|
);
|
|
1101
1084
|
}), It = (r) => {
|
|
1102
1085
|
const { children: n, opened: t, position: o, ...i } = r;
|
|
1103
|
-
return
|
|
1086
|
+
return p(i), /* @__PURE__ */ l.jsx(
|
|
1104
1087
|
Qr,
|
|
1105
1088
|
{
|
|
1106
1089
|
withinPortal: !1,
|
|
@@ -1112,7 +1095,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1112
1095
|
);
|
|
1113
1096
|
}, Lt = (r) => {
|
|
1114
1097
|
const { children: n, ...t } = r;
|
|
1115
|
-
return
|
|
1098
|
+
return p(t), /* @__PURE__ */ l.jsx(et, { children: n });
|
|
1116
1099
|
}, At = R((r, n) => {
|
|
1117
1100
|
const {
|
|
1118
1101
|
className: t,
|
|
@@ -1121,10 +1104,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1121
1104
|
// unused
|
|
1122
1105
|
...u
|
|
1123
1106
|
} = r;
|
|
1124
|
-
return
|
|
1107
|
+
return p(u), /* @__PURE__ */ l.jsx(rt, { className: t, ref: n, children: o });
|
|
1125
1108
|
}), $t = R((r, n) => {
|
|
1126
1109
|
const { className: t, children: o, ...i } = r;
|
|
1127
|
-
return
|
|
1110
|
+
return p(i, !1), /* @__PURE__ */ l.jsx(
|
|
1128
1111
|
F,
|
|
1129
1112
|
{
|
|
1130
1113
|
align: "center",
|
|
@@ -1145,9 +1128,9 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1145
1128
|
onDragStart: c,
|
|
1146
1129
|
draggable: d,
|
|
1147
1130
|
label: b,
|
|
1148
|
-
...
|
|
1131
|
+
...h
|
|
1149
1132
|
} = r;
|
|
1150
|
-
return h
|
|
1133
|
+
return p(h, !1), i ? /* @__PURE__ */ l.jsx(
|
|
1151
1134
|
er,
|
|
1152
1135
|
{
|
|
1153
1136
|
size: 24,
|
|
@@ -1158,7 +1141,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1158
1141
|
onDragStart: c,
|
|
1159
1142
|
draggable: d,
|
|
1160
1143
|
"aria-label": b,
|
|
1161
|
-
...
|
|
1144
|
+
...h,
|
|
1162
1145
|
children: i
|
|
1163
1146
|
}
|
|
1164
1147
|
) : /* @__PURE__ */ l.jsx(
|
|
@@ -1171,13 +1154,13 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1171
1154
|
onDragStart: c,
|
|
1172
1155
|
draggable: d,
|
|
1173
1156
|
"aria-label": b,
|
|
1174
|
-
...
|
|
1157
|
+
...h,
|
|
1175
1158
|
children: o
|
|
1176
1159
|
}
|
|
1177
1160
|
);
|
|
1178
1161
|
}), Wt = R((r, n) => {
|
|
1179
1162
|
const { className: t, children: o, id: i, ...u } = r;
|
|
1180
|
-
return
|
|
1163
|
+
return p(u), /* @__PURE__ */ l.jsx(
|
|
1181
1164
|
me,
|
|
1182
1165
|
{
|
|
1183
1166
|
gap: 0,
|
|
@@ -1190,10 +1173,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1190
1173
|
);
|
|
1191
1174
|
}), Vt = R((r, n) => {
|
|
1192
1175
|
const { className: t, children: o, ...i } = r;
|
|
1193
|
-
return
|
|
1176
|
+
return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
1194
1177
|
}), Bt = R((r, n) => {
|
|
1195
1178
|
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
1196
|
-
|
|
1179
|
+
p(c);
|
|
1197
1180
|
const d = Z(null);
|
|
1198
1181
|
return Je(() => {
|
|
1199
1182
|
if (!d.current || !o)
|
|
@@ -1236,7 +1219,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1236
1219
|
);
|
|
1237
1220
|
}), Yt = R((r, n) => {
|
|
1238
1221
|
const { className: t, children: o, ...i } = r;
|
|
1239
|
-
return
|
|
1222
|
+
return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: o });
|
|
1240
1223
|
}), Ut = R((r, n) => {
|
|
1241
1224
|
const {
|
|
1242
1225
|
className: t,
|
|
@@ -1244,7 +1227,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1244
1227
|
// unused, using "dots" instead
|
|
1245
1228
|
...i
|
|
1246
1229
|
} = r;
|
|
1247
|
-
return
|
|
1230
|
+
return p(i), /* @__PURE__ */ l.jsx(Xe, { className: t, type: "dots", ref: n });
|
|
1248
1231
|
}), Gt = R((r, n) => {
|
|
1249
1232
|
const {
|
|
1250
1233
|
className: t,
|
|
@@ -1256,7 +1239,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1256
1239
|
label: d,
|
|
1257
1240
|
...b
|
|
1258
1241
|
} = r;
|
|
1259
|
-
return
|
|
1242
|
+
return p(b, !1), /* @__PURE__ */ l.jsx(
|
|
1260
1243
|
U,
|
|
1261
1244
|
{
|
|
1262
1245
|
className: t,
|
|
@@ -1280,11 +1263,11 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1280
1263
|
autoFocus: c,
|
|
1281
1264
|
placeholder: d,
|
|
1282
1265
|
onKeyDown: b,
|
|
1283
|
-
onChange:
|
|
1266
|
+
onChange: h,
|
|
1284
1267
|
onSubmit: w,
|
|
1285
1268
|
...T
|
|
1286
1269
|
} = r;
|
|
1287
|
-
return
|
|
1270
|
+
return p(T), /* @__PURE__ */ l.jsx(
|
|
1288
1271
|
Qe,
|
|
1289
1272
|
{
|
|
1290
1273
|
size: "xs",
|
|
@@ -1298,20 +1281,20 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1298
1281
|
"data-autofocus": c ? "true" : void 0,
|
|
1299
1282
|
placeholder: d,
|
|
1300
1283
|
onKeyDown: b,
|
|
1301
|
-
onChange:
|
|
1284
|
+
onChange: h,
|
|
1302
1285
|
onSubmit: w
|
|
1303
1286
|
}
|
|
1304
1287
|
);
|
|
1305
1288
|
}), Ge = R(
|
|
1306
1289
|
(r, n) => {
|
|
1307
1290
|
const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
|
|
1308
|
-
|
|
1309
|
-
const { ref: c, focused: d } = at(), b = it(d),
|
|
1291
|
+
p(f);
|
|
1292
|
+
const { ref: c, focused: d } = at(), b = it(d), h = te(n, c, b);
|
|
1310
1293
|
return /* @__PURE__ */ l.jsx(
|
|
1311
1294
|
F,
|
|
1312
1295
|
{
|
|
1313
1296
|
className: t,
|
|
1314
|
-
ref:
|
|
1297
|
+
ref: h,
|
|
1315
1298
|
role: "toolbar",
|
|
1316
1299
|
onMouseEnter: i,
|
|
1317
1300
|
onMouseLeave: u,
|
|
@@ -1333,10 +1316,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1333
1316
|
isSelected: c,
|
|
1334
1317
|
isDisabled: d,
|
|
1335
1318
|
onClick: b,
|
|
1336
|
-
label:
|
|
1319
|
+
label: h,
|
|
1337
1320
|
...w
|
|
1338
1321
|
} = r;
|
|
1339
|
-
return
|
|
1322
|
+
return p(w, !1), /* @__PURE__ */ l.jsx(
|
|
1340
1323
|
nt,
|
|
1341
1324
|
{
|
|
1342
1325
|
withinPortal: !1,
|
|
@@ -1350,7 +1333,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1350
1333
|
children: o ? /* @__PURE__ */ l.jsx(
|
|
1351
1334
|
U,
|
|
1352
1335
|
{
|
|
1353
|
-
"aria-label":
|
|
1336
|
+
"aria-label": h,
|
|
1354
1337
|
className: t,
|
|
1355
1338
|
onMouseDown: (T) => {
|
|
1356
1339
|
ve() && T.currentTarget.focus();
|
|
@@ -1369,7 +1352,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1369
1352
|
er,
|
|
1370
1353
|
{
|
|
1371
1354
|
className: t,
|
|
1372
|
-
"aria-label":
|
|
1355
|
+
"aria-label": h,
|
|
1373
1356
|
onMouseDown: (T) => {
|
|
1374
1357
|
ve() && T.currentTarget.focus();
|
|
1375
1358
|
},
|
|
@@ -1389,7 +1372,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1389
1372
|
}
|
|
1390
1373
|
), Jt = R((r, n) => {
|
|
1391
1374
|
const { className: t, items: o, isDisabled: i, ...u } = r;
|
|
1392
|
-
|
|
1375
|
+
p(u);
|
|
1393
1376
|
const f = o.filter((c) => c.isSelected)[0];
|
|
1394
1377
|
return f ? /* @__PURE__ */ l.jsxs(
|
|
1395
1378
|
O,
|
|
@@ -1432,8 +1415,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1432
1415
|
]
|
|
1433
1416
|
}
|
|
1434
1417
|
) : null;
|
|
1435
|
-
})
|
|
1436
|
-
const y = [
|
|
1418
|
+
}), y = [
|
|
1437
1419
|
"#FFFFFF",
|
|
1438
1420
|
"#EFEFEF",
|
|
1439
1421
|
"#CFCFCF",
|
|
@@ -1629,9 +1611,9 @@ const y = [
|
|
|
1629
1611
|
Menu: {
|
|
1630
1612
|
Root: wt,
|
|
1631
1613
|
Trigger: kt,
|
|
1632
|
-
Dropdown:
|
|
1633
|
-
Divider:
|
|
1634
|
-
Label:
|
|
1614
|
+
Dropdown: Pt,
|
|
1615
|
+
Divider: _t,
|
|
1616
|
+
Label: Ct,
|
|
1635
1617
|
Item: Tt
|
|
1636
1618
|
},
|
|
1637
1619
|
Popover: {
|