@blocknote/mantine 0.13.5 → 0.14.1

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