@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.
@@ -1,7 +1,7 @@
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";
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 De;
15
+ var Ie;
16
16
  function et() {
17
- if (De)
17
+ if (Ie)
18
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 };
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 = i, W.jsx = v, W.jsxs = v, W;
31
+ return W.Fragment = o, W.jsx = d, W.jsxs = d, W;
32
32
  }
33
- var Y = {};
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 Ie;
43
+ var De;
44
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) {
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 = se && e[se] || e[Ye];
50
+ var r = oe && e[oe] || e[Ge];
51
51
  return typeof r == "function" ? r : null;
52
52
  }
53
- var I = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
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, t = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
57
- t[c - 1] = arguments[c];
58
- Be("error", e, t);
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 Be(e, r, t) {
61
+ function Je(e, r, n) {
62
62
  {
63
- var c = I.ReactDebugCurrentFrame, b = c.getStackAddendum();
64
- b !== "" && (r += "%s", t = t.concat([b]));
65
- var h = t.map(function(m) {
66
- return String(m);
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
- h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
68
+ x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
69
69
  }
70
70
  }
71
- var Ue = !1, Ke = !1, Ge = !1, Je = !1, qe = !1, ie;
71
+ var qe = !1, He = !1, ze = !1, Xe = !1, Ze = !1, ie;
72
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
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 ze(e, r, t) {
81
- var c = e.displayName;
82
- if (c)
83
- return c;
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 !== "" ? t + "(" + b + ")" : t;
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 n:
98
+ case t:
99
99
  return "Fragment";
100
- case i:
100
+ case o:
101
101
  return "Portal";
102
- case f:
102
+ case u:
103
103
  return "Profiler";
104
104
  case l:
105
105
  return "StrictMode";
106
- case p:
106
+ case v:
107
107
  return "Suspense";
108
- case y:
108
+ case j:
109
109
  return "SuspenseList";
110
110
  }
111
111
  if (typeof e == "object")
112
112
  switch (e.$$typeof) {
113
- case g:
113
+ case h:
114
114
  var r = e;
115
115
  return le(r) + ".Consumer";
116
- case v:
117
- var t = e;
118
- return le(t._context) + ".Provider";
119
- case u:
120
- return ze(e, e.render, "ForwardRef");
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 c = e.displayName || null;
123
- return c !== null ? c : N(e.type) || "Memo";
122
+ var f = e.displayName || null;
123
+ return f !== null ? f : N(e.type) || "Memo";
124
124
  case w: {
125
- var b = e, h = b._payload, m = b._init;
125
+ var b = e, x = b._payload, p = b._init;
126
126
  try {
127
- return N(m(h));
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, ve, me, pe;
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 Xe() {
139
+ function rr() {
140
140
  {
141
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;
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 Ze() {
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: ve
184
+ value: me
185
185
  }),
186
186
  groupCollapsed: O({}, e, {
187
- value: me
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 = I.ReactCurrentDispatcher, q;
198
- function B(e, r, t) {
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 c = b.stack.trim().match(/\n( *(at )?)/);
205
- q = c && c[1] || "";
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 Qe = typeof WeakMap == "function" ? WeakMap : Map;
214
- U = new Qe();
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 t = U.get(e);
221
- if (t !== void 0)
222
- return t;
220
+ var n = U.get(e);
221
+ if (n !== void 0)
222
+ return n;
223
223
  }
224
- var c;
224
+ var f;
225
225
  H = !0;
226
226
  var b = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
- var h;
229
- h = J.current, J.current = null, Xe();
228
+ var x;
229
+ x = J.current, J.current = null, rr();
230
230
  try {
231
231
  if (r) {
232
- var m = function() {
232
+ var p = function() {
233
233
  throw Error();
234
234
  };
235
- if (Object.defineProperty(m.prototype, "props", {
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(m, []);
241
+ Reflect.construct(p, []);
242
242
  } catch (P) {
243
- c = P;
243
+ f = P;
244
244
  }
245
- Reflect.construct(e, [], m);
245
+ Reflect.construct(e, [], p);
246
246
  } else {
247
247
  try {
248
- m.call();
248
+ p.call();
249
249
  } catch (P) {
250
- c = P;
250
+ f = P;
251
251
  }
252
- e.call(m.prototype);
252
+ e.call(p.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
256
256
  throw Error();
257
257
  } catch (P) {
258
- c = P;
258
+ f = P;
259
259
  }
260
260
  e();
261
261
  }
262
262
  } catch (P) {
263
- if (P && c && typeof P.stack == "string") {
264
- for (var d = P.stack.split(`
265
- `), S = c.stack.split(`
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)
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 (j--, E--, E < 0 || d[j] !== S[E]) {
272
+ if (R--, T--, T < 0 || m[R] !== S[T]) {
273
273
  var C = `
274
- ` + d[j].replace(" at new ", " at ");
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 (j >= 1 && E >= 0);
277
+ while (R >= 1 && T >= 0);
278
278
  break;
279
279
  }
280
280
  }
281
281
  } finally {
282
- H = !1, J.current = h, Ze(), Error.prepareStackTrace = b;
282
+ H = !1, J.current = x, tr(), Error.prepareStackTrace = b;
283
283
  }
284
- var M = e ? e.displayName || e.name : "", D = M ? B(M) : "";
285
- return typeof e == "function" && U.set(e, D), D;
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 er(e, r, t) {
287
+ function ar(e, r, n) {
288
288
  return ge(e, !1);
289
289
  }
290
- function rr(e) {
290
+ function sr(e) {
291
291
  var r = e.prototype;
292
292
  return !!(r && r.isReactComponent);
293
293
  }
294
- function K(e, r, t) {
294
+ function G(e, r, n) {
295
295
  if (e == null)
296
296
  return "";
297
297
  if (typeof e == "function")
298
- return ge(e, rr(e));
298
+ return ge(e, sr(e));
299
299
  if (typeof e == "string")
300
300
  return B(e);
301
301
  switch (e) {
302
- case p:
302
+ case v:
303
303
  return B("Suspense");
304
- case y:
304
+ case j:
305
305
  return B("SuspenseList");
306
306
  }
307
307
  if (typeof e == "object")
308
308
  switch (e.$$typeof) {
309
- case u:
310
- return er(e.render);
309
+ case c:
310
+ return ar(e.render);
311
311
  case _:
312
- return K(e.type, r, t);
312
+ return G(e.type, r, n);
313
313
  case w: {
314
- var c = e, b = c._payload, h = c._init;
314
+ var f = e, b = f._payload, x = f._init;
315
315
  try {
316
- return K(h(b), r, t);
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 = I.ReactDebugCurrentFrame;
324
- function G(e) {
323
+ var L = Object.prototype.hasOwnProperty, he = {}, xe = D.ReactDebugCurrentFrame;
324
+ function K(e) {
325
325
  if (e) {
326
- var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
327
- xe.setExtraStackFrame(t);
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 tr(e, r, t, c, b) {
331
+ function or(e, r, n, f, b) {
332
332
  {
333
- var h = Function.call.bind(L);
334
- for (var m in e)
335
- if (h(e, m)) {
336
- var d = void 0;
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[m] != "function") {
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`.");
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
- d = e[m](r, m, c, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (j) {
344
- d = j;
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
- 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));
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 nr = Array.isArray;
350
+ var ir = Array.isArray;
351
351
  function z(e) {
352
- return nr(e);
352
+ return ir(e);
353
353
  }
354
- function ar(e) {
354
+ function lr(e) {
355
355
  {
356
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
- return t;
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 or(e) {
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 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);
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 $ = I.ReactCurrentOwner, sr = {
374
+ var $ = D.ReactCurrentOwner, ur = {
375
375
  key: !0,
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, je, Ee, X;
379
+ }, Re, Ee, X;
380
380
  X = {};
381
- function ir(e) {
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 lr(e) {
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 cr(e, r) {
397
+ function mr(e, r) {
398
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);
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 ur(e, r) {
403
+ function vr(e, r) {
404
404
  {
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));
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
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
409
- get: t,
408
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
409
+ get: n,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- function fr(e, r) {
414
+ function pr(e, r) {
415
415
  {
416
- var t = function() {
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
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
- get: t,
419
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
+ get: n,
421
421
  configurable: !0
422
422
  });
423
423
  }
424
424
  }
425
- var dr = function(e, r, t, c, b, h, m) {
426
- var d = {
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: o,
428
+ $$typeof: s,
429
429
  // Built-in properties that belong on the element
430
430
  type: e,
431
431
  key: r,
432
- ref: t,
433
- props: m,
432
+ ref: n,
433
+ props: p,
434
434
  // Record the component responsible for creating this element.
435
- _owner: h
435
+ _owner: x
436
436
  };
437
- return d._store = {}, Object.defineProperty(d._store, "validated", {
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(d, "_self", {
442
+ }), Object.defineProperty(m, "_self", {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: c
447
- }), Object.defineProperty(d, "_source", {
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(d.props), Object.freeze(d)), d;
452
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
453
453
  };
454
- function vr(e, r, t, c, b) {
454
+ function gr(e, r, n, f, b) {
455
455
  {
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]);
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 j = e.defaultProps;
462
- for (h in j)
463
- m[h] === void 0 && (m[h] = j[h]);
461
+ var R = e.defaultProps;
462
+ for (x in R)
463
+ p[x] === void 0 && (p[x] = R[x]);
464
464
  }
465
- if (d || S) {
466
- var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- d && ur(m, E), S && fr(m, E);
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 dr(e, d, S, b, c, $.current, m);
469
+ return br(e, m, S, b, f, $.current, p);
470
470
  }
471
471
  }
472
- var Z = I.ReactCurrentOwner, Te = I.ReactDebugCurrentFrame;
473
- function F(e) {
472
+ var Z = D.ReactCurrentOwner, Te = D.ReactDebugCurrentFrame;
473
+ function M(e) {
474
474
  if (e) {
475
- var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
476
- Te.setExtraStackFrame(t);
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 === o;
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 mr(e) {
497
+ function hr(e) {
498
498
  {
499
499
  if (e !== void 0) {
500
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
500
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
501
501
  return `
502
502
 
503
- Check your code at ` + r + ":" + t + ".";
503
+ Check your code at ` + r + ":" + n + ".";
504
504
  }
505
505
  return "";
506
506
  }
507
507
  }
508
508
  var ke = {};
509
- function pr(e) {
509
+ function xr(e) {
510
510
  {
511
511
  var r = _e();
512
512
  if (!r) {
513
- var t = typeof e == "string" ? e : e.displayName || e.name;
514
- t && (r = `
513
+ var n = typeof e == "string" ? e : e.displayName || e.name;
514
+ n && (r = `
515
515
 
516
- Check the top-level render call using <` + t + ">.");
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 t = pr(r);
527
- if (ke[t])
526
+ var n = xr(r);
527
+ if (ke[n])
528
528
  return;
529
- ke[t] = !0;
530
- var c = "";
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);
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 t = 0; t < e.length; t++) {
540
- var c = e[t];
541
- ee(c) && Se(c, r);
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 = Ve(e);
546
+ var b = Ke(e);
547
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);
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 br(e) {
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 t;
558
+ var n;
559
559
  if (typeof r == "function")
560
- t = r.propTypes;
561
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
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
- t = r.propTypes;
564
+ n = r.propTypes;
565
565
  else
566
566
  return;
567
- if (t) {
568
- var c = N(r);
569
- tr(t, e.props, "prop", c, e);
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 gr(e) {
578
+ function jr(e) {
579
579
  {
580
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
581
- var c = r[t];
582
- if (c !== "children" && c !== "key") {
583
- F(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
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 && (F(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), F(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, t, c, b, h) {
591
+ function we(e, r, n, f, b, x) {
592
592
  {
593
- var m = He(e);
594
- if (!m) {
595
- var d = "";
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.");
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);
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 E = vr(e, r, t, b, h);
603
- if (E == null)
604
- return E;
605
- if (m) {
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 (c)
608
+ if (f)
609
609
  if (z(C)) {
610
- for (var M = 0; M < C.length; M++)
611
- Pe(C[M], e);
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 D = N(e), P = Object.keys(r).filter(function(Er) {
620
- return Er !== "key";
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[D + re]) {
623
- var jr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
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, D, jr, D), Ce[D + re] = !0;
629
+ <%s key={someKey} {...props} />`, re, I, kr, I), Ce[I + re] = !0;
630
630
  }
631
631
  }
632
- return e === n ? gr(E) : br(E), E;
632
+ return e === t ? jr(T) : yr(T), T;
633
633
  }
634
634
  }
635
- function hr(e, r, t) {
636
- return we(e, r, t, !0);
635
+ function Rr(e, r, n) {
636
+ return we(e, r, n, !0);
637
637
  }
638
- function xr(e, r, t) {
639
- return we(e, r, t, !1);
638
+ function Er(e, r, n) {
639
+ return we(e, r, n, !1);
640
640
  }
641
- var yr = xr, Rr = hr;
642
- Y.Fragment = n, Y.jsx = yr, Y.jsxs = Rr;
643
- }()), Y;
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 s = te.exports;
646
+ var i = te.exports;
647
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) => {
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: i,
653
- name: n,
714
+ className: o,
715
+ name: t,
654
716
  label: l,
655
- icon: f,
656
- value: v,
657
- autoFocus: g,
658
- placeholder: u,
659
- onKeyDown: p,
660
- onChange: y,
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 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(
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: T("bn-ak-input", i || ""),
672
- ref: o,
673
- name: n,
674
- value: v,
675
- autoFocus: g,
676
- placeholder: u,
677
- onKeyDown: p,
678
- onChange: y,
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
- }), at = (a) => {
746
+ }), lt = (a) => {
685
747
  const {
686
- children: o,
687
- onOpenChange: i,
688
- position: n,
748
+ children: s,
749
+ onOpenChange: o,
750
+ position: t,
689
751
  sub: l,
690
752
  // unused
691
- ...f
753
+ ...u
692
754
  } = a;
693
- return x(f), /* @__PURE__ */ s.jsx(
694
- Mr,
755
+ return g(u), /* @__PURE__ */ i.jsx(
756
+ Fr,
695
757
  {
696
- placement: n,
697
- setOpen: i,
758
+ placement: t,
759
+ setOpen: o,
698
760
  virtualFocus: !0,
699
- children: o
761
+ children: s
700
762
  }
701
763
  );
702
- }, ot = R((a, o) => {
764
+ }, ct = y((a, s) => {
703
765
  const {
704
- className: i,
705
- children: n,
766
+ className: o,
767
+ children: t,
706
768
  sub: l,
707
769
  // unused
708
- ...f
770
+ ...u
709
771
  } = a;
710
- return x(f), /* @__PURE__ */ s.jsx(
772
+ return g(u), /* @__PURE__ */ i.jsx(
711
773
  Or,
712
774
  {
713
775
  unmountOnHide: !0,
714
- className: T("bn-ak-menu", i || ""),
715
- ref: o,
716
- children: n
776
+ className: E("bn-ak-menu", o || ""),
777
+ ref: s,
778
+ children: t
717
779
  }
718
780
  );
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,
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__ */ s.jsx(Ne, {}),
725
- className: T("bn-ak-menu-item", i || ""),
726
- ref: o,
727
- onClick: g,
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
- n,
731
- /* @__PURE__ */ s.jsx(Dr, {}),
732
- f !== void 0 && /* @__PURE__ */ s.jsx(Oe, { checked: f })
792
+ t,
793
+ /* @__PURE__ */ i.jsx(Ir, {}),
794
+ u !== void 0 && /* @__PURE__ */ i.jsx(Oe, { checked: u })
733
795
  ]
734
796
  }
735
- ) : /* @__PURE__ */ s.jsxs(
797
+ ) : /* @__PURE__ */ i.jsxs(
736
798
  Ne,
737
799
  {
738
- className: T("bn-ak-menu-item", i || ""),
739
- ref: o,
740
- onClick: g,
800
+ className: E("bn-ak-menu-item", o || ""),
801
+ ref: s,
802
+ onClick: h,
741
803
  children: [
742
804
  l,
743
- n,
744
- f !== void 0 && /* @__PURE__ */ s.jsx(Oe, { checked: f })
805
+ t,
806
+ u !== void 0 && /* @__PURE__ */ i.jsx(Oe, { checked: u })
745
807
  ]
746
808
  }
747
809
  );
748
- }), it = R((a, o) => {
749
- const { className: i, children: n, ...l } = a;
750
- return x(l), /* @__PURE__ */ s.jsx(
751
- Ir,
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: T("bn-ak-group-label", i || ""),
754
- ref: o,
755
- children: n
815
+ className: E("bn-ak-group-label", o || ""),
816
+ ref: s,
817
+ children: t
756
818
  }
757
819
  );
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,
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: T("bn-ak-separator", i || ""),
767
- ref: o
828
+ className: E("bn-ak-separator", o || ""),
829
+ ref: s
768
830
  }
769
831
  );
770
- }), ut = R((a, o) => {
832
+ }), vt = y((a, s) => {
771
833
  const {
772
- className: i,
773
- tabs: n,
834
+ className: o,
835
+ tabs: t,
774
836
  defaultOpenTab: l,
775
- openTab: f,
776
- setOpenTab: v,
777
- loading: g,
837
+ openTab: u,
838
+ setOpenTab: d,
839
+ loading: h,
778
840
  // TODO: implement loading
779
- ...u
841
+ ...c
780
842
  } = a;
781
- return x(u), /* @__PURE__ */ s.jsx(
843
+ return g(c), /* @__PURE__ */ i.jsx(
782
844
  "div",
783
845
  {
784
- className: T("bn-ak-wrapper", i || ""),
785
- ref: o,
786
- children: /* @__PURE__ */ s.jsxs(
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: f,
791
- setActiveId: (p) => {
792
- p && v(p);
852
+ selectedId: u,
853
+ setActiveId: (v) => {
854
+ v && d(v);
793
855
  },
794
856
  children: [
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)) })
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
- }), 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,
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: T("bn-ak-button", i || ""),
869
+ className: E("bn-ak-button", o || ""),
808
870
  onClick: l,
809
- "aria-label": f,
810
- ref: o,
811
- children: n
871
+ "aria-label": u,
872
+ ref: s,
873
+ children: t
812
874
  }
813
875
  );
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(
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: i,
820
- ref: o,
881
+ className: o,
882
+ ref: s,
821
883
  name: "panel-input",
822
884
  type: "file",
823
- accept: n,
885
+ accept: t,
824
886
  value: l ? l.name : void 0,
825
- onChange: async (u) => v == null ? void 0 : v(u.target.files[0]),
826
- placeholder: f
887
+ onChange: async (c) => d == null ? void 0 : d(c.target.files[0]),
888
+ placeholder: u
827
889
  }
828
890
  ) });
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(
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: T("bn-ak-input", i || ""),
899
+ className: E("bn-ak-input", o || ""),
838
900
  name: "panel-input",
839
- value: n,
901
+ value: t,
840
902
  placeholder: l,
841
- onChange: v,
842
- onKeyDown: f,
903
+ onChange: d,
904
+ onKeyDown: u,
843
905
  "data-test": "embed-input",
844
- ref: o
906
+ ref: s
845
907
  }
846
908
  ) });
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,
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: T("bn-ak-popover", i || ""),
856
- ref: o,
857
- children: n
917
+ className: E("bn-ak-popover", o || ""),
918
+ ref: s,
919
+ children: t
858
920
  }
859
921
  );
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) => {
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: i,
869
- children: n,
930
+ className: o,
931
+ children: t,
870
932
  icon: l,
871
- onClick: f,
872
- label: v,
873
- onDragEnd: g,
874
- onDragStart: u,
875
- draggable: p,
876
- ...y
933
+ onClick: u,
934
+ label: d,
935
+ onDragEnd: h,
936
+ onDragStart: c,
937
+ draggable: v,
938
+ ...j
877
939
  } = a;
878
- return x(y, !1), /* @__PURE__ */ s.jsxs(
879
- oe,
940
+ return g(j, !1), /* @__PURE__ */ i.jsxs(
941
+ se,
880
942
  {
881
- onDragEnd: g,
882
- onDragStart: u,
883
- draggable: p,
884
- "aria-label": v,
885
- className: T(
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
- i || ""
949
+ o || ""
888
950
  ),
889
- ref: o,
890
- onClick: f,
891
- ...y,
951
+ ref: s,
952
+ onClick: u,
953
+ ...j,
892
954
  children: [
893
955
  l,
894
- n
956
+ t
895
957
  ]
896
958
  }
897
959
  );
898
- }), yt = R((a, o) => {
899
- const { className: i, children: n, id: l, ...f } = a;
900
- return x(f), /* @__PURE__ */ s.jsx(
901
- $e,
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: T("bn-ak-menu", i || ""),
965
+ className: E("bn-ak-menu", o || ""),
904
966
  id: l,
905
967
  role: "listbox",
906
- ref: o,
907
- children: n
968
+ ref: s,
969
+ children: t
908
970
  }
909
971
  );
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)
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 p = Sr(u.current);
918
- p === "top" ? u.current.scrollIntoView(!0) : p === "bottom" && u.current.scrollIntoView(!1);
919
- }, [l]), /* @__PURE__ */ s.jsxs(
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: T("bn-ak-menu-item", i || ""),
923
- ref: Pr([o, u]),
924
- id: v,
925
- onClick: f,
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
- n.icon && /* @__PURE__ */ s.jsx(
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: n.icon
996
+ children: t.icon
935
997
  }
936
998
  ),
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 })
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
- n.badge && /* @__PURE__ */ s.jsx(
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__ */ s.jsx("div", { children: n.badge })
1008
+ children: /* @__PURE__ */ i.jsx("div", { children: t.badge })
947
1009
  }
948
1010
  )
949
1011
  ]
950
1012
  }
951
1013
  );
952
- }), jt = R((a, o) => {
953
- const { className: i, children: n, ...l } = a;
954
- return x(l), /* @__PURE__ */ s.jsx(
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: T("bn-ak-menu-item", i || ""),
958
- ref: o,
959
- children: /* @__PURE__ */ s.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: n })
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
- }), Et = R((a, o) => {
963
- const { className: i, children: n, ...l } = a;
964
- return x(l), /* @__PURE__ */ s.jsx(
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: T("bn-ak-group-label", i || ""),
968
- ref: o,
969
- children: n
1029
+ className: E("bn-ak-group-label", o || ""),
1030
+ ref: s,
1031
+ children: t
970
1032
  }
971
1033
  );
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) => {
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: i,
978
- children: n,
1039
+ className: o,
1040
+ children: t,
979
1041
  draggable: l,
980
- onDragStart: f,
981
- onDragEnd: v,
982
- style: g,
983
- label: u,
984
- ...p
1042
+ onDragStart: u,
1043
+ onDragEnd: d,
1044
+ style: h,
1045
+ label: c,
1046
+ ...v
985
1047
  } = a;
986
- return x(p, !1), /* @__PURE__ */ s.jsx(
987
- oe,
1048
+ return g(v, !1), /* @__PURE__ */ i.jsx(
1049
+ se,
988
1050
  {
989
- className: T(
1051
+ className: E(
990
1052
  "bn-ak-button bn-ak-secondary",
991
- i || ""
1053
+ o || ""
992
1054
  ),
993
- ref: o,
994
- "aria-label": u,
1055
+ ref: s,
1056
+ "aria-label": c,
995
1057
  draggable: l,
996
- onDragStart: f,
997
- onDragEnd: v,
998
- style: g,
999
- ...p,
1000
- children: n
1058
+ onDragStart: u,
1059
+ onDragEnd: d,
1060
+ style: h,
1061
+ ...v,
1062
+ children: t
1001
1063
  }
1002
1064
  );
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(
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: T("bn-ak-toolbar", i || ""),
1010
- ref: o,
1071
+ className: E("bn-ak-toolbar", o || ""),
1072
+ ref: s,
1011
1073
  onMouseEnter: l,
1012
- onMouseLeave: f,
1013
- children: n
1074
+ onMouseLeave: u,
1075
+ children: t
1014
1076
  }
1015
1077
  );
1016
1078
  }
1017
- ), Me = R(
1018
- (a, o) => {
1079
+ ), Fe = y(
1080
+ (a, s) => {
1019
1081
  const {
1020
- className: i,
1021
- children: n,
1082
+ className: o,
1083
+ children: t,
1022
1084
  mainTooltip: l,
1023
- secondaryTooltip: f,
1024
- icon: v,
1025
- isSelected: g,
1026
- isDisabled: u,
1027
- onClick: p,
1028
- label: y,
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 x(_, !1), /* @__PURE__ */ s.jsxs(Kr, { children: [
1032
- /* @__PURE__ */ s.jsx(
1033
- Gr,
1093
+ return g(_, !1), /* @__PURE__ */ i.jsxs(Gr, { children: [
1094
+ /* @__PURE__ */ i.jsx(
1095
+ Kr,
1034
1096
  {
1035
1097
  className: "link",
1036
- render: /* @__PURE__ */ s.jsxs(
1037
- We,
1098
+ render: /* @__PURE__ */ i.jsxs(
1099
+ Ue,
1038
1100
  {
1039
- "aria-label": y,
1040
- className: T(
1101
+ "aria-label": j,
1102
+ className: E(
1041
1103
  "bn-ak-button bn-ak-secondary",
1042
- i || ""
1104
+ o || ""
1043
1105
  ),
1044
1106
  onMouseDown: (w) => {
1045
- kr() && w.currentTarget.focus();
1107
+ Pr() && w.currentTarget.focus();
1046
1108
  },
1047
- onClick: p,
1048
- "aria-pressed": g,
1049
- "data-selected": g ? "true" : void 0,
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: u || !1,
1052
- ref: o,
1113
+ disabled: c || !1,
1114
+ ref: s,
1053
1115
  ..._,
1054
1116
  children: [
1055
- v,
1056
- n
1117
+ d,
1118
+ t
1057
1119
  ]
1058
1120
  }
1059
1121
  )
1060
1122
  }
1061
1123
  ),
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 })
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
- ), 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);
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__ */ s.jsxs(qr, { value: v.text, setValue: g, children: [
1076
- /* @__PURE__ */ s.jsxs(
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__ */ s.jsx(We, {}),
1144
+ render: /* @__PURE__ */ i.jsx(Ue, {}),
1083
1145
  children: [
1084
- v.icon,
1146
+ d.icon,
1085
1147
  " ",
1086
- v.text,
1148
+ d.text,
1087
1149
  " ",
1088
- /* @__PURE__ */ s.jsx(zr, {})
1150
+ /* @__PURE__ */ i.jsx(zr, {})
1089
1151
  ]
1090
1152
  }
1091
1153
  ),
1092
- /* @__PURE__ */ s.jsx(
1154
+ /* @__PURE__ */ i.jsx(
1093
1155
  Xr,
1094
1156
  {
1095
- className: T("bn-ak-popover", i || ""),
1096
- ref: o,
1157
+ className: E("bn-ak-popover", o || ""),
1158
+ ref: s,
1097
1159
  gutter: 4,
1098
- children: n.map((u) => /* @__PURE__ */ s.jsxs(
1160
+ children: t.map((c) => /* @__PURE__ */ i.jsxs(
1099
1161
  Zr,
1100
1162
  {
1101
1163
  className: "bn-ak-select-item",
1102
- value: u.text,
1164
+ value: c.text,
1103
1165
  children: [
1104
- u.icon,
1105
- u.text,
1106
- u.text === v.text && /* @__PURE__ */ s.jsx(Qr, {})
1166
+ c.icon,
1167
+ c.text,
1168
+ c.text === d.text && /* @__PURE__ */ i.jsx(Qr, {})
1107
1169
  ]
1108
1170
  },
1109
- u.text
1171
+ c.text
1110
1172
  ))
1111
1173
  }
1112
1174
  )
1113
1175
  ] });
1114
1176
  });
1115
- const St = {
1177
+ const Nt = {
1116
1178
  FormattingToolbar: {
1117
- Root: Fe,
1118
- Button: Me,
1119
- Select: kt
1179
+ Root: Me,
1180
+ Button: Fe,
1181
+ Select: wt
1120
1182
  },
1121
1183
  FilePanel: {
1122
- Root: ut,
1123
- Button: ft,
1124
- FileInput: dt,
1125
- TabPanel: vt,
1126
- TextInput: mt
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: Fe,
1130
- Button: Me
1197
+ Root: Me,
1198
+ Button: Fe
1131
1199
  },
1132
1200
  SideMenu: {
1133
- Root: ht,
1134
- Button: xt
1201
+ Root: Rt,
1202
+ Button: Et
1135
1203
  },
1136
1204
  SuggestionMenu: {
1137
- Root: yt,
1138
- Item: Rt,
1139
- EmptyItem: jt,
1140
- Label: Et,
1141
- Loader: Tt
1205
+ Root: Tt,
1206
+ Item: _t,
1207
+ EmptyItem: kt,
1208
+ Label: St,
1209
+ Loader: Pt
1142
1210
  },
1143
1211
  TableHandle: {
1144
- Root: _t
1212
+ Root: Ct
1145
1213
  },
1146
1214
  Generic: {
1147
1215
  Form: {
1148
1216
  Root: tt,
1149
- TextInput: nt
1217
+ TextInput: it
1150
1218
  },
1151
1219
  Menu: {
1152
- Root: at,
1153
- Trigger: lt,
1154
- Dropdown: ot,
1155
- Divider: ct,
1156
- Label: it,
1157
- Item: st
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: gt,
1161
- Trigger: pt,
1162
- Content: bt
1228
+ Root: jt,
1229
+ Trigger: xt,
1230
+ Content: yt
1163
1231
  }
1164
1232
  }
1165
- }, Ot = (a) => {
1166
- const { className: o, ...i } = a;
1167
- return /* @__PURE__ */ s.jsx(Cr.Provider, { value: St, children: /* @__PURE__ */ s.jsx(
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: T("bn-ariakit", o || ""),
1171
- ...i
1238
+ className: E("bn-ariakit", s || ""),
1239
+ ...o
1172
1240
  }
1173
1241
  ) });
1174
1242
  };
1175
1243
  export {
1176
- Ot as BlockNoteView,
1177
- St as components
1244
+ Ft as BlockNoteView,
1245
+ Nt as components
1178
1246
  };
1179
1247
  //# sourceMappingURL=blocknote-ariakit.js.map