@blocknote/ariakit 0.15.0 → 0.15.2
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/blocknote-ariakit.js +232 -245
- package/dist/blocknote-ariakit.js.map +1 -1
- package/dist/blocknote-ariakit.umd.cjs +7 -9
- package/dist/blocknote-ariakit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +7 -7
- package/types/src/index.d.ts +2 -2
- package/types/src/input/TextInput.d.ts +4 -5
- package/types/src/menu/Menu.d.ts +8 -9
- package/types/src/panel/Panel.d.ts +1 -2
- package/types/src/panel/PanelButton.d.ts +2 -3
- package/types/src/panel/PanelFileInput.d.ts +1 -2
- package/types/src/panel/PanelTab.d.ts +1 -2
- package/types/src/panel/PanelTextInput.d.ts +2 -3
- package/types/src/popover/Popover.d.ts +1 -2
- package/types/src/sideMenu/SideMenu.d.ts +1 -2
- package/types/src/sideMenu/SideMenuButton.d.ts +6 -7
- package/types/src/suggestionMenu/SuggestionMenu.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +1 -2
- package/types/src/tableHandle/TableHandle.d.ts +4 -5
- package/types/src/toolbar/Toolbar.d.ts +4 -5
- package/types/src/toolbar/ToolbarButton.d.ts +0 -1
- package/types/src/toolbar/ToolbarSelect.d.ts +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ae, { forwardRef as y, useRef as Le, useEffect as $e } from "react";
|
|
2
|
-
import { assertEmpty as
|
|
2
|
+
import { assertEmpty as b, mergeCSSClasses as E, isSafari as Pr } from "@blocknote/core";
|
|
3
3
|
import { elementOverflow as We, mergeRefs as Ve, ComponentsContext as Cr, BlockNoteViewRaw as wr } from "@blocknote/react";
|
|
4
4
|
import { FormProvider as ne, FormLabel as Nr, FormInput as ae, Menu as Or, MenuButton as Ye, MenuItem as Ne, MenuButtonArrow as Ir, CheckboxCheck as Oe, MenuGroupLabel as Dr, MenuSeparator as Mr, MenuProvider as Fr, TabProvider as Ar, TabList as Lr, Tab as $r, TabPanel as Wr, Button as se, PopoverDisclosure as Vr, Popover as Yr, PopoverProvider as Br, Group as Be, Toolbar as Ur, TooltipProvider as Gr, TooltipAnchor as Kr, ToolbarItem as Ue, Tooltip as Jr, SelectProvider as qr, Select as Hr, SelectArrow as zr, SelectPopover as Xr, SelectItem as Zr, SelectItemCheck as Qr } from "@ariakit/react";
|
|
5
5
|
var te = { exports: {} }, W = {};
|
|
@@ -14,19 +14,15 @@ var te = { exports: {} }, W = {};
|
|
|
14
14
|
*/
|
|
15
15
|
var Ie;
|
|
16
16
|
function et() {
|
|
17
|
-
if (Ie)
|
|
18
|
-
return W;
|
|
17
|
+
if (Ie) return W;
|
|
19
18
|
Ie = 1;
|
|
20
|
-
var
|
|
21
|
-
function d(
|
|
19
|
+
var n = Ae, a = Symbol.for("react.element"), o = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function d(g, c, v) {
|
|
22
21
|
var j, _ = {}, w = null, Y = null;
|
|
23
22
|
v !== void 0 && (w = "" + v), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (Y = c.ref);
|
|
24
|
-
for (j in c)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
for (j in c = h.defaultProps, c)
|
|
28
|
-
_[j] === void 0 && (_[j] = c[j]);
|
|
29
|
-
return { $$typeof: s, type: h, key: w, ref: Y, props: _, _owner: l.current };
|
|
23
|
+
for (j in c) t.call(c, j) && !u.hasOwnProperty(j) && (_[j] = c[j]);
|
|
24
|
+
if (g && g.defaultProps) for (j in c = g.defaultProps, c) _[j] === void 0 && (_[j] = c[j]);
|
|
25
|
+
return { $$typeof: a, type: g, key: w, ref: Y, props: _, _owner: l.current };
|
|
30
26
|
}
|
|
31
27
|
return W.Fragment = o, W.jsx = d, W.jsxs = d, W;
|
|
32
28
|
}
|
|
@@ -43,26 +39,26 @@ var V = {};
|
|
|
43
39
|
var De;
|
|
44
40
|
function rt() {
|
|
45
41
|
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var
|
|
42
|
+
var n = Ae, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), oe = Symbol.iterator, Ge = "@@iterator";
|
|
47
43
|
function Ke(e) {
|
|
48
44
|
if (e === null || typeof e != "object")
|
|
49
45
|
return null;
|
|
50
46
|
var r = oe && e[oe] || e[Ge];
|
|
51
47
|
return typeof r == "function" ? r : null;
|
|
52
48
|
}
|
|
53
|
-
var D =
|
|
49
|
+
var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
50
|
function k(e) {
|
|
55
51
|
{
|
|
56
|
-
for (var r = arguments.length,
|
|
57
|
-
|
|
58
|
-
Je("error", e,
|
|
52
|
+
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
|
53
|
+
s[f - 1] = arguments[f];
|
|
54
|
+
Je("error", e, s);
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
function Je(e, r,
|
|
57
|
+
function Je(e, r, s) {
|
|
62
58
|
{
|
|
63
|
-
var f = D.ReactDebugCurrentFrame,
|
|
64
|
-
|
|
65
|
-
var x =
|
|
59
|
+
var f = D.ReactDebugCurrentFrame, h = f.getStackAddendum();
|
|
60
|
+
h !== "" && (r += "%s", s = s.concat([h]));
|
|
61
|
+
var x = s.map(function(p) {
|
|
66
62
|
return String(p);
|
|
67
63
|
});
|
|
68
64
|
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
@@ -71,18 +67,18 @@ function rt() {
|
|
|
71
67
|
var qe = !1, He = !1, ze = !1, Xe = !1, Ze = !1, ie;
|
|
72
68
|
ie = Symbol.for("react.module.reference");
|
|
73
69
|
function Qe(e) {
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e === t || e === u || Ze || e === l || e === v || e === j || Xe || e === Y || qe || He || ze || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === _ || e.$$typeof === d || e.$$typeof ===
|
|
70
|
+
return !!(typeof e == "string" || typeof e == "function" || e === t || e === u || Ze || e === l || e === v || e === j || Xe || e === Y || qe || He || ze || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
|
|
75
71
|
// types supported by any Flight configuration anywhere since
|
|
76
72
|
// we don't know which Flight build this will end up being used
|
|
77
73
|
// with.
|
|
78
74
|
e.$$typeof === ie || e.getModuleId !== void 0));
|
|
79
75
|
}
|
|
80
|
-
function er(e, r,
|
|
76
|
+
function er(e, r, s) {
|
|
81
77
|
var f = e.displayName;
|
|
82
78
|
if (f)
|
|
83
79
|
return f;
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
var h = r.displayName || r.name || "";
|
|
81
|
+
return h !== "" ? s + "(" + h + ")" : s;
|
|
86
82
|
}
|
|
87
83
|
function le(e) {
|
|
88
84
|
return e.displayName || "Context";
|
|
@@ -110,19 +106,19 @@ function rt() {
|
|
|
110
106
|
}
|
|
111
107
|
if (typeof e == "object")
|
|
112
108
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
109
|
+
case g:
|
|
114
110
|
var r = e;
|
|
115
111
|
return le(r) + ".Consumer";
|
|
116
112
|
case d:
|
|
117
|
-
var
|
|
118
|
-
return le(
|
|
113
|
+
var s = e;
|
|
114
|
+
return le(s._context) + ".Provider";
|
|
119
115
|
case c:
|
|
120
116
|
return er(e, e.render, "ForwardRef");
|
|
121
117
|
case _:
|
|
122
118
|
var f = e.displayName || null;
|
|
123
119
|
return f !== null ? f : N(e.type) || "Memo";
|
|
124
120
|
case w: {
|
|
125
|
-
var
|
|
121
|
+
var h = e, x = h._payload, p = h._init;
|
|
126
122
|
try {
|
|
127
123
|
return N(p(x));
|
|
128
124
|
} catch {
|
|
@@ -195,13 +191,13 @@ function rt() {
|
|
|
195
191
|
}
|
|
196
192
|
}
|
|
197
193
|
var J = D.ReactCurrentDispatcher, q;
|
|
198
|
-
function B(e, r,
|
|
194
|
+
function B(e, r, s) {
|
|
199
195
|
{
|
|
200
196
|
if (q === void 0)
|
|
201
197
|
try {
|
|
202
198
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var f =
|
|
199
|
+
} catch (h) {
|
|
200
|
+
var f = h.stack.trim().match(/\n( *(at )?)/);
|
|
205
201
|
q = f && f[1] || "";
|
|
206
202
|
}
|
|
207
203
|
return `
|
|
@@ -217,13 +213,13 @@ function rt() {
|
|
|
217
213
|
if (!e || H)
|
|
218
214
|
return "";
|
|
219
215
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
216
|
+
var s = U.get(e);
|
|
217
|
+
if (s !== void 0)
|
|
218
|
+
return s;
|
|
223
219
|
}
|
|
224
220
|
var f;
|
|
225
221
|
H = !0;
|
|
226
|
-
var
|
|
222
|
+
var h = Error.prepareStackTrace;
|
|
227
223
|
Error.prepareStackTrace = void 0;
|
|
228
224
|
var x;
|
|
229
225
|
x = J.current, J.current = null, rr();
|
|
@@ -279,19 +275,19 @@ function rt() {
|
|
|
279
275
|
}
|
|
280
276
|
}
|
|
281
277
|
} finally {
|
|
282
|
-
H = !1, J.current = x, tr(), Error.prepareStackTrace =
|
|
278
|
+
H = !1, J.current = x, tr(), Error.prepareStackTrace = h;
|
|
283
279
|
}
|
|
284
280
|
var F = e ? e.displayName || e.name : "", I = F ? B(F) : "";
|
|
285
281
|
return typeof e == "function" && U.set(e, I), I;
|
|
286
282
|
}
|
|
287
|
-
function ar(e, r,
|
|
283
|
+
function ar(e, r, s) {
|
|
288
284
|
return ge(e, !1);
|
|
289
285
|
}
|
|
290
286
|
function sr(e) {
|
|
291
287
|
var r = e.prototype;
|
|
292
288
|
return !!(r && r.isReactComponent);
|
|
293
289
|
}
|
|
294
|
-
function G(e, r,
|
|
290
|
+
function G(e, r, s) {
|
|
295
291
|
if (e == null)
|
|
296
292
|
return "";
|
|
297
293
|
if (typeof e == "function")
|
|
@@ -309,11 +305,11 @@ function rt() {
|
|
|
309
305
|
case c:
|
|
310
306
|
return ar(e.render);
|
|
311
307
|
case _:
|
|
312
|
-
return G(e.type, r,
|
|
308
|
+
return G(e.type, r, s);
|
|
313
309
|
case w: {
|
|
314
|
-
var f = e,
|
|
310
|
+
var f = e, h = f._payload, x = f._init;
|
|
315
311
|
try {
|
|
316
|
-
return G(x(
|
|
312
|
+
return G(x(h), r, s);
|
|
317
313
|
} catch {
|
|
318
314
|
}
|
|
319
315
|
}
|
|
@@ -323,12 +319,12 @@ function rt() {
|
|
|
323
319
|
var L = Object.prototype.hasOwnProperty, he = {}, xe = D.ReactDebugCurrentFrame;
|
|
324
320
|
function K(e) {
|
|
325
321
|
if (e) {
|
|
326
|
-
var r = e._owner,
|
|
327
|
-
xe.setExtraStackFrame(
|
|
322
|
+
var r = e._owner, s = G(e.type, e._source, r ? r.type : null);
|
|
323
|
+
xe.setExtraStackFrame(s);
|
|
328
324
|
} else
|
|
329
325
|
xe.setExtraStackFrame(null);
|
|
330
326
|
}
|
|
331
|
-
function or(e, r,
|
|
327
|
+
function or(e, r, s, f, h) {
|
|
332
328
|
{
|
|
333
329
|
var x = Function.call.bind(L);
|
|
334
330
|
for (var p in e)
|
|
@@ -336,14 +332,14 @@ function rt() {
|
|
|
336
332
|
var m = void 0;
|
|
337
333
|
try {
|
|
338
334
|
if (typeof e[p] != "function") {
|
|
339
|
-
var S = Error((f || "React class") + ": " +
|
|
335
|
+
var S = Error((f || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
336
|
throw S.name = "Invariant Violation", S;
|
|
341
337
|
}
|
|
342
|
-
m = e[p](r, p, f,
|
|
338
|
+
m = e[p](r, p, f, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
339
|
} catch (R) {
|
|
344
340
|
m = R;
|
|
345
341
|
}
|
|
346
|
-
m && !(m instanceof Error) && (K(
|
|
342
|
+
m && !(m instanceof Error) && (K(h), 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).", f || "React class", s, p, typeof m), K(null)), m instanceof Error && !(m.message in he) && (he[m.message] = !0, K(h), k("Failed %s type: %s", s, m.message), K(null));
|
|
347
343
|
}
|
|
348
344
|
}
|
|
349
345
|
}
|
|
@@ -353,8 +349,8 @@ function rt() {
|
|
|
353
349
|
}
|
|
354
350
|
function lr(e) {
|
|
355
351
|
{
|
|
356
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
352
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, s = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
353
|
+
return s;
|
|
358
354
|
}
|
|
359
355
|
}
|
|
360
356
|
function cr(e) {
|
|
@@ -396,40 +392,40 @@ function rt() {
|
|
|
396
392
|
}
|
|
397
393
|
function mr(e, r) {
|
|
398
394
|
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
399
|
-
var
|
|
400
|
-
X[
|
|
395
|
+
var s = N($.current.type);
|
|
396
|
+
X[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($.current.type), e.ref), X[s] = !0);
|
|
401
397
|
}
|
|
402
398
|
}
|
|
403
399
|
function vr(e, r) {
|
|
404
400
|
{
|
|
405
|
-
var
|
|
401
|
+
var s = function() {
|
|
406
402
|
Re || (Re = !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)", r));
|
|
407
403
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
404
|
+
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
405
|
+
get: s,
|
|
410
406
|
configurable: !0
|
|
411
407
|
});
|
|
412
408
|
}
|
|
413
409
|
}
|
|
414
410
|
function pr(e, r) {
|
|
415
411
|
{
|
|
416
|
-
var
|
|
412
|
+
var s = function() {
|
|
417
413
|
Ee || (Ee = !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)", r));
|
|
418
414
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
415
|
+
s.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
416
|
+
get: s,
|
|
421
417
|
configurable: !0
|
|
422
418
|
});
|
|
423
419
|
}
|
|
424
420
|
}
|
|
425
|
-
var br = function(e, r,
|
|
421
|
+
var br = function(e, r, s, f, h, x, p) {
|
|
426
422
|
var m = {
|
|
427
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
424
|
+
$$typeof: a,
|
|
429
425
|
// Built-in properties that belong on the element
|
|
430
426
|
type: e,
|
|
431
427
|
key: r,
|
|
432
|
-
ref:
|
|
428
|
+
ref: s,
|
|
433
429
|
props: p,
|
|
434
430
|
// Record the component responsible for creating this element.
|
|
435
431
|
_owner: x
|
|
@@ -448,13 +444,13 @@ function rt() {
|
|
|
448
444
|
configurable: !1,
|
|
449
445
|
enumerable: !1,
|
|
450
446
|
writable: !1,
|
|
451
|
-
value:
|
|
447
|
+
value: h
|
|
452
448
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
453
449
|
};
|
|
454
|
-
function gr(e, r,
|
|
450
|
+
function gr(e, r, s, f, h) {
|
|
455
451
|
{
|
|
456
452
|
var x, p = {}, m = null, S = null;
|
|
457
|
-
|
|
453
|
+
s !== void 0 && (je(s), m = "" + s), dr(r) && (je(r.key), m = "" + r.key), fr(r) && (S = r.ref, mr(r, h));
|
|
458
454
|
for (x in r)
|
|
459
455
|
L.call(r, x) && !ur.hasOwnProperty(x) && (p[x] = r[x]);
|
|
460
456
|
if (e && e.defaultProps) {
|
|
@@ -466,21 +462,21 @@ function rt() {
|
|
|
466
462
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
463
|
m && vr(p, T), S && pr(p, T);
|
|
468
464
|
}
|
|
469
|
-
return br(e, m, S,
|
|
465
|
+
return br(e, m, S, h, f, $.current, p);
|
|
470
466
|
}
|
|
471
467
|
}
|
|
472
468
|
var Z = D.ReactCurrentOwner, Te = D.ReactDebugCurrentFrame;
|
|
473
469
|
function M(e) {
|
|
474
470
|
if (e) {
|
|
475
|
-
var r = e._owner,
|
|
476
|
-
Te.setExtraStackFrame(
|
|
471
|
+
var r = e._owner, s = G(e.type, e._source, r ? r.type : null);
|
|
472
|
+
Te.setExtraStackFrame(s);
|
|
477
473
|
} else
|
|
478
474
|
Te.setExtraStackFrame(null);
|
|
479
475
|
}
|
|
480
476
|
var Q;
|
|
481
477
|
Q = !1;
|
|
482
478
|
function ee(e) {
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
479
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
484
480
|
}
|
|
485
481
|
function _e() {
|
|
486
482
|
{
|
|
@@ -495,25 +491,17 @@ Check the render method of \`` + e + "`.";
|
|
|
495
491
|
}
|
|
496
492
|
}
|
|
497
493
|
function hr(e) {
|
|
498
|
-
|
|
499
|
-
if (e !== void 0) {
|
|
500
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
501
|
-
return `
|
|
502
|
-
|
|
503
|
-
Check your code at ` + r + ":" + n + ".";
|
|
504
|
-
}
|
|
505
|
-
return "";
|
|
506
|
-
}
|
|
494
|
+
return "";
|
|
507
495
|
}
|
|
508
496
|
var ke = {};
|
|
509
497
|
function xr(e) {
|
|
510
498
|
{
|
|
511
499
|
var r = _e();
|
|
512
500
|
if (!r) {
|
|
513
|
-
var
|
|
514
|
-
|
|
501
|
+
var s = typeof e == "string" ? e : e.displayName || e.name;
|
|
502
|
+
s && (r = `
|
|
515
503
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
504
|
+
Check the top-level render call using <` + s + ">.");
|
|
517
505
|
}
|
|
518
506
|
return r;
|
|
519
507
|
}
|
|
@@ -523,12 +511,12 @@ Check the top-level render call using <` + n + ">.");
|
|
|
523
511
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
512
|
return;
|
|
525
513
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (ke[
|
|
514
|
+
var s = xr(r);
|
|
515
|
+
if (ke[s])
|
|
528
516
|
return;
|
|
529
|
-
ke[
|
|
517
|
+
ke[s] = !0;
|
|
530
518
|
var f = "";
|
|
531
|
-
e && e._owner && e._owner !== Z.current && (f = " It was passed a child from " + N(e._owner.type) + "."), M(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
519
|
+
e && e._owner && e._owner !== Z.current && (f = " It was passed a child from " + N(e._owner.type) + "."), M(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, f), M(null);
|
|
532
520
|
}
|
|
533
521
|
}
|
|
534
522
|
function Pe(e, r) {
|
|
@@ -536,16 +524,16 @@ Check the top-level render call using <` + n + ">.");
|
|
|
536
524
|
if (typeof e != "object")
|
|
537
525
|
return;
|
|
538
526
|
if (z(e))
|
|
539
|
-
for (var
|
|
540
|
-
var f = e[
|
|
527
|
+
for (var s = 0; s < e.length; s++) {
|
|
528
|
+
var f = e[s];
|
|
541
529
|
ee(f) && Se(f, r);
|
|
542
530
|
}
|
|
543
531
|
else if (ee(e))
|
|
544
532
|
e._store && (e._store.validated = !0);
|
|
545
533
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var x =
|
|
534
|
+
var h = Ke(e);
|
|
535
|
+
if (typeof h == "function" && h !== e.entries)
|
|
536
|
+
for (var x = h.call(e), p; !(p = x.next()).done; )
|
|
549
537
|
ee(p.value) && Se(p.value, r);
|
|
550
538
|
}
|
|
551
539
|
}
|
|
@@ -555,30 +543,30 @@ Check the top-level render call using <` + n + ">.");
|
|
|
555
543
|
var r = e.type;
|
|
556
544
|
if (r == null || typeof r == "string")
|
|
557
545
|
return;
|
|
558
|
-
var
|
|
546
|
+
var s;
|
|
559
547
|
if (typeof r == "function")
|
|
560
|
-
|
|
548
|
+
s = r.propTypes;
|
|
561
549
|
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
562
550
|
// Inner props are checked in the reconciler.
|
|
563
551
|
r.$$typeof === _))
|
|
564
|
-
|
|
552
|
+
s = r.propTypes;
|
|
565
553
|
else
|
|
566
554
|
return;
|
|
567
|
-
if (
|
|
555
|
+
if (s) {
|
|
568
556
|
var f = N(r);
|
|
569
|
-
or(
|
|
557
|
+
or(s, e.props, "prop", f, e);
|
|
570
558
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
571
559
|
Q = !0;
|
|
572
|
-
var
|
|
573
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
560
|
+
var h = N(r);
|
|
561
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
574
562
|
}
|
|
575
563
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
564
|
}
|
|
577
565
|
}
|
|
578
566
|
function jr(e) {
|
|
579
567
|
{
|
|
580
|
-
for (var r = Object.keys(e.props),
|
|
581
|
-
var f = r[
|
|
568
|
+
for (var r = Object.keys(e.props), s = 0; s < r.length; s++) {
|
|
569
|
+
var f = r[s];
|
|
582
570
|
if (f !== "children" && f !== "key") {
|
|
583
571
|
M(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), M(null);
|
|
584
572
|
break;
|
|
@@ -588,18 +576,18 @@ Check the top-level render call using <` + n + ">.");
|
|
|
588
576
|
}
|
|
589
577
|
}
|
|
590
578
|
var Ce = {};
|
|
591
|
-
function we(e, r,
|
|
579
|
+
function we(e, r, s, f, h, x) {
|
|
592
580
|
{
|
|
593
581
|
var p = Qe(e);
|
|
594
582
|
if (!p) {
|
|
595
583
|
var m = "";
|
|
596
584
|
(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.");
|
|
597
|
-
var S = hr(
|
|
585
|
+
var S = hr();
|
|
598
586
|
S ? m += S : m += _e();
|
|
599
587
|
var R;
|
|
600
|
-
e === null ? R = "null" : z(e) ? R = "array" : e !== void 0 && e.$$typeof ===
|
|
588
|
+
e === null ? R = "null" : z(e) ? R = "array" : e !== void 0 && e.$$typeof === a ? (R = "<" + (N(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : R = 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", R, m);
|
|
601
589
|
}
|
|
602
|
-
var T = gr(e, r,
|
|
590
|
+
var T = gr(e, r, s, h, x);
|
|
603
591
|
if (T == null)
|
|
604
592
|
return T;
|
|
605
593
|
if (p) {
|
|
@@ -632,11 +620,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
632
620
|
return e === t ? jr(T) : yr(T), T;
|
|
633
621
|
}
|
|
634
622
|
}
|
|
635
|
-
function Rr(e, r,
|
|
636
|
-
return we(e, r,
|
|
623
|
+
function Rr(e, r, s) {
|
|
624
|
+
return we(e, r, s, !0);
|
|
637
625
|
}
|
|
638
|
-
function Er(e, r,
|
|
639
|
-
return we(e, r,
|
|
626
|
+
function Er(e, r, s) {
|
|
627
|
+
return we(e, r, s, !1);
|
|
640
628
|
}
|
|
641
629
|
var Tr = Er, _r = Rr;
|
|
642
630
|
V.Fragment = t, V.jsx = Tr, V.jsxs = _r;
|
|
@@ -644,36 +632,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
644
632
|
}
|
|
645
633
|
process.env.NODE_ENV === "production" ? te.exports = et() : te.exports = rt();
|
|
646
634
|
var i = te.exports;
|
|
647
|
-
const tt = (
|
|
648
|
-
const { children:
|
|
649
|
-
return
|
|
650
|
-
}, nt = y((
|
|
651
|
-
const { className: o, children: t, id: l, columns: u, ...d } =
|
|
652
|
-
return
|
|
635
|
+
const tt = (n) => {
|
|
636
|
+
const { children: a, ...o } = n;
|
|
637
|
+
return b(o), /* @__PURE__ */ i.jsx(ne, { children: a });
|
|
638
|
+
}, nt = y((n, a) => {
|
|
639
|
+
const { className: o, children: t, id: l, columns: u, ...d } = n;
|
|
640
|
+
return b(d), /* @__PURE__ */ i.jsx(
|
|
653
641
|
"div",
|
|
654
642
|
{
|
|
655
643
|
className: o,
|
|
656
644
|
style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
|
|
657
|
-
ref:
|
|
645
|
+
ref: a,
|
|
658
646
|
id: l,
|
|
659
647
|
role: "grid",
|
|
660
648
|
children: t
|
|
661
649
|
}
|
|
662
650
|
);
|
|
663
|
-
}), at = y((
|
|
664
|
-
const { className: o, children: t, columns: l, ...u } =
|
|
665
|
-
return
|
|
651
|
+
}), at = y((n, a) => {
|
|
652
|
+
const { className: o, children: t, columns: l, ...u } = n;
|
|
653
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
666
654
|
"div",
|
|
667
655
|
{
|
|
668
656
|
className: E("bn-ak-menu-item", o || ""),
|
|
669
657
|
style: { gridColumn: `1 / ${l + 1}` },
|
|
670
|
-
ref:
|
|
658
|
+
ref: a,
|
|
671
659
|
children: /* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: t })
|
|
672
660
|
}
|
|
673
661
|
);
|
|
674
|
-
}), st = y((
|
|
675
|
-
const { className: o, isSelected: t, onClick: l, item: u, id: d, ...
|
|
676
|
-
g
|
|
662
|
+
}), st = y((n, a) => {
|
|
663
|
+
const { className: o, isSelected: t, onClick: l, item: u, id: d, ...g } = n;
|
|
664
|
+
b(g);
|
|
677
665
|
const c = Le(null);
|
|
678
666
|
return $e(() => {
|
|
679
667
|
if (!c.current || !t)
|
|
@@ -684,7 +672,7 @@ const tt = (a) => {
|
|
|
684
672
|
"div",
|
|
685
673
|
{
|
|
686
674
|
className: o,
|
|
687
|
-
ref: Ve([
|
|
675
|
+
ref: Ve([a, c]),
|
|
688
676
|
id: d,
|
|
689
677
|
role: "option",
|
|
690
678
|
onClick: l,
|
|
@@ -692,49 +680,49 @@ const tt = (a) => {
|
|
|
692
680
|
children: u.icon
|
|
693
681
|
}
|
|
694
682
|
);
|
|
695
|
-
}), ot = y((
|
|
683
|
+
}), ot = y((n, a) => {
|
|
696
684
|
const {
|
|
697
685
|
className: o,
|
|
698
686
|
children: t,
|
|
699
687
|
// unused, using "dots" instead
|
|
700
688
|
columns: l,
|
|
701
689
|
...u
|
|
702
|
-
} =
|
|
703
|
-
return
|
|
690
|
+
} = n;
|
|
691
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
704
692
|
"div",
|
|
705
693
|
{
|
|
706
694
|
className: o,
|
|
707
695
|
style: { gridColumn: `1 / ${l + 1}` },
|
|
708
|
-
ref:
|
|
696
|
+
ref: a,
|
|
709
697
|
children: t
|
|
710
698
|
}
|
|
711
699
|
);
|
|
712
|
-
}), it = y((
|
|
700
|
+
}), it = y((n, a) => {
|
|
713
701
|
const {
|
|
714
702
|
className: o,
|
|
715
703
|
name: t,
|
|
716
704
|
label: l,
|
|
717
705
|
icon: u,
|
|
718
706
|
value: d,
|
|
719
|
-
autoFocus:
|
|
707
|
+
autoFocus: g,
|
|
720
708
|
placeholder: c,
|
|
721
709
|
onKeyDown: v,
|
|
722
710
|
onChange: j,
|
|
723
711
|
onSubmit: _,
|
|
724
712
|
...w
|
|
725
|
-
} =
|
|
726
|
-
return
|
|
727
|
-
|
|
713
|
+
} = n;
|
|
714
|
+
return b(w), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
715
|
+
n.label && /* @__PURE__ */ i.jsx(Nr, { name: t, children: l }),
|
|
728
716
|
/* @__PURE__ */ i.jsxs("div", { className: "bn-ak-input-wrapper", children: [
|
|
729
717
|
u,
|
|
730
718
|
/* @__PURE__ */ i.jsx(
|
|
731
719
|
ae,
|
|
732
720
|
{
|
|
733
721
|
className: E("bn-ak-input", o || ""),
|
|
734
|
-
ref:
|
|
722
|
+
ref: a,
|
|
735
723
|
name: t,
|
|
736
724
|
value: d,
|
|
737
|
-
autoFocus:
|
|
725
|
+
autoFocus: g,
|
|
738
726
|
placeholder: c,
|
|
739
727
|
onKeyDown: v,
|
|
740
728
|
onChange: j,
|
|
@@ -743,50 +731,50 @@ const tt = (a) => {
|
|
|
743
731
|
)
|
|
744
732
|
] })
|
|
745
733
|
] });
|
|
746
|
-
}), lt = (
|
|
734
|
+
}), lt = (n) => {
|
|
747
735
|
const {
|
|
748
|
-
children:
|
|
736
|
+
children: a,
|
|
749
737
|
onOpenChange: o,
|
|
750
738
|
position: t,
|
|
751
739
|
sub: l,
|
|
752
740
|
// unused
|
|
753
741
|
...u
|
|
754
|
-
} =
|
|
755
|
-
return
|
|
742
|
+
} = n;
|
|
743
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
756
744
|
Fr,
|
|
757
745
|
{
|
|
758
746
|
placement: t,
|
|
759
747
|
setOpen: o,
|
|
760
748
|
virtualFocus: !0,
|
|
761
|
-
children:
|
|
749
|
+
children: a
|
|
762
750
|
}
|
|
763
751
|
);
|
|
764
|
-
}, ct = y((
|
|
752
|
+
}, ct = y((n, a) => {
|
|
765
753
|
const {
|
|
766
754
|
className: o,
|
|
767
755
|
children: t,
|
|
768
756
|
sub: l,
|
|
769
757
|
// unused
|
|
770
758
|
...u
|
|
771
|
-
} =
|
|
772
|
-
return
|
|
759
|
+
} = n;
|
|
760
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
773
761
|
Or,
|
|
774
762
|
{
|
|
775
763
|
unmountOnHide: !0,
|
|
776
764
|
className: E("bn-ak-menu", o || ""),
|
|
777
|
-
ref:
|
|
765
|
+
ref: a,
|
|
778
766
|
children: t
|
|
779
767
|
}
|
|
780
768
|
);
|
|
781
|
-
}), ut = y((
|
|
782
|
-
const { className: o, children: t, icon: l, checked: u, subTrigger: d, onClick:
|
|
783
|
-
return
|
|
769
|
+
}), ut = y((n, a) => {
|
|
770
|
+
const { className: o, children: t, icon: l, checked: u, subTrigger: d, onClick: g, ...c } = n;
|
|
771
|
+
return b(c), d ? /* @__PURE__ */ i.jsxs(
|
|
784
772
|
Ye,
|
|
785
773
|
{
|
|
786
774
|
render: /* @__PURE__ */ i.jsx(Ne, {}),
|
|
787
775
|
className: E("bn-ak-menu-item", o || ""),
|
|
788
|
-
ref:
|
|
789
|
-
onClick:
|
|
776
|
+
ref: a,
|
|
777
|
+
onClick: g,
|
|
790
778
|
children: [
|
|
791
779
|
l,
|
|
792
780
|
t,
|
|
@@ -798,8 +786,8 @@ const tt = (a) => {
|
|
|
798
786
|
Ne,
|
|
799
787
|
{
|
|
800
788
|
className: E("bn-ak-menu-item", o || ""),
|
|
801
|
-
ref:
|
|
802
|
-
onClick:
|
|
789
|
+
ref: a,
|
|
790
|
+
onClick: g,
|
|
803
791
|
children: [
|
|
804
792
|
l,
|
|
805
793
|
t,
|
|
@@ -807,44 +795,44 @@ const tt = (a) => {
|
|
|
807
795
|
]
|
|
808
796
|
}
|
|
809
797
|
);
|
|
810
|
-
}), ft = y((
|
|
811
|
-
const { className: o, children: t, ...l } =
|
|
812
|
-
return
|
|
798
|
+
}), ft = y((n, a) => {
|
|
799
|
+
const { className: o, children: t, ...l } = n;
|
|
800
|
+
return b(l), /* @__PURE__ */ i.jsx(
|
|
813
801
|
Dr,
|
|
814
802
|
{
|
|
815
803
|
className: E("bn-ak-group-label", o || ""),
|
|
816
|
-
ref:
|
|
804
|
+
ref: a,
|
|
817
805
|
children: t
|
|
818
806
|
}
|
|
819
807
|
);
|
|
820
|
-
}), dt = (
|
|
821
|
-
const { children:
|
|
822
|
-
return
|
|
823
|
-
}, mt = y((
|
|
824
|
-
const { className: o, ...t } =
|
|
825
|
-
return
|
|
808
|
+
}), dt = (n) => {
|
|
809
|
+
const { children: a, sub: o, ...t } = n;
|
|
810
|
+
return b(t), o ? a : /* @__PURE__ */ i.jsx(Ye, { render: a });
|
|
811
|
+
}, mt = y((n, a) => {
|
|
812
|
+
const { className: o, ...t } = n;
|
|
813
|
+
return b(t), /* @__PURE__ */ i.jsx(
|
|
826
814
|
Mr,
|
|
827
815
|
{
|
|
828
816
|
className: E("bn-ak-separator", o || ""),
|
|
829
|
-
ref:
|
|
817
|
+
ref: a
|
|
830
818
|
}
|
|
831
819
|
);
|
|
832
|
-
}), vt = y((
|
|
820
|
+
}), vt = y((n, a) => {
|
|
833
821
|
const {
|
|
834
822
|
className: o,
|
|
835
823
|
tabs: t,
|
|
836
824
|
defaultOpenTab: l,
|
|
837
825
|
openTab: u,
|
|
838
826
|
setOpenTab: d,
|
|
839
|
-
loading:
|
|
827
|
+
loading: g,
|
|
840
828
|
// TODO: implement loading
|
|
841
829
|
...c
|
|
842
|
-
} =
|
|
843
|
-
return
|
|
830
|
+
} = n;
|
|
831
|
+
return b(c), /* @__PURE__ */ i.jsx(
|
|
844
832
|
"div",
|
|
845
833
|
{
|
|
846
834
|
className: E("bn-ak-wrapper", o || ""),
|
|
847
|
-
ref:
|
|
835
|
+
ref: a,
|
|
848
836
|
children: /* @__PURE__ */ i.jsxs(
|
|
849
837
|
Ar,
|
|
850
838
|
{
|
|
@@ -861,25 +849,25 @@ const tt = (a) => {
|
|
|
861
849
|
)
|
|
862
850
|
}
|
|
863
851
|
);
|
|
864
|
-
}), pt = y((
|
|
865
|
-
const { className: o, children: t, onClick: l, label: u, ...d } =
|
|
866
|
-
return
|
|
852
|
+
}), pt = y((n, a) => {
|
|
853
|
+
const { className: o, children: t, onClick: l, label: u, ...d } = n;
|
|
854
|
+
return b(d), /* @__PURE__ */ i.jsx(
|
|
867
855
|
se,
|
|
868
856
|
{
|
|
869
857
|
className: E("bn-ak-button", o || ""),
|
|
870
858
|
onClick: l,
|
|
871
859
|
"aria-label": u,
|
|
872
|
-
ref:
|
|
860
|
+
ref: a,
|
|
873
861
|
children: t
|
|
874
862
|
}
|
|
875
863
|
);
|
|
876
|
-
}), bt = y((
|
|
877
|
-
const { className: o, accept: t, value: l, placeholder: u, onChange: d, ...
|
|
878
|
-
return g
|
|
864
|
+
}), bt = y((n, a) => {
|
|
865
|
+
const { className: o, accept: t, value: l, placeholder: u, onChange: d, ...g } = n;
|
|
866
|
+
return b(g), /* @__PURE__ */ i.jsx(ne, { children: /* @__PURE__ */ i.jsx(
|
|
879
867
|
ae,
|
|
880
868
|
{
|
|
881
869
|
className: o,
|
|
882
|
-
ref:
|
|
870
|
+
ref: a,
|
|
883
871
|
name: "panel-input",
|
|
884
872
|
type: "file",
|
|
885
873
|
accept: t,
|
|
@@ -888,12 +876,12 @@ const tt = (a) => {
|
|
|
888
876
|
placeholder: u
|
|
889
877
|
}
|
|
890
878
|
) });
|
|
891
|
-
}), gt = y((
|
|
892
|
-
const { className: o, children: t, ...l } =
|
|
893
|
-
return
|
|
894
|
-
}), ht = y((
|
|
895
|
-
const { className: o, value: t, placeholder: l, onKeyDown: u, onChange: d, ...
|
|
896
|
-
return g
|
|
879
|
+
}), gt = y((n, a) => {
|
|
880
|
+
const { className: o, children: t, ...l } = n;
|
|
881
|
+
return b(l), /* @__PURE__ */ i.jsx("div", { className: o, ref: a, children: t });
|
|
882
|
+
}), ht = y((n, a) => {
|
|
883
|
+
const { className: o, value: t, placeholder: l, onKeyDown: u, onChange: d, ...g } = n;
|
|
884
|
+
return b(g), /* @__PURE__ */ i.jsx(ne, { children: /* @__PURE__ */ i.jsx(
|
|
897
885
|
ae,
|
|
898
886
|
{
|
|
899
887
|
className: E("bn-ak-input", o || ""),
|
|
@@ -903,44 +891,44 @@ const tt = (a) => {
|
|
|
903
891
|
onChange: d,
|
|
904
892
|
onKeyDown: u,
|
|
905
893
|
"data-test": "embed-input",
|
|
906
|
-
ref:
|
|
894
|
+
ref: a
|
|
907
895
|
}
|
|
908
896
|
) });
|
|
909
|
-
}), xt = y((
|
|
910
|
-
const { children: o, ...t } =
|
|
911
|
-
return
|
|
912
|
-
}), yt = y((
|
|
913
|
-
const { className: o, children: t, variant: l, ...u } =
|
|
914
|
-
return
|
|
897
|
+
}), xt = y((n, a) => {
|
|
898
|
+
const { children: o, ...t } = n;
|
|
899
|
+
return b(t), /* @__PURE__ */ i.jsx(Vr, { render: o, ref: a });
|
|
900
|
+
}), yt = y((n, a) => {
|
|
901
|
+
const { className: o, children: t, variant: l, ...u } = n;
|
|
902
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
915
903
|
Yr,
|
|
916
904
|
{
|
|
917
905
|
className: E("bn-ak-popover", o || ""),
|
|
918
|
-
ref:
|
|
906
|
+
ref: a,
|
|
919
907
|
children: t
|
|
920
908
|
}
|
|
921
909
|
);
|
|
922
|
-
}), jt = (
|
|
923
|
-
const { children:
|
|
924
|
-
return
|
|
925
|
-
}, Rt = y((
|
|
926
|
-
const { className: o, children: t, ...l } =
|
|
927
|
-
return
|
|
928
|
-
}), Et = y((
|
|
910
|
+
}), jt = (n) => {
|
|
911
|
+
const { children: a, opened: o, position: t, ...l } = n;
|
|
912
|
+
return b(l), /* @__PURE__ */ i.jsx(Br, { open: o, placement: t, children: a });
|
|
913
|
+
}, Rt = y((n, a) => {
|
|
914
|
+
const { className: o, children: t, ...l } = n;
|
|
915
|
+
return b(l, !1), /* @__PURE__ */ i.jsx(Be, { className: o, ref: a, ...l, children: t });
|
|
916
|
+
}), Et = y((n, a) => {
|
|
929
917
|
const {
|
|
930
918
|
className: o,
|
|
931
919
|
children: t,
|
|
932
920
|
icon: l,
|
|
933
921
|
onClick: u,
|
|
934
922
|
label: d,
|
|
935
|
-
onDragEnd:
|
|
923
|
+
onDragEnd: g,
|
|
936
924
|
onDragStart: c,
|
|
937
925
|
draggable: v,
|
|
938
926
|
...j
|
|
939
|
-
} =
|
|
940
|
-
return
|
|
927
|
+
} = n;
|
|
928
|
+
return b(j, !1), /* @__PURE__ */ i.jsxs(
|
|
941
929
|
se,
|
|
942
930
|
{
|
|
943
|
-
onDragEnd:
|
|
931
|
+
onDragEnd: g,
|
|
944
932
|
onDragStart: c,
|
|
945
933
|
draggable: v,
|
|
946
934
|
"aria-label": d,
|
|
@@ -948,7 +936,7 @@ const tt = (a) => {
|
|
|
948
936
|
"bn-ak-button bn-ak-secondary",
|
|
949
937
|
o || ""
|
|
950
938
|
),
|
|
951
|
-
ref:
|
|
939
|
+
ref: a,
|
|
952
940
|
onClick: u,
|
|
953
941
|
...j,
|
|
954
942
|
children: [
|
|
@@ -957,21 +945,21 @@ const tt = (a) => {
|
|
|
957
945
|
]
|
|
958
946
|
}
|
|
959
947
|
);
|
|
960
|
-
}), Tt = y((
|
|
961
|
-
const { className: o, children: t, id: l, ...u } =
|
|
962
|
-
return
|
|
948
|
+
}), Tt = y((n, a) => {
|
|
949
|
+
const { className: o, children: t, id: l, ...u } = n;
|
|
950
|
+
return b(u), /* @__PURE__ */ i.jsx(
|
|
963
951
|
Be,
|
|
964
952
|
{
|
|
965
953
|
className: E("bn-ak-menu", o || ""),
|
|
966
954
|
id: l,
|
|
967
955
|
role: "listbox",
|
|
968
|
-
ref:
|
|
956
|
+
ref: a,
|
|
969
957
|
children: t
|
|
970
958
|
}
|
|
971
959
|
);
|
|
972
|
-
}), _t = y((
|
|
973
|
-
const { className: o, item: t, isSelected: l, onClick: u, id: d, ...
|
|
974
|
-
g
|
|
960
|
+
}), _t = y((n, a) => {
|
|
961
|
+
const { className: o, item: t, isSelected: l, onClick: u, id: d, ...g } = n;
|
|
962
|
+
b(g);
|
|
975
963
|
const c = Le(null);
|
|
976
964
|
return $e(() => {
|
|
977
965
|
if (!c.current || !l)
|
|
@@ -982,7 +970,7 @@ const tt = (a) => {
|
|
|
982
970
|
"div",
|
|
983
971
|
{
|
|
984
972
|
className: E("bn-ak-menu-item", o || ""),
|
|
985
|
-
ref: Ve([
|
|
973
|
+
ref: Ve([a, c]),
|
|
986
974
|
id: d,
|
|
987
975
|
onClick: u,
|
|
988
976
|
role: "option",
|
|
@@ -1011,65 +999,65 @@ const tt = (a) => {
|
|
|
1011
999
|
]
|
|
1012
1000
|
}
|
|
1013
1001
|
);
|
|
1014
|
-
}), kt = y((
|
|
1015
|
-
const { className: o, children: t, ...l } =
|
|
1016
|
-
return
|
|
1002
|
+
}), kt = y((n, a) => {
|
|
1003
|
+
const { className: o, children: t, ...l } = n;
|
|
1004
|
+
return b(l), /* @__PURE__ */ i.jsx(
|
|
1017
1005
|
"div",
|
|
1018
1006
|
{
|
|
1019
1007
|
className: E("bn-ak-menu-item", o || ""),
|
|
1020
|
-
ref:
|
|
1008
|
+
ref: a,
|
|
1021
1009
|
children: /* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: t })
|
|
1022
1010
|
}
|
|
1023
1011
|
);
|
|
1024
|
-
}), St = y((
|
|
1025
|
-
const { className: o, children: t, ...l } =
|
|
1026
|
-
return
|
|
1012
|
+
}), St = y((n, a) => {
|
|
1013
|
+
const { className: o, children: t, ...l } = n;
|
|
1014
|
+
return b(l), /* @__PURE__ */ i.jsx(
|
|
1027
1015
|
"div",
|
|
1028
1016
|
{
|
|
1029
1017
|
className: E("bn-ak-group-label", o || ""),
|
|
1030
|
-
ref:
|
|
1018
|
+
ref: a,
|
|
1031
1019
|
children: t
|
|
1032
1020
|
}
|
|
1033
1021
|
);
|
|
1034
|
-
}), Pt = y((
|
|
1035
|
-
const { className: o, children: t, ...l } =
|
|
1036
|
-
return
|
|
1037
|
-
}), Ct = y((
|
|
1022
|
+
}), Pt = y((n, a) => {
|
|
1023
|
+
const { className: o, children: t, ...l } = n;
|
|
1024
|
+
return b(l), /* @__PURE__ */ i.jsx("div", { className: o, ref: a, children: t });
|
|
1025
|
+
}), Ct = y((n, a) => {
|
|
1038
1026
|
const {
|
|
1039
1027
|
className: o,
|
|
1040
1028
|
children: t,
|
|
1041
1029
|
draggable: l,
|
|
1042
1030
|
onDragStart: u,
|
|
1043
1031
|
onDragEnd: d,
|
|
1044
|
-
style:
|
|
1032
|
+
style: g,
|
|
1045
1033
|
label: c,
|
|
1046
1034
|
...v
|
|
1047
|
-
} =
|
|
1048
|
-
return
|
|
1035
|
+
} = n;
|
|
1036
|
+
return b(v, !1), /* @__PURE__ */ i.jsx(
|
|
1049
1037
|
se,
|
|
1050
1038
|
{
|
|
1051
1039
|
className: E(
|
|
1052
1040
|
"bn-ak-button bn-ak-secondary",
|
|
1053
1041
|
o || ""
|
|
1054
1042
|
),
|
|
1055
|
-
ref:
|
|
1043
|
+
ref: a,
|
|
1056
1044
|
"aria-label": c,
|
|
1057
1045
|
draggable: l,
|
|
1058
1046
|
onDragStart: u,
|
|
1059
1047
|
onDragEnd: d,
|
|
1060
|
-
style:
|
|
1048
|
+
style: g,
|
|
1061
1049
|
...v,
|
|
1062
1050
|
children: t
|
|
1063
1051
|
}
|
|
1064
1052
|
);
|
|
1065
1053
|
}), Me = y(
|
|
1066
|
-
(
|
|
1067
|
-
const { className: o, children: t, onMouseEnter: l, onMouseLeave: u, ...d } =
|
|
1068
|
-
return
|
|
1054
|
+
(n, a) => {
|
|
1055
|
+
const { className: o, children: t, onMouseEnter: l, onMouseLeave: u, ...d } = n;
|
|
1056
|
+
return b(d), /* @__PURE__ */ i.jsx(
|
|
1069
1057
|
Ur,
|
|
1070
1058
|
{
|
|
1071
1059
|
className: E("bn-ak-toolbar", o || ""),
|
|
1072
|
-
ref:
|
|
1060
|
+
ref: a,
|
|
1073
1061
|
onMouseEnter: l,
|
|
1074
1062
|
onMouseLeave: u,
|
|
1075
1063
|
children: t
|
|
@@ -1077,20 +1065,20 @@ const tt = (a) => {
|
|
|
1077
1065
|
);
|
|
1078
1066
|
}
|
|
1079
1067
|
), Fe = y(
|
|
1080
|
-
(
|
|
1068
|
+
(n, a) => {
|
|
1081
1069
|
const {
|
|
1082
1070
|
className: o,
|
|
1083
1071
|
children: t,
|
|
1084
1072
|
mainTooltip: l,
|
|
1085
1073
|
secondaryTooltip: u,
|
|
1086
1074
|
icon: d,
|
|
1087
|
-
isSelected:
|
|
1075
|
+
isSelected: g,
|
|
1088
1076
|
isDisabled: c,
|
|
1089
1077
|
onClick: v,
|
|
1090
1078
|
label: j,
|
|
1091
1079
|
..._
|
|
1092
|
-
} =
|
|
1093
|
-
return
|
|
1080
|
+
} = n;
|
|
1081
|
+
return b(_, !1), /* @__PURE__ */ i.jsxs(Gr, { children: [
|
|
1094
1082
|
/* @__PURE__ */ i.jsx(
|
|
1095
1083
|
Kr,
|
|
1096
1084
|
{
|
|
@@ -1107,11 +1095,11 @@ const tt = (a) => {
|
|
|
1107
1095
|
Pr() && w.currentTarget.focus();
|
|
1108
1096
|
},
|
|
1109
1097
|
onClick: v,
|
|
1110
|
-
"aria-pressed":
|
|
1111
|
-
"data-selected":
|
|
1112
|
-
"data-test":
|
|
1098
|
+
"aria-pressed": g,
|
|
1099
|
+
"data-selected": g ? "true" : void 0,
|
|
1100
|
+
"data-test": n.mainTooltip.slice(0, 1).toLowerCase() + n.mainTooltip.replace(/\s+/g, "").slice(1),
|
|
1113
1101
|
disabled: c || !1,
|
|
1114
|
-
ref:
|
|
1102
|
+
ref: a,
|
|
1115
1103
|
..._,
|
|
1116
1104
|
children: [
|
|
1117
1105
|
d,
|
|
@@ -1127,14 +1115,14 @@ const tt = (a) => {
|
|
|
1127
1115
|
] })
|
|
1128
1116
|
] });
|
|
1129
1117
|
}
|
|
1130
|
-
), wt = y((
|
|
1131
|
-
const { className: o, items: t, isDisabled: l, ...u } =
|
|
1132
|
-
|
|
1133
|
-
const d =
|
|
1118
|
+
), wt = y((n, a) => {
|
|
1119
|
+
const { className: o, items: t, isDisabled: l, ...u } = n;
|
|
1120
|
+
b(u);
|
|
1121
|
+
const d = n.items.filter((c) => c.isSelected)[0], g = (c) => {
|
|
1134
1122
|
var v, j;
|
|
1135
1123
|
(j = (v = t.find((_) => _.text === c)).onClick) == null || j.call(v);
|
|
1136
1124
|
};
|
|
1137
|
-
return /* @__PURE__ */ i.jsxs(qr, { value: d.text, setValue:
|
|
1125
|
+
return /* @__PURE__ */ i.jsxs(qr, { value: d.text, setValue: g, children: [
|
|
1138
1126
|
/* @__PURE__ */ i.jsxs(
|
|
1139
1127
|
Hr,
|
|
1140
1128
|
{
|
|
@@ -1155,7 +1143,7 @@ const tt = (a) => {
|
|
|
1155
1143
|
Xr,
|
|
1156
1144
|
{
|
|
1157
1145
|
className: E("bn-ak-popover", o || ""),
|
|
1158
|
-
ref:
|
|
1146
|
+
ref: a,
|
|
1159
1147
|
gutter: 4,
|
|
1160
1148
|
children: t.map((c) => /* @__PURE__ */ i.jsxs(
|
|
1161
1149
|
Zr,
|
|
@@ -1173,8 +1161,7 @@ const tt = (a) => {
|
|
|
1173
1161
|
}
|
|
1174
1162
|
)
|
|
1175
1163
|
] });
|
|
1176
|
-
})
|
|
1177
|
-
const Nt = {
|
|
1164
|
+
}), Nt = {
|
|
1178
1165
|
FormattingToolbar: {
|
|
1179
1166
|
Root: Me,
|
|
1180
1167
|
Button: Fe,
|
|
@@ -1230,12 +1217,12 @@ const Nt = {
|
|
|
1230
1217
|
Content: yt
|
|
1231
1218
|
}
|
|
1232
1219
|
}
|
|
1233
|
-
}, Ft = (
|
|
1234
|
-
const { className:
|
|
1220
|
+
}, Ft = (n) => {
|
|
1221
|
+
const { className: a, ...o } = n;
|
|
1235
1222
|
return /* @__PURE__ */ i.jsx(Cr.Provider, { value: Nt, children: /* @__PURE__ */ i.jsx(
|
|
1236
1223
|
wr,
|
|
1237
1224
|
{
|
|
1238
|
-
className: E("bn-ariakit",
|
|
1225
|
+
className: E("bn-ariakit", a || ""),
|
|
1239
1226
|
...o
|
|
1240
1227
|
}
|
|
1241
1228
|
) });
|