@blocknote/ariakit 0.14.5 → 0.15.0
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 +617 -549
- package/dist/blocknote-ariakit.js.map +1 -1
- package/dist/blocknote-ariakit.umd.cjs +11 -11
- 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 +4 -4
- package/src/index.tsx +10 -0
- package/src/style.css +105 -52
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +21 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +40 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +26 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +7 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +6 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +8 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +6 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Ae, { forwardRef as
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import { FormProvider as ne, FormLabel as Nr, FormInput as ae, Menu as Or, MenuButton as
|
|
1
|
+
import Ae, { forwardRef as y, useRef as Le, useEffect as $e } from "react";
|
|
2
|
+
import { assertEmpty as g, mergeCSSClasses as E, isSafari as Pr } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as We, mergeRefs as Ve, ComponentsContext as Cr, BlockNoteViewRaw as wr } from "@blocknote/react";
|
|
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 = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -12,25 +12,25 @@ var te = { exports: {} }, W = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Ie;
|
|
16
16
|
function et() {
|
|
17
|
-
if (
|
|
17
|
+
if (Ie)
|
|
18
18
|
return W;
|
|
19
|
-
|
|
20
|
-
var a = Ae,
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (
|
|
28
|
-
_[
|
|
29
|
-
return { $$typeof:
|
|
19
|
+
Ie = 1;
|
|
20
|
+
var a = Ae, s = Symbol.for("react.element"), o = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function d(h, c, v) {
|
|
22
|
+
var j, _ = {}, w = null, Y = null;
|
|
23
|
+
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
|
+
t.call(c, j) && !u.hasOwnProperty(j) && (_[j] = c[j]);
|
|
26
|
+
if (h && h.defaultProps)
|
|
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 };
|
|
30
30
|
}
|
|
31
|
-
return W.Fragment =
|
|
31
|
+
return W.Fragment = o, W.jsx = d, W.jsxs = d, W;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var V = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.development.js
|
|
@@ -40,49 +40,49 @@ var Y = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
43
|
+
var De;
|
|
44
44
|
function rt() {
|
|
45
|
-
return
|
|
46
|
-
var a = Ae,
|
|
47
|
-
function
|
|
45
|
+
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var a = Ae, s = 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"), h = 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
|
+
function Ke(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var r =
|
|
50
|
+
var r = oe && e[oe] || e[Ge];
|
|
51
51
|
return typeof r == "function" ? r : null;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var D = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function k(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var r = arguments.length,
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
|
57
|
+
n[f - 1] = arguments[f];
|
|
58
|
+
Je("error", e, n);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Je(e, r, n) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
b !== "" && (r += "%s",
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
63
|
+
var f = D.ReactDebugCurrentFrame, b = f.getStackAddendum();
|
|
64
|
+
b !== "" && (r += "%s", n = n.concat([b]));
|
|
65
|
+
var x = n.map(function(p) {
|
|
66
|
+
return String(p);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var qe = !1, He = !1, ze = !1, Xe = !1, Ze = !1, ie;
|
|
72
72
|
ie = Symbol.for("react.module.reference");
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
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 === h || e.$$typeof === c || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
78
|
e.$$typeof === ie || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
80
|
+
function er(e, r, n) {
|
|
81
|
+
var f = e.displayName;
|
|
82
|
+
if (f)
|
|
83
|
+
return f;
|
|
84
84
|
var b = r.displayName || r.name || "";
|
|
85
|
-
return b !== "" ?
|
|
85
|
+
return b !== "" ? n + "(" + b + ")" : n;
|
|
86
86
|
}
|
|
87
87
|
function le(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
@@ -95,36 +95,36 @@ function rt() {
|
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
97
97
|
switch (e) {
|
|
98
|
-
case
|
|
98
|
+
case t:
|
|
99
99
|
return "Fragment";
|
|
100
|
-
case
|
|
100
|
+
case o:
|
|
101
101
|
return "Portal";
|
|
102
|
-
case
|
|
102
|
+
case u:
|
|
103
103
|
return "Profiler";
|
|
104
104
|
case l:
|
|
105
105
|
return "StrictMode";
|
|
106
|
-
case
|
|
106
|
+
case v:
|
|
107
107
|
return "Suspense";
|
|
108
|
-
case
|
|
108
|
+
case j:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
113
|
+
case h:
|
|
114
114
|
var r = e;
|
|
115
115
|
return le(r) + ".Consumer";
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return le(
|
|
119
|
-
case
|
|
120
|
-
return
|
|
116
|
+
case d:
|
|
117
|
+
var n = e;
|
|
118
|
+
return le(n._context) + ".Provider";
|
|
119
|
+
case c:
|
|
120
|
+
return er(e, e.render, "ForwardRef");
|
|
121
121
|
case _:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var f = e.displayName || null;
|
|
123
|
+
return f !== null ? f : N(e.type) || "Memo";
|
|
124
124
|
case w: {
|
|
125
|
-
var b = e,
|
|
125
|
+
var b = e, x = b._payload, p = b._init;
|
|
126
126
|
try {
|
|
127
|
-
return N(
|
|
127
|
+
return N(p(x));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,14 +132,14 @@ function rt() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var O = Object.assign, A = 0, ce, ue, fe, de,
|
|
135
|
+
var O = Object.assign, A = 0, ce, ue, fe, de, me, ve, pe;
|
|
136
136
|
function be() {
|
|
137
137
|
}
|
|
138
138
|
be.__reactDisabledLog = !0;
|
|
139
|
-
function
|
|
139
|
+
function rr() {
|
|
140
140
|
{
|
|
141
141
|
if (A === 0) {
|
|
142
|
-
ce = console.log, ue = console.info, fe = console.warn, de = console.error,
|
|
142
|
+
ce = console.log, ue = console.info, fe = console.warn, de = console.error, me = console.group, ve = console.groupCollapsed, pe = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -159,7 +159,7 @@ function rt() {
|
|
|
159
159
|
A++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function tr() {
|
|
163
163
|
{
|
|
164
164
|
if (A--, A === 0) {
|
|
165
165
|
var e = {
|
|
@@ -181,10 +181,10 @@ function rt() {
|
|
|
181
181
|
value: de
|
|
182
182
|
}),
|
|
183
183
|
group: O({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: me
|
|
185
185
|
}),
|
|
186
186
|
groupCollapsed: O({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: ve
|
|
188
188
|
}),
|
|
189
189
|
groupEnd: O({}, e, {
|
|
190
190
|
value: pe
|
|
@@ -194,15 +194,15 @@ function rt() {
|
|
|
194
194
|
A < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var J =
|
|
198
|
-
function B(e, r,
|
|
197
|
+
var J = D.ReactCurrentDispatcher, q;
|
|
198
|
+
function B(e, r, n) {
|
|
199
199
|
{
|
|
200
200
|
if (q === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
203
|
} catch (b) {
|
|
204
|
-
var
|
|
205
|
-
q =
|
|
204
|
+
var f = b.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
q = f && f[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
208
|
` + q + e;
|
|
@@ -210,154 +210,154 @@ function rt() {
|
|
|
210
210
|
}
|
|
211
211
|
var H = !1, U;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
U = new
|
|
213
|
+
var nr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
U = new nr();
|
|
215
215
|
}
|
|
216
216
|
function ge(e, r) {
|
|
217
217
|
if (!e || H)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var n = U.get(e);
|
|
221
|
+
if (n !== void 0)
|
|
222
|
+
return n;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var f;
|
|
225
225
|
H = !0;
|
|
226
226
|
var b = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var x;
|
|
229
|
+
x = J.current, J.current = null, rr();
|
|
230
230
|
try {
|
|
231
231
|
if (r) {
|
|
232
|
-
var
|
|
232
|
+
var p = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(p.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(p, []);
|
|
242
242
|
} catch (P) {
|
|
243
|
-
|
|
243
|
+
f = P;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], p);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
p.call();
|
|
249
249
|
} catch (P) {
|
|
250
|
-
|
|
250
|
+
f = P;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(p.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (P) {
|
|
258
|
-
|
|
258
|
+
f = P;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
262
|
} catch (P) {
|
|
263
|
-
if (P &&
|
|
264
|
-
for (var
|
|
265
|
-
`), S =
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
263
|
+
if (P && f && typeof P.stack == "string") {
|
|
264
|
+
for (var m = P.stack.split(`
|
|
265
|
+
`), S = f.stack.split(`
|
|
266
|
+
`), R = m.length - 1, T = S.length - 1; R >= 1 && T >= 0 && m[R] !== S[T]; )
|
|
267
|
+
T--;
|
|
268
|
+
for (; R >= 1 && T >= 0; R--, T--)
|
|
269
|
+
if (m[R] !== S[T]) {
|
|
270
|
+
if (R !== 1 || T !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
272
|
+
if (R--, T--, T < 0 || m[R] !== S[T]) {
|
|
273
273
|
var C = `
|
|
274
|
-
` +
|
|
274
|
+
` + m[R].replace(" at new ", " at ");
|
|
275
275
|
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, C), C;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (R >= 1 && T >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
H = !1, J.current =
|
|
282
|
+
H = !1, J.current = x, tr(), Error.prepareStackTrace = b;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof e == "function" && U.set(e,
|
|
284
|
+
var F = e ? e.displayName || e.name : "", I = F ? B(F) : "";
|
|
285
|
+
return typeof e == "function" && U.set(e, I), I;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function ar(e, r, n) {
|
|
288
288
|
return ge(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function sr(e) {
|
|
291
291
|
var r = e.prototype;
|
|
292
292
|
return !!(r && r.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function G(e, r, n) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return ge(e,
|
|
298
|
+
return ge(e, sr(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
300
|
return B(e);
|
|
301
301
|
switch (e) {
|
|
302
|
-
case
|
|
302
|
+
case v:
|
|
303
303
|
return B("Suspense");
|
|
304
|
-
case
|
|
304
|
+
case j:
|
|
305
305
|
return B("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
310
|
-
return
|
|
309
|
+
case c:
|
|
310
|
+
return ar(e.render);
|
|
311
311
|
case _:
|
|
312
|
-
return
|
|
312
|
+
return G(e.type, r, n);
|
|
313
313
|
case w: {
|
|
314
|
-
var
|
|
314
|
+
var f = e, b = f._payload, x = f._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return G(x(b), r, n);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var L = Object.prototype.hasOwnProperty, he = {}, xe =
|
|
324
|
-
function
|
|
323
|
+
var L = Object.prototype.hasOwnProperty, he = {}, xe = D.ReactDebugCurrentFrame;
|
|
324
|
+
function K(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var r = e._owner,
|
|
327
|
-
xe.setExtraStackFrame(
|
|
326
|
+
var r = e._owner, n = G(e.type, e._source, r ? r.type : null);
|
|
327
|
+
xe.setExtraStackFrame(n);
|
|
328
328
|
} else
|
|
329
329
|
xe.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function or(e, r, n, f, b) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
333
|
+
var x = Function.call.bind(L);
|
|
334
|
+
for (var p in e)
|
|
335
|
+
if (x(e, p)) {
|
|
336
|
+
var m = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var S = Error((
|
|
338
|
+
if (typeof e[p] != "function") {
|
|
339
|
+
var S = Error((f || "React class") + ": " + n + " 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
340
|
throw S.name = "Invariant Violation", S;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
342
|
+
m = e[p](r, p, f, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (R) {
|
|
344
|
+
m = R;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
m && !(m instanceof Error) && (K(b), 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", n, p, typeof m), K(null)), m instanceof Error && !(m.message in he) && (he[m.message] = !0, K(b), k("Failed %s type: %s", n, m.message), K(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var ir = Array.isArray;
|
|
351
351
|
function z(e) {
|
|
352
|
-
return
|
|
352
|
+
return ir(e);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function lr(e) {
|
|
355
355
|
{
|
|
356
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
356
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return n;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function cr(e) {
|
|
361
361
|
try {
|
|
362
362
|
return ye(e), !1;
|
|
363
363
|
} catch {
|
|
@@ -367,18 +367,18 @@ function rt() {
|
|
|
367
367
|
function ye(e) {
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
370
|
+
function je(e) {
|
|
371
|
+
if (cr(e))
|
|
372
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(e)), ye(e);
|
|
373
373
|
}
|
|
374
|
-
var $ =
|
|
374
|
+
var $ = D.ReactCurrentOwner, ur = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
379
|
+
}, Re, Ee, X;
|
|
380
380
|
X = {};
|
|
381
|
-
function
|
|
381
|
+
function fr(e) {
|
|
382
382
|
if (L.call(e, "ref")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function rt() {
|
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function dr(e) {
|
|
390
390
|
if (L.call(e, "key")) {
|
|
391
391
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (r && r.isReactWarning)
|
|
@@ -394,93 +394,93 @@ function rt() {
|
|
|
394
394
|
}
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function mr(e, r) {
|
|
398
398
|
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
399
|
-
var
|
|
400
|
-
X[
|
|
399
|
+
var n = N($.current.type);
|
|
400
|
+
X[n] || (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[n] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function vr(e, r) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
405
|
+
var n = function() {
|
|
406
|
+
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
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
|
+
get: n,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function pr(e, r) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
416
|
+
var n = function() {
|
|
417
417
|
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
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
|
+
get: n,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
426
|
-
var
|
|
425
|
+
var br = function(e, r, n, f, b, x, p) {
|
|
426
|
+
var m = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
428
|
+
$$typeof: s,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
431
|
key: r,
|
|
432
|
-
ref:
|
|
433
|
-
props:
|
|
432
|
+
ref: n,
|
|
433
|
+
props: p,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: x
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(m, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.defineProperty(
|
|
446
|
+
value: f
|
|
447
|
+
}), Object.defineProperty(m, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
451
|
value: b
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
452
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function gr(e, r, n, f, b) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
for (
|
|
459
|
-
L.call(r,
|
|
456
|
+
var x, p = {}, m = null, S = null;
|
|
457
|
+
n !== void 0 && (je(n), m = "" + n), dr(r) && (je(r.key), m = "" + r.key), fr(r) && (S = r.ref, mr(r, b));
|
|
458
|
+
for (x in r)
|
|
459
|
+
L.call(r, x) && !ur.hasOwnProperty(x) && (p[x] = r[x]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (
|
|
463
|
-
|
|
461
|
+
var R = e.defaultProps;
|
|
462
|
+
for (x in R)
|
|
463
|
+
p[x] === void 0 && (p[x] = R[x]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
if (m || S) {
|
|
466
|
+
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
m && vr(p, T), S && pr(p, T);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return br(e, m, S, b, f, $.current, p);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var Z =
|
|
473
|
-
function
|
|
472
|
+
var Z = D.ReactCurrentOwner, Te = D.ReactDebugCurrentFrame;
|
|
473
|
+
function M(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var r = e._owner,
|
|
476
|
-
Te.setExtraStackFrame(
|
|
475
|
+
var r = e._owner, n = G(e.type, e._source, r ? r.type : null);
|
|
476
|
+
Te.setExtraStackFrame(n);
|
|
477
477
|
} else
|
|
478
478
|
Te.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var Q;
|
|
481
481
|
Q = !1;
|
|
482
482
|
function ee(e) {
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
483
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
484
484
|
}
|
|
485
485
|
function _e() {
|
|
486
486
|
{
|
|
@@ -494,26 +494,26 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function hr(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
500
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` + r + ":" +
|
|
503
|
+
Check your code at ` + r + ":" + n + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var ke = {};
|
|
509
|
-
function
|
|
509
|
+
function xr(e) {
|
|
510
510
|
{
|
|
511
511
|
var r = _e();
|
|
512
512
|
if (!r) {
|
|
513
|
-
var
|
|
514
|
-
|
|
513
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
+
n && (r = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + n + ">.");
|
|
517
517
|
}
|
|
518
518
|
return r;
|
|
519
519
|
}
|
|
@@ -523,12 +523,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (ke[
|
|
526
|
+
var n = xr(r);
|
|
527
|
+
if (ke[n])
|
|
528
528
|
return;
|
|
529
|
-
ke[
|
|
530
|
-
var
|
|
531
|
-
e && e._owner && e._owner !== Z.current && (
|
|
529
|
+
ke[n] = !0;
|
|
530
|
+
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.', n, f), M(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function Pe(e, r) {
|
|
@@ -536,37 +536,37 @@ Check the top-level render call using <` + t + ">.");
|
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (z(e))
|
|
539
|
-
for (var
|
|
540
|
-
var
|
|
541
|
-
ee(
|
|
539
|
+
for (var n = 0; n < e.length; n++) {
|
|
540
|
+
var f = e[n];
|
|
541
|
+
ee(f) && Se(f, r);
|
|
542
542
|
}
|
|
543
543
|
else if (ee(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var b =
|
|
546
|
+
var b = Ke(e);
|
|
547
547
|
if (typeof b == "function" && b !== e.entries)
|
|
548
|
-
for (var
|
|
549
|
-
ee(
|
|
548
|
+
for (var x = b.call(e), p; !(p = x.next()).done; )
|
|
549
|
+
ee(p.value) && Se(p.value, r);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function yr(e) {
|
|
554
554
|
{
|
|
555
555
|
var r = e.type;
|
|
556
556
|
if (r == null || typeof r == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
558
|
+
var n;
|
|
559
559
|
if (typeof r == "function")
|
|
560
|
-
|
|
561
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
560
|
+
n = r.propTypes;
|
|
561
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
563
|
r.$$typeof === _))
|
|
564
|
-
|
|
564
|
+
n = r.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var
|
|
569
|
-
|
|
567
|
+
if (n) {
|
|
568
|
+
var f = N(r);
|
|
569
|
+
or(n, e.props, "prop", f, e);
|
|
570
570
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
571
571
|
Q = !0;
|
|
572
572
|
var b = N(r);
|
|
@@ -575,40 +575,40 @@ Check the top-level render call using <` + t + ">.");
|
|
|
575
575
|
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
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function jr(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var r = Object.keys(e.props),
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
580
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
581
|
+
var f = r[n];
|
|
582
|
+
if (f !== "children" && f !== "key") {
|
|
583
|
+
M(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), M(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (M(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
var Ce = {};
|
|
591
|
-
function we(e, r,
|
|
591
|
+
function we(e, r, n, f, b, x) {
|
|
592
592
|
{
|
|
593
|
-
var
|
|
594
|
-
if (!
|
|
595
|
-
var
|
|
596
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
597
|
-
var S =
|
|
598
|
-
S ?
|
|
599
|
-
var
|
|
600
|
-
e === null ?
|
|
593
|
+
var p = Qe(e);
|
|
594
|
+
if (!p) {
|
|
595
|
+
var m = "";
|
|
596
|
+
(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(b);
|
|
598
|
+
S ? m += S : m += _e();
|
|
599
|
+
var R;
|
|
600
|
+
e === null ? R = "null" : z(e) ? R = "array" : e !== void 0 && e.$$typeof === s ? (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
601
|
}
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
604
|
-
return
|
|
605
|
-
if (
|
|
602
|
+
var T = gr(e, r, n, b, x);
|
|
603
|
+
if (T == null)
|
|
604
|
+
return T;
|
|
605
|
+
if (p) {
|
|
606
606
|
var C = r.children;
|
|
607
607
|
if (C !== void 0)
|
|
608
|
-
if (
|
|
608
|
+
if (f)
|
|
609
609
|
if (z(C)) {
|
|
610
|
-
for (var
|
|
611
|
-
Pe(C[
|
|
610
|
+
for (var F = 0; F < C.length; F++)
|
|
611
|
+
Pe(C[F], e);
|
|
612
612
|
Object.freeze && Object.freeze(C);
|
|
613
613
|
} else
|
|
614
614
|
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,564 +616,632 @@ Check the top-level render call using <` + t + ">.");
|
|
|
616
616
|
Pe(C, e);
|
|
617
617
|
}
|
|
618
618
|
if (L.call(r, "key")) {
|
|
619
|
-
var
|
|
620
|
-
return
|
|
619
|
+
var I = N(e), P = Object.keys(r).filter(function(Sr) {
|
|
620
|
+
return Sr !== "key";
|
|
621
621
|
}), re = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
622
|
-
if (!Ce[
|
|
623
|
-
var
|
|
622
|
+
if (!Ce[I + re]) {
|
|
623
|
+
var kr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
|
|
624
624
|
k(`A props object containing a "key" prop is being spread into JSX:
|
|
625
625
|
let props = %s;
|
|
626
626
|
<%s {...props} />
|
|
627
627
|
React keys must be passed directly to JSX without using spread:
|
|
628
628
|
let props = %s;
|
|
629
|
-
<%s key={someKey} {...props} />`, re,
|
|
629
|
+
<%s key={someKey} {...props} />`, re, I, kr, I), Ce[I + re] = !0;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
return e ===
|
|
632
|
+
return e === t ? jr(T) : yr(T), T;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return we(e, r,
|
|
635
|
+
function Rr(e, r, n) {
|
|
636
|
+
return we(e, r, n, !0);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return we(e, r,
|
|
638
|
+
function Er(e, r, n) {
|
|
639
|
+
return we(e, r, n, !1);
|
|
640
640
|
}
|
|
641
|
-
var
|
|
642
|
-
|
|
643
|
-
}()),
|
|
641
|
+
var Tr = Er, _r = Rr;
|
|
642
|
+
V.Fragment = t, V.jsx = Tr, V.jsxs = _r;
|
|
643
|
+
}()), V;
|
|
644
644
|
}
|
|
645
645
|
process.env.NODE_ENV === "production" ? te.exports = et() : te.exports = rt();
|
|
646
|
-
var
|
|
646
|
+
var i = te.exports;
|
|
647
647
|
const tt = (a) => {
|
|
648
|
-
const { children:
|
|
649
|
-
return
|
|
650
|
-
}, nt =
|
|
648
|
+
const { children: s, ...o } = a;
|
|
649
|
+
return g(o), /* @__PURE__ */ i.jsx(ne, { children: s });
|
|
650
|
+
}, nt = y((a, s) => {
|
|
651
|
+
const { className: o, children: t, id: l, columns: u, ...d } = a;
|
|
652
|
+
return g(d), /* @__PURE__ */ i.jsx(
|
|
653
|
+
"div",
|
|
654
|
+
{
|
|
655
|
+
className: o,
|
|
656
|
+
style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
|
|
657
|
+
ref: s,
|
|
658
|
+
id: l,
|
|
659
|
+
role: "grid",
|
|
660
|
+
children: t
|
|
661
|
+
}
|
|
662
|
+
);
|
|
663
|
+
}), at = y((a, s) => {
|
|
664
|
+
const { className: o, children: t, columns: l, ...u } = a;
|
|
665
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
666
|
+
"div",
|
|
667
|
+
{
|
|
668
|
+
className: E("bn-ak-menu-item", o || ""),
|
|
669
|
+
style: { gridColumn: `1 / ${l + 1}` },
|
|
670
|
+
ref: s,
|
|
671
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: t })
|
|
672
|
+
}
|
|
673
|
+
);
|
|
674
|
+
}), st = y((a, s) => {
|
|
675
|
+
const { className: o, isSelected: t, onClick: l, item: u, id: d, ...h } = a;
|
|
676
|
+
g(h);
|
|
677
|
+
const c = Le(null);
|
|
678
|
+
return $e(() => {
|
|
679
|
+
if (!c.current || !t)
|
|
680
|
+
return;
|
|
681
|
+
const v = We(c.current);
|
|
682
|
+
v === "top" ? c.current.scrollIntoView(!0) : v === "bottom" && c.current.scrollIntoView(!1);
|
|
683
|
+
}, [t]), /* @__PURE__ */ i.jsx(
|
|
684
|
+
"div",
|
|
685
|
+
{
|
|
686
|
+
className: o,
|
|
687
|
+
ref: Ve([s, c]),
|
|
688
|
+
id: d,
|
|
689
|
+
role: "option",
|
|
690
|
+
onClick: l,
|
|
691
|
+
"aria-selected": t || void 0,
|
|
692
|
+
children: u.icon
|
|
693
|
+
}
|
|
694
|
+
);
|
|
695
|
+
}), ot = y((a, s) => {
|
|
696
|
+
const {
|
|
697
|
+
className: o,
|
|
698
|
+
children: t,
|
|
699
|
+
// unused, using "dots" instead
|
|
700
|
+
columns: l,
|
|
701
|
+
...u
|
|
702
|
+
} = a;
|
|
703
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
704
|
+
"div",
|
|
705
|
+
{
|
|
706
|
+
className: o,
|
|
707
|
+
style: { gridColumn: `1 / ${l + 1}` },
|
|
708
|
+
ref: s,
|
|
709
|
+
children: t
|
|
710
|
+
}
|
|
711
|
+
);
|
|
712
|
+
}), it = y((a, s) => {
|
|
651
713
|
const {
|
|
652
|
-
className:
|
|
653
|
-
name:
|
|
714
|
+
className: o,
|
|
715
|
+
name: t,
|
|
654
716
|
label: l,
|
|
655
|
-
icon:
|
|
656
|
-
value:
|
|
657
|
-
autoFocus:
|
|
658
|
-
placeholder:
|
|
659
|
-
onKeyDown:
|
|
660
|
-
onChange:
|
|
717
|
+
icon: u,
|
|
718
|
+
value: d,
|
|
719
|
+
autoFocus: h,
|
|
720
|
+
placeholder: c,
|
|
721
|
+
onKeyDown: v,
|
|
722
|
+
onChange: j,
|
|
661
723
|
onSubmit: _,
|
|
662
724
|
...w
|
|
663
725
|
} = a;
|
|
664
|
-
return
|
|
665
|
-
a.label && /* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
|
|
668
|
-
/* @__PURE__ */
|
|
726
|
+
return g(w), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
727
|
+
a.label && /* @__PURE__ */ i.jsx(Nr, { name: t, children: l }),
|
|
728
|
+
/* @__PURE__ */ i.jsxs("div", { className: "bn-ak-input-wrapper", children: [
|
|
729
|
+
u,
|
|
730
|
+
/* @__PURE__ */ i.jsx(
|
|
669
731
|
ae,
|
|
670
732
|
{
|
|
671
|
-
className:
|
|
672
|
-
ref:
|
|
673
|
-
name:
|
|
674
|
-
value:
|
|
675
|
-
autoFocus:
|
|
676
|
-
placeholder:
|
|
677
|
-
onKeyDown:
|
|
678
|
-
onChange:
|
|
733
|
+
className: E("bn-ak-input", o || ""),
|
|
734
|
+
ref: s,
|
|
735
|
+
name: t,
|
|
736
|
+
value: d,
|
|
737
|
+
autoFocus: h,
|
|
738
|
+
placeholder: c,
|
|
739
|
+
onKeyDown: v,
|
|
740
|
+
onChange: j,
|
|
679
741
|
onSubmit: _
|
|
680
742
|
}
|
|
681
743
|
)
|
|
682
744
|
] })
|
|
683
745
|
] });
|
|
684
|
-
}),
|
|
746
|
+
}), lt = (a) => {
|
|
685
747
|
const {
|
|
686
|
-
children:
|
|
687
|
-
onOpenChange:
|
|
688
|
-
position:
|
|
748
|
+
children: s,
|
|
749
|
+
onOpenChange: o,
|
|
750
|
+
position: t,
|
|
689
751
|
sub: l,
|
|
690
752
|
// unused
|
|
691
|
-
...
|
|
753
|
+
...u
|
|
692
754
|
} = a;
|
|
693
|
-
return
|
|
694
|
-
|
|
755
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
756
|
+
Fr,
|
|
695
757
|
{
|
|
696
|
-
placement:
|
|
697
|
-
setOpen:
|
|
758
|
+
placement: t,
|
|
759
|
+
setOpen: o,
|
|
698
760
|
virtualFocus: !0,
|
|
699
|
-
children:
|
|
761
|
+
children: s
|
|
700
762
|
}
|
|
701
763
|
);
|
|
702
|
-
},
|
|
764
|
+
}, ct = y((a, s) => {
|
|
703
765
|
const {
|
|
704
|
-
className:
|
|
705
|
-
children:
|
|
766
|
+
className: o,
|
|
767
|
+
children: t,
|
|
706
768
|
sub: l,
|
|
707
769
|
// unused
|
|
708
|
-
...
|
|
770
|
+
...u
|
|
709
771
|
} = a;
|
|
710
|
-
return
|
|
772
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
711
773
|
Or,
|
|
712
774
|
{
|
|
713
775
|
unmountOnHide: !0,
|
|
714
|
-
className:
|
|
715
|
-
ref:
|
|
716
|
-
children:
|
|
776
|
+
className: E("bn-ak-menu", o || ""),
|
|
777
|
+
ref: s,
|
|
778
|
+
children: t
|
|
717
779
|
}
|
|
718
780
|
);
|
|
719
|
-
}),
|
|
720
|
-
const { className:
|
|
721
|
-
return
|
|
722
|
-
|
|
781
|
+
}), ut = y((a, s) => {
|
|
782
|
+
const { className: o, children: t, icon: l, checked: u, subTrigger: d, onClick: h, ...c } = a;
|
|
783
|
+
return g(c), d ? /* @__PURE__ */ i.jsxs(
|
|
784
|
+
Ye,
|
|
723
785
|
{
|
|
724
|
-
render: /* @__PURE__ */
|
|
725
|
-
className:
|
|
726
|
-
ref:
|
|
727
|
-
onClick:
|
|
786
|
+
render: /* @__PURE__ */ i.jsx(Ne, {}),
|
|
787
|
+
className: E("bn-ak-menu-item", o || ""),
|
|
788
|
+
ref: s,
|
|
789
|
+
onClick: h,
|
|
728
790
|
children: [
|
|
729
791
|
l,
|
|
730
|
-
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
|
|
792
|
+
t,
|
|
793
|
+
/* @__PURE__ */ i.jsx(Ir, {}),
|
|
794
|
+
u !== void 0 && /* @__PURE__ */ i.jsx(Oe, { checked: u })
|
|
733
795
|
]
|
|
734
796
|
}
|
|
735
|
-
) : /* @__PURE__ */
|
|
797
|
+
) : /* @__PURE__ */ i.jsxs(
|
|
736
798
|
Ne,
|
|
737
799
|
{
|
|
738
|
-
className:
|
|
739
|
-
ref:
|
|
740
|
-
onClick:
|
|
800
|
+
className: E("bn-ak-menu-item", o || ""),
|
|
801
|
+
ref: s,
|
|
802
|
+
onClick: h,
|
|
741
803
|
children: [
|
|
742
804
|
l,
|
|
743
|
-
|
|
744
|
-
|
|
805
|
+
t,
|
|
806
|
+
u !== void 0 && /* @__PURE__ */ i.jsx(Oe, { checked: u })
|
|
745
807
|
]
|
|
746
808
|
}
|
|
747
809
|
);
|
|
748
|
-
}),
|
|
749
|
-
const { className:
|
|
750
|
-
return
|
|
751
|
-
|
|
810
|
+
}), ft = y((a, s) => {
|
|
811
|
+
const { className: o, children: t, ...l } = a;
|
|
812
|
+
return g(l), /* @__PURE__ */ i.jsx(
|
|
813
|
+
Dr,
|
|
752
814
|
{
|
|
753
|
-
className:
|
|
754
|
-
ref:
|
|
755
|
-
children:
|
|
815
|
+
className: E("bn-ak-group-label", o || ""),
|
|
816
|
+
ref: s,
|
|
817
|
+
children: t
|
|
756
818
|
}
|
|
757
819
|
);
|
|
758
|
-
}),
|
|
759
|
-
const { children:
|
|
760
|
-
return
|
|
761
|
-
},
|
|
762
|
-
const { className:
|
|
763
|
-
return
|
|
764
|
-
|
|
820
|
+
}), dt = (a) => {
|
|
821
|
+
const { children: s, sub: o, ...t } = a;
|
|
822
|
+
return g(t), o ? s : /* @__PURE__ */ i.jsx(Ye, { render: s });
|
|
823
|
+
}, mt = y((a, s) => {
|
|
824
|
+
const { className: o, ...t } = a;
|
|
825
|
+
return g(t), /* @__PURE__ */ i.jsx(
|
|
826
|
+
Mr,
|
|
765
827
|
{
|
|
766
|
-
className:
|
|
767
|
-
ref:
|
|
828
|
+
className: E("bn-ak-separator", o || ""),
|
|
829
|
+
ref: s
|
|
768
830
|
}
|
|
769
831
|
);
|
|
770
|
-
}),
|
|
832
|
+
}), vt = y((a, s) => {
|
|
771
833
|
const {
|
|
772
|
-
className:
|
|
773
|
-
tabs:
|
|
834
|
+
className: o,
|
|
835
|
+
tabs: t,
|
|
774
836
|
defaultOpenTab: l,
|
|
775
|
-
openTab:
|
|
776
|
-
setOpenTab:
|
|
777
|
-
loading:
|
|
837
|
+
openTab: u,
|
|
838
|
+
setOpenTab: d,
|
|
839
|
+
loading: h,
|
|
778
840
|
// TODO: implement loading
|
|
779
|
-
...
|
|
841
|
+
...c
|
|
780
842
|
} = a;
|
|
781
|
-
return
|
|
843
|
+
return g(c), /* @__PURE__ */ i.jsx(
|
|
782
844
|
"div",
|
|
783
845
|
{
|
|
784
|
-
className:
|
|
785
|
-
ref:
|
|
786
|
-
children: /* @__PURE__ */
|
|
846
|
+
className: E("bn-ak-wrapper", o || ""),
|
|
847
|
+
ref: s,
|
|
848
|
+
children: /* @__PURE__ */ i.jsxs(
|
|
787
849
|
Ar,
|
|
788
850
|
{
|
|
789
851
|
defaultSelectedId: l,
|
|
790
|
-
selectedId:
|
|
791
|
-
setActiveId: (
|
|
792
|
-
|
|
852
|
+
selectedId: u,
|
|
853
|
+
setActiveId: (v) => {
|
|
854
|
+
v && d(v);
|
|
793
855
|
},
|
|
794
856
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ i.jsx(Lr, { className: "bn-ak-tab-list", children: t.map((v) => /* @__PURE__ */ i.jsx($r, { className: "bn-ak-tab", id: v.name, children: v.name }, v.name)) }),
|
|
858
|
+
/* @__PURE__ */ i.jsx("div", { className: "bn-ak-panels", children: t.map((v) => /* @__PURE__ */ i.jsx(Wr, { tabId: v.name, children: v.tabPanel }, v.name)) })
|
|
797
859
|
]
|
|
798
860
|
}
|
|
799
861
|
)
|
|
800
862
|
}
|
|
801
863
|
);
|
|
802
|
-
}),
|
|
803
|
-
const { className:
|
|
804
|
-
return
|
|
805
|
-
|
|
864
|
+
}), pt = y((a, s) => {
|
|
865
|
+
const { className: o, children: t, onClick: l, label: u, ...d } = a;
|
|
866
|
+
return g(d), /* @__PURE__ */ i.jsx(
|
|
867
|
+
se,
|
|
806
868
|
{
|
|
807
|
-
className:
|
|
869
|
+
className: E("bn-ak-button", o || ""),
|
|
808
870
|
onClick: l,
|
|
809
|
-
"aria-label":
|
|
810
|
-
ref:
|
|
811
|
-
children:
|
|
871
|
+
"aria-label": u,
|
|
872
|
+
ref: s,
|
|
873
|
+
children: t
|
|
812
874
|
}
|
|
813
875
|
);
|
|
814
|
-
}),
|
|
815
|
-
const { className:
|
|
816
|
-
return
|
|
876
|
+
}), bt = y((a, s) => {
|
|
877
|
+
const { className: o, accept: t, value: l, placeholder: u, onChange: d, ...h } = a;
|
|
878
|
+
return g(h), /* @__PURE__ */ i.jsx(ne, { children: /* @__PURE__ */ i.jsx(
|
|
817
879
|
ae,
|
|
818
880
|
{
|
|
819
|
-
className:
|
|
820
|
-
ref:
|
|
881
|
+
className: o,
|
|
882
|
+
ref: s,
|
|
821
883
|
name: "panel-input",
|
|
822
884
|
type: "file",
|
|
823
|
-
accept:
|
|
885
|
+
accept: t,
|
|
824
886
|
value: l ? l.name : void 0,
|
|
825
|
-
onChange: async (
|
|
826
|
-
placeholder:
|
|
887
|
+
onChange: async (c) => d == null ? void 0 : d(c.target.files[0]),
|
|
888
|
+
placeholder: u
|
|
827
889
|
}
|
|
828
890
|
) });
|
|
829
|
-
}),
|
|
830
|
-
const { className:
|
|
831
|
-
return
|
|
832
|
-
}),
|
|
833
|
-
const { className:
|
|
834
|
-
return
|
|
891
|
+
}), gt = y((a, s) => {
|
|
892
|
+
const { className: o, children: t, ...l } = a;
|
|
893
|
+
return g(l), /* @__PURE__ */ i.jsx("div", { className: o, ref: s, children: t });
|
|
894
|
+
}), ht = y((a, s) => {
|
|
895
|
+
const { className: o, value: t, placeholder: l, onKeyDown: u, onChange: d, ...h } = a;
|
|
896
|
+
return g(h), /* @__PURE__ */ i.jsx(ne, { children: /* @__PURE__ */ i.jsx(
|
|
835
897
|
ae,
|
|
836
898
|
{
|
|
837
|
-
className:
|
|
899
|
+
className: E("bn-ak-input", o || ""),
|
|
838
900
|
name: "panel-input",
|
|
839
|
-
value:
|
|
901
|
+
value: t,
|
|
840
902
|
placeholder: l,
|
|
841
|
-
onChange:
|
|
842
|
-
onKeyDown:
|
|
903
|
+
onChange: d,
|
|
904
|
+
onKeyDown: u,
|
|
843
905
|
"data-test": "embed-input",
|
|
844
|
-
ref:
|
|
906
|
+
ref: s
|
|
845
907
|
}
|
|
846
908
|
) });
|
|
847
|
-
}),
|
|
848
|
-
const { children:
|
|
849
|
-
return
|
|
850
|
-
}),
|
|
851
|
-
const { className:
|
|
852
|
-
return
|
|
853
|
-
|
|
909
|
+
}), xt = y((a, s) => {
|
|
910
|
+
const { children: o, ...t } = a;
|
|
911
|
+
return g(t), /* @__PURE__ */ i.jsx(Vr, { render: o, ref: s });
|
|
912
|
+
}), yt = y((a, s) => {
|
|
913
|
+
const { className: o, children: t, variant: l, ...u } = a;
|
|
914
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
915
|
+
Yr,
|
|
854
916
|
{
|
|
855
|
-
className:
|
|
856
|
-
ref:
|
|
857
|
-
children:
|
|
917
|
+
className: E("bn-ak-popover", o || ""),
|
|
918
|
+
ref: s,
|
|
919
|
+
children: t
|
|
858
920
|
}
|
|
859
921
|
);
|
|
860
|
-
}),
|
|
861
|
-
const { children:
|
|
862
|
-
return
|
|
863
|
-
},
|
|
864
|
-
const { className:
|
|
865
|
-
return
|
|
866
|
-
}),
|
|
922
|
+
}), jt = (a) => {
|
|
923
|
+
const { children: s, opened: o, position: t, ...l } = a;
|
|
924
|
+
return g(l), /* @__PURE__ */ i.jsx(Br, { open: o, placement: t, children: s });
|
|
925
|
+
}, Rt = y((a, s) => {
|
|
926
|
+
const { className: o, children: t, ...l } = a;
|
|
927
|
+
return g(l, !1), /* @__PURE__ */ i.jsx(Be, { className: o, ref: s, ...l, children: t });
|
|
928
|
+
}), Et = y((a, s) => {
|
|
867
929
|
const {
|
|
868
|
-
className:
|
|
869
|
-
children:
|
|
930
|
+
className: o,
|
|
931
|
+
children: t,
|
|
870
932
|
icon: l,
|
|
871
|
-
onClick:
|
|
872
|
-
label:
|
|
873
|
-
onDragEnd:
|
|
874
|
-
onDragStart:
|
|
875
|
-
draggable:
|
|
876
|
-
...
|
|
933
|
+
onClick: u,
|
|
934
|
+
label: d,
|
|
935
|
+
onDragEnd: h,
|
|
936
|
+
onDragStart: c,
|
|
937
|
+
draggable: v,
|
|
938
|
+
...j
|
|
877
939
|
} = a;
|
|
878
|
-
return
|
|
879
|
-
|
|
940
|
+
return g(j, !1), /* @__PURE__ */ i.jsxs(
|
|
941
|
+
se,
|
|
880
942
|
{
|
|
881
|
-
onDragEnd:
|
|
882
|
-
onDragStart:
|
|
883
|
-
draggable:
|
|
884
|
-
"aria-label":
|
|
885
|
-
className:
|
|
943
|
+
onDragEnd: h,
|
|
944
|
+
onDragStart: c,
|
|
945
|
+
draggable: v,
|
|
946
|
+
"aria-label": d,
|
|
947
|
+
className: E(
|
|
886
948
|
"bn-ak-button bn-ak-secondary",
|
|
887
|
-
|
|
949
|
+
o || ""
|
|
888
950
|
),
|
|
889
|
-
ref:
|
|
890
|
-
onClick:
|
|
891
|
-
...
|
|
951
|
+
ref: s,
|
|
952
|
+
onClick: u,
|
|
953
|
+
...j,
|
|
892
954
|
children: [
|
|
893
955
|
l,
|
|
894
|
-
|
|
956
|
+
t
|
|
895
957
|
]
|
|
896
958
|
}
|
|
897
959
|
);
|
|
898
|
-
}),
|
|
899
|
-
const { className:
|
|
900
|
-
return
|
|
901
|
-
|
|
960
|
+
}), Tt = y((a, s) => {
|
|
961
|
+
const { className: o, children: t, id: l, ...u } = a;
|
|
962
|
+
return g(u), /* @__PURE__ */ i.jsx(
|
|
963
|
+
Be,
|
|
902
964
|
{
|
|
903
|
-
className:
|
|
965
|
+
className: E("bn-ak-menu", o || ""),
|
|
904
966
|
id: l,
|
|
905
967
|
role: "listbox",
|
|
906
|
-
ref:
|
|
907
|
-
children:
|
|
968
|
+
ref: s,
|
|
969
|
+
children: t
|
|
908
970
|
}
|
|
909
971
|
);
|
|
910
|
-
}),
|
|
911
|
-
const { className:
|
|
912
|
-
|
|
913
|
-
const
|
|
914
|
-
return
|
|
915
|
-
if (!
|
|
972
|
+
}), _t = y((a, s) => {
|
|
973
|
+
const { className: o, item: t, isSelected: l, onClick: u, id: d, ...h } = a;
|
|
974
|
+
g(h);
|
|
975
|
+
const c = Le(null);
|
|
976
|
+
return $e(() => {
|
|
977
|
+
if (!c.current || !l)
|
|
916
978
|
return;
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
}, [l]), /* @__PURE__ */
|
|
979
|
+
const v = We(c.current);
|
|
980
|
+
v === "top" ? c.current.scrollIntoView(!0) : v === "bottom" && c.current.scrollIntoView(!1);
|
|
981
|
+
}, [l]), /* @__PURE__ */ i.jsxs(
|
|
920
982
|
"div",
|
|
921
983
|
{
|
|
922
|
-
className:
|
|
923
|
-
ref:
|
|
924
|
-
id:
|
|
925
|
-
onClick:
|
|
984
|
+
className: E("bn-ak-menu-item", o || ""),
|
|
985
|
+
ref: Ve([s, c]),
|
|
986
|
+
id: d,
|
|
987
|
+
onClick: u,
|
|
926
988
|
role: "option",
|
|
927
989
|
"aria-selected": l || void 0,
|
|
928
990
|
children: [
|
|
929
|
-
|
|
991
|
+
t.icon && /* @__PURE__ */ i.jsx(
|
|
930
992
|
"div",
|
|
931
993
|
{
|
|
932
994
|
className: "bn-ak-suggestion-menu-item-section",
|
|
933
995
|
"data-position": "left",
|
|
934
|
-
children:
|
|
996
|
+
children: t.icon
|
|
935
997
|
}
|
|
936
998
|
),
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ i.jsxs("div", { className: "bn-ak-suggestion-menu-item-body", children: [
|
|
1000
|
+
/* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-title", children: t.title }),
|
|
1001
|
+
/* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: t.subtext })
|
|
940
1002
|
] }),
|
|
941
|
-
|
|
1003
|
+
t.badge && /* @__PURE__ */ i.jsx(
|
|
942
1004
|
"div",
|
|
943
1005
|
{
|
|
944
1006
|
"data-position": "right",
|
|
945
1007
|
className: "bn-ak-suggestion-menu-item-section",
|
|
946
|
-
children: /* @__PURE__ */
|
|
1008
|
+
children: /* @__PURE__ */ i.jsx("div", { children: t.badge })
|
|
947
1009
|
}
|
|
948
1010
|
)
|
|
949
1011
|
]
|
|
950
1012
|
}
|
|
951
1013
|
);
|
|
952
|
-
}),
|
|
953
|
-
const { className:
|
|
954
|
-
return
|
|
1014
|
+
}), kt = y((a, s) => {
|
|
1015
|
+
const { className: o, children: t, ...l } = a;
|
|
1016
|
+
return g(l), /* @__PURE__ */ i.jsx(
|
|
955
1017
|
"div",
|
|
956
1018
|
{
|
|
957
|
-
className:
|
|
958
|
-
ref:
|
|
959
|
-
children: /* @__PURE__ */
|
|
1019
|
+
className: E("bn-ak-menu-item", o || ""),
|
|
1020
|
+
ref: s,
|
|
1021
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: t })
|
|
960
1022
|
}
|
|
961
1023
|
);
|
|
962
|
-
}),
|
|
963
|
-
const { className:
|
|
964
|
-
return
|
|
1024
|
+
}), St = y((a, s) => {
|
|
1025
|
+
const { className: o, children: t, ...l } = a;
|
|
1026
|
+
return g(l), /* @__PURE__ */ i.jsx(
|
|
965
1027
|
"div",
|
|
966
1028
|
{
|
|
967
|
-
className:
|
|
968
|
-
ref:
|
|
969
|
-
children:
|
|
1029
|
+
className: E("bn-ak-group-label", o || ""),
|
|
1030
|
+
ref: s,
|
|
1031
|
+
children: t
|
|
970
1032
|
}
|
|
971
1033
|
);
|
|
972
|
-
}),
|
|
973
|
-
const { className:
|
|
974
|
-
return
|
|
975
|
-
}),
|
|
1034
|
+
}), Pt = y((a, s) => {
|
|
1035
|
+
const { className: o, children: t, ...l } = a;
|
|
1036
|
+
return g(l), /* @__PURE__ */ i.jsx("div", { className: o, ref: s, children: t });
|
|
1037
|
+
}), Ct = y((a, s) => {
|
|
976
1038
|
const {
|
|
977
|
-
className:
|
|
978
|
-
children:
|
|
1039
|
+
className: o,
|
|
1040
|
+
children: t,
|
|
979
1041
|
draggable: l,
|
|
980
|
-
onDragStart:
|
|
981
|
-
onDragEnd:
|
|
982
|
-
style:
|
|
983
|
-
label:
|
|
984
|
-
...
|
|
1042
|
+
onDragStart: u,
|
|
1043
|
+
onDragEnd: d,
|
|
1044
|
+
style: h,
|
|
1045
|
+
label: c,
|
|
1046
|
+
...v
|
|
985
1047
|
} = a;
|
|
986
|
-
return
|
|
987
|
-
|
|
1048
|
+
return g(v, !1), /* @__PURE__ */ i.jsx(
|
|
1049
|
+
se,
|
|
988
1050
|
{
|
|
989
|
-
className:
|
|
1051
|
+
className: E(
|
|
990
1052
|
"bn-ak-button bn-ak-secondary",
|
|
991
|
-
|
|
1053
|
+
o || ""
|
|
992
1054
|
),
|
|
993
|
-
ref:
|
|
994
|
-
"aria-label":
|
|
1055
|
+
ref: s,
|
|
1056
|
+
"aria-label": c,
|
|
995
1057
|
draggable: l,
|
|
996
|
-
onDragStart:
|
|
997
|
-
onDragEnd:
|
|
998
|
-
style:
|
|
999
|
-
...
|
|
1000
|
-
children:
|
|
1058
|
+
onDragStart: u,
|
|
1059
|
+
onDragEnd: d,
|
|
1060
|
+
style: h,
|
|
1061
|
+
...v,
|
|
1062
|
+
children: t
|
|
1001
1063
|
}
|
|
1002
1064
|
);
|
|
1003
|
-
}),
|
|
1004
|
-
(a,
|
|
1005
|
-
const { className:
|
|
1006
|
-
return
|
|
1065
|
+
}), Me = y(
|
|
1066
|
+
(a, s) => {
|
|
1067
|
+
const { className: o, children: t, onMouseEnter: l, onMouseLeave: u, ...d } = a;
|
|
1068
|
+
return g(d), /* @__PURE__ */ i.jsx(
|
|
1007
1069
|
Ur,
|
|
1008
1070
|
{
|
|
1009
|
-
className:
|
|
1010
|
-
ref:
|
|
1071
|
+
className: E("bn-ak-toolbar", o || ""),
|
|
1072
|
+
ref: s,
|
|
1011
1073
|
onMouseEnter: l,
|
|
1012
|
-
onMouseLeave:
|
|
1013
|
-
children:
|
|
1074
|
+
onMouseLeave: u,
|
|
1075
|
+
children: t
|
|
1014
1076
|
}
|
|
1015
1077
|
);
|
|
1016
1078
|
}
|
|
1017
|
-
),
|
|
1018
|
-
(a,
|
|
1079
|
+
), Fe = y(
|
|
1080
|
+
(a, s) => {
|
|
1019
1081
|
const {
|
|
1020
|
-
className:
|
|
1021
|
-
children:
|
|
1082
|
+
className: o,
|
|
1083
|
+
children: t,
|
|
1022
1084
|
mainTooltip: l,
|
|
1023
|
-
secondaryTooltip:
|
|
1024
|
-
icon:
|
|
1025
|
-
isSelected:
|
|
1026
|
-
isDisabled:
|
|
1027
|
-
onClick:
|
|
1028
|
-
label:
|
|
1085
|
+
secondaryTooltip: u,
|
|
1086
|
+
icon: d,
|
|
1087
|
+
isSelected: h,
|
|
1088
|
+
isDisabled: c,
|
|
1089
|
+
onClick: v,
|
|
1090
|
+
label: j,
|
|
1029
1091
|
..._
|
|
1030
1092
|
} = a;
|
|
1031
|
-
return
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
|
|
1093
|
+
return g(_, !1), /* @__PURE__ */ i.jsxs(Gr, { children: [
|
|
1094
|
+
/* @__PURE__ */ i.jsx(
|
|
1095
|
+
Kr,
|
|
1034
1096
|
{
|
|
1035
1097
|
className: "link",
|
|
1036
|
-
render: /* @__PURE__ */
|
|
1037
|
-
|
|
1098
|
+
render: /* @__PURE__ */ i.jsxs(
|
|
1099
|
+
Ue,
|
|
1038
1100
|
{
|
|
1039
|
-
"aria-label":
|
|
1040
|
-
className:
|
|
1101
|
+
"aria-label": j,
|
|
1102
|
+
className: E(
|
|
1041
1103
|
"bn-ak-button bn-ak-secondary",
|
|
1042
|
-
|
|
1104
|
+
o || ""
|
|
1043
1105
|
),
|
|
1044
1106
|
onMouseDown: (w) => {
|
|
1045
|
-
|
|
1107
|
+
Pr() && w.currentTarget.focus();
|
|
1046
1108
|
},
|
|
1047
|
-
onClick:
|
|
1048
|
-
"aria-pressed":
|
|
1049
|
-
"data-selected":
|
|
1109
|
+
onClick: v,
|
|
1110
|
+
"aria-pressed": h,
|
|
1111
|
+
"data-selected": h ? "true" : void 0,
|
|
1050
1112
|
"data-test": a.mainTooltip.slice(0, 1).toLowerCase() + a.mainTooltip.replace(/\s+/g, "").slice(1),
|
|
1051
|
-
disabled:
|
|
1052
|
-
ref:
|
|
1113
|
+
disabled: c || !1,
|
|
1114
|
+
ref: s,
|
|
1053
1115
|
..._,
|
|
1054
1116
|
children: [
|
|
1055
|
-
|
|
1056
|
-
|
|
1117
|
+
d,
|
|
1118
|
+
t
|
|
1057
1119
|
]
|
|
1058
1120
|
}
|
|
1059
1121
|
)
|
|
1060
1122
|
}
|
|
1061
1123
|
),
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1064
|
-
|
|
1124
|
+
/* @__PURE__ */ i.jsxs(Jr, { className: "bn-ak-tooltip", children: [
|
|
1125
|
+
/* @__PURE__ */ i.jsx("span", { children: l }),
|
|
1126
|
+
u && /* @__PURE__ */ i.jsx("span", { children: u })
|
|
1065
1127
|
] })
|
|
1066
1128
|
] });
|
|
1067
1129
|
}
|
|
1068
|
-
),
|
|
1069
|
-
const { className:
|
|
1070
|
-
|
|
1071
|
-
const
|
|
1072
|
-
var
|
|
1073
|
-
(
|
|
1130
|
+
), wt = y((a, s) => {
|
|
1131
|
+
const { className: o, items: t, isDisabled: l, ...u } = a;
|
|
1132
|
+
g(u);
|
|
1133
|
+
const d = a.items.filter((c) => c.isSelected)[0], h = (c) => {
|
|
1134
|
+
var v, j;
|
|
1135
|
+
(j = (v = t.find((_) => _.text === c)).onClick) == null || j.call(v);
|
|
1074
1136
|
};
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
1137
|
+
return /* @__PURE__ */ i.jsxs(qr, { value: d.text, setValue: h, children: [
|
|
1138
|
+
/* @__PURE__ */ i.jsxs(
|
|
1077
1139
|
Hr,
|
|
1078
1140
|
{
|
|
1079
1141
|
className: "bn-ak-button bn-ak-secondary",
|
|
1080
1142
|
disabled: l,
|
|
1081
1143
|
"aria-label": "Text alignment",
|
|
1082
|
-
render: /* @__PURE__ */
|
|
1144
|
+
render: /* @__PURE__ */ i.jsx(Ue, {}),
|
|
1083
1145
|
children: [
|
|
1084
|
-
|
|
1146
|
+
d.icon,
|
|
1085
1147
|
" ",
|
|
1086
|
-
|
|
1148
|
+
d.text,
|
|
1087
1149
|
" ",
|
|
1088
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ i.jsx(zr, {})
|
|
1089
1151
|
]
|
|
1090
1152
|
}
|
|
1091
1153
|
),
|
|
1092
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ i.jsx(
|
|
1093
1155
|
Xr,
|
|
1094
1156
|
{
|
|
1095
|
-
className:
|
|
1096
|
-
ref:
|
|
1157
|
+
className: E("bn-ak-popover", o || ""),
|
|
1158
|
+
ref: s,
|
|
1097
1159
|
gutter: 4,
|
|
1098
|
-
children:
|
|
1160
|
+
children: t.map((c) => /* @__PURE__ */ i.jsxs(
|
|
1099
1161
|
Zr,
|
|
1100
1162
|
{
|
|
1101
1163
|
className: "bn-ak-select-item",
|
|
1102
|
-
value:
|
|
1164
|
+
value: c.text,
|
|
1103
1165
|
children: [
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1166
|
+
c.icon,
|
|
1167
|
+
c.text,
|
|
1168
|
+
c.text === d.text && /* @__PURE__ */ i.jsx(Qr, {})
|
|
1107
1169
|
]
|
|
1108
1170
|
},
|
|
1109
|
-
|
|
1171
|
+
c.text
|
|
1110
1172
|
))
|
|
1111
1173
|
}
|
|
1112
1174
|
)
|
|
1113
1175
|
] });
|
|
1114
1176
|
});
|
|
1115
|
-
const
|
|
1177
|
+
const Nt = {
|
|
1116
1178
|
FormattingToolbar: {
|
|
1117
|
-
Root:
|
|
1118
|
-
Button:
|
|
1119
|
-
Select:
|
|
1179
|
+
Root: Me,
|
|
1180
|
+
Button: Fe,
|
|
1181
|
+
Select: wt
|
|
1120
1182
|
},
|
|
1121
1183
|
FilePanel: {
|
|
1122
|
-
Root:
|
|
1123
|
-
Button:
|
|
1124
|
-
FileInput:
|
|
1125
|
-
TabPanel:
|
|
1126
|
-
TextInput:
|
|
1184
|
+
Root: vt,
|
|
1185
|
+
Button: pt,
|
|
1186
|
+
FileInput: bt,
|
|
1187
|
+
TabPanel: gt,
|
|
1188
|
+
TextInput: ht
|
|
1189
|
+
},
|
|
1190
|
+
GridSuggestionMenu: {
|
|
1191
|
+
Root: nt,
|
|
1192
|
+
Item: st,
|
|
1193
|
+
EmptyItem: at,
|
|
1194
|
+
Loader: ot
|
|
1127
1195
|
},
|
|
1128
1196
|
LinkToolbar: {
|
|
1129
|
-
Root:
|
|
1130
|
-
Button:
|
|
1197
|
+
Root: Me,
|
|
1198
|
+
Button: Fe
|
|
1131
1199
|
},
|
|
1132
1200
|
SideMenu: {
|
|
1133
|
-
Root:
|
|
1134
|
-
Button:
|
|
1201
|
+
Root: Rt,
|
|
1202
|
+
Button: Et
|
|
1135
1203
|
},
|
|
1136
1204
|
SuggestionMenu: {
|
|
1137
|
-
Root:
|
|
1138
|
-
Item:
|
|
1139
|
-
EmptyItem:
|
|
1140
|
-
Label:
|
|
1141
|
-
Loader:
|
|
1205
|
+
Root: Tt,
|
|
1206
|
+
Item: _t,
|
|
1207
|
+
EmptyItem: kt,
|
|
1208
|
+
Label: St,
|
|
1209
|
+
Loader: Pt
|
|
1142
1210
|
},
|
|
1143
1211
|
TableHandle: {
|
|
1144
|
-
Root:
|
|
1212
|
+
Root: Ct
|
|
1145
1213
|
},
|
|
1146
1214
|
Generic: {
|
|
1147
1215
|
Form: {
|
|
1148
1216
|
Root: tt,
|
|
1149
|
-
TextInput:
|
|
1217
|
+
TextInput: it
|
|
1150
1218
|
},
|
|
1151
1219
|
Menu: {
|
|
1152
|
-
Root:
|
|
1153
|
-
Trigger:
|
|
1154
|
-
Dropdown:
|
|
1155
|
-
Divider:
|
|
1156
|
-
Label:
|
|
1157
|
-
Item:
|
|
1220
|
+
Root: lt,
|
|
1221
|
+
Trigger: dt,
|
|
1222
|
+
Dropdown: ct,
|
|
1223
|
+
Divider: mt,
|
|
1224
|
+
Label: ft,
|
|
1225
|
+
Item: ut
|
|
1158
1226
|
},
|
|
1159
1227
|
Popover: {
|
|
1160
|
-
Root:
|
|
1161
|
-
Trigger:
|
|
1162
|
-
Content:
|
|
1228
|
+
Root: jt,
|
|
1229
|
+
Trigger: xt,
|
|
1230
|
+
Content: yt
|
|
1163
1231
|
}
|
|
1164
1232
|
}
|
|
1165
|
-
},
|
|
1166
|
-
const { className:
|
|
1167
|
-
return /* @__PURE__ */
|
|
1233
|
+
}, Ft = (a) => {
|
|
1234
|
+
const { className: s, ...o } = a;
|
|
1235
|
+
return /* @__PURE__ */ i.jsx(Cr.Provider, { value: Nt, children: /* @__PURE__ */ i.jsx(
|
|
1168
1236
|
wr,
|
|
1169
1237
|
{
|
|
1170
|
-
className:
|
|
1171
|
-
...
|
|
1238
|
+
className: E("bn-ariakit", s || ""),
|
|
1239
|
+
...o
|
|
1172
1240
|
}
|
|
1173
1241
|
) });
|
|
1174
1242
|
};
|
|
1175
1243
|
export {
|
|
1176
|
-
|
|
1177
|
-
|
|
1244
|
+
Ft as BlockNoteView,
|
|
1245
|
+
Nt as components
|
|
1178
1246
|
};
|
|
1179
1247
|
//# sourceMappingURL=blocknote-ariakit.js.map
|