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