@blocknote/mantine 0.14.6 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/blocknote-mantine.js +608 -558
  2. package/dist/blocknote-mantine.js.map +1 -1
  3. package/dist/blocknote-mantine.umd.cjs +10 -12
  4. package/dist/blocknote-mantine.umd.cjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/webpack-stats.json +1 -1
  7. package/package.json +7 -7
  8. package/src/index.tsx +11 -2
  9. package/src/style.css +47 -0
  10. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
  11. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +25 -0
  12. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +42 -0
  13. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +28 -0
  14. package/types/src/form/TextInput.d.ts +4 -5
  15. package/types/src/index.d.ts +2 -2
  16. package/types/src/menu/Menu.d.ts +8 -9
  17. package/types/src/panel/Panel.d.ts +1 -2
  18. package/types/src/panel/PanelButton.d.ts +2 -3
  19. package/types/src/panel/PanelFileInput.d.ts +1 -2
  20. package/types/src/panel/PanelTab.d.ts +1 -2
  21. package/types/src/panel/PanelTextInput.d.ts +2 -3
  22. package/types/src/popover/Popover.d.ts +1 -2
  23. package/types/src/sideMenu/SideMenu.d.ts +1 -2
  24. package/types/src/sideMenu/SideMenuButton.d.ts +6 -7
  25. package/types/src/suggestionMenu/SuggestionMenu.d.ts +1 -2
  26. package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +1 -2
  27. package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +1 -2
  28. package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +1 -2
  29. package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +1 -2
  30. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +6 -0
  31. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +5 -0
  32. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +7 -0
  33. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +5 -0
  34. package/types/src/tableHandle/TableHandle.d.ts +4 -5
  35. package/types/src/toolbar/Toolbar.d.ts +4 -5
  36. package/types/src/toolbar/ToolbarButton.d.ts +0 -1
  37. package/types/src/toolbar/ToolbarSelect.d.ts +3 -4
@@ -1,9 +1,9 @@
1
- import D, { forwardRef as R, createContext as zr, useState as Wr, useRef as ce, useCallback as de, useContext as Br, useEffect as Vr } from "react";
2
- import { assertEmpty as j, isSafari as fe, mergeCSSClasses as Yr } from "@blocknote/core";
3
- import { elementOverflow as Ur, useBlockNoteContext as Kr, usePrefersColorScheme as Gr, ComponentsContext as Hr, BlockNoteViewRaw as Jr } from "@blocknote/react";
4
- import { TextInput as Je, Menu as O, CheckIcon as qe, Group as N, Tabs as X, LoadingOverlay as qr, Button as U, FileInput as Xr, Popover as Zr, PopoverTarget as Qr, PopoverDropdown as et, ActionIcon as Xe, Stack as be, Text as Z, Badge as rt, Loader as tt, Tooltip as nt, MantineProvider as at } from "@mantine/core";
5
- import { mergeRefs as ge, useFocusWithin as ot, useFocusTrap as it } from "@mantine/hooks";
6
- var ve = { exports: {} }, V = {};
1
+ import D, { forwardRef as R, useRef as Z, useEffect as Je, createContext as Br, useState as Yr, useCallback as fe, useContext as Ur } from "react";
2
+ import { assertEmpty as p, isSafari as ve, mergeCSSClasses as Gr } from "@blocknote/core";
3
+ import { elementOverflow as qe, useBlockNoteContext as Kr, usePrefersColorScheme as Hr, ComponentsContext as Jr, BlockNoteViewRaw as qr } from "@blocknote/react";
4
+ import { Group as F, Loader as Xe, Menu as O, CheckIcon as Ze, Tabs as X, LoadingOverlay as Xr, Button as U, FileInput as Zr, TextInput as Qe, Popover as Qr, PopoverTarget as et, PopoverDropdown as rt, ActionIcon as er, Stack as me, Text as Q, Badge as tt, Tooltip as nt, MantineProvider as ot } from "@mantine/core";
5
+ import { mergeRefs as te, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
6
+ var be = { exports: {} }, B = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -15,21 +15,17 @@ var ve = { exports: {} }, V = {};
15
15
  */
16
16
  var We;
17
17
  function st() {
18
- if (We)
19
- return V;
18
+ if (We) return B;
20
19
  We = 1;
21
- var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
22
21
  function f(c, d, b) {
23
- var h, w = {}, k = null, K = null;
24
- b !== void 0 && (k = "" + b), d.key !== void 0 && (k = "" + d.key), d.ref !== void 0 && (K = d.ref);
25
- for (h in d)
26
- a.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
27
- if (c && c.defaultProps)
28
- for (h in d = c.defaultProps, d)
29
- w[h] === void 0 && (w[h] = d[h]);
30
- return { $$typeof: n, type: c, key: k, ref: K, props: w, _owner: i.current };
22
+ var h, w = {}, T = null, G = null;
23
+ b !== void 0 && (T = "" + b), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (G = d.ref);
24
+ for (h in d) o.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
25
+ if (c && c.defaultProps) for (h in d = c.defaultProps, d) w[h] === void 0 && (w[h] = d[h]);
26
+ return { $$typeof: n, type: c, key: T, ref: G, props: w, _owner: i.current };
31
27
  }
32
- return V.Fragment = t, V.jsx = f, V.jsxs = f, V;
28
+ return B.Fragment = t, B.jsx = f, B.jsxs = f, B;
33
29
  }
34
30
  var Y = {};
35
31
  /**
@@ -41,62 +37,62 @@ var Y = {};
41
37
  * This source code is licensed under the MIT license found in the
42
38
  * LICENSE file in the root directory of this source tree.
43
39
  */
44
- var Be;
40
+ var Ve;
45
41
  function lt() {
46
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
47
- var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), pe = Symbol.iterator, nr = "@@iterator";
48
- function ar(e) {
42
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), ge = Symbol.iterator, ir = "@@iterator";
44
+ function sr(e) {
49
45
  if (e === null || typeof e != "object")
50
46
  return null;
51
- var o = pe && e[pe] || e[nr];
52
- return typeof o == "function" ? o : null;
47
+ var a = ge && e[ge] || e[ir];
48
+ return typeof a == "function" ? a : null;
53
49
  }
54
50
  var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function S(e) {
51
+ function k(e) {
56
52
  {
57
- for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), v = 1; v < o; v++)
53
+ for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
58
54
  s[v - 1] = arguments[v];
59
- or("error", e, s);
55
+ lr("error", e, s);
60
56
  }
61
57
  }
62
- function or(e, o, s) {
58
+ function lr(e, a, s) {
63
59
  {
64
- var v = L.ReactDebugCurrentFrame, m = v.getStackAddendum();
65
- m !== "" && (o += "%s", s = s.concat([m]));
66
- var y = s.map(function(p) {
67
- return String(p);
60
+ var v = L.ReactDebugCurrentFrame, x = v.getStackAddendum();
61
+ x !== "" && (a += "%s", s = s.concat([x]));
62
+ var j = s.map(function(g) {
63
+ return String(g);
68
64
  });
69
- y.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, y);
65
+ j.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, j);
70
66
  }
71
67
  }
72
- var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, me;
73
- me = Symbol.for("react.module.reference");
74
- function dr(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || cr || e === i || e === b || e === h || ur || e === K || ir || sr || lr || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
68
+ var ur = !1, cr = !1, dr = !1, fr = !1, vr = !1, pe;
69
+ pe = Symbol.for("react.module.reference");
70
+ function br(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || vr || e === i || e === b || e === h || fr || e === G || ur || cr || dr || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
76
72
  // types supported by any Flight configuration anywhere since
77
73
  // we don't know which Flight build this will end up being used
78
74
  // with.
79
- e.$$typeof === me || e.getModuleId !== void 0));
75
+ e.$$typeof === pe || e.getModuleId !== void 0));
80
76
  }
81
- function fr(e, o, s) {
77
+ function mr(e, a, s) {
82
78
  var v = e.displayName;
83
79
  if (v)
84
80
  return v;
85
- var m = o.displayName || o.name || "";
86
- return m !== "" ? s + "(" + m + ")" : s;
81
+ var x = a.displayName || a.name || "";
82
+ return x !== "" ? s + "(" + x + ")" : s;
87
83
  }
88
84
  function he(e) {
89
85
  return e.displayName || "Context";
90
86
  }
91
- function F(e) {
87
+ function N(e) {
92
88
  if (e == null)
93
89
  return null;
94
- if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
91
  return e.displayName || e.name || null;
96
92
  if (typeof e == "string")
97
93
  return e;
98
94
  switch (e) {
99
- case a:
95
+ case o:
100
96
  return "Fragment";
101
97
  case t:
102
98
  return "Portal";
@@ -112,20 +108,20 @@ function lt() {
112
108
  if (typeof e == "object")
113
109
  switch (e.$$typeof) {
114
110
  case c:
115
- var o = e;
116
- return he(o) + ".Consumer";
111
+ var a = e;
112
+ return he(a) + ".Consumer";
117
113
  case f:
118
114
  var s = e;
119
115
  return he(s._context) + ".Provider";
120
116
  case d:
121
- return fr(e, e.render, "ForwardRef");
117
+ return mr(e, e.render, "ForwardRef");
122
118
  case w:
123
119
  var v = e.displayName || null;
124
- return v !== null ? v : F(e.type) || "Memo";
125
- case k: {
126
- var m = e, y = m._payload, p = m._init;
120
+ return v !== null ? v : N(e.type) || "Memo";
121
+ case T: {
122
+ var x = e, j = x._payload, g = x._init;
127
123
  try {
128
- return F(p(y));
124
+ return N(g(j));
129
125
  } catch {
130
126
  return null;
131
127
  }
@@ -133,18 +129,18 @@ function lt() {
133
129
  }
134
130
  return null;
135
131
  }
136
- var M = Object.assign, z = 0, xe, ye, je, Re, Ee, Te, we;
137
- function ke() {
132
+ var M = Object.assign, z = 0, xe, ye, je, Re, Ee, Se, we;
133
+ function Te() {
138
134
  }
139
- ke.__reactDisabledLog = !0;
140
- function vr() {
135
+ Te.__reactDisabledLog = !0;
136
+ function gr() {
141
137
  {
142
138
  if (z === 0) {
143
- xe = console.log, ye = console.info, je = console.warn, Re = console.error, Ee = console.group, Te = console.groupCollapsed, we = console.groupEnd;
139
+ xe = console.log, ye = console.info, je = console.warn, Re = console.error, Ee = console.group, Se = console.groupCollapsed, we = console.groupEnd;
144
140
  var e = {
145
141
  configurable: !0,
146
142
  enumerable: !0,
147
- value: ke,
143
+ value: Te,
148
144
  writable: !0
149
145
  };
150
146
  Object.defineProperties(console, {
@@ -160,7 +156,7 @@ function lt() {
160
156
  z++;
161
157
  }
162
158
  }
163
- function br() {
159
+ function pr() {
164
160
  {
165
161
  if (z--, z === 0) {
166
162
  var e = {
@@ -185,37 +181,37 @@ function lt() {
185
181
  value: Ee
186
182
  }),
187
183
  groupCollapsed: M({}, e, {
188
- value: Te
184
+ value: Se
189
185
  }),
190
186
  groupEnd: M({}, e, {
191
187
  value: we
192
188
  })
193
189
  });
194
190
  }
195
- z < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ z < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
192
  }
197
193
  }
198
- var re = L.ReactCurrentDispatcher, te;
199
- function G(e, o, s) {
194
+ var ne = L.ReactCurrentDispatcher, oe;
195
+ function K(e, a, s) {
200
196
  {
201
- if (te === void 0)
197
+ if (oe === void 0)
202
198
  try {
203
199
  throw Error();
204
- } catch (m) {
205
- var v = m.stack.trim().match(/\n( *(at )?)/);
206
- te = v && v[1] || "";
200
+ } catch (x) {
201
+ var v = x.stack.trim().match(/\n( *(at )?)/);
202
+ oe = v && v[1] || "";
207
203
  }
208
204
  return `
209
- ` + te + e;
205
+ ` + oe + e;
210
206
  }
211
207
  }
212
- var ne = !1, H;
208
+ var ae = !1, H;
213
209
  {
214
- var gr = typeof WeakMap == "function" ? WeakMap : Map;
215
- H = new gr();
210
+ var hr = typeof WeakMap == "function" ? WeakMap : Map;
211
+ H = new hr();
216
212
  }
217
- function Se(e, o) {
218
- if (!e || ne)
213
+ function ke(e, a) {
214
+ if (!e || ae)
219
215
  return "";
220
216
  {
221
217
  var s = H.get(e);
@@ -223,34 +219,34 @@ function lt() {
223
219
  return s;
224
220
  }
225
221
  var v;
226
- ne = !0;
227
- var m = Error.prepareStackTrace;
222
+ ae = !0;
223
+ var x = Error.prepareStackTrace;
228
224
  Error.prepareStackTrace = void 0;
229
- var y;
230
- y = re.current, re.current = null, vr();
225
+ var j;
226
+ j = ne.current, ne.current = null, gr();
231
227
  try {
232
- if (o) {
233
- var p = function() {
228
+ if (a) {
229
+ var g = function() {
234
230
  throw Error();
235
231
  };
236
- if (Object.defineProperty(p.prototype, "props", {
232
+ if (Object.defineProperty(g.prototype, "props", {
237
233
  set: function() {
238
234
  throw Error();
239
235
  }
240
236
  }), typeof Reflect == "object" && Reflect.construct) {
241
237
  try {
242
- Reflect.construct(p, []);
238
+ Reflect.construct(g, []);
243
239
  } catch (_) {
244
240
  v = _;
245
241
  }
246
- Reflect.construct(e, [], p);
242
+ Reflect.construct(e, [], g);
247
243
  } else {
248
244
  try {
249
- p.call();
245
+ g.call();
250
246
  } catch (_) {
251
247
  v = _;
252
248
  }
253
- e.call(p.prototype);
249
+ e.call(g.prototype);
254
250
  }
255
251
  } else {
256
252
  try {
@@ -262,59 +258,59 @@ function lt() {
262
258
  }
263
259
  } catch (_) {
264
260
  if (_ && v && typeof _.stack == "string") {
265
- for (var g = _.stack.split(`
261
+ for (var m = _.stack.split(`
266
262
  `), P = v.stack.split(`
267
- `), E = g.length - 1, T = P.length - 1; E >= 1 && T >= 0 && g[E] !== P[T]; )
268
- T--;
269
- for (; E >= 1 && T >= 0; E--, T--)
270
- if (g[E] !== P[T]) {
271
- if (E !== 1 || T !== 1)
263
+ `), E = m.length - 1, S = P.length - 1; E >= 1 && S >= 0 && m[E] !== P[S]; )
264
+ S--;
265
+ for (; E >= 1 && S >= 0; E--, S--)
266
+ if (m[E] !== P[S]) {
267
+ if (E !== 1 || S !== 1)
272
268
  do
273
- if (E--, T--, T < 0 || g[E] !== P[T]) {
269
+ if (E--, S--, S < 0 || m[E] !== P[S]) {
274
270
  var C = `
275
- ` + g[E].replace(" at new ", " at ");
271
+ ` + m[E].replace(" at new ", " at ");
276
272
  return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, C), C;
277
273
  }
278
- while (E >= 1 && T >= 0);
274
+ while (E >= 1 && S >= 0);
279
275
  break;
280
276
  }
281
277
  }
282
278
  } finally {
283
- ne = !1, re.current = y, br(), Error.prepareStackTrace = m;
279
+ ae = !1, ne.current = j, pr(), Error.prepareStackTrace = x;
284
280
  }
285
- var $ = e ? e.displayName || e.name : "", I = $ ? G($) : "";
281
+ var $ = e ? e.displayName || e.name : "", I = $ ? K($) : "";
286
282
  return typeof e == "function" && H.set(e, I), I;
287
283
  }
288
- function pr(e, o, s) {
289
- return Se(e, !1);
284
+ function xr(e, a, s) {
285
+ return ke(e, !1);
290
286
  }
291
- function mr(e) {
292
- var o = e.prototype;
293
- return !!(o && o.isReactComponent);
287
+ function yr(e) {
288
+ var a = e.prototype;
289
+ return !!(a && a.isReactComponent);
294
290
  }
295
- function J(e, o, s) {
291
+ function J(e, a, s) {
296
292
  if (e == null)
297
293
  return "";
298
294
  if (typeof e == "function")
299
- return Se(e, mr(e));
295
+ return ke(e, yr(e));
300
296
  if (typeof e == "string")
301
- return G(e);
297
+ return K(e);
302
298
  switch (e) {
303
299
  case b:
304
- return G("Suspense");
300
+ return K("Suspense");
305
301
  case h:
306
- return G("SuspenseList");
302
+ return K("SuspenseList");
307
303
  }
308
304
  if (typeof e == "object")
309
305
  switch (e.$$typeof) {
310
306
  case d:
311
- return pr(e.render);
307
+ return xr(e.render);
312
308
  case w:
313
- return J(e.type, o, s);
314
- case k: {
315
- var v = e, m = v._payload, y = v._init;
309
+ return J(e.type, a, s);
310
+ case T: {
311
+ var v = e, x = v._payload, j = v._init;
316
312
  try {
317
- return J(y(m), o, s);
313
+ return J(j(x), a, s);
318
314
  } catch {
319
315
  }
320
316
  }
@@ -324,41 +320,41 @@ function lt() {
324
320
  var W = Object.prototype.hasOwnProperty, Pe = {}, _e = L.ReactDebugCurrentFrame;
325
321
  function q(e) {
326
322
  if (e) {
327
- var o = e._owner, s = J(e.type, e._source, o ? o.type : null);
323
+ var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
328
324
  _e.setExtraStackFrame(s);
329
325
  } else
330
326
  _e.setExtraStackFrame(null);
331
327
  }
332
- function hr(e, o, s, v, m) {
328
+ function jr(e, a, s, v, x) {
333
329
  {
334
- var y = Function.call.bind(W);
335
- for (var p in e)
336
- if (y(e, p)) {
337
- var g = void 0;
330
+ var j = Function.call.bind(W);
331
+ for (var g in e)
332
+ if (j(e, g)) {
333
+ var m = void 0;
338
334
  try {
339
- if (typeof e[p] != "function") {
340
- var P = Error((v || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ if (typeof e[g] != "function") {
336
+ var P = Error((v || "React class") + ": " + s + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
337
  throw P.name = "Invariant Violation", P;
342
338
  }
343
- g = e[p](o, p, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ m = e[g](a, g, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
340
  } catch (E) {
345
- g = E;
341
+ m = E;
346
342
  }
347
- g && !(g instanceof Error) && (q(m), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", s, p, typeof g), q(null)), g instanceof Error && !(g.message in Pe) && (Pe[g.message] = !0, q(m), S("Failed %s type: %s", s, g.message), q(null));
343
+ m && !(m instanceof Error) && (q(x), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", s, g, typeof m), q(null)), m instanceof Error && !(m.message in Pe) && (Pe[m.message] = !0, q(x), k("Failed %s type: %s", s, m.message), q(null));
348
344
  }
349
345
  }
350
346
  }
351
- var xr = Array.isArray;
352
- function ae(e) {
353
- return xr(e);
347
+ var Rr = Array.isArray;
348
+ function ie(e) {
349
+ return Rr(e);
354
350
  }
355
- function yr(e) {
351
+ function Er(e) {
356
352
  {
357
- var o = typeof Symbol == "function" && Symbol.toStringTag, s = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
+ var a = typeof Symbol == "function" && Symbol.toStringTag, s = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
354
  return s;
359
355
  }
360
356
  }
361
- function jr(e) {
357
+ function Sr(e) {
362
358
  try {
363
359
  return Ce(e), !1;
364
360
  } catch {
@@ -369,42 +365,42 @@ function lt() {
369
365
  return "" + e;
370
366
  }
371
367
  function Oe(e) {
372
- if (jr(e))
373
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), Ce(e);
368
+ if (Sr(e))
369
+ return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Er(e)), Ce(e);
374
370
  }
375
- var B = L.ReactCurrentOwner, Rr = {
371
+ var V = L.ReactCurrentOwner, wr = {
376
372
  key: !0,
377
373
  ref: !0,
378
374
  __self: !0,
379
375
  __source: !0
380
- }, Fe, De, oe;
381
- oe = {};
382
- function Er(e) {
376
+ }, Fe, Ne, se;
377
+ se = {};
378
+ function Tr(e) {
383
379
  if (W.call(e, "ref")) {
384
- var o = Object.getOwnPropertyDescriptor(e, "ref").get;
385
- if (o && o.isReactWarning)
380
+ var a = Object.getOwnPropertyDescriptor(e, "ref").get;
381
+ if (a && a.isReactWarning)
386
382
  return !1;
387
383
  }
388
384
  return e.ref !== void 0;
389
385
  }
390
- function Tr(e) {
386
+ function kr(e) {
391
387
  if (W.call(e, "key")) {
392
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
393
- if (o && o.isReactWarning)
388
+ var a = Object.getOwnPropertyDescriptor(e, "key").get;
389
+ if (a && a.isReactWarning)
394
390
  return !1;
395
391
  }
396
392
  return e.key !== void 0;
397
393
  }
398
- function wr(e, o) {
399
- if (typeof e.ref == "string" && B.current && o && B.current.stateNode !== o) {
400
- var s = F(B.current.type);
401
- oe[s] || (S('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', F(B.current.type), e.ref), oe[s] = !0);
394
+ function Pr(e, a) {
395
+ if (typeof e.ref == "string" && V.current && a && V.current.stateNode !== a) {
396
+ var s = N(V.current.type);
397
+ se[s] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(V.current.type), e.ref), se[s] = !0);
402
398
  }
403
399
  }
404
- function kr(e, o) {
400
+ function _r(e, a) {
405
401
  {
406
402
  var s = function() {
407
- Fe || (Fe = !0, S("%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)", o));
403
+ Fe || (Fe = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
408
404
  };
409
405
  s.isReactWarning = !0, Object.defineProperty(e, "key", {
410
406
  get: s,
@@ -412,10 +408,10 @@ function lt() {
412
408
  });
413
409
  }
414
410
  }
415
- function Sr(e, o) {
411
+ function Cr(e, a) {
416
412
  {
417
413
  var s = function() {
418
- De || (De = !0, S("%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)", o));
414
+ Ne || (Ne = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
419
415
  };
420
416
  s.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
417
  get: s,
@@ -423,70 +419,70 @@ function lt() {
423
419
  });
424
420
  }
425
421
  }
426
- var Pr = function(e, o, s, v, m, y, p) {
427
- var g = {
422
+ var Or = function(e, a, s, v, x, j, g) {
423
+ var m = {
428
424
  // This tag allows us to uniquely identify this as a React Element
429
425
  $$typeof: n,
430
426
  // Built-in properties that belong on the element
431
427
  type: e,
432
- key: o,
428
+ key: a,
433
429
  ref: s,
434
- props: p,
430
+ props: g,
435
431
  // Record the component responsible for creating this element.
436
- _owner: y
432
+ _owner: j
437
433
  };
438
- return g._store = {}, Object.defineProperty(g._store, "validated", {
434
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
439
435
  configurable: !1,
440
436
  enumerable: !1,
441
437
  writable: !0,
442
438
  value: !1
443
- }), Object.defineProperty(g, "_self", {
439
+ }), Object.defineProperty(m, "_self", {
444
440
  configurable: !1,
445
441
  enumerable: !1,
446
442
  writable: !1,
447
443
  value: v
448
- }), Object.defineProperty(g, "_source", {
444
+ }), Object.defineProperty(m, "_source", {
449
445
  configurable: !1,
450
446
  enumerable: !1,
451
447
  writable: !1,
452
- value: m
453
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
448
+ value: x
449
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
454
450
  };
455
- function _r(e, o, s, v, m) {
451
+ function Fr(e, a, s, v, x) {
456
452
  {
457
- var y, p = {}, g = null, P = null;
458
- s !== void 0 && (Oe(s), g = "" + s), Tr(o) && (Oe(o.key), g = "" + o.key), Er(o) && (P = o.ref, wr(o, m));
459
- for (y in o)
460
- W.call(o, y) && !Rr.hasOwnProperty(y) && (p[y] = o[y]);
453
+ var j, g = {}, m = null, P = null;
454
+ s !== void 0 && (Oe(s), m = "" + s), kr(a) && (Oe(a.key), m = "" + a.key), Tr(a) && (P = a.ref, Pr(a, x));
455
+ for (j in a)
456
+ W.call(a, j) && !wr.hasOwnProperty(j) && (g[j] = a[j]);
461
457
  if (e && e.defaultProps) {
462
458
  var E = e.defaultProps;
463
- for (y in E)
464
- p[y] === void 0 && (p[y] = E[y]);
459
+ for (j in E)
460
+ g[j] === void 0 && (g[j] = E[j]);
465
461
  }
466
- if (g || P) {
467
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- g && kr(p, T), P && Sr(p, T);
462
+ if (m || P) {
463
+ var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ m && _r(g, S), P && Cr(g, S);
469
465
  }
470
- return Pr(e, g, P, m, v, B.current, p);
466
+ return Or(e, m, P, x, v, V.current, g);
471
467
  }
472
468
  }
473
- var ie = L.ReactCurrentOwner, Ne = L.ReactDebugCurrentFrame;
469
+ var le = L.ReactCurrentOwner, De = L.ReactDebugCurrentFrame;
474
470
  function A(e) {
475
471
  if (e) {
476
- var o = e._owner, s = J(e.type, e._source, o ? o.type : null);
477
- Ne.setExtraStackFrame(s);
472
+ var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
473
+ De.setExtraStackFrame(s);
478
474
  } else
479
- Ne.setExtraStackFrame(null);
475
+ De.setExtraStackFrame(null);
480
476
  }
481
- var se;
482
- se = !1;
483
- function le(e) {
477
+ var ue;
478
+ ue = !1;
479
+ function ce(e) {
484
480
  return typeof e == "object" && e !== null && e.$$typeof === n;
485
481
  }
486
482
  function Me() {
487
483
  {
488
- if (ie.current) {
489
- var e = F(ie.current.type);
484
+ if (le.current) {
485
+ var e = N(le.current.type);
490
486
  if (e)
491
487
  return `
492
488
 
@@ -495,166 +491,158 @@ Check the render method of \`` + e + "`.";
495
491
  return "";
496
492
  }
497
493
  }
498
- function Cr(e) {
499
- {
500
- if (e !== void 0) {
501
- var o = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
502
- return `
503
-
504
- Check your code at ` + o + ":" + s + ".";
505
- }
506
- return "";
507
- }
494
+ function Nr(e) {
495
+ return "";
508
496
  }
509
497
  var Ie = {};
510
- function Or(e) {
498
+ function Dr(e) {
511
499
  {
512
- var o = Me();
513
- if (!o) {
500
+ var a = Me();
501
+ if (!a) {
514
502
  var s = typeof e == "string" ? e : e.displayName || e.name;
515
- s && (o = `
503
+ s && (a = `
516
504
 
517
505
  Check the top-level render call using <` + s + ">.");
518
506
  }
519
- return o;
507
+ return a;
520
508
  }
521
509
  }
522
- function Le(e, o) {
510
+ function Le(e, a) {
523
511
  {
524
512
  if (!e._store || e._store.validated || e.key != null)
525
513
  return;
526
514
  e._store.validated = !0;
527
- var s = Or(o);
515
+ var s = Dr(a);
528
516
  if (Ie[s])
529
517
  return;
530
518
  Ie[s] = !0;
531
519
  var v = "";
532
- e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + F(e._owner.type) + "."), A(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, v), A(null);
520
+ e && e._owner && e._owner !== le.current && (v = " It was passed a child from " + N(e._owner.type) + "."), A(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, v), A(null);
533
521
  }
534
522
  }
535
- function Ae(e, o) {
523
+ function Ae(e, a) {
536
524
  {
537
525
  if (typeof e != "object")
538
526
  return;
539
- if (ae(e))
527
+ if (ie(e))
540
528
  for (var s = 0; s < e.length; s++) {
541
529
  var v = e[s];
542
- le(v) && Le(v, o);
530
+ ce(v) && Le(v, a);
543
531
  }
544
- else if (le(e))
532
+ else if (ce(e))
545
533
  e._store && (e._store.validated = !0);
546
534
  else if (e) {
547
- var m = ar(e);
548
- if (typeof m == "function" && m !== e.entries)
549
- for (var y = m.call(e), p; !(p = y.next()).done; )
550
- le(p.value) && Le(p.value, o);
535
+ var x = sr(e);
536
+ if (typeof x == "function" && x !== e.entries)
537
+ for (var j = x.call(e), g; !(g = j.next()).done; )
538
+ ce(g.value) && Le(g.value, a);
551
539
  }
552
540
  }
553
541
  }
554
- function Fr(e) {
542
+ function Mr(e) {
555
543
  {
556
- var o = e.type;
557
- if (o == null || typeof o == "string")
544
+ var a = e.type;
545
+ if (a == null || typeof a == "string")
558
546
  return;
559
547
  var s;
560
- if (typeof o == "function")
561
- s = o.propTypes;
562
- else if (typeof o == "object" && (o.$$typeof === d || // Note: Memo only checks outer props here.
548
+ if (typeof a == "function")
549
+ s = a.propTypes;
550
+ else if (typeof a == "object" && (a.$$typeof === d || // Note: Memo only checks outer props here.
563
551
  // Inner props are checked in the reconciler.
564
- o.$$typeof === w))
565
- s = o.propTypes;
552
+ a.$$typeof === w))
553
+ s = a.propTypes;
566
554
  else
567
555
  return;
568
556
  if (s) {
569
- var v = F(o);
570
- hr(s, e.props, "prop", v, e);
571
- } else if (o.PropTypes !== void 0 && !se) {
572
- se = !0;
573
- var m = F(o);
574
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
557
+ var v = N(a);
558
+ jr(s, e.props, "prop", v, e);
559
+ } else if (a.PropTypes !== void 0 && !ue) {
560
+ ue = !0;
561
+ var x = N(a);
562
+ k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
575
563
  }
576
- typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
565
  }
578
566
  }
579
- function Dr(e) {
567
+ function Ir(e) {
580
568
  {
581
- for (var o = Object.keys(e.props), s = 0; s < o.length; s++) {
582
- var v = o[s];
569
+ for (var a = Object.keys(e.props), s = 0; s < a.length; s++) {
570
+ var v = a[s];
583
571
  if (v !== "children" && v !== "key") {
584
- A(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), A(null);
572
+ A(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), A(null);
585
573
  break;
586
574
  }
587
575
  }
588
- e.ref !== null && (A(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
576
+ e.ref !== null && (A(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
589
577
  }
590
578
  }
591
579
  var $e = {};
592
- function ze(e, o, s, v, m, y) {
580
+ function ze(e, a, s, v, x, j) {
593
581
  {
594
- var p = dr(e);
595
- if (!p) {
596
- var g = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var P = Cr(m);
599
- P ? g += P : g += Me();
582
+ var g = br(e);
583
+ if (!g) {
584
+ var m = "";
585
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
+ var P = Nr();
587
+ P ? m += P : m += Me();
600
588
  var E;
601
- e === null ? E = "null" : ae(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (F(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, g);
589
+ e === null ? E = "null" : ie(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (N(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, m);
602
590
  }
603
- var T = _r(e, o, s, m, y);
604
- if (T == null)
605
- return T;
606
- if (p) {
607
- var C = o.children;
591
+ var S = Fr(e, a, s, x, j);
592
+ if (S == null)
593
+ return S;
594
+ if (g) {
595
+ var C = a.children;
608
596
  if (C !== void 0)
609
597
  if (v)
610
- if (ae(C)) {
598
+ if (ie(C)) {
611
599
  for (var $ = 0; $ < C.length; $++)
612
600
  Ae(C[$], e);
613
601
  Object.freeze && Object.freeze(C);
614
602
  } else
615
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
+ k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
604
  else
617
605
  Ae(C, e);
618
606
  }
619
- if (W.call(o, "key")) {
620
- var I = F(e), _ = Object.keys(o).filter(function($r) {
621
- return $r !== "key";
622
- }), ue = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!$e[I + ue]) {
624
- var Ar = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
625
- S(`A props object containing a "key" prop is being spread into JSX:
607
+ if (W.call(a, "key")) {
608
+ var I = N(e), _ = Object.keys(a).filter(function(Vr) {
609
+ return Vr !== "key";
610
+ }), de = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!$e[I + de]) {
612
+ var Wr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
613
+ k(`A props object containing a "key" prop is being spread into JSX:
626
614
  let props = %s;
627
615
  <%s {...props} />
628
616
  React keys must be passed directly to JSX without using spread:
629
617
  let props = %s;
630
- <%s key={someKey} {...props} />`, ue, I, Ar, I), $e[I + ue] = !0;
618
+ <%s key={someKey} {...props} />`, de, I, Wr, I), $e[I + de] = !0;
631
619
  }
632
620
  }
633
- return e === a ? Dr(T) : Fr(T), T;
621
+ return e === o ? Ir(S) : Mr(S), S;
634
622
  }
635
623
  }
636
- function Nr(e, o, s) {
637
- return ze(e, o, s, !0);
624
+ function Lr(e, a, s) {
625
+ return ze(e, a, s, !0);
638
626
  }
639
- function Mr(e, o, s) {
640
- return ze(e, o, s, !1);
627
+ function Ar(e, a, s) {
628
+ return ze(e, a, s, !1);
641
629
  }
642
- var Ir = Mr, Lr = Nr;
643
- Y.Fragment = a, Y.jsx = Ir, Y.jsxs = Lr;
630
+ var $r = Ar, zr = Lr;
631
+ Y.Fragment = o, Y.jsx = $r, Y.jsxs = zr;
644
632
  }()), Y;
645
633
  }
646
- process.env.NODE_ENV === "production" ? ve.exports = st() : ve.exports = lt();
647
- var l = ve.exports;
648
- const Ze = (r, n, t = !1) => {
649
- const a = [];
634
+ process.env.NODE_ENV === "production" ? be.exports = st() : be.exports = lt();
635
+ var l = be.exports;
636
+ const rr = (r, n, t = !1) => {
637
+ const o = [];
650
638
  function i(u, f = "--bn") {
651
639
  for (const c in u) {
652
640
  const d = c.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${f}-${d}`;
653
641
  typeof u[c] != "object" ? (typeof u[c] == "number" && (u[c] = `${u[c]}px`), t ? n.style.removeProperty(b) : n.style.setProperty(b, u[c].toString())) : i(u[c], b);
654
642
  }
655
643
  }
656
- return i(r), a;
657
- }, Ve = (r, n) => Ze(r, n), ut = {
644
+ return i(r), o;
645
+ }, Be = (r, n) => rr(r, n), ut = {
658
646
  colors: {
659
647
  editor: {
660
648
  text: void 0,
@@ -724,143 +712,168 @@ const Ze = (r, n, t = !1) => {
724
712
  },
725
713
  borderRadius: void 0,
726
714
  fontFamily: void 0
727
- }, ct = (r) => Ze(ut, r, !0), dt = R((r, n) => {
715
+ }, ct = (r) => rr(ut, r, !0), dt = R((r, n) => {
716
+ const { className: t, children: o, id: i, columns: u, ...f } = r;
717
+ return p(f), /* @__PURE__ */ l.jsx(
718
+ "div",
719
+ {
720
+ className: t,
721
+ style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
722
+ ref: n,
723
+ id: i,
724
+ role: "grid",
725
+ children: o
726
+ }
727
+ );
728
+ }), ft = R((r, n) => {
729
+ const { className: t, children: o, columns: i, ...u } = r;
730
+ return p(u), /* @__PURE__ */ l.jsx(
731
+ F,
732
+ {
733
+ className: t,
734
+ style: { gridColumn: `1 / ${i + 1}` },
735
+ ref: n,
736
+ children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o })
737
+ }
738
+ );
739
+ }), vt = R((r, n) => {
740
+ const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
741
+ p(c);
742
+ const d = Z(null);
743
+ return Je(() => {
744
+ if (!d.current || !o)
745
+ return;
746
+ const b = qe(d.current);
747
+ b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
748
+ }, [o]), /* @__PURE__ */ l.jsx(
749
+ "div",
750
+ {
751
+ className: t,
752
+ ref: te(n, d),
753
+ id: f,
754
+ role: "option",
755
+ onClick: i,
756
+ "aria-selected": o || void 0,
757
+ children: u.icon
758
+ }
759
+ );
760
+ }), bt = R((r, n) => {
728
761
  const {
729
762
  className: t,
730
- name: a,
731
- label: i,
732
- icon: u,
733
- value: f,
734
- autoFocus: c,
735
- placeholder: d,
736
- onKeyDown: b,
737
- onChange: h,
738
- onSubmit: w,
739
- ...k
763
+ children: o,
764
+ // unused, using "dots" instead
765
+ columns: i,
766
+ ...u
740
767
  } = r;
741
- return j(k), /* @__PURE__ */ l.jsx(
742
- Je,
768
+ return p(u), /* @__PURE__ */ l.jsx(
769
+ Xe,
743
770
  {
744
- size: "xs",
745
771
  className: t,
746
- ref: n,
747
- name: a,
748
- label: i,
749
- leftSection: u,
750
- value: f,
751
- autoFocus: c,
752
- "data-autofocus": c ? "true" : void 0,
753
- placeholder: d,
754
- onKeyDown: b,
755
- onChange: h,
756
- onSubmit: w
772
+ style: { gridColumn: `1 / ${i + 1}` },
773
+ type: "dots",
774
+ ref: n
757
775
  }
758
776
  );
759
777
  });
760
- var Qe = {
778
+ var tr = {
761
779
  color: void 0,
762
780
  size: void 0,
763
781
  className: void 0,
764
782
  style: void 0,
765
783
  attr: void 0
766
- }, Ye = D.createContext && /* @__PURE__ */ D.createContext(Qe), ft = ["attr", "size", "title"];
767
- function vt(r, n) {
768
- if (r == null)
769
- return {};
770
- var t = bt(r, n), a, i;
784
+ }, Ye = D.createContext && /* @__PURE__ */ D.createContext(tr), mt = ["attr", "size", "title"];
785
+ function gt(r, n) {
786
+ if (r == null) return {};
787
+ var t = pt(r, n), o, i;
771
788
  if (Object.getOwnPropertySymbols) {
772
789
  var u = Object.getOwnPropertySymbols(r);
773
790
  for (i = 0; i < u.length; i++)
774
- a = u[i], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (t[a] = r[a]);
791
+ o = u[i], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (t[o] = r[o]);
775
792
  }
776
793
  return t;
777
794
  }
778
- function bt(r, n) {
779
- if (r == null)
780
- return {};
795
+ function pt(r, n) {
796
+ if (r == null) return {};
781
797
  var t = {};
782
- for (var a in r)
783
- if (Object.prototype.hasOwnProperty.call(r, a)) {
784
- if (n.indexOf(a) >= 0)
785
- continue;
786
- t[a] = r[a];
798
+ for (var o in r)
799
+ if (Object.prototype.hasOwnProperty.call(r, o)) {
800
+ if (n.indexOf(o) >= 0) continue;
801
+ t[o] = r[o];
787
802
  }
788
803
  return t;
789
804
  }
790
- function Q() {
791
- return Q = Object.assign ? Object.assign.bind() : function(r) {
805
+ function ee() {
806
+ return ee = Object.assign ? Object.assign.bind() : function(r) {
792
807
  for (var n = 1; n < arguments.length; n++) {
793
808
  var t = arguments[n];
794
- for (var a in t)
795
- Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
809
+ for (var o in t)
810
+ Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
796
811
  }
797
812
  return r;
798
- }, Q.apply(this, arguments);
813
+ }, ee.apply(this, arguments);
799
814
  }
800
815
  function Ue(r, n) {
801
816
  var t = Object.keys(r);
802
817
  if (Object.getOwnPropertySymbols) {
803
- var a = Object.getOwnPropertySymbols(r);
804
- n && (a = a.filter(function(i) {
818
+ var o = Object.getOwnPropertySymbols(r);
819
+ n && (o = o.filter(function(i) {
805
820
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
806
- })), t.push.apply(t, a);
821
+ })), t.push.apply(t, o);
807
822
  }
808
823
  return t;
809
824
  }
810
- function ee(r) {
825
+ function re(r) {
811
826
  for (var n = 1; n < arguments.length; n++) {
812
827
  var t = arguments[n] != null ? arguments[n] : {};
813
- n % 2 ? Ue(Object(t), !0).forEach(function(a) {
814
- gt(r, a, t[a]);
815
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(a) {
816
- Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(t, a));
828
+ n % 2 ? Ue(Object(t), !0).forEach(function(o) {
829
+ ht(r, o, t[o]);
830
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(o) {
831
+ Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
817
832
  });
818
833
  }
819
834
  return r;
820
835
  }
821
- function gt(r, n, t) {
822
- return n = pt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
836
+ function ht(r, n, t) {
837
+ return n = xt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
823
838
  }
824
- function pt(r) {
825
- var n = mt(r, "string");
839
+ function xt(r) {
840
+ var n = yt(r, "string");
826
841
  return typeof n == "symbol" ? n : n + "";
827
842
  }
828
- function mt(r, n) {
829
- if (typeof r != "object" || !r)
830
- return r;
843
+ function yt(r, n) {
844
+ if (typeof r != "object" || !r) return r;
831
845
  var t = r[Symbol.toPrimitive];
832
846
  if (t !== void 0) {
833
- var a = t.call(r, n || "default");
834
- if (typeof a != "object")
835
- return a;
847
+ var o = t.call(r, n || "default");
848
+ if (typeof o != "object") return o;
836
849
  throw new TypeError("@@toPrimitive must return a primitive value.");
837
850
  }
838
851
  return (n === "string" ? String : Number)(r);
839
852
  }
840
- function er(r) {
841
- return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag, ee({
853
+ function nr(r) {
854
+ return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag, re({
842
855
  key: t
843
- }, n.attr), er(n.child)));
856
+ }, n.attr), nr(n.child)));
844
857
  }
845
- function rr(r) {
846
- return (n) => /* @__PURE__ */ D.createElement(ht, Q({
847
- attr: ee({}, r.attr)
848
- }, n), er(r.child));
858
+ function or(r) {
859
+ return (n) => /* @__PURE__ */ D.createElement(jt, ee({
860
+ attr: re({}, r.attr)
861
+ }, n), nr(r.child));
849
862
  }
850
- function ht(r) {
863
+ function jt(r) {
851
864
  var n = (t) => {
852
865
  var {
853
- attr: a,
866
+ attr: o,
854
867
  size: i,
855
868
  title: u
856
- } = r, f = vt(r, ft), c = i || t.size || "1em", d;
857
- return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", Q({
869
+ } = r, f = gt(r, mt), c = i || t.size || "1em", d;
870
+ return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", ee({
858
871
  stroke: "currentColor",
859
872
  fill: "currentColor",
860
873
  strokeWidth: "0"
861
- }, t.attr, a, f, {
874
+ }, t.attr, o, f, {
862
875
  className: d,
863
- style: ee(ee({
876
+ style: re(re({
864
877
  color: r.color || t.color
865
878
  }, t.style), r.style),
866
879
  height: c,
@@ -868,44 +881,44 @@ function ht(r) {
868
881
  xmlns: "http://www.w3.org/2000/svg"
869
882
  }), u && /* @__PURE__ */ D.createElement("title", null, u), r.children);
870
883
  };
871
- return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(Qe);
884
+ return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(tr);
872
885
  }
873
- function xt(r) {
874
- return rr({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
886
+ function Rt(r) {
887
+ return or({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
875
888
  }
876
- function yt(r) {
877
- return rr({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
889
+ function Et(r) {
890
+ return or({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
878
891
  }
879
- const tr = zr(void 0), jt = R((r, n) => {
892
+ const ar = Br(void 0), St = R((r, n) => {
880
893
  const {
881
894
  children: t,
882
- onOpenChange: a,
895
+ onOpenChange: o,
883
896
  position: i,
884
897
  sub: u,
885
898
  // not used
886
899
  ...f
887
900
  } = r;
888
- j(f);
889
- const [c, d] = Wr(!1), b = ce(null), h = ce(), w = de(() => {
901
+ p(f);
902
+ const [c, d] = Yr(!1), b = Z(null), h = Z(), w = fe(() => {
890
903
  h.current && clearTimeout(h.current), h.current = setTimeout(() => {
891
904
  d(!1);
892
905
  }, 250);
893
- }, []), k = de(() => {
906
+ }, []), T = fe(() => {
894
907
  h.current && clearTimeout(h.current), d(!0);
895
908
  }, []);
896
909
  return /* @__PURE__ */ l.jsx(
897
- tr.Provider,
910
+ ar.Provider,
898
911
  {
899
912
  value: {
900
- onMenuMouseOver: k,
913
+ onMenuMouseOver: T,
901
914
  onMenuMouseLeave: w
902
915
  },
903
916
  children: /* @__PURE__ */ l.jsx(
904
917
  O.Item,
905
918
  {
906
919
  className: "bn-menu-item bn-mt-sub-menu-item",
907
- ref: ge(n, b),
908
- onMouseOver: k,
920
+ ref: te(n, b),
921
+ onMouseOver: T,
909
922
  onMouseLeave: w,
910
923
  children: /* @__PURE__ */ l.jsx(
911
924
  O,
@@ -916,8 +929,8 @@ const tr = zr(void 0), jt = R((r, n) => {
916
929
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
917
930
  trigger: "hover",
918
931
  opened: c,
919
- onClose: () => a == null ? void 0 : a(!1),
920
- onOpen: () => a == null ? void 0 : a(!0),
932
+ onClose: () => o == null ? void 0 : o(!1),
933
+ onOpen: () => o == null ? void 0 : o(!0),
921
934
  position: i,
922
935
  children: t
923
936
  }
@@ -926,54 +939,54 @@ const tr = zr(void 0), jt = R((r, n) => {
926
939
  )
927
940
  }
928
941
  );
929
- }), Rt = (r) => {
930
- const { children: n, onOpenChange: t, position: a, sub: i, ...u } = r;
931
- return j(u), i ? /* @__PURE__ */ l.jsx(jt, { ...r }) : /* @__PURE__ */ l.jsx(
942
+ }), wt = (r) => {
943
+ const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
944
+ return p(u), i ? /* @__PURE__ */ l.jsx(St, { ...r }) : /* @__PURE__ */ l.jsx(
932
945
  O,
933
946
  {
934
947
  withinPortal: !1,
935
948
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
936
949
  onClose: () => t == null ? void 0 : t(!1),
937
950
  onOpen: () => t == null ? void 0 : t(!0),
938
- position: a,
951
+ position: o,
939
952
  children: n
940
953
  }
941
954
  );
942
- }, Et = R((r, n) => {
943
- const { className: t, children: a, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
944
- return j(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
945
- a,
946
- /* @__PURE__ */ l.jsx(yt, { size: 15 })
955
+ }, Tt = R((r, n) => {
956
+ const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
957
+ return p(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
958
+ o,
959
+ /* @__PURE__ */ l.jsx(Et, { size: 15 })
947
960
  ] }) : /* @__PURE__ */ l.jsx(
948
961
  O.Item,
949
962
  {
950
963
  className: t,
951
964
  ref: n,
952
965
  leftSection: i,
953
- rightSection: u ? /* @__PURE__ */ l.jsx(qe, { size: 10 }) : u === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
966
+ rightSection: u ? /* @__PURE__ */ l.jsx(Ze, { size: 10 }) : u === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
954
967
  onClick: c,
955
968
  ...d,
956
- children: a
969
+ children: o
957
970
  }
958
971
  );
959
- }), Tt = (r) => {
972
+ }), kt = (r) => {
960
973
  const {
961
974
  children: n,
962
975
  sub: t,
963
976
  // unused
964
- ...a
977
+ ...o
965
978
  } = r;
966
- return j(a), /* @__PURE__ */ l.jsx(O.Target, { children: n });
967
- }, wt = R((r, n) => {
979
+ return p(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
980
+ }, Pt = R((r, n) => {
968
981
  const {
969
982
  className: t,
970
- children: a,
983
+ children: o,
971
984
  sub: i,
972
985
  //unused
973
986
  ...u
974
987
  } = r;
975
- j(u);
976
- const f = Br(tr);
988
+ p(u);
989
+ const f = Ur(ar);
977
990
  return /* @__PURE__ */ l.jsx(
978
991
  O.Dropdown,
979
992
  {
@@ -981,34 +994,34 @@ const tr = zr(void 0), jt = R((r, n) => {
981
994
  ref: n,
982
995
  onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
983
996
  onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
984
- children: a
997
+ children: o
985
998
  }
986
999
  );
987
- }), kt = R((r, n) => {
988
- const { className: t, ...a } = r;
989
- return j(a), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
990
- }), St = R((r, n) => {
991
- const { className: t, children: a, ...i } = r;
992
- return j(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: a });
993
- }), Pt = R((r, n) => {
1000
+ }), _t = R((r, n) => {
1001
+ const { className: t, ...o } = r;
1002
+ return p(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
1003
+ }), Ct = R((r, n) => {
1004
+ const { className: t, children: o, ...i } = r;
1005
+ return p(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
1006
+ }), Ot = R((r, n) => {
994
1007
  const {
995
1008
  className: t,
996
- tabs: a,
1009
+ tabs: o,
997
1010
  defaultOpenTab: i,
998
1011
  openTab: u,
999
1012
  setOpenTab: f,
1000
1013
  loading: c,
1001
1014
  ...d
1002
1015
  } = r;
1003
- return j(d), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
1016
+ return p(d), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
1004
1017
  X,
1005
1018
  {
1006
1019
  value: u,
1007
1020
  defaultValue: i,
1008
1021
  onChange: f,
1009
1022
  children: [
1010
- c && /* @__PURE__ */ l.jsx(qr, { visible: c }),
1011
- /* @__PURE__ */ l.jsx(X.List, { children: a.map((b) => /* @__PURE__ */ l.jsx(
1023
+ c && /* @__PURE__ */ l.jsx(Xr, { visible: c }),
1024
+ /* @__PURE__ */ l.jsx(X.List, { children: o.map((b) => /* @__PURE__ */ l.jsx(
1012
1025
  X.Tab,
1013
1026
  {
1014
1027
  "data-test": `${b.name.toLowerCase()}-tab`,
@@ -1017,13 +1030,13 @@ const tr = zr(void 0), jt = R((r, n) => {
1017
1030
  },
1018
1031
  b.name
1019
1032
  )) }),
1020
- a.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
1033
+ o.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
1021
1034
  ]
1022
1035
  }
1023
1036
  ) });
1024
- }), _t = R((r, n) => {
1025
- const { className: t, children: a, onClick: i, label: u, ...f } = r;
1026
- return j(f), /* @__PURE__ */ l.jsx(
1037
+ }), Ft = R((r, n) => {
1038
+ const { className: t, children: o, onClick: i, label: u, ...f } = r;
1039
+ return p(f), /* @__PURE__ */ l.jsx(
1027
1040
  U,
1028
1041
  {
1029
1042
  size: "xs",
@@ -1032,83 +1045,83 @@ const tr = zr(void 0), jt = R((r, n) => {
1032
1045
  ref: n,
1033
1046
  onClick: i,
1034
1047
  ...f,
1035
- children: a
1048
+ children: o
1036
1049
  }
1037
1050
  );
1038
- }), Ct = R((r, n) => {
1039
- const { className: t, accept: a, value: i, placeholder: u, onChange: f, ...c } = r;
1040
- return j(c), /* @__PURE__ */ l.jsx(
1041
- Xr,
1051
+ }), Nt = R((r, n) => {
1052
+ const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
1053
+ return p(c), /* @__PURE__ */ l.jsx(
1054
+ Zr,
1042
1055
  {
1043
1056
  size: "xs",
1044
1057
  className: t,
1045
1058
  ref: n,
1046
- accept: a,
1059
+ accept: o,
1047
1060
  value: i,
1048
1061
  placeholder: u,
1049
1062
  onChange: f,
1050
1063
  ...c
1051
1064
  }
1052
1065
  );
1053
- }), Ot = R((r, n) => {
1054
- const { className: t, children: a, ...i } = r;
1055
- return j(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: a });
1056
- }), Ft = R((r, n) => {
1057
- const { className: t, value: a, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
1058
- return j(c), /* @__PURE__ */ l.jsx(
1059
- Je,
1066
+ }), Dt = R((r, n) => {
1067
+ const { className: t, children: o, ...i } = r;
1068
+ return p(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
1069
+ }), Mt = R((r, n) => {
1070
+ const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
1071
+ return p(c), /* @__PURE__ */ l.jsx(
1072
+ Qe,
1060
1073
  {
1061
1074
  size: "xs",
1062
1075
  "data-test": "embed-input",
1063
1076
  className: t,
1064
1077
  ref: n,
1065
- value: a,
1078
+ value: o,
1066
1079
  placeholder: i,
1067
1080
  onKeyDown: u,
1068
1081
  onChange: f
1069
1082
  }
1070
1083
  );
1071
- }), Dt = (r) => {
1072
- const { children: n, opened: t, position: a, ...i } = r;
1073
- return j(i), /* @__PURE__ */ l.jsx(
1074
- Zr,
1084
+ }), It = (r) => {
1085
+ const { children: n, opened: t, position: o, ...i } = r;
1086
+ return p(i), /* @__PURE__ */ l.jsx(
1087
+ Qr,
1075
1088
  {
1076
1089
  withinPortal: !1,
1077
1090
  zIndex: 1e4,
1078
1091
  opened: t,
1079
- position: a,
1092
+ position: o,
1080
1093
  children: n
1081
1094
  }
1082
1095
  );
1083
- }, Nt = (r) => {
1096
+ }, Lt = (r) => {
1084
1097
  const { children: n, ...t } = r;
1085
- return j(t), /* @__PURE__ */ l.jsx(Qr, { children: n });
1086
- }, Mt = R((r, n) => {
1098
+ return p(t), /* @__PURE__ */ l.jsx(et, { children: n });
1099
+ }, At = R((r, n) => {
1087
1100
  const {
1088
1101
  className: t,
1089
- children: a,
1102
+ children: o,
1090
1103
  variant: i,
1091
1104
  // unused
1092
1105
  ...u
1093
1106
  } = r;
1094
- return j(u), /* @__PURE__ */ l.jsx(et, { className: t, ref: n, children: a });
1095
- }), It = R((r, n) => {
1096
- const { className: t, children: a, ...i } = r;
1097
- return j(i, !1), /* @__PURE__ */ l.jsx(
1098
- N,
1107
+ return p(u), /* @__PURE__ */ l.jsx(rt, { className: t, ref: n, children: o });
1108
+ }), $t = R((r, n) => {
1109
+ const { className: t, children: o, ...i } = r;
1110
+ return p(i, !1), /* @__PURE__ */ l.jsx(
1111
+ F,
1099
1112
  {
1100
1113
  align: "center",
1101
1114
  gap: 0,
1102
1115
  className: t,
1103
1116
  ref: n,
1104
1117
  ...i,
1105
- children: a
1118
+ children: o
1106
1119
  }
1107
1120
  );
1108
- }), Lt = R((r, n) => {
1121
+ }), zt = R((r, n) => {
1109
1122
  const {
1110
1123
  className: t,
1111
- children: a,
1124
+ children: o,
1112
1125
  icon: i,
1113
1126
  onClick: u,
1114
1127
  onDragEnd: f,
@@ -1117,8 +1130,8 @@ const tr = zr(void 0), jt = R((r, n) => {
1117
1130
  label: b,
1118
1131
  ...h
1119
1132
  } = r;
1120
- return j(h, !1), i ? /* @__PURE__ */ l.jsx(
1121
- Xe,
1133
+ return p(h, !1), i ? /* @__PURE__ */ l.jsx(
1134
+ er,
1122
1135
  {
1123
1136
  size: 24,
1124
1137
  className: t,
@@ -1142,83 +1155,83 @@ const tr = zr(void 0), jt = R((r, n) => {
1142
1155
  draggable: d,
1143
1156
  "aria-label": b,
1144
1157
  ...h,
1145
- children: a
1158
+ children: o
1146
1159
  }
1147
1160
  );
1148
- }), At = R((r, n) => {
1149
- const { className: t, children: a, id: i, ...u } = r;
1150
- return j(u), /* @__PURE__ */ l.jsx(
1151
- be,
1161
+ }), Wt = R((r, n) => {
1162
+ const { className: t, children: o, id: i, ...u } = r;
1163
+ return p(u), /* @__PURE__ */ l.jsx(
1164
+ me,
1152
1165
  {
1153
1166
  gap: 0,
1154
1167
  className: t,
1155
1168
  ref: n,
1156
1169
  id: i,
1157
1170
  role: "listbox",
1158
- children: a
1171
+ children: o
1159
1172
  }
1160
1173
  );
1161
- }), $t = R((r, n) => {
1162
- const { className: t, children: a, ...i } = r;
1163
- return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-title", children: a }) });
1164
- }), zt = R((r, n) => {
1165
- const { className: t, isSelected: a, onClick: i, item: u, id: f, ...c } = r;
1166
- j(c);
1167
- const d = ce(null);
1168
- return Vr(() => {
1169
- if (!d.current || !a)
1174
+ }), Vt = R((r, n) => {
1175
+ const { className: t, children: o, ...i } = r;
1176
+ return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
1177
+ }), Bt = R((r, n) => {
1178
+ const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
1179
+ p(c);
1180
+ const d = Z(null);
1181
+ return Je(() => {
1182
+ if (!d.current || !o)
1170
1183
  return;
1171
- const b = Ur(d.current);
1184
+ const b = qe(d.current);
1172
1185
  b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
1173
- }, [a]), /* @__PURE__ */ l.jsxs(
1174
- N,
1186
+ }, [o]), /* @__PURE__ */ l.jsxs(
1187
+ F,
1175
1188
  {
1176
1189
  gap: 0,
1177
1190
  className: t,
1178
- ref: ge(n, d),
1191
+ ref: te(n, d),
1179
1192
  id: f,
1180
1193
  role: "option",
1181
1194
  onClick: i,
1182
- "aria-selected": a || void 0,
1195
+ "aria-selected": o || void 0,
1183
1196
  children: [
1184
1197
  u.icon && /* @__PURE__ */ l.jsx(
1185
- N,
1198
+ F,
1186
1199
  {
1187
1200
  className: "bn-mt-suggestion-menu-item-section",
1188
1201
  "data-position": "left",
1189
1202
  children: u.icon
1190
1203
  }
1191
1204
  ),
1192
- /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
1193
- /* @__PURE__ */ l.jsx(Z, { className: "bn-mt-suggestion-menu-item-title", children: u.title }),
1194
- /* @__PURE__ */ l.jsx(Z, { className: "bn-mt-suggestion-menu-item-subtitle", children: u.subtext })
1205
+ /* @__PURE__ */ l.jsxs(me, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
1206
+ /* @__PURE__ */ l.jsx(Q, { className: "bn-mt-suggestion-menu-item-title", children: u.title }),
1207
+ /* @__PURE__ */ l.jsx(Q, { className: "bn-mt-suggestion-menu-item-subtitle", children: u.subtext })
1195
1208
  ] }),
1196
1209
  u.badge && /* @__PURE__ */ l.jsx(
1197
- N,
1210
+ F,
1198
1211
  {
1199
1212
  "data-position": "right",
1200
1213
  className: "bn-mt-suggestion-menu-item-section",
1201
- children: /* @__PURE__ */ l.jsx(rt, { size: "xs", children: u.badge })
1214
+ children: /* @__PURE__ */ l.jsx(tt, { size: "xs", children: u.badge })
1202
1215
  }
1203
1216
  )
1204
1217
  ]
1205
1218
  }
1206
1219
  );
1207
- }), Wt = R((r, n) => {
1208
- const { className: t, children: a, ...i } = r;
1209
- return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: a });
1210
- }), Bt = R((r, n) => {
1220
+ }), Yt = R((r, n) => {
1221
+ const { className: t, children: o, ...i } = r;
1222
+ return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: o });
1223
+ }), Ut = R((r, n) => {
1211
1224
  const {
1212
1225
  className: t,
1213
- children: a,
1226
+ children: o,
1214
1227
  // unused, using "dots" instead
1215
1228
  ...i
1216
1229
  } = r;
1217
- return j(i), /* @__PURE__ */ l.jsx(tt, { className: t, type: "dots", ref: n });
1218
- }), Vt = R((r, n) => {
1230
+ return p(i), /* @__PURE__ */ l.jsx(Xe, { className: t, type: "dots", ref: n });
1231
+ }), Gt = R((r, n) => {
1219
1232
  const {
1220
1233
  className: t,
1221
- children: a,
1234
+ children: o,
1222
1235
  draggable: i,
1223
1236
  onDragStart: u,
1224
1237
  onDragEnd: f,
@@ -1226,7 +1239,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1226
1239
  label: d,
1227
1240
  ...b
1228
1241
  } = r;
1229
- return j(b, !1), /* @__PURE__ */ l.jsx(
1242
+ return p(b, !1), /* @__PURE__ */ l.jsx(
1230
1243
  U,
1231
1244
  {
1232
1245
  className: t,
@@ -1237,34 +1250,66 @@ const tr = zr(void 0), jt = R((r, n) => {
1237
1250
  onDragEnd: f,
1238
1251
  style: c,
1239
1252
  ...b,
1240
- children: a
1253
+ children: o
1254
+ }
1255
+ );
1256
+ }), Kt = R((r, n) => {
1257
+ const {
1258
+ className: t,
1259
+ name: o,
1260
+ label: i,
1261
+ icon: u,
1262
+ value: f,
1263
+ autoFocus: c,
1264
+ placeholder: d,
1265
+ onKeyDown: b,
1266
+ onChange: h,
1267
+ onSubmit: w,
1268
+ ...T
1269
+ } = r;
1270
+ return p(T), /* @__PURE__ */ l.jsx(
1271
+ Qe,
1272
+ {
1273
+ size: "xs",
1274
+ className: t,
1275
+ ref: n,
1276
+ name: o,
1277
+ label: i,
1278
+ leftSection: u,
1279
+ value: f,
1280
+ autoFocus: c,
1281
+ "data-autofocus": c ? "true" : void 0,
1282
+ placeholder: d,
1283
+ onKeyDown: b,
1284
+ onChange: h,
1285
+ onSubmit: w
1241
1286
  }
1242
1287
  );
1243
- }), Ke = R(
1288
+ }), Ge = R(
1244
1289
  (r, n) => {
1245
- const { className: t, children: a, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1246
- j(f);
1247
- const { ref: c, focused: d } = ot(), b = it(d), h = ge(n, c, b);
1290
+ const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1291
+ p(f);
1292
+ const { ref: c, focused: d } = at(), b = it(d), h = te(n, c, b);
1248
1293
  return /* @__PURE__ */ l.jsx(
1249
- N,
1294
+ F,
1250
1295
  {
1251
1296
  className: t,
1252
1297
  ref: h,
1253
1298
  role: "toolbar",
1254
1299
  onMouseEnter: i,
1255
1300
  onMouseLeave: u,
1256
- children: a
1301
+ children: o
1257
1302
  }
1258
1303
  );
1259
1304
  }
1260
- ), Yt = (r) => /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-tooltip", children: [
1261
- /* @__PURE__ */ l.jsx(Z, { size: "sm", children: r.mainTooltip }),
1262
- r.secondaryTooltip && /* @__PURE__ */ l.jsx(Z, { size: "xs", children: r.secondaryTooltip })
1263
- ] }), Ge = R(
1305
+ ), Ht = (r) => /* @__PURE__ */ l.jsxs(me, { gap: 0, className: "bn-tooltip", children: [
1306
+ /* @__PURE__ */ l.jsx(Q, { size: "sm", children: r.mainTooltip }),
1307
+ r.secondaryTooltip && /* @__PURE__ */ l.jsx(Q, { size: "xs", children: r.secondaryTooltip })
1308
+ ] }), Ke = R(
1264
1309
  (r, n) => {
1265
1310
  const {
1266
1311
  className: t,
1267
- children: a,
1312
+ children: o,
1268
1313
  mainTooltip: i,
1269
1314
  secondaryTooltip: u,
1270
1315
  icon: f,
@@ -1274,24 +1319,24 @@ const tr = zr(void 0), jt = R((r, n) => {
1274
1319
  label: h,
1275
1320
  ...w
1276
1321
  } = r;
1277
- return j(w, !1), /* @__PURE__ */ l.jsx(
1322
+ return p(w, !1), /* @__PURE__ */ l.jsx(
1278
1323
  nt,
1279
1324
  {
1280
1325
  withinPortal: !1,
1281
1326
  label: /* @__PURE__ */ l.jsx(
1282
- Yt,
1327
+ Ht,
1283
1328
  {
1284
1329
  mainTooltip: i,
1285
1330
  secondaryTooltip: u
1286
1331
  }
1287
1332
  ),
1288
- children: a ? /* @__PURE__ */ l.jsx(
1333
+ children: o ? /* @__PURE__ */ l.jsx(
1289
1334
  U,
1290
1335
  {
1291
1336
  "aria-label": h,
1292
1337
  className: t,
1293
- onMouseDown: (k) => {
1294
- fe() && k.currentTarget.focus();
1338
+ onMouseDown: (T) => {
1339
+ ve() && T.currentTarget.focus();
1295
1340
  },
1296
1341
  onClick: b,
1297
1342
  "aria-pressed": c,
@@ -1301,15 +1346,15 @@ const tr = zr(void 0), jt = R((r, n) => {
1301
1346
  disabled: d || !1,
1302
1347
  ref: n,
1303
1348
  ...w,
1304
- children: a
1349
+ children: o
1305
1350
  }
1306
1351
  ) : /* @__PURE__ */ l.jsx(
1307
- Xe,
1352
+ er,
1308
1353
  {
1309
1354
  className: t,
1310
1355
  "aria-label": h,
1311
- onMouseDown: (k) => {
1312
- fe() && k.currentTarget.focus();
1356
+ onMouseDown: (T) => {
1357
+ ve() && T.currentTarget.focus();
1313
1358
  },
1314
1359
  onClick: b,
1315
1360
  "aria-pressed": c,
@@ -1325,10 +1370,10 @@ const tr = zr(void 0), jt = R((r, n) => {
1325
1370
  }
1326
1371
  );
1327
1372
  }
1328
- ), Ut = R((r, n) => {
1329
- const { className: t, items: a, isDisabled: i, ...u } = r;
1330
- j(u);
1331
- const f = a.filter((c) => c.isSelected)[0];
1373
+ ), Jt = R((r, n) => {
1374
+ const { className: t, items: o, isDisabled: i, ...u } = r;
1375
+ p(u);
1376
+ const f = o.filter((c) => c.isSelected)[0];
1332
1377
  return f ? /* @__PURE__ */ l.jsxs(
1333
1378
  O,
1334
1379
  {
@@ -1343,22 +1388,22 @@ const tr = zr(void 0), jt = R((r, n) => {
1343
1388
  U,
1344
1389
  {
1345
1390
  onMouseDown: (c) => {
1346
- fe() && c.currentTarget.focus();
1391
+ ve() && c.currentTarget.focus();
1347
1392
  },
1348
1393
  leftSection: f.icon,
1349
- rightSection: /* @__PURE__ */ l.jsx(xt, {}),
1394
+ rightSection: /* @__PURE__ */ l.jsx(Rt, {}),
1350
1395
  size: "xs",
1351
1396
  variant: "subtle",
1352
1397
  disabled: i,
1353
1398
  children: f.text
1354
1399
  }
1355
1400
  ) }),
1356
- /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: a.map((c) => /* @__PURE__ */ l.jsx(
1401
+ /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: o.map((c) => /* @__PURE__ */ l.jsx(
1357
1402
  O.Item,
1358
1403
  {
1359
1404
  onClick: c.onClick,
1360
1405
  leftSection: c.icon,
1361
- rightSection: c.isSelected ? /* @__PURE__ */ l.jsx(qe, { size: 10, className: "bn-tick-icon" }) : (
1406
+ rightSection: c.isSelected ? /* @__PURE__ */ l.jsx(Ze, { size: 10, className: "bn-tick-icon" }) : (
1362
1407
  // Ensures space for tick even if item isn't currently selected.
1363
1408
  /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" })
1364
1409
  ),
@@ -1370,8 +1415,7 @@ const tr = zr(void 0), jt = R((r, n) => {
1370
1415
  ]
1371
1416
  }
1372
1417
  ) : null;
1373
- });
1374
- const x = [
1418
+ }), y = [
1375
1419
  "#FFFFFF",
1376
1420
  "#EFEFEF",
1377
1421
  "#CFCFCF",
@@ -1385,32 +1429,32 @@ const x = [
1385
1429
  ], He = {
1386
1430
  colors: {
1387
1431
  editor: {
1388
- text: x[5],
1389
- background: x[0]
1432
+ text: y[5],
1433
+ background: y[0]
1390
1434
  },
1391
1435
  menu: {
1392
- text: x[5],
1393
- background: x[0]
1436
+ text: y[5],
1437
+ background: y[0]
1394
1438
  },
1395
1439
  tooltip: {
1396
- text: x[5],
1397
- background: x[1]
1440
+ text: y[5],
1441
+ background: y[1]
1398
1442
  },
1399
1443
  hovered: {
1400
- text: x[5],
1401
- background: x[1]
1444
+ text: y[5],
1445
+ background: y[1]
1402
1446
  },
1403
1447
  selected: {
1404
- text: x[0],
1405
- background: x[5]
1448
+ text: y[0],
1449
+ background: y[5]
1406
1450
  },
1407
1451
  disabled: {
1408
- text: x[3],
1409
- background: x[1]
1452
+ text: y[3],
1453
+ background: y[1]
1410
1454
  },
1411
- shadow: x[2],
1412
- border: x[1],
1413
- sideMenu: x[2],
1455
+ shadow: y[2],
1456
+ border: y[1],
1457
+ sideMenu: y[2],
1414
1458
  highlights: {
1415
1459
  gray: {
1416
1460
  text: "#9b9a97",
@@ -1452,35 +1496,35 @@ const x = [
1452
1496
  },
1453
1497
  borderRadius: 6,
1454
1498
  fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
1455
- }, Qt = {
1499
+ }, nn = {
1456
1500
  colors: {
1457
1501
  editor: {
1458
- text: x[2],
1459
- background: x[6]
1502
+ text: y[2],
1503
+ background: y[6]
1460
1504
  },
1461
1505
  menu: {
1462
- text: x[2],
1463
- background: x[6]
1506
+ text: y[2],
1507
+ background: y[6]
1464
1508
  },
1465
1509
  tooltip: {
1466
- text: x[2],
1467
- background: x[7]
1510
+ text: y[2],
1511
+ background: y[7]
1468
1512
  },
1469
1513
  hovered: {
1470
- text: x[2],
1471
- background: x[7]
1514
+ text: y[2],
1515
+ background: y[7]
1472
1516
  },
1473
1517
  selected: {
1474
- text: x[2],
1475
- background: x[8]
1518
+ text: y[2],
1519
+ background: y[8]
1476
1520
  },
1477
1521
  disabled: {
1478
- text: x[5],
1479
- background: x[7]
1522
+ text: y[5],
1523
+ background: y[7]
1480
1524
  },
1481
- shadow: x[8],
1482
- border: x[7],
1483
- sideMenu: x[4],
1525
+ shadow: y[8],
1526
+ border: y[7],
1527
+ sideMenu: y[4],
1484
1528
  highlights: {
1485
1529
  gray: {
1486
1530
  text: "#bebdb8",
@@ -1522,89 +1566,95 @@ const x = [
1522
1566
  },
1523
1567
  borderRadius: He.borderRadius,
1524
1568
  fontFamily: He.fontFamily
1525
- }, Kt = {
1569
+ }, qt = {
1526
1570
  FormattingToolbar: {
1527
- Root: Ke,
1528
- Button: Ge,
1529
- Select: Ut
1571
+ Root: Ge,
1572
+ Button: Ke,
1573
+ Select: Jt
1530
1574
  },
1531
1575
  FilePanel: {
1532
- Root: Pt,
1533
- Button: _t,
1534
- FileInput: Ct,
1535
- TabPanel: Ot,
1536
- TextInput: Ft
1576
+ Root: Ot,
1577
+ Button: Ft,
1578
+ FileInput: Nt,
1579
+ TabPanel: Dt,
1580
+ TextInput: Mt
1581
+ },
1582
+ GridSuggestionMenu: {
1583
+ Root: dt,
1584
+ Item: vt,
1585
+ EmptyItem: ft,
1586
+ Loader: bt
1537
1587
  },
1538
1588
  LinkToolbar: {
1539
- Root: Ke,
1540
- Button: Ge
1589
+ Root: Ge,
1590
+ Button: Ke
1541
1591
  },
1542
1592
  SideMenu: {
1543
- Root: It,
1544
- Button: Lt
1593
+ Root: $t,
1594
+ Button: zt
1545
1595
  },
1546
1596
  SuggestionMenu: {
1547
- Root: At,
1548
- Item: zt,
1549
- EmptyItem: $t,
1550
- Label: Wt,
1551
- Loader: Bt
1597
+ Root: Wt,
1598
+ Item: Bt,
1599
+ EmptyItem: Vt,
1600
+ Label: Yt,
1601
+ Loader: Ut
1552
1602
  },
1553
1603
  TableHandle: {
1554
- Root: Vt
1604
+ Root: Gt
1555
1605
  },
1556
1606
  Generic: {
1557
1607
  Form: {
1558
1608
  Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
1559
- TextInput: dt
1609
+ TextInput: Kt
1560
1610
  },
1561
1611
  Menu: {
1562
- Root: Rt,
1563
- Trigger: Tt,
1564
- Dropdown: wt,
1565
- Divider: kt,
1566
- Label: St,
1567
- Item: Et
1612
+ Root: wt,
1613
+ Trigger: kt,
1614
+ Dropdown: Pt,
1615
+ Divider: _t,
1616
+ Label: Ct,
1617
+ Item: Tt
1568
1618
  },
1569
1619
  Popover: {
1570
- Root: Dt,
1571
- Trigger: Nt,
1572
- Content: Mt
1620
+ Root: It,
1621
+ Trigger: Lt,
1622
+ Content: At
1573
1623
  }
1574
1624
  }
1575
- }, Gt = {
1625
+ }, Xt = {
1576
1626
  // Removes button press effect
1577
1627
  activeClassName: ""
1578
- }, en = (r) => {
1579
- const { className: n, theme: t, ...a } = r, i = Kr(), u = Gr(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = de(
1628
+ }, on = (r) => {
1629
+ const { className: n, theme: t, ...o } = r, i = Kr(), u = Hr(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = fe(
1580
1630
  (d) => {
1581
1631
  if (d && (ct(d), typeof t == "object")) {
1582
1632
  if ("light" in t && "dark" in t) {
1583
- Ve(
1633
+ Be(
1584
1634
  t[f === "dark" ? "dark" : "light"],
1585
1635
  d
1586
1636
  );
1587
1637
  return;
1588
1638
  }
1589
- Ve(t, d);
1639
+ Be(t, d);
1590
1640
  return;
1591
1641
  }
1592
1642
  },
1593
1643
  [f, t]
1594
1644
  );
1595
- return /* @__PURE__ */ l.jsx(Hr.Provider, { value: Kt, children: /* @__PURE__ */ l.jsx(
1596
- at,
1645
+ return /* @__PURE__ */ l.jsx(Jr.Provider, { value: qt, children: /* @__PURE__ */ l.jsx(
1646
+ ot,
1597
1647
  {
1598
- theme: Gt,
1648
+ theme: Xt,
1599
1649
  cssVariablesSelector: ".bn-mantine",
1600
1650
  getRootElement: () => {
1601
1651
  },
1602
1652
  children: /* @__PURE__ */ l.jsx(
1603
- Jr,
1653
+ qr,
1604
1654
  {
1605
- className: Yr("bn-mantine", n || ""),
1655
+ className: Gr("bn-mantine", n || ""),
1606
1656
  theme: typeof t == "object" ? void 0 : t,
1607
- ...a,
1657
+ ...o,
1608
1658
  ref: c
1609
1659
  }
1610
1660
  )
@@ -1612,11 +1662,11 @@ const x = [
1612
1662
  ) });
1613
1663
  };
1614
1664
  export {
1615
- en as BlockNoteView,
1616
- Ve as applyBlockNoteCSSVariablesFromTheme,
1617
- Kt as components,
1618
- Qt as darkDefaultTheme,
1619
- x as defaultColorScheme,
1665
+ on as BlockNoteView,
1666
+ Be as applyBlockNoteCSSVariablesFromTheme,
1667
+ qt as components,
1668
+ nn as darkDefaultTheme,
1669
+ y as defaultColorScheme,
1620
1670
  He as lightDefaultTheme,
1621
1671
  ct as removeBlockNoteCSSVariables
1622
1672
  };