@blocknote/shadcn 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 (39) hide show
  1. package/dist/blocknote-shadcn.js +646 -591
  2. package/dist/blocknote-shadcn.js.map +1 -1
  3. package/dist/blocknote-shadcn.umd.cjs +10 -12
  4. package/dist/blocknote-shadcn.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 +10 -0
  9. package/src/style.css +51 -0
  10. package/src/suggestionMenu/SuggestionMenuEmptyItem.tsx +1 -1
  11. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
  12. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +21 -0
  13. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +40 -0
  14. package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +26 -0
  15. package/types/src/ShadCNComponentsContext.d.ts +9 -10
  16. package/types/src/components/ui/dropdown-menu.d.ts +3 -3
  17. package/types/src/components/ui/form.d.ts +1 -1
  18. package/types/src/form/TextInput.d.ts +4 -5
  19. package/types/src/index.d.ts +2 -2
  20. package/types/src/menu/Menu.d.ts +8 -9
  21. package/types/src/panel/Panel.d.ts +1 -2
  22. package/types/src/panel/PanelButton.d.ts +2 -3
  23. package/types/src/panel/PanelFileInput.d.ts +1 -2
  24. package/types/src/panel/PanelTab.d.ts +1 -2
  25. package/types/src/panel/PanelTextInput.d.ts +2 -3
  26. package/types/src/popover/popover.d.ts +1 -2
  27. package/types/src/sideMenu/SideMenu.d.ts +1 -2
  28. package/types/src/sideMenu/SideMenuButton.d.ts +6 -7
  29. package/types/src/suggestionMenu/SuggestionMenu.d.ts +1 -2
  30. package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +1 -2
  31. package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +1 -2
  32. package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +1 -2
  33. package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +1 -2
  34. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +6 -0
  35. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +5 -0
  36. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +7 -0
  37. package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +5 -0
  38. package/types/src/tableHandle/TableHandle.d.ts +4 -5
  39. package/types/src/toolbar/Toolbar.d.ts +7 -8
@@ -1,21 +1,21 @@
1
1
  import * as p from "react";
2
- import ze, { createContext as ot, useContext as at, useMemo as We, forwardRef as N, useRef as st, useEffect as it } from "react";
3
- import { assertEmpty as C, mergeCSSClasses as lt } from "@blocknote/core";
4
- import { elementOverflow as dt, mergeRefs as ct, ComponentsContext as bt, BlockNoteViewRaw as ut } from "@blocknote/react";
2
+ import ze, { createContext as lt, useContext as dt, forwardRef as C, useRef as We, useEffect as Ye, useMemo as Ue } from "react";
3
+ import { assertEmpty as y, mergeCSSClasses as ct } from "@blocknote/core";
4
+ import { elementOverflow as Ge, mergeRefs as Ke, ComponentsContext as ut, BlockNoteViewRaw as bt } from "@blocknote/react";
5
5
  import { cva as Q } from "class-variance-authority";
6
6
  import { clsx as ft } from "clsx";
7
7
  import { extendTailwindMerge as mt } from "tailwind-merge";
8
- import { Slot as Ye } from "@radix-ui/react-slot";
9
- import * as R from "@radix-ui/react-dropdown-menu";
10
- import { ChevronRight as Ue, Check as Ke, Circle as pt, ChevronDown as Je, ChevronUp as gt } from "lucide-react";
8
+ import { Slot as Je } from "@radix-ui/react-slot";
9
+ import * as T from "@radix-ui/react-dropdown-menu";
10
+ import { ChevronRight as qe, Check as He, Circle as pt, ChevronDown as Xe, ChevronUp as gt } from "lucide-react";
11
11
  import { FormProvider as vt, useFormContext as xt, useForm as ht } from "react-hook-form";
12
- import * as qe from "@radix-ui/react-label";
12
+ import * as Ze from "@radix-ui/react-label";
13
13
  import * as ee from "@radix-ui/react-popover";
14
14
  import * as D from "@radix-ui/react-select";
15
15
  import * as V from "@radix-ui/react-tabs";
16
- import * as Ge from "@radix-ui/react-toggle";
17
- import * as q from "@radix-ui/react-tooltip";
18
- var be = { exports: {} }, K = {};
16
+ import * as Qe from "@radix-ui/react-toggle";
17
+ import * as J from "@radix-ui/react-tooltip";
18
+ var ue = { exports: {} }, G = {};
19
19
  /**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
@@ -27,23 +27,19 @@ var be = { exports: {} }, K = {};
27
27
  */
28
28
  var Be;
29
29
  function yt() {
30
- if (Be)
31
- return K;
30
+ if (Be) return G;
32
31
  Be = 1;
33
- var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
34
- function c(x, m, u) {
32
+ var r = ze, 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, d = { key: !0, ref: !0, __self: !0, __source: !0 };
33
+ function c(v, f, u) {
35
34
  var g, j = {}, _ = null, F = null;
36
- u !== void 0 && (_ = "" + u), m.key !== void 0 && (_ = "" + m.key), m.ref !== void 0 && (F = m.ref);
37
- for (g in m)
38
- a.call(m, g) && !d.hasOwnProperty(g) && (j[g] = m[g]);
39
- if (x && x.defaultProps)
40
- for (g in m = x.defaultProps, m)
41
- j[g] === void 0 && (j[g] = m[g]);
42
- return { $$typeof: t, type: x, key: _, ref: F, props: j, _owner: s.current };
35
+ u !== void 0 && (_ = "" + u), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (F = f.ref);
36
+ for (g in f) o.call(f, g) && !d.hasOwnProperty(g) && (j[g] = f[g]);
37
+ if (v && v.defaultProps) for (g in f = v.defaultProps, f) j[g] === void 0 && (j[g] = f[g]);
38
+ return { $$typeof: t, type: v, key: _, ref: F, props: j, _owner: s.current };
43
39
  }
44
- return K.Fragment = n, K.jsx = c, K.jsxs = c, K;
40
+ return G.Fragment = n, G.jsx = c, G.jsxs = c, G;
45
41
  }
46
- var J = {};
42
+ var K = {};
47
43
  /**
48
44
  * @license React
49
45
  * react-jsx-runtime.development.js
@@ -56,46 +52,46 @@ var J = {};
56
52
  var Ve;
57
53
  function wt() {
58
54
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
59
- var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), x = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), fe = Symbol.iterator, wn = "@@iterator";
60
- function Cn(e) {
55
+ var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), v = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), fe = Symbol.iterator, Sn = "@@iterator";
56
+ function Tn(e) {
61
57
  if (e === null || typeof e != "object")
62
58
  return null;
63
- var i = fe && e[fe] || e[wn];
59
+ var i = fe && e[fe] || e[Sn];
64
60
  return typeof i == "function" ? i : null;
65
61
  }
66
- var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
62
+ var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
63
  function P(e) {
68
64
  {
69
- for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
70
- l[f - 1] = arguments[f];
71
- Nn("error", e, l);
65
+ for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
66
+ l[m - 1] = arguments[m];
67
+ Rn("error", e, l);
72
68
  }
73
69
  }
74
- function Nn(e, i, l) {
70
+ function Rn(e, i, l) {
75
71
  {
76
- var f = A.ReactDebugCurrentFrame, y = f.getStackAddendum();
77
- y !== "" && (i += "%s", l = l.concat([y]));
78
- var w = l.map(function(h) {
72
+ var m = $.ReactDebugCurrentFrame, w = m.getStackAddendum();
73
+ w !== "" && (i += "%s", l = l.concat([w]));
74
+ var N = l.map(function(h) {
79
75
  return String(h);
80
76
  });
81
- w.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, w);
77
+ N.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, N);
82
78
  }
83
79
  }
84
- var jn = !1, Tn = !1, Rn = !1, Sn = !1, En = !1, me;
80
+ var En = !1, Dn = !1, _n = !1, Pn = !1, In = !1, me;
85
81
  me = Symbol.for("react.module.reference");
86
- function Dn(e) {
87
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || En || e === s || e === u || e === g || Sn || e === F || jn || Tn || Rn || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === j || e.$$typeof === c || e.$$typeof === x || e.$$typeof === m || // This needs to include all possible module reference object
82
+ function Mn(e) {
83
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === d || In || e === s || e === u || e === g || Pn || e === F || En || Dn || _n || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === j || e.$$typeof === c || e.$$typeof === v || e.$$typeof === f || // This needs to include all possible module reference object
88
84
  // types supported by any Flight configuration anywhere since
89
85
  // we don't know which Flight build this will end up being used
90
86
  // with.
91
87
  e.$$typeof === me || e.getModuleId !== void 0));
92
88
  }
93
- function _n(e, i, l) {
94
- var f = e.displayName;
95
- if (f)
96
- return f;
97
- var y = i.displayName || i.name || "";
98
- return y !== "" ? l + "(" + y + ")" : l;
89
+ function kn(e, i, l) {
90
+ var m = e.displayName;
91
+ if (m)
92
+ return m;
93
+ var w = i.displayName || i.name || "";
94
+ return w !== "" ? l + "(" + w + ")" : l;
99
95
  }
100
96
  function pe(e) {
101
97
  return e.displayName || "Context";
@@ -108,7 +104,7 @@ function wt() {
108
104
  if (typeof e == "string")
109
105
  return e;
110
106
  switch (e) {
111
- case a:
107
+ case o:
112
108
  return "Fragment";
113
109
  case n:
114
110
  return "Portal";
@@ -123,21 +119,21 @@ function wt() {
123
119
  }
124
120
  if (typeof e == "object")
125
121
  switch (e.$$typeof) {
126
- case x:
122
+ case v:
127
123
  var i = e;
128
124
  return pe(i) + ".Consumer";
129
125
  case c:
130
126
  var l = e;
131
127
  return pe(l._context) + ".Provider";
132
- case m:
133
- return _n(e, e.render, "ForwardRef");
128
+ case f:
129
+ return kn(e, e.render, "ForwardRef");
134
130
  case j:
135
- var f = e.displayName || null;
136
- return f !== null ? f : O(e.type) || "Memo";
131
+ var m = e.displayName || null;
132
+ return m !== null ? m : O(e.type) || "Memo";
137
133
  case _: {
138
- var y = e, w = y._payload, h = y._init;
134
+ var w = e, N = w._payload, h = w._init;
139
135
  try {
140
- return O(h(w));
136
+ return O(h(N));
141
137
  } catch {
142
138
  return null;
143
139
  }
@@ -149,7 +145,7 @@ function wt() {
149
145
  function Ne() {
150
146
  }
151
147
  Ne.__reactDisabledLog = !0;
152
- function Pn() {
148
+ function Fn() {
153
149
  {
154
150
  if (W === 0) {
155
151
  ge = console.log, ve = console.info, xe = console.warn, he = console.error, ye = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
@@ -172,7 +168,7 @@ function wt() {
172
168
  W++;
173
169
  }
174
170
  }
175
- function In() {
171
+ function On() {
176
172
  {
177
173
  if (W--, W === 0) {
178
174
  var e = {
@@ -207,15 +203,15 @@ function wt() {
207
203
  W < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
208
204
  }
209
205
  }
210
- var te = A.ReactCurrentDispatcher, re;
211
- function G(e, i, l) {
206
+ var te = $.ReactCurrentDispatcher, re;
207
+ function q(e, i, l) {
212
208
  {
213
209
  if (re === void 0)
214
210
  try {
215
211
  throw Error();
216
- } catch (y) {
217
- var f = y.stack.trim().match(/\n( *(at )?)/);
218
- re = f && f[1] || "";
212
+ } catch (w) {
213
+ var m = w.stack.trim().match(/\n( *(at )?)/);
214
+ re = m && m[1] || "";
219
215
  }
220
216
  return `
221
217
  ` + re + e;
@@ -223,8 +219,8 @@ function wt() {
223
219
  }
224
220
  var oe = !1, H;
225
221
  {
226
- var Mn = typeof WeakMap == "function" ? WeakMap : Map;
227
- H = new Mn();
222
+ var Ln = typeof WeakMap == "function" ? WeakMap : Map;
223
+ H = new Ln();
228
224
  }
229
225
  function je(e, i) {
230
226
  if (!e || oe)
@@ -234,12 +230,12 @@ function wt() {
234
230
  if (l !== void 0)
235
231
  return l;
236
232
  }
237
- var f;
233
+ var m;
238
234
  oe = !0;
239
- var y = Error.prepareStackTrace;
235
+ var w = Error.prepareStackTrace;
240
236
  Error.prepareStackTrace = void 0;
241
- var w;
242
- w = te.current, te.current = null, Pn();
237
+ var N;
238
+ N = te.current, te.current = null, Fn();
243
239
  try {
244
240
  if (i) {
245
241
  var h = function() {
@@ -253,14 +249,14 @@ function wt() {
253
249
  try {
254
250
  Reflect.construct(h, []);
255
251
  } catch (M) {
256
- f = M;
252
+ m = M;
257
253
  }
258
254
  Reflect.construct(e, [], h);
259
255
  } else {
260
256
  try {
261
257
  h.call();
262
258
  } catch (M) {
263
- f = M;
259
+ m = M;
264
260
  }
265
261
  e.call(h.prototype);
266
262
  }
@@ -268,39 +264,39 @@ function wt() {
268
264
  try {
269
265
  throw Error();
270
266
  } catch (M) {
271
- f = M;
267
+ m = M;
272
268
  }
273
269
  e();
274
270
  }
275
271
  } catch (M) {
276
- if (M && f && typeof M.stack == "string") {
277
- for (var v = M.stack.split(`
278
- `), I = f.stack.split(`
279
- `), T = v.length - 1, E = I.length - 1; T >= 1 && E >= 0 && v[T] !== I[E]; )
272
+ if (M && m && typeof M.stack == "string") {
273
+ for (var x = M.stack.split(`
274
+ `), I = m.stack.split(`
275
+ `), S = x.length - 1, E = I.length - 1; S >= 1 && E >= 0 && x[S] !== I[E]; )
280
276
  E--;
281
- for (; T >= 1 && E >= 0; T--, E--)
282
- if (v[T] !== I[E]) {
283
- if (T !== 1 || E !== 1)
277
+ for (; S >= 1 && E >= 0; S--, E--)
278
+ if (x[S] !== I[E]) {
279
+ if (S !== 1 || E !== 1)
284
280
  do
285
- if (T--, E--, E < 0 || v[T] !== I[E]) {
281
+ if (S--, E--, E < 0 || x[S] !== I[E]) {
286
282
  var k = `
287
- ` + v[T].replace(" at new ", " at ");
283
+ ` + x[S].replace(" at new ", " at ");
288
284
  return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, k), k;
289
285
  }
290
- while (T >= 1 && E >= 0);
286
+ while (S >= 1 && E >= 0);
291
287
  break;
292
288
  }
293
289
  }
294
290
  } finally {
295
- oe = !1, te.current = w, In(), Error.prepareStackTrace = y;
291
+ oe = !1, te.current = N, On(), Error.prepareStackTrace = w;
296
292
  }
297
- var z = e ? e.displayName || e.name : "", B = z ? G(z) : "";
293
+ var z = e ? e.displayName || e.name : "", B = z ? q(z) : "";
298
294
  return typeof e == "function" && H.set(e, B), B;
299
295
  }
300
- function kn(e, i, l) {
296
+ function Bn(e, i, l) {
301
297
  return je(e, !1);
302
298
  }
303
- function Fn(e) {
299
+ function Vn(e) {
304
300
  var i = e.prototype;
305
301
  return !!(i && i.isReactComponent);
306
302
  }
@@ -308,90 +304,90 @@ function wt() {
308
304
  if (e == null)
309
305
  return "";
310
306
  if (typeof e == "function")
311
- return je(e, Fn(e));
307
+ return je(e, Vn(e));
312
308
  if (typeof e == "string")
313
- return G(e);
309
+ return q(e);
314
310
  switch (e) {
315
311
  case u:
316
- return G("Suspense");
312
+ return q("Suspense");
317
313
  case g:
318
- return G("SuspenseList");
314
+ return q("SuspenseList");
319
315
  }
320
316
  if (typeof e == "object")
321
317
  switch (e.$$typeof) {
322
- case m:
323
- return kn(e.render);
318
+ case f:
319
+ return Bn(e.render);
324
320
  case j:
325
321
  return X(e.type, i, l);
326
322
  case _: {
327
- var f = e, y = f._payload, w = f._init;
323
+ var m = e, w = m._payload, N = m._init;
328
324
  try {
329
- return X(w(y), i, l);
325
+ return X(N(w), i, l);
330
326
  } catch {
331
327
  }
332
328
  }
333
329
  }
334
330
  return "";
335
331
  }
336
- var Y = Object.prototype.hasOwnProperty, Te = {}, Re = A.ReactDebugCurrentFrame;
332
+ var Y = Object.prototype.hasOwnProperty, Se = {}, Te = $.ReactDebugCurrentFrame;
337
333
  function Z(e) {
338
334
  if (e) {
339
335
  var i = e._owner, l = X(e.type, e._source, i ? i.type : null);
340
- Re.setExtraStackFrame(l);
336
+ Te.setExtraStackFrame(l);
341
337
  } else
342
- Re.setExtraStackFrame(null);
338
+ Te.setExtraStackFrame(null);
343
339
  }
344
- function On(e, i, l, f, y) {
340
+ function $n(e, i, l, m, w) {
345
341
  {
346
- var w = Function.call.bind(Y);
342
+ var N = Function.call.bind(Y);
347
343
  for (var h in e)
348
- if (w(e, h)) {
349
- var v = void 0;
344
+ if (N(e, h)) {
345
+ var x = void 0;
350
346
  try {
351
347
  if (typeof e[h] != "function") {
352
- var I = Error((f || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
348
+ var I = Error((m || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
353
349
  throw I.name = "Invariant Violation", I;
354
350
  }
355
- v = e[h](i, h, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
356
- } catch (T) {
357
- v = T;
351
+ x = e[h](i, h, m, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
352
+ } catch (S) {
353
+ x = S;
358
354
  }
359
- v && !(v instanceof Error) && (Z(y), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", l, h, typeof v), Z(null)), v instanceof Error && !(v.message in Te) && (Te[v.message] = !0, Z(y), P("Failed %s type: %s", l, v.message), Z(null));
355
+ x && !(x instanceof Error) && (Z(w), P("%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).", m || "React class", l, h, typeof x), Z(null)), x instanceof Error && !(x.message in Se) && (Se[x.message] = !0, Z(w), P("Failed %s type: %s", l, x.message), Z(null));
360
356
  }
361
357
  }
362
358
  }
363
- var Ln = Array.isArray;
359
+ var An = Array.isArray;
364
360
  function ae(e) {
365
- return Ln(e);
361
+ return An(e);
366
362
  }
367
- function Bn(e) {
363
+ function zn(e) {
368
364
  {
369
365
  var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
370
366
  return l;
371
367
  }
372
368
  }
373
- function Vn(e) {
369
+ function Wn(e) {
374
370
  try {
375
- return Se(e), !1;
371
+ return Re(e), !1;
376
372
  } catch {
377
373
  return !0;
378
374
  }
379
375
  }
380
- function Se(e) {
376
+ function Re(e) {
381
377
  return "" + e;
382
378
  }
383
379
  function Ee(e) {
384
- if (Vn(e))
385
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(e)), Se(e);
380
+ if (Wn(e))
381
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zn(e)), Re(e);
386
382
  }
387
- var U = A.ReactCurrentOwner, An = {
383
+ var U = $.ReactCurrentOwner, Yn = {
388
384
  key: !0,
389
385
  ref: !0,
390
386
  __self: !0,
391
387
  __source: !0
392
388
  }, De, _e, se;
393
389
  se = {};
394
- function $n(e) {
390
+ function Un(e) {
395
391
  if (Y.call(e, "ref")) {
396
392
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
397
393
  if (i && i.isReactWarning)
@@ -399,7 +395,7 @@ function wt() {
399
395
  }
400
396
  return e.ref !== void 0;
401
397
  }
402
- function zn(e) {
398
+ function Gn(e) {
403
399
  if (Y.call(e, "key")) {
404
400
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
405
401
  if (i && i.isReactWarning)
@@ -407,13 +403,13 @@ function wt() {
407
403
  }
408
404
  return e.key !== void 0;
409
405
  }
410
- function Wn(e, i) {
406
+ function Kn(e, i) {
411
407
  if (typeof e.ref == "string" && U.current && i && U.current.stateNode !== i) {
412
408
  var l = O(U.current.type);
413
409
  se[l] || (P('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(U.current.type), e.ref), se[l] = !0);
414
410
  }
415
411
  }
416
- function Yn(e, i) {
412
+ function Jn(e, i) {
417
413
  {
418
414
  var l = function() {
419
415
  De || (De = !0, P("%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)", i));
@@ -424,7 +420,7 @@ function wt() {
424
420
  });
425
421
  }
426
422
  }
427
- function Un(e, i) {
423
+ function qn(e, i) {
428
424
  {
429
425
  var l = function() {
430
426
  _e || (_e = !0, P("%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)", i));
@@ -435,8 +431,8 @@ function wt() {
435
431
  });
436
432
  }
437
433
  }
438
- var Kn = function(e, i, l, f, y, w, h) {
439
- var v = {
434
+ var Hn = function(e, i, l, m, w, N, h) {
435
+ var x = {
440
436
  // This tag allows us to uniquely identify this as a React Element
441
437
  $$typeof: t,
442
438
  // Built-in properties that belong on the element
@@ -445,45 +441,45 @@ function wt() {
445
441
  ref: l,
446
442
  props: h,
447
443
  // Record the component responsible for creating this element.
448
- _owner: w
444
+ _owner: N
449
445
  };
450
- return v._store = {}, Object.defineProperty(v._store, "validated", {
446
+ return x._store = {}, Object.defineProperty(x._store, "validated", {
451
447
  configurable: !1,
452
448
  enumerable: !1,
453
449
  writable: !0,
454
450
  value: !1
455
- }), Object.defineProperty(v, "_self", {
451
+ }), Object.defineProperty(x, "_self", {
456
452
  configurable: !1,
457
453
  enumerable: !1,
458
454
  writable: !1,
459
- value: f
460
- }), Object.defineProperty(v, "_source", {
455
+ value: m
456
+ }), Object.defineProperty(x, "_source", {
461
457
  configurable: !1,
462
458
  enumerable: !1,
463
459
  writable: !1,
464
- value: y
465
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
460
+ value: w
461
+ }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
466
462
  };
467
- function Jn(e, i, l, f, y) {
463
+ function Xn(e, i, l, m, w) {
468
464
  {
469
- var w, h = {}, v = null, I = null;
470
- l !== void 0 && (Ee(l), v = "" + l), zn(i) && (Ee(i.key), v = "" + i.key), $n(i) && (I = i.ref, Wn(i, y));
471
- for (w in i)
472
- Y.call(i, w) && !An.hasOwnProperty(w) && (h[w] = i[w]);
465
+ var N, h = {}, x = null, I = null;
466
+ l !== void 0 && (Ee(l), x = "" + l), Gn(i) && (Ee(i.key), x = "" + i.key), Un(i) && (I = i.ref, Kn(i, w));
467
+ for (N in i)
468
+ Y.call(i, N) && !Yn.hasOwnProperty(N) && (h[N] = i[N]);
473
469
  if (e && e.defaultProps) {
474
- var T = e.defaultProps;
475
- for (w in T)
476
- h[w] === void 0 && (h[w] = T[w]);
470
+ var S = e.defaultProps;
471
+ for (N in S)
472
+ h[N] === void 0 && (h[N] = S[N]);
477
473
  }
478
- if (v || I) {
474
+ if (x || I) {
479
475
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
480
- v && Yn(h, E), I && Un(h, E);
476
+ x && Jn(h, E), I && qn(h, E);
481
477
  }
482
- return Kn(e, v, I, y, f, U.current, h);
478
+ return Hn(e, x, I, w, m, U.current, h);
483
479
  }
484
480
  }
485
- var ie = A.ReactCurrentOwner, Pe = A.ReactDebugCurrentFrame;
486
- function $(e) {
481
+ var ie = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
482
+ function A(e) {
487
483
  if (e) {
488
484
  var i = e._owner, l = X(e.type, e._source, i ? i.type : null);
489
485
  Pe.setExtraStackFrame(l);
@@ -507,19 +503,11 @@ Check the render method of \`` + e + "`.";
507
503
  return "";
508
504
  }
509
505
  }
510
- function qn(e) {
511
- {
512
- if (e !== void 0) {
513
- var i = e.fileName.replace(/^.*[\\\/]/, ""), l = e.lineNumber;
514
- return `
515
-
516
- Check your code at ` + i + ":" + l + ".";
517
- }
518
- return "";
519
- }
506
+ function Zn(e) {
507
+ return "";
520
508
  }
521
509
  var Me = {};
522
- function Gn(e) {
510
+ function Qn(e) {
523
511
  {
524
512
  var i = Ie();
525
513
  if (!i) {
@@ -536,12 +524,12 @@ Check the top-level render call using <` + l + ">.");
536
524
  if (!e._store || e._store.validated || e.key != null)
537
525
  return;
538
526
  e._store.validated = !0;
539
- var l = Gn(i);
527
+ var l = Qn(i);
540
528
  if (Me[l])
541
529
  return;
542
530
  Me[l] = !0;
543
- var f = "";
544
- e && e._owner && e._owner !== ie.current && (f = " It was passed a child from " + O(e._owner.type) + "."), $(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), $(null);
531
+ var m = "";
532
+ e && e._owner && e._owner !== ie.current && (m = " It was passed a child from " + O(e._owner.type) + "."), A(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, m), A(null);
545
533
  }
546
534
  }
547
535
  function Fe(e, i) {
@@ -550,20 +538,20 @@ Check the top-level render call using <` + l + ">.");
550
538
  return;
551
539
  if (ae(e))
552
540
  for (var l = 0; l < e.length; l++) {
553
- var f = e[l];
554
- de(f) && ke(f, i);
541
+ var m = e[l];
542
+ de(m) && ke(m, i);
555
543
  }
556
544
  else if (de(e))
557
545
  e._store && (e._store.validated = !0);
558
546
  else if (e) {
559
- var y = Cn(e);
560
- if (typeof y == "function" && y !== e.entries)
561
- for (var w = y.call(e), h; !(h = w.next()).done; )
547
+ var w = Tn(e);
548
+ if (typeof w == "function" && w !== e.entries)
549
+ for (var N = w.call(e), h; !(h = N.next()).done; )
562
550
  de(h.value) && ke(h.value, i);
563
551
  }
564
552
  }
565
553
  }
566
- function Hn(e) {
554
+ function et(e) {
567
555
  {
568
556
  var i = e.type;
569
557
  if (i == null || typeof i == "string")
@@ -571,54 +559,54 @@ Check the top-level render call using <` + l + ">.");
571
559
  var l;
572
560
  if (typeof i == "function")
573
561
  l = i.propTypes;
574
- else if (typeof i == "object" && (i.$$typeof === m || // Note: Memo only checks outer props here.
562
+ else if (typeof i == "object" && (i.$$typeof === f || // Note: Memo only checks outer props here.
575
563
  // Inner props are checked in the reconciler.
576
564
  i.$$typeof === j))
577
565
  l = i.propTypes;
578
566
  else
579
567
  return;
580
568
  if (l) {
581
- var f = O(i);
582
- On(l, e.props, "prop", f, e);
569
+ var m = O(i);
570
+ $n(l, e.props, "prop", m, e);
583
571
  } else if (i.PropTypes !== void 0 && !le) {
584
572
  le = !0;
585
- var y = O(i);
586
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
573
+ var w = O(i);
574
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
587
575
  }
588
576
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
589
577
  }
590
578
  }
591
- function Xn(e) {
579
+ function nt(e) {
592
580
  {
593
581
  for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
594
- var f = i[l];
595
- if (f !== "children" && f !== "key") {
596
- $(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), $(null);
582
+ var m = i[l];
583
+ if (m !== "children" && m !== "key") {
584
+ A(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), A(null);
597
585
  break;
598
586
  }
599
587
  }
600
- e.ref !== null && ($(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
588
+ e.ref !== null && (A(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
601
589
  }
602
590
  }
603
591
  var Oe = {};
604
- function Le(e, i, l, f, y, w) {
592
+ function Le(e, i, l, m, w, N) {
605
593
  {
606
- var h = Dn(e);
594
+ var h = Mn(e);
607
595
  if (!h) {
608
- var v = "";
609
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
610
- var I = qn(y);
611
- I ? v += I : v += Ie();
612
- var T;
613
- e === null ? T = "null" : ae(e) ? T = "array" : e !== void 0 && e.$$typeof === t ? (T = "<" + (O(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, v);
596
+ var x = "";
597
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " 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 I = Zn();
599
+ I ? x += I : x += Ie();
600
+ var S;
601
+ e === null ? S = "null" : ae(e) ? S = "array" : e !== void 0 && e.$$typeof === t ? (S = "<" + (O(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, x);
614
602
  }
615
- var E = Jn(e, i, l, y, w);
603
+ var E = Xn(e, i, l, w, N);
616
604
  if (E == null)
617
605
  return E;
618
606
  if (h) {
619
607
  var k = i.children;
620
608
  if (k !== void 0)
621
- if (f)
609
+ if (m)
622
610
  if (ae(k)) {
623
611
  for (var z = 0; z < k.length; z++)
624
612
  Fe(k[z], e);
@@ -629,34 +617,34 @@ Check the top-level render call using <` + l + ">.");
629
617
  Fe(k, e);
630
618
  }
631
619
  if (Y.call(i, "key")) {
632
- var B = O(e), M = Object.keys(i).filter(function(rt) {
633
- return rt !== "key";
620
+ var B = O(e), M = Object.keys(i).filter(function(it) {
621
+ return it !== "key";
634
622
  }), ce = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
635
623
  if (!Oe[B + ce]) {
636
- var tt = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
624
+ var st = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
637
625
  P(`A props object containing a "key" prop is being spread into JSX:
638
626
  let props = %s;
639
627
  <%s {...props} />
640
628
  React keys must be passed directly to JSX without using spread:
641
629
  let props = %s;
642
- <%s key={someKey} {...props} />`, ce, B, tt, B), Oe[B + ce] = !0;
630
+ <%s key={someKey} {...props} />`, ce, B, st, B), Oe[B + ce] = !0;
643
631
  }
644
632
  }
645
- return e === a ? Xn(E) : Hn(E), E;
633
+ return e === o ? nt(E) : et(E), E;
646
634
  }
647
635
  }
648
- function Zn(e, i, l) {
636
+ function tt(e, i, l) {
649
637
  return Le(e, i, l, !0);
650
638
  }
651
- function Qn(e, i, l) {
639
+ function rt(e, i, l) {
652
640
  return Le(e, i, l, !1);
653
641
  }
654
- var et = Qn, nt = Zn;
655
- J.Fragment = a, J.jsx = et, J.jsxs = nt;
656
- }()), J;
642
+ var ot = rt, at = tt;
643
+ K.Fragment = o, K.jsx = ot, K.jsxs = at;
644
+ }()), K;
657
645
  }
658
- process.env.NODE_ENV === "production" ? be.exports = yt() : be.exports = wt();
659
- var o = be.exports;
646
+ process.env.NODE_ENV === "production" ? ue.exports = yt() : ue.exports = wt();
647
+ var a = ue.exports;
660
648
  const Ct = mt({
661
649
  prefix: "bn-"
662
650
  });
@@ -680,9 +668,9 @@ const Nt = Q(
680
668
  }
681
669
  );
682
670
  function jt({ className: r, variant: t, ...n }) {
683
- return /* @__PURE__ */ o.jsx("div", { className: b(Nt({ variant: t }), r), ...n });
671
+ return /* @__PURE__ */ a.jsx("div", { className: b(Nt({ variant: t }), r), ...n });
684
672
  }
685
- const Tt = Q(
673
+ const St = Q(
686
674
  "bn-inline-flex bn-items-center bn-justify-center bn-whitespace-nowrap bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50",
687
675
  {
688
676
  variants: {
@@ -706,21 +694,21 @@ const Tt = Q(
706
694
  size: "default"
707
695
  }
708
696
  }
709
- ), He = p.forwardRef(
710
- ({ className: r, variant: t, size: n, asChild: a = !1, ...s }, d) => {
711
- const c = a ? Ye : "button";
712
- return /* @__PURE__ */ o.jsx(
697
+ ), en = p.forwardRef(
698
+ ({ className: r, variant: t, size: n, asChild: o = !1, ...s }, d) => {
699
+ const c = o ? Je : "button";
700
+ return /* @__PURE__ */ a.jsx(
713
701
  c,
714
702
  {
715
- className: b(Tt({ variant: t, size: n, className: r })),
703
+ className: b(St({ variant: t, size: n, className: r })),
716
704
  ref: d,
717
705
  ...s
718
706
  }
719
707
  );
720
708
  }
721
709
  );
722
- He.displayName = "Button";
723
- const Xe = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
710
+ en.displayName = "Button";
711
+ const nn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
724
712
  "div",
725
713
  {
726
714
  ref: n,
@@ -731,8 +719,8 @@ const Xe = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
731
719
  ...t
732
720
  }
733
721
  ));
734
- Xe.displayName = "Card";
735
- const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
722
+ nn.displayName = "Card";
723
+ const Tt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
736
724
  "div",
737
725
  {
738
726
  ref: n,
@@ -740,8 +728,8 @@ const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
740
728
  ...t
741
729
  }
742
730
  ));
743
- Rt.displayName = "CardHeader";
744
- const St = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
731
+ Tt.displayName = "CardHeader";
732
+ const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
745
733
  "h3",
746
734
  {
747
735
  ref: n,
@@ -752,8 +740,8 @@ const St = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
752
740
  ...t
753
741
  }
754
742
  ));
755
- St.displayName = "CardTitle";
756
- const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
743
+ Rt.displayName = "CardTitle";
744
+ const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
757
745
  "p",
758
746
  {
759
747
  ref: n,
@@ -762,9 +750,9 @@ const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
762
750
  }
763
751
  ));
764
752
  Et.displayName = "CardDescription";
765
- const Ze = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx("div", { ref: n, className: b("bn-p-6 bn-pt-0", r), ...t }));
766
- Ze.displayName = "CardContent";
767
- const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
753
+ const tn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className: b("bn-p-6 bn-pt-0", r), ...t }));
754
+ tn.displayName = "CardContent";
755
+ const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
768
756
  "div",
769
757
  {
770
758
  ref: n,
@@ -773,8 +761,8 @@ const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
773
761
  }
774
762
  ));
775
763
  Dt.displayName = "CardFooter";
776
- const _t = R.Root, Pt = R.Trigger, It = R.Sub, Qe = p.forwardRef(({ className: r, inset: t, children: n, ...a }, s) => /* @__PURE__ */ o.jsxs(
777
- R.SubTrigger,
764
+ const _t = T.Root, Pt = T.Trigger, It = T.Sub, rn = p.forwardRef(({ className: r, inset: t, children: n, ...o }, s) => /* @__PURE__ */ a.jsxs(
765
+ T.SubTrigger,
778
766
  {
779
767
  ref: s,
780
768
  className: b(
@@ -782,16 +770,16 @@ const _t = R.Root, Pt = R.Trigger, It = R.Sub, Qe = p.forwardRef(({ className: r
782
770
  t && "bn-pl-8",
783
771
  r
784
772
  ),
785
- ...a,
773
+ ...o,
786
774
  children: [
787
775
  n,
788
- /* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
776
+ /* @__PURE__ */ a.jsx(qe, { className: "bn-ml-auto bn-h-4 bn-w-4" })
789
777
  ]
790
778
  }
791
779
  ));
792
- Qe.displayName = R.SubTrigger.displayName;
793
- const en = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
794
- R.SubContent,
780
+ rn.displayName = T.SubTrigger.displayName;
781
+ const on = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
782
+ T.SubContent,
795
783
  {
796
784
  ref: n,
797
785
  className: b(
@@ -801,13 +789,13 @@ const en = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
801
789
  ...t
802
790
  }
803
791
  ));
804
- en.displayName = R.SubContent.displayName;
805
- const nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => (
792
+ on.displayName = T.SubContent.displayName;
793
+ const an = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, o) => (
806
794
  // <DropdownMenuPrimitive.Portal>
807
- /* @__PURE__ */ o.jsx(
808
- R.Content,
795
+ /* @__PURE__ */ a.jsx(
796
+ T.Content,
809
797
  {
810
- ref: a,
798
+ ref: o,
811
799
  sideOffset: t,
812
800
  className: b(
813
801
  "bn-z-50 bn-min-w-[8rem] bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-p-1 bn-text-popover-foreground bn-shadow-md data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
@@ -817,11 +805,11 @@ const nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => (
817
805
  }
818
806
  )
819
807
  ));
820
- nn.displayName = R.Content.displayName;
821
- const tn = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
822
- R.Item,
808
+ an.displayName = T.Content.displayName;
809
+ const sn = p.forwardRef(({ className: r, inset: t, ...n }, o) => /* @__PURE__ */ a.jsx(
810
+ T.Item,
823
811
  {
824
- ref: a,
812
+ ref: o,
825
813
  className: b(
826
814
  "bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
827
815
  t && "bn-pl-8",
@@ -830,9 +818,9 @@ const tn = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */
830
818
  ...n
831
819
  }
832
820
  ));
833
- tn.displayName = R.Item.displayName;
834
- const rn = p.forwardRef(({ className: r, children: t, checked: n, ...a }, s) => /* @__PURE__ */ o.jsxs(
835
- R.CheckboxItem,
821
+ sn.displayName = T.Item.displayName;
822
+ const ln = p.forwardRef(({ className: r, children: t, checked: n, ...o }, s) => /* @__PURE__ */ a.jsxs(
823
+ T.CheckboxItem,
836
824
  {
837
825
  ref: s,
838
826
  className: b(
@@ -840,34 +828,34 @@ const rn = p.forwardRef(({ className: r, children: t, checked: n, ...a }, s) =>
840
828
  r
841
829
  ),
842
830
  checked: n,
843
- ...a,
831
+ ...o,
844
832
  children: [
845
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(R.ItemIndicator, { children: /* @__PURE__ */ o.jsx(Ke, { className: "bn-h-4 bn-w-4" }) }) }),
833
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(He, { className: "bn-h-4 bn-w-4" }) }) }),
846
834
  t
847
835
  ]
848
836
  }
849
837
  ));
850
- rn.displayName = R.CheckboxItem.displayName;
851
- const Mt = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
852
- R.RadioItem,
838
+ ln.displayName = T.CheckboxItem.displayName;
839
+ const Mt = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
840
+ T.RadioItem,
853
841
  {
854
- ref: a,
842
+ ref: o,
855
843
  className: b(
856
844
  "bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
857
845
  r
858
846
  ),
859
847
  ...n,
860
848
  children: [
861
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(R.ItemIndicator, { children: /* @__PURE__ */ o.jsx(pt, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
849
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(pt, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
862
850
  t
863
851
  ]
864
852
  }
865
853
  ));
866
- Mt.displayName = R.RadioItem.displayName;
867
- const on = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
868
- R.Label,
854
+ Mt.displayName = T.RadioItem.displayName;
855
+ const dn = p.forwardRef(({ className: r, inset: t, ...n }, o) => /* @__PURE__ */ a.jsx(
856
+ T.Label,
869
857
  {
870
- ref: a,
858
+ ref: o,
871
859
  className: b(
872
860
  "bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
873
861
  t && "bn-pl-8",
@@ -876,31 +864,31 @@ const on = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */
876
864
  ...n
877
865
  }
878
866
  ));
879
- on.displayName = R.Label.displayName;
880
- const an = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
881
- R.Separator,
867
+ dn.displayName = T.Label.displayName;
868
+ const cn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
869
+ T.Separator,
882
870
  {
883
871
  ref: n,
884
872
  className: b("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", r),
885
873
  ...t
886
874
  }
887
875
  ));
888
- an.displayName = R.Separator.displayName;
876
+ cn.displayName = T.Separator.displayName;
889
877
  const kt = Q(
890
878
  "bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
891
- ), ue = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
892
- qe.Root,
879
+ ), be = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
880
+ Ze.Root,
893
881
  {
894
882
  ref: n,
895
883
  className: b(kt(), r),
896
884
  ...t
897
885
  }
898
886
  ));
899
- ue.displayName = qe.Root.displayName;
887
+ be.displayName = Ze.Root.displayName;
900
888
  const Ft = vt, Ot = p.createContext(
901
889
  {}
902
890
  ), ne = () => {
903
- const r = p.useContext(Ot), t = p.useContext(sn), { getFieldState: n, formState: a } = xt(), s = n(r.name, a);
891
+ const r = p.useContext(Ot), t = p.useContext(un), { getFieldState: n, formState: o } = xt(), s = n(r.name, o);
904
892
  if (!r)
905
893
  throw new Error("useFormField should be used within <FormField>");
906
894
  const { id: d } = t;
@@ -912,20 +900,20 @@ const Ft = vt, Ot = p.createContext(
912
900
  formMessageId: `${d}-form-item-message`,
913
901
  ...s
914
902
  };
915
- }, sn = p.createContext(
903
+ }, un = p.createContext(
916
904
  {}
917
905
  ), Lt = p.forwardRef(({ className: r, ...t }, n) => {
918
- const a = p.useId();
919
- return /* @__PURE__ */ o.jsx(sn.Provider, { value: { id: a }, children: /* @__PURE__ */ o.jsx("div", { ref: n, className: b("bn-space-y-2", r), ...t }) });
906
+ const o = p.useId();
907
+ return /* @__PURE__ */ a.jsx(un.Provider, { value: { id: o }, children: /* @__PURE__ */ a.jsx("div", { ref: n, className: b("bn-space-y-2", r), ...t }) });
920
908
  });
921
909
  Lt.displayName = "FormItem";
922
910
  const Bt = p.forwardRef(({ className: r, ...t }, n) => {
923
- const { error: a, formItemId: s } = ne();
924
- return /* @__PURE__ */ o.jsx(
925
- ue,
911
+ const { error: o, formItemId: s } = ne();
912
+ return /* @__PURE__ */ a.jsx(
913
+ be,
926
914
  {
927
915
  ref: n,
928
- className: b(a && "bn-text-destructive", r),
916
+ className: b(o && "bn-text-destructive", r),
929
917
  htmlFor: s,
930
918
  ...t
931
919
  }
@@ -933,12 +921,12 @@ const Bt = p.forwardRef(({ className: r, ...t }, n) => {
933
921
  });
934
922
  Bt.displayName = "FormLabel";
935
923
  const Vt = p.forwardRef(({ ...r }, t) => {
936
- const { error: n, formItemId: a, formDescriptionId: s, formMessageId: d } = ne();
937
- return /* @__PURE__ */ o.jsx(
938
- Ye,
924
+ const { error: n, formItemId: o, formDescriptionId: s, formMessageId: d } = ne();
925
+ return /* @__PURE__ */ a.jsx(
926
+ Je,
939
927
  {
940
928
  ref: t,
941
- id: a,
929
+ id: o,
942
930
  "aria-describedby": n ? `${s} ${d}` : `${s}`,
943
931
  "aria-invalid": !!n,
944
932
  ...r
@@ -946,25 +934,25 @@ const Vt = p.forwardRef(({ ...r }, t) => {
946
934
  );
947
935
  });
948
936
  Vt.displayName = "FormControl";
949
- const At = p.forwardRef(({ className: r, ...t }, n) => {
950
- const { formDescriptionId: a } = ne();
951
- return /* @__PURE__ */ o.jsx(
937
+ const $t = p.forwardRef(({ className: r, ...t }, n) => {
938
+ const { formDescriptionId: o } = ne();
939
+ return /* @__PURE__ */ a.jsx(
952
940
  "p",
953
941
  {
954
942
  ref: n,
955
- id: a,
943
+ id: o,
956
944
  className: b("bn-text-sm bn-text-muted-foreground", r),
957
945
  ...t
958
946
  }
959
947
  );
960
948
  });
961
- At.displayName = "FormDescription";
962
- const $t = p.forwardRef(({ className: r, children: t, ...n }, a) => {
949
+ $t.displayName = "FormDescription";
950
+ const At = p.forwardRef(({ className: r, children: t, ...n }, o) => {
963
951
  const { error: s, formMessageId: d } = ne(), c = s ? String(s == null ? void 0 : s.message) : t;
964
- return c ? /* @__PURE__ */ o.jsx(
952
+ return c ? /* @__PURE__ */ a.jsx(
965
953
  "p",
966
954
  {
967
- ref: a,
955
+ ref: o,
968
956
  id: d,
969
957
  className: b("bn-text-sm bn-font-medium bn-text-destructive", r),
970
958
  ...n,
@@ -972,9 +960,9 @@ const $t = p.forwardRef(({ className: r, children: t, ...n }, a) => {
972
960
  }
973
961
  ) : null;
974
962
  });
975
- $t.displayName = "FormMessage";
976
- const ln = p.forwardRef(
977
- ({ className: r, type: t, ...n }, a) => /* @__PURE__ */ o.jsx(
963
+ At.displayName = "FormMessage";
964
+ const bn = p.forwardRef(
965
+ ({ className: r, type: t, ...n }, o) => /* @__PURE__ */ a.jsx(
978
966
  "input",
979
967
  {
980
968
  type: t,
@@ -982,15 +970,15 @@ const ln = p.forwardRef(
982
970
  "bn-flex bn-h-10 bn-w-full bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background file:bn-border-0 file:bn-bg-transparent file:bn-text-sm file:bn-font-medium placeholder:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50",
983
971
  r
984
972
  ),
985
- ref: a,
973
+ ref: o,
986
974
  ...n
987
975
  }
988
976
  )
989
977
  );
990
- ln.displayName = "Input";
991
- const zt = ee.Root, Wt = ee.Trigger, dn = p.forwardRef(({ className: r, align: t = "center", sideOffset: n = 4, ...a }, s) => (
978
+ bn.displayName = "Input";
979
+ const zt = ee.Root, Wt = ee.Trigger, fn = p.forwardRef(({ className: r, align: t = "center", sideOffset: n = 4, ...o }, s) => (
992
980
  // <PopoverPrimitive.Portal>
993
- /* @__PURE__ */ o.jsx(
981
+ /* @__PURE__ */ a.jsx(
994
982
  ee.Content,
995
983
  {
996
984
  ref: s,
@@ -1000,15 +988,15 @@ const zt = ee.Root, Wt = ee.Trigger, dn = p.forwardRef(({ className: r, align: t
1000
988
  "bn-z-50 bn-w-72 bn-rounded-md bn-border bn-bg-popover bn-p-4 bn-text-popover-foreground bn-shadow-md bn-outline-none data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
1001
989
  r
1002
990
  ),
1003
- ...a
991
+ ...o
1004
992
  }
1005
993
  )
1006
994
  ));
1007
- dn.displayName = ee.Content.displayName;
1008
- const Yt = D.Root, Ut = D.Value, cn = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
995
+ fn.displayName = ee.Content.displayName;
996
+ const Yt = D.Root, Ut = D.Value, mn = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
1009
997
  D.Trigger,
1010
998
  {
1011
- ref: a,
999
+ ref: o,
1012
1000
  className: b(
1013
1001
  "bn-flex bn-h-10 bn-w-full bn-items-center bn-justify-between bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background placeholder:bn-text-muted-foreground focus:bn-outline-none focus:bn-ring-2 focus:bn-ring-ring focus:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50 [&>span]:bn-line-clamp-1",
1014
1002
  r
@@ -1016,12 +1004,12 @@ const Yt = D.Root, Ut = D.Value, cn = p.forwardRef(({ className: r, children: t,
1016
1004
  ...n,
1017
1005
  children: [
1018
1006
  t,
1019
- /* @__PURE__ */ o.jsx(D.Icon, { asChild: !0, children: /* @__PURE__ */ o.jsx(Je, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
1007
+ /* @__PURE__ */ a.jsx(D.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Xe, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
1020
1008
  ]
1021
1009
  }
1022
1010
  ));
1023
- cn.displayName = D.Trigger.displayName;
1024
- const bn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1011
+ mn.displayName = D.Trigger.displayName;
1012
+ const pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1025
1013
  D.ScrollUpButton,
1026
1014
  {
1027
1015
  ref: n,
@@ -1030,11 +1018,11 @@ const bn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1030
1018
  r
1031
1019
  ),
1032
1020
  ...t,
1033
- children: /* @__PURE__ */ o.jsx(gt, { className: "bn-h-4 bn-w-4" })
1021
+ children: /* @__PURE__ */ a.jsx(gt, { className: "bn-h-4 bn-w-4" })
1034
1022
  }
1035
1023
  ));
1036
- bn.displayName = D.ScrollUpButton.displayName;
1037
- const un = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1024
+ pn.displayName = D.ScrollUpButton.displayName;
1025
+ const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1038
1026
  D.ScrollDownButton,
1039
1027
  {
1040
1028
  ref: n,
@@ -1043,13 +1031,13 @@ const un = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1043
1031
  r
1044
1032
  ),
1045
1033
  ...t,
1046
- children: /* @__PURE__ */ o.jsx(Je, { className: "bn-h-4 bn-w-4" })
1034
+ children: /* @__PURE__ */ a.jsx(Xe, { className: "bn-h-4 bn-w-4" })
1047
1035
  }
1048
1036
  ));
1049
- un.displayName = D.ScrollDownButton.displayName;
1050
- const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ...a }, s) => (
1037
+ gn.displayName = D.ScrollDownButton.displayName;
1038
+ const vn = p.forwardRef(({ className: r, children: t, position: n = "popper", ...o }, s) => (
1051
1039
  // <SelectPrimitive.Portal>
1052
- /* @__PURE__ */ o.jsxs(
1040
+ /* @__PURE__ */ a.jsxs(
1053
1041
  D.Content,
1054
1042
  {
1055
1043
  ref: s,
@@ -1059,10 +1047,10 @@ const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ..
1059
1047
  r
1060
1048
  ),
1061
1049
  position: n,
1062
- ...a,
1050
+ ...o,
1063
1051
  children: [
1064
- /* @__PURE__ */ o.jsx(bn, {}),
1065
- /* @__PURE__ */ o.jsx(
1052
+ /* @__PURE__ */ a.jsx(pn, {}),
1053
+ /* @__PURE__ */ a.jsx(
1066
1054
  D.Viewport,
1067
1055
  {
1068
1056
  className: b(
@@ -1072,13 +1060,13 @@ const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ..
1072
1060
  children: t
1073
1061
  }
1074
1062
  ),
1075
- /* @__PURE__ */ o.jsx(un, {})
1063
+ /* @__PURE__ */ a.jsx(gn, {})
1076
1064
  ]
1077
1065
  }
1078
1066
  )
1079
1067
  ));
1080
- fn.displayName = D.Content.displayName;
1081
- const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1068
+ vn.displayName = D.Content.displayName;
1069
+ const Gt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1082
1070
  D.Label,
1083
1071
  {
1084
1072
  ref: n,
@@ -1089,24 +1077,24 @@ const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1089
1077
  ...t
1090
1078
  }
1091
1079
  ));
1092
- Kt.displayName = D.Label.displayName;
1093
- const mn = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
1080
+ Gt.displayName = D.Label.displayName;
1081
+ const xn = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
1094
1082
  D.Item,
1095
1083
  {
1096
- ref: a,
1084
+ ref: o,
1097
1085
  className: b(
1098
1086
  "bn-relative bn-flex bn-w-full bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
1099
1087
  r
1100
1088
  ),
1101
1089
  ...n,
1102
1090
  children: [
1103
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(D.ItemIndicator, { children: /* @__PURE__ */ o.jsx(Ke, { className: "bn-h-4 bn-w-4" }) }) }),
1104
- /* @__PURE__ */ o.jsx(D.ItemText, { children: t })
1091
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(He, { className: "bn-h-4 bn-w-4" }) }) }),
1092
+ /* @__PURE__ */ a.jsx(D.ItemText, { children: t })
1105
1093
  ]
1106
1094
  }
1107
1095
  ));
1108
- mn.displayName = D.Item.displayName;
1109
- const Jt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1096
+ xn.displayName = D.Item.displayName;
1097
+ const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1110
1098
  D.Separator,
1111
1099
  {
1112
1100
  ref: n,
@@ -1114,8 +1102,8 @@ const Jt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1114
1102
  ...t
1115
1103
  }
1116
1104
  ));
1117
- Jt.displayName = D.Separator.displayName;
1118
- const qt = V.Root, pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1105
+ Kt.displayName = D.Separator.displayName;
1106
+ const Jt = V.Root, hn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1119
1107
  V.List,
1120
1108
  {
1121
1109
  ref: n,
@@ -1126,8 +1114,8 @@ const qt = V.Root, pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__
1126
1114
  ...t
1127
1115
  }
1128
1116
  ));
1129
- pn.displayName = V.List.displayName;
1130
- const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1117
+ hn.displayName = V.List.displayName;
1118
+ const yn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1131
1119
  V.Trigger,
1132
1120
  {
1133
1121
  ref: n,
@@ -1138,8 +1126,8 @@ const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1138
1126
  ...t
1139
1127
  }
1140
1128
  ));
1141
- gn.displayName = V.Trigger.displayName;
1142
- const vn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1129
+ yn.displayName = V.Trigger.displayName;
1130
+ const wn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1143
1131
  V.Content,
1144
1132
  {
1145
1133
  ref: n,
@@ -1150,8 +1138,8 @@ const vn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1150
1138
  ...t
1151
1139
  }
1152
1140
  ));
1153
- vn.displayName = V.Content.displayName;
1154
- const Gt = Q(
1141
+ wn.displayName = V.Content.displayName;
1142
+ const qt = Q(
1155
1143
  "bn-inline-flex bn-items-center bn-justify-center bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors hover:bn-bg-muted hover:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50 data-[state=on]:bn-bg-accent data-[state=on]:bn-text-accent-foreground",
1156
1144
  {
1157
1145
  variants: {
@@ -1170,19 +1158,19 @@ const Gt = Q(
1170
1158
  size: "default"
1171
1159
  }
1172
1160
  }
1173
- ), xn = p.forwardRef(({ className: r, variant: t, size: n, ...a }, s) => /* @__PURE__ */ o.jsx(
1174
- Ge.Root,
1161
+ ), Cn = p.forwardRef(({ className: r, variant: t, size: n, ...o }, s) => /* @__PURE__ */ a.jsx(
1162
+ Qe.Root,
1175
1163
  {
1176
1164
  ref: s,
1177
- className: b(Gt({ variant: t, size: n, className: r })),
1178
- ...a
1165
+ className: b(qt({ variant: t, size: n, className: r })),
1166
+ ...o
1179
1167
  }
1180
1168
  ));
1181
- xn.displayName = Ge.Root.displayName;
1182
- const Ht = q.Provider, Xt = q.Root, Zt = q.Trigger, hn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => /* @__PURE__ */ o.jsx(
1183
- q.Content,
1169
+ Cn.displayName = Qe.Root.displayName;
1170
+ const Ht = J.Provider, Xt = J.Root, Zt = J.Trigger, Nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ a.jsx(
1171
+ J.Content,
1184
1172
  {
1185
- ref: a,
1173
+ ref: o,
1186
1174
  sideOffset: t,
1187
1175
  className: b(
1188
1176
  "bn-z-50 bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-px-3 bn-py-1.5 bn-text-sm bn-text-popover-foreground bn-shadow-md bn-animate-in bn-fade-in-0 bn-zoom-in-95 data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=closed]:bn-zoom-out-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
@@ -1191,208 +1179,270 @@ const Ht = q.Provider, Xt = q.Root, Zt = q.Trigger, hn = p.forwardRef(({ classNa
1191
1179
  ...n
1192
1180
  }
1193
1181
  ));
1194
- hn.displayName = q.Content.displayName;
1182
+ Nn.displayName = J.Content.displayName;
1195
1183
  const Qt = {
1196
1184
  Badge: {
1197
1185
  Badge: jt
1198
1186
  },
1199
1187
  Button: {
1200
- Button: He
1188
+ Button: en
1201
1189
  },
1202
1190
  Card: {
1203
- Card: Xe,
1204
- CardContent: Ze
1191
+ Card: nn,
1192
+ CardContent: tn
1205
1193
  },
1206
1194
  DropdownMenu: {
1207
1195
  DropdownMenu: _t,
1208
- DropdownMenuCheckboxItem: rn,
1209
- DropdownMenuContent: nn,
1210
- DropdownMenuItem: tn,
1211
- DropdownMenuLabel: on,
1212
- DropdownMenuSeparator: an,
1196
+ DropdownMenuCheckboxItem: ln,
1197
+ DropdownMenuContent: an,
1198
+ DropdownMenuItem: sn,
1199
+ DropdownMenuLabel: dn,
1200
+ DropdownMenuSeparator: cn,
1213
1201
  DropdownMenuSub: It,
1214
- DropdownMenuSubContent: en,
1215
- DropdownMenuSubTrigger: Qe,
1202
+ DropdownMenuSubContent: on,
1203
+ DropdownMenuSubTrigger: rn,
1216
1204
  DropdownMenuTrigger: Pt
1217
1205
  },
1218
1206
  Form: {
1219
1207
  Form: Ft
1220
1208
  },
1221
1209
  Input: {
1222
- Input: ln
1210
+ Input: bn
1223
1211
  },
1224
1212
  Label: {
1225
- Label: ue
1213
+ Label: be
1226
1214
  },
1227
1215
  Popover: {
1228
1216
  Popover: zt,
1229
- PopoverContent: dn,
1217
+ PopoverContent: fn,
1230
1218
  PopoverTrigger: Wt
1231
1219
  },
1232
1220
  Select: {
1233
1221
  Select: Yt,
1234
- SelectContent: fn,
1235
- SelectItem: mn,
1236
- SelectTrigger: cn,
1222
+ SelectContent: vn,
1223
+ SelectItem: xn,
1224
+ SelectTrigger: mn,
1237
1225
  SelectValue: Ut
1238
1226
  },
1239
1227
  Tabs: {
1240
- Tabs: qt,
1241
- TabsContent: vn,
1242
- TabsList: pn,
1243
- TabsTrigger: gn
1228
+ Tabs: Jt,
1229
+ TabsContent: wn,
1230
+ TabsList: hn,
1231
+ TabsTrigger: yn
1244
1232
  },
1245
1233
  Toggle: {
1246
- Toggle: xn
1234
+ Toggle: Cn
1247
1235
  },
1248
1236
  Tooltip: {
1249
1237
  Tooltip: Xt,
1250
- TooltipContent: hn,
1238
+ TooltipContent: Nn,
1251
1239
  TooltipProvider: Ht,
1252
1240
  TooltipTrigger: Zt
1253
1241
  }
1254
- }, yn = ot(void 0);
1255
- function S() {
1256
- return at(yn);
1242
+ }, jn = lt(void 0);
1243
+ function R() {
1244
+ return dt(jn);
1257
1245
  }
1258
1246
  const er = (r) => {
1259
1247
  const { children: t, ...n } = r;
1260
- C(n);
1261
- const a = S(), s = ht();
1262
- return /* @__PURE__ */ o.jsx(a.Form.Form, { ...s, children: t });
1263
- }, nr = (r) => N(
1264
- (t, n) => /* @__PURE__ */ o.jsx(
1248
+ y(n);
1249
+ const o = R(), s = ht();
1250
+ return /* @__PURE__ */ a.jsx(o.Form.Form, { ...s, children: t });
1251
+ }, nr = C((r, t) => {
1252
+ const { className: n, children: o, id: s, columns: d, ...c } = r;
1253
+ return y(c), /* @__PURE__ */ a.jsx(
1254
+ "div",
1255
+ {
1256
+ className: n,
1257
+ style: { gridTemplateColumns: `repeat(${d}, 1fr)` },
1258
+ ref: t,
1259
+ id: s,
1260
+ role: "grid",
1261
+ children: o
1262
+ }
1263
+ );
1264
+ }), tr = C((r, t) => {
1265
+ const { className: n, children: o, columns: s, ...d } = r;
1266
+ return y(d), /* @__PURE__ */ a.jsx(
1267
+ "div",
1268
+ {
1269
+ className: n,
1270
+ style: { gridColumn: `1 / ${s + 1}` },
1271
+ ref: t,
1272
+ children: o
1273
+ }
1274
+ );
1275
+ }), rr = C((r, t) => {
1276
+ const { className: n, isSelected: o, onClick: s, item: d, id: c, ...v } = r;
1277
+ y(v);
1278
+ const f = We(null);
1279
+ return Ye(() => {
1280
+ if (!f.current || !o)
1281
+ return;
1282
+ const u = Ge(f.current);
1283
+ u === "top" ? f.current.scrollIntoView(!0) : u === "bottom" && f.current.scrollIntoView(!1);
1284
+ }, [o]), /* @__PURE__ */ a.jsx(
1285
+ "div",
1286
+ {
1287
+ className: n,
1288
+ ref: Ke([t, f]),
1289
+ id: c,
1290
+ role: "option",
1291
+ onClick: s,
1292
+ "aria-selected": o || void 0,
1293
+ children: d.icon
1294
+ }
1295
+ );
1296
+ }), or = C((r, t) => {
1297
+ const {
1298
+ className: n,
1299
+ children: o,
1300
+ // unused, using "dots" instead
1301
+ columns: s,
1302
+ ...d
1303
+ } = r;
1304
+ return y(d), /* @__PURE__ */ a.jsx(
1305
+ "div",
1306
+ {
1307
+ className: n,
1308
+ style: { gridColumn: `1 / ${s + 1}` },
1309
+ ref: t,
1310
+ children: o
1311
+ }
1312
+ );
1313
+ }), ar = (r) => C(
1314
+ (t, n) => /* @__PURE__ */ a.jsx(
1265
1315
  r,
1266
1316
  {
1267
- onPointerDown: (a) => {
1268
- a.nativeEvent.fakeEvent || (a.ctrlKey = !0);
1317
+ onPointerDown: (o) => {
1318
+ o.nativeEvent.fakeEvent || (o.ctrlKey = !0);
1269
1319
  },
1270
- onPointerUp: (a) => {
1271
- const s = new PointerEvent("pointerdown", a.nativeEvent);
1272
- s.fakeEvent = !0, a.target.dispatchEvent(s);
1320
+ onPointerUp: (o) => {
1321
+ const s = new PointerEvent("pointerdown", o.nativeEvent);
1322
+ s.fakeEvent = !0, o.target.dispatchEvent(s);
1273
1323
  },
1274
1324
  ...t,
1275
1325
  ref: n
1276
1326
  }
1277
1327
  )
1278
- ), tr = (r) => {
1328
+ ), sr = (r) => {
1279
1329
  const {
1280
1330
  children: t,
1281
1331
  onOpenChange: n,
1282
- position: a,
1332
+ position: o,
1283
1333
  // Unused
1284
1334
  sub: s,
1285
1335
  ...d
1286
1336
  } = r;
1287
- C(d);
1288
- const c = S();
1289
- return s ? /* @__PURE__ */ o.jsx(
1337
+ y(d);
1338
+ const c = R();
1339
+ return s ? /* @__PURE__ */ a.jsx(
1290
1340
  c.DropdownMenu.DropdownMenuSub,
1291
1341
  {
1292
1342
  onOpenChange: n,
1293
1343
  children: t
1294
1344
  }
1295
- ) : /* @__PURE__ */ o.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
1296
- }, rr = (r) => {
1297
- const { children: t, sub: n, ...a } = r;
1298
- C(a);
1299
- const s = S(), d = We(
1300
- () => nr(
1345
+ ) : /* @__PURE__ */ a.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
1346
+ }, ir = (r) => {
1347
+ const { children: t, sub: n, ...o } = r;
1348
+ y(o);
1349
+ const s = R(), d = Ue(
1350
+ () => ar(
1301
1351
  s.DropdownMenu.DropdownMenuTrigger
1302
1352
  ),
1303
1353
  [s.DropdownMenu.DropdownMenuTrigger]
1304
1354
  );
1305
- return n ? /* @__PURE__ */ o.jsx(s.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ o.jsx(d, { asChild: !0, ...a, children: t });
1306
- }, or = N((r, t) => {
1307
- const { className: n, children: a, sub: s, ...d } = r;
1308
- C(d);
1309
- const c = S();
1310
- return s ? /* @__PURE__ */ o.jsx(
1355
+ return n ? /* @__PURE__ */ a.jsx(s.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a.jsx(d, { asChild: !0, ...o, children: t });
1356
+ }, lr = C((r, t) => {
1357
+ const { className: n, children: o, sub: s, ...d } = r;
1358
+ y(d);
1359
+ const c = R();
1360
+ return s ? /* @__PURE__ */ a.jsx(
1311
1361
  c.DropdownMenu.DropdownMenuSubContent,
1312
1362
  {
1313
1363
  className: n,
1314
1364
  ref: t,
1315
- children: a
1365
+ children: o
1316
1366
  }
1317
- ) : /* @__PURE__ */ o.jsx(
1367
+ ) : /* @__PURE__ */ a.jsx(
1318
1368
  c.DropdownMenu.DropdownMenuContent,
1319
1369
  {
1320
1370
  className: n,
1321
1371
  ref: t,
1322
- children: a
1372
+ children: o
1323
1373
  }
1324
1374
  );
1325
- }), ar = N((r, t) => {
1326
- const { className: n, children: a, icon: s, checked: d, subTrigger: c, onClick: x, ...m } = r;
1327
- C(m);
1328
- const u = S();
1329
- return c ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1375
+ }), dr = C((r, t) => {
1376
+ const { className: n, children: o, icon: s, checked: d, subTrigger: c, onClick: v, ...f } = r;
1377
+ y(f);
1378
+ const u = R();
1379
+ return c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1330
1380
  s,
1331
- a
1332
- ] }) : d !== void 0 ? /* @__PURE__ */ o.jsxs(
1381
+ o
1382
+ ] }) : d !== void 0 ? /* @__PURE__ */ a.jsxs(
1333
1383
  u.DropdownMenu.DropdownMenuCheckboxItem,
1334
1384
  {
1335
1385
  className: b(n, "bn-gap-1"),
1336
1386
  ref: t,
1337
1387
  checked: d,
1338
- onClick: x,
1339
- ...m,
1388
+ onClick: v,
1389
+ ...f,
1340
1390
  children: [
1341
1391
  s,
1342
- a
1392
+ o
1343
1393
  ]
1344
1394
  }
1345
- ) : /* @__PURE__ */ o.jsxs(
1395
+ ) : /* @__PURE__ */ a.jsxs(
1346
1396
  u.DropdownMenu.DropdownMenuItem,
1347
1397
  {
1348
1398
  className: n,
1349
1399
  ref: t,
1350
- onClick: x,
1351
- ...m,
1400
+ onClick: v,
1401
+ ...f,
1352
1402
  children: [
1353
1403
  s,
1354
- a,
1355
- c && /* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
1404
+ o,
1405
+ c && /* @__PURE__ */ a.jsx(qe, { className: "bn-ml-auto bn-h-4 bn-w-4" })
1356
1406
  ]
1357
1407
  }
1358
1408
  );
1359
- }), sr = N((r, t) => {
1360
- const { className: n, ...a } = r;
1361
- C(a);
1362
- const s = S();
1363
- return /* @__PURE__ */ o.jsx(
1409
+ }), cr = C((r, t) => {
1410
+ const { className: n, ...o } = r;
1411
+ y(o);
1412
+ const s = R();
1413
+ return /* @__PURE__ */ a.jsx(
1364
1414
  s.DropdownMenu.DropdownMenuSeparator,
1365
1415
  {
1366
1416
  className: n,
1367
1417
  ref: t
1368
1418
  }
1369
1419
  );
1370
- }), ir = N((r, t) => {
1371
- const { className: n, children: a, ...s } = r;
1372
- C(s);
1373
- const d = S();
1374
- return /* @__PURE__ */ o.jsx(
1420
+ }), ur = C((r, t) => {
1421
+ const { className: n, children: o, ...s } = r;
1422
+ y(s);
1423
+ const d = R();
1424
+ return /* @__PURE__ */ a.jsx(
1375
1425
  d.DropdownMenu.DropdownMenuLabel,
1376
1426
  {
1377
1427
  className: n,
1378
1428
  ref: t,
1379
- children: a
1429
+ children: o
1380
1430
  }
1381
1431
  );
1382
- }), lr = N((r, t) => {
1432
+ }), br = C((r, t) => {
1383
1433
  const {
1384
1434
  className: n,
1385
- tabs: a,
1435
+ tabs: o,
1386
1436
  defaultOpenTab: s,
1387
1437
  openTab: d,
1388
1438
  setOpenTab: c,
1389
- loading: x,
1439
+ loading: v,
1390
1440
  // TODO: implement loader
1391
- ...m
1441
+ ...f
1392
1442
  } = r;
1393
- C(m);
1394
- const u = S();
1395
- return /* @__PURE__ */ o.jsxs(
1443
+ y(f);
1444
+ const u = R();
1445
+ return /* @__PURE__ */ a.jsxs(
1396
1446
  u.Tabs.Tabs,
1397
1447
  {
1398
1448
  className: b(n, "bn-bg-popover bn-p-2 bn-rounded-lg"),
@@ -1401,45 +1451,45 @@ const er = (r) => {
1401
1451
  defaultValue: s,
1402
1452
  onValueChange: c,
1403
1453
  children: [
1404
- /* @__PURE__ */ o.jsx(u.Tabs.TabsList, { children: a.map((g) => /* @__PURE__ */ o.jsx(u.Tabs.TabsTrigger, { value: g.name, children: g.name }, g.name)) }),
1405
- a.map((g) => /* @__PURE__ */ o.jsx(u.Tabs.TabsContent, { value: g.name, children: /* @__PURE__ */ o.jsx(u.Card.Card, { children: /* @__PURE__ */ o.jsx(u.Card.CardContent, { className: "bn-p-4", children: g.tabPanel }) }) }, g.name))
1454
+ /* @__PURE__ */ a.jsx(u.Tabs.TabsList, { children: o.map((g) => /* @__PURE__ */ a.jsx(u.Tabs.TabsTrigger, { value: g.name, children: g.name }, g.name)) }),
1455
+ o.map((g) => /* @__PURE__ */ a.jsx(u.Tabs.TabsContent, { value: g.name, children: /* @__PURE__ */ a.jsx(u.Card.Card, { children: /* @__PURE__ */ a.jsx(u.Card.CardContent, { className: "bn-p-4", children: g.tabPanel }) }) }, g.name))
1406
1456
  ]
1407
1457
  }
1408
1458
  );
1409
- }), dr = N((r, t) => {
1410
- const { className: n, children: a, onClick: s, label: d, ...c } = r;
1411
- C(c);
1412
- const x = S();
1413
- return /* @__PURE__ */ o.jsx(
1414
- x.Button.Button,
1459
+ }), fr = C((r, t) => {
1460
+ const { className: n, children: o, onClick: s, label: d, ...c } = r;
1461
+ y(c);
1462
+ const v = R();
1463
+ return /* @__PURE__ */ a.jsx(
1464
+ v.Button.Button,
1415
1465
  {
1416
1466
  type: "submit",
1417
1467
  className: n,
1418
1468
  "aria-label": d,
1419
1469
  ref: t,
1420
1470
  onClick: s,
1421
- children: a
1471
+ children: o
1422
1472
  }
1423
1473
  );
1424
- }), cr = N((r, t) => {
1425
- const { className: n, accept: a, value: s, placeholder: d, onChange: c, ...x } = r;
1426
- C(x);
1427
- const m = S();
1428
- return /* @__PURE__ */ o.jsx(
1429
- m.Input.Input,
1474
+ }), mr = C((r, t) => {
1475
+ const { className: n, accept: o, value: s, placeholder: d, onChange: c, ...v } = r;
1476
+ y(v);
1477
+ const f = R();
1478
+ return /* @__PURE__ */ a.jsx(
1479
+ f.Input.Input,
1430
1480
  {
1431
1481
  type: "file",
1432
1482
  className: n,
1433
1483
  ref: t,
1434
- accept: a,
1484
+ accept: o,
1435
1485
  value: s ? s.name : void 0,
1436
1486
  onChange: async (u) => c == null ? void 0 : c(u.target.files[0]),
1437
1487
  placeholder: d
1438
1488
  }
1439
1489
  );
1440
- }), br = N((r, t) => {
1441
- const { className: n, children: a, ...s } = r;
1442
- return C(s), /* @__PURE__ */ o.jsx(
1490
+ }), pr = C((r, t) => {
1491
+ const { className: n, children: o, ...s } = r;
1492
+ return y(s), /* @__PURE__ */ a.jsx(
1443
1493
  "div",
1444
1494
  {
1445
1495
  className: b(
@@ -1447,78 +1497,78 @@ const er = (r) => {
1447
1497
  "bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
1448
1498
  ),
1449
1499
  ref: t,
1450
- children: a
1500
+ children: o
1451
1501
  }
1452
1502
  );
1453
- }), ur = N((r, t) => {
1454
- const { className: n, value: a, placeholder: s, onKeyDown: d, onChange: c, ...x } = r;
1455
- C(x);
1456
- const m = S();
1457
- return /* @__PURE__ */ o.jsx(
1458
- m.Input.Input,
1503
+ }), gr = C((r, t) => {
1504
+ const { className: n, value: o, placeholder: s, onKeyDown: d, onChange: c, ...v } = r;
1505
+ y(v);
1506
+ const f = R();
1507
+ return /* @__PURE__ */ a.jsx(
1508
+ f.Input.Input,
1459
1509
  {
1460
1510
  "data-test": "embed-input",
1461
1511
  className: b(n, "bn-w-80"),
1462
1512
  ref: t,
1463
- value: a,
1513
+ value: o,
1464
1514
  placeholder: s,
1465
1515
  onKeyDown: d,
1466
1516
  onChange: c
1467
1517
  }
1468
1518
  );
1469
- }), fr = (r) => {
1519
+ }), vr = (r) => {
1470
1520
  const {
1471
1521
  children: t,
1472
1522
  opened: n,
1473
- position: a,
1523
+ position: o,
1474
1524
  // unused
1475
1525
  ...s
1476
1526
  } = r;
1477
- C(s);
1478
- const d = S();
1479
- return /* @__PURE__ */ o.jsx(d.Popover.Popover, { open: n, children: t });
1480
- }, mr = N(
1527
+ y(s);
1528
+ const d = R();
1529
+ return /* @__PURE__ */ a.jsx(d.Popover.Popover, { open: n, children: t });
1530
+ }, xr = C(
1481
1531
  (r, t) => {
1482
- const { children: n, ...a } = r;
1483
- C(a);
1484
- const s = S();
1485
- return /* @__PURE__ */ o.jsx(s.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
1532
+ const { children: n, ...o } = r;
1533
+ y(o);
1534
+ const s = R();
1535
+ return /* @__PURE__ */ a.jsx(s.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
1486
1536
  }
1487
- ), pr = N((r, t) => {
1488
- const { className: n, variant: a, children: s, ...d } = r;
1489
- C(d);
1490
- const c = S();
1491
- return /* @__PURE__ */ o.jsx(
1537
+ ), hr = C((r, t) => {
1538
+ const { className: n, variant: o, children: s, ...d } = r;
1539
+ y(d);
1540
+ const c = R();
1541
+ return /* @__PURE__ */ a.jsx(
1492
1542
  c.Popover.PopoverContent,
1493
1543
  {
1494
1544
  sideOffset: 8,
1495
1545
  className: b(
1496
1546
  n,
1497
1547
  "bn-flex bn-flex-col bn-gap-2",
1498
- a === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
1548
+ o === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
1499
1549
  ),
1500
1550
  ref: t,
1501
1551
  children: s
1502
1552
  }
1503
1553
  );
1504
- }), gr = N((r, t) => {
1505
- const { className: n, children: a, ...s } = r;
1506
- return C(s, !1), /* @__PURE__ */ o.jsx("div", { className: n, ref: t, ...s, children: a });
1507
- }), vr = N((r, t) => {
1554
+ }), yr = C((r, t) => {
1555
+ const { className: n, children: o, ...s } = r;
1556
+ return y(s, !1), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, ...s, children: o });
1557
+ }), wr = C((r, t) => {
1508
1558
  const {
1509
1559
  className: n,
1510
- children: a,
1560
+ children: o,
1511
1561
  icon: s,
1512
1562
  onClick: d,
1513
1563
  onDragEnd: c,
1514
- onDragStart: x,
1515
- draggable: m,
1564
+ onDragStart: v,
1565
+ draggable: f,
1516
1566
  label: u,
1517
1567
  ...g
1518
1568
  } = r;
1519
- C(g, !1);
1520
- const j = S();
1521
- return /* @__PURE__ */ o.jsxs(
1569
+ y(g, !1);
1570
+ const j = R();
1571
+ return /* @__PURE__ */ a.jsxs(
1522
1572
  j.Button.Button,
1523
1573
  {
1524
1574
  variant: "ghost",
@@ -1526,19 +1576,19 @@ const er = (r) => {
1526
1576
  ref: t,
1527
1577
  "aria-label": u,
1528
1578
  onClick: d,
1529
- onDragStart: x,
1579
+ onDragStart: v,
1530
1580
  onDragEnd: c,
1531
- draggable: m,
1581
+ draggable: f,
1532
1582
  ...g,
1533
1583
  children: [
1534
1584
  s,
1535
- a
1585
+ o
1536
1586
  ]
1537
1587
  }
1538
1588
  );
1539
- }), xr = N((r, t) => {
1540
- const { className: n, children: a, id: s, ...d } = r;
1541
- return C(d), /* @__PURE__ */ o.jsx(
1589
+ }), Cr = C((r, t) => {
1590
+ const { className: n, children: o, id: s, ...d } = r;
1591
+ return y(d), /* @__PURE__ */ a.jsx(
1542
1592
  "div",
1543
1593
  {
1544
1594
  id: s,
@@ -1548,12 +1598,12 @@ const er = (r) => {
1548
1598
  n
1549
1599
  ),
1550
1600
  ref: t,
1551
- children: a
1601
+ children: o
1552
1602
  }
1553
1603
  );
1554
- }), hr = N((r, t) => {
1555
- const { className: n, children: a, ...s } = r;
1556
- return C(s), /* @__PURE__ */ o.jsx(
1604
+ }), Nr = C((r, t) => {
1605
+ const { className: n, children: o, ...s } = r;
1606
+ return y(s), /* @__PURE__ */ a.jsx(
1557
1607
  "div",
1558
1608
  {
1559
1609
  className: b(
@@ -1561,121 +1611,121 @@ const er = (r) => {
1561
1611
  n
1562
1612
  ),
1563
1613
  ref: t,
1564
- children: /* @__PURE__ */ o.jsx("div", { children: a })
1614
+ children: /* @__PURE__ */ a.jsx("div", { children: o })
1565
1615
  }
1566
1616
  );
1567
- }), yr = N((r, t) => {
1568
- const n = S(), { className: a, item: s, isSelected: d, onClick: c, id: x, ...m } = r;
1569
- C(m);
1570
- const u = st(null);
1571
- return it(() => {
1617
+ }), jr = C((r, t) => {
1618
+ const n = R(), { className: o, item: s, isSelected: d, onClick: c, id: v, ...f } = r;
1619
+ y(f);
1620
+ const u = We(null);
1621
+ return Ye(() => {
1572
1622
  if (!u.current || !d)
1573
1623
  return;
1574
- const g = dt(u.current);
1624
+ const g = Ge(u.current);
1575
1625
  g === "top" ? u.current.scrollIntoView(!0) : g === "bottom" && u.current.scrollIntoView(!1);
1576
- }, [d]), /* @__PURE__ */ o.jsxs(
1626
+ }, [d]), /* @__PURE__ */ a.jsxs(
1577
1627
  "div",
1578
1628
  {
1579
1629
  className: b(
1580
1630
  "bn-relative bn-flex bn-cursor-pointer bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
1581
- a
1631
+ o
1582
1632
  ),
1583
- ref: ct([t, u]),
1584
- id: x,
1633
+ ref: Ke([t, u]),
1634
+ id: v,
1585
1635
  onClick: c,
1586
1636
  role: "option",
1587
1637
  "aria-selected": d || void 0,
1588
1638
  children: [
1589
- s.icon && /* @__PURE__ */ o.jsx("div", { className: "bn-p-3", "data-position": "left", children: s.icon }),
1590
- /* @__PURE__ */ o.jsxs("div", { className: "bn-flex-1", children: [
1591
- /* @__PURE__ */ o.jsx("div", { className: "bn-text-base", children: s.title }),
1592
- /* @__PURE__ */ o.jsx("div", { className: "bn-text-xs", children: s.subtext })
1639
+ s.icon && /* @__PURE__ */ a.jsx("div", { className: "bn-p-3", "data-position": "left", children: s.icon }),
1640
+ /* @__PURE__ */ a.jsxs("div", { className: "bn-flex-1", children: [
1641
+ /* @__PURE__ */ a.jsx("div", { className: "bn-text-base", children: s.title }),
1642
+ /* @__PURE__ */ a.jsx("div", { className: "bn-text-xs", children: s.subtext })
1593
1643
  ] }),
1594
- s.badge && /* @__PURE__ */ o.jsx("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ o.jsx(n.Badge.Badge, { variant: "secondary", children: s.badge }) })
1644
+ s.badge && /* @__PURE__ */ a.jsx("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ a.jsx(n.Badge.Badge, { variant: "secondary", children: s.badge }) })
1595
1645
  ]
1596
1646
  }
1597
1647
  );
1598
- }), wr = N((r, t) => {
1599
- const { className: n, children: a, ...s } = r;
1600
- return C(s), /* @__PURE__ */ o.jsx(
1648
+ }), Sr = C((r, t) => {
1649
+ const { className: n, children: o, ...s } = r;
1650
+ return y(s), /* @__PURE__ */ a.jsx(
1601
1651
  "div",
1602
1652
  {
1603
1653
  className: b("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", n),
1604
1654
  ref: t,
1605
- children: a
1655
+ children: o
1606
1656
  }
1607
1657
  );
1608
- }), Cr = N((r, t) => {
1609
- const { className: n, children: a, ...s } = r;
1610
- return C(s), /* @__PURE__ */ o.jsx("div", { className: n, ref: t, children: a });
1611
- }), Nr = N((r, t) => {
1658
+ }), Tr = C((r, t) => {
1659
+ const { className: n, children: o, ...s } = r;
1660
+ return y(s), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, children: o });
1661
+ }), Rr = C((r, t) => {
1612
1662
  const {
1613
1663
  className: n,
1614
- children: a,
1664
+ children: o,
1615
1665
  draggable: s,
1616
1666
  onDragStart: d,
1617
1667
  onDragEnd: c,
1618
- style: x,
1619
- label: m,
1668
+ style: v,
1669
+ label: f,
1620
1670
  ...u
1621
1671
  } = r;
1622
- C(u, !1);
1623
- const g = S();
1624
- return /* @__PURE__ */ o.jsx(
1672
+ y(u, !1);
1673
+ const g = R();
1674
+ return /* @__PURE__ */ a.jsx(
1625
1675
  g.Button.Button,
1626
1676
  {
1627
1677
  variant: "ghost",
1628
1678
  className: b(n, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1629
1679
  ref: t,
1630
- "aria-label": m,
1680
+ "aria-label": f,
1631
1681
  draggable: s,
1632
1682
  onDragStart: d,
1633
1683
  onDragEnd: c,
1634
- style: x,
1684
+ style: v,
1635
1685
  ...u,
1636
- children: a
1686
+ children: o
1637
1687
  }
1638
1688
  );
1639
- }), jr = N((r, t) => {
1689
+ }), Er = C((r, t) => {
1640
1690
  const {
1641
1691
  className: n,
1642
- name: a,
1692
+ name: o,
1643
1693
  label: s,
1644
1694
  icon: d,
1645
1695
  // TODO: implement
1646
1696
  value: c,
1647
- autoFocus: x,
1648
- placeholder: m,
1697
+ autoFocus: v,
1698
+ placeholder: f,
1649
1699
  onKeyDown: u,
1650
1700
  onChange: g,
1651
1701
  onSubmit: j,
1652
1702
  ..._
1653
1703
  } = r;
1654
- C(_);
1655
- const F = S();
1656
- return s ? /* @__PURE__ */ o.jsxs("div", { children: [
1657
- /* @__PURE__ */ o.jsx(F.Label.Label, { htmlFor: s, children: s }),
1658
- /* @__PURE__ */ o.jsx(
1704
+ y(_);
1705
+ const F = R();
1706
+ return s ? /* @__PURE__ */ a.jsxs("div", { children: [
1707
+ /* @__PURE__ */ a.jsx(F.Label.Label, { htmlFor: s, children: s }),
1708
+ /* @__PURE__ */ a.jsx(
1659
1709
  F.Input.Input,
1660
1710
  {
1661
1711
  className: n,
1662
1712
  id: s,
1663
- name: a,
1664
- autoFocus: x,
1665
- placeholder: m,
1713
+ name: o,
1714
+ autoFocus: v,
1715
+ placeholder: f,
1666
1716
  value: c,
1667
1717
  onKeyDown: u,
1668
1718
  onChange: g,
1669
1719
  onSubmit: j
1670
1720
  }
1671
1721
  )
1672
- ] }) : /* @__PURE__ */ o.jsx(
1722
+ ] }) : /* @__PURE__ */ a.jsx(
1673
1723
  F.Input.Input,
1674
1724
  {
1675
- "aria-label": a,
1676
- name: a,
1677
- autoFocus: x,
1678
- placeholder: m,
1725
+ "aria-label": o,
1726
+ name: o,
1727
+ autoFocus: v,
1728
+ placeholder: f,
1679
1729
  value: c,
1680
1730
  onKeyDown: u,
1681
1731
  onChange: g,
@@ -1683,12 +1733,12 @@ const er = (r) => {
1683
1733
  ref: t
1684
1734
  }
1685
1735
  );
1686
- }), Ae = N(
1736
+ }), $e = C(
1687
1737
  (r, t) => {
1688
- const { className: n, children: a, onMouseEnter: s, onMouseLeave: d, ...c } = r;
1689
- C(c);
1690
- const x = S();
1691
- return /* @__PURE__ */ o.jsx(x.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ o.jsx(
1738
+ const { className: n, children: o, onMouseEnter: s, onMouseLeave: d, ...c } = r;
1739
+ y(c);
1740
+ const v = R();
1741
+ return /* @__PURE__ */ a.jsx(v.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a.jsx(
1692
1742
  "div",
1693
1743
  {
1694
1744
  className: b(
@@ -1698,41 +1748,41 @@ const er = (r) => {
1698
1748
  ref: t,
1699
1749
  onMouseEnter: s,
1700
1750
  onMouseLeave: d,
1701
- children: a
1751
+ children: o
1702
1752
  }
1703
1753
  ) });
1704
1754
  }
1705
- ), $e = N(
1755
+ ), Ae = C(
1706
1756
  (r, t) => {
1707
1757
  const {
1708
1758
  className: n,
1709
- children: a,
1759
+ children: o,
1710
1760
  mainTooltip: s,
1711
1761
  secondaryTooltip: d,
1712
1762
  icon: c,
1713
- isSelected: x,
1714
- isDisabled: m,
1763
+ isSelected: v,
1764
+ isDisabled: f,
1715
1765
  onClick: u,
1716
1766
  label: g,
1717
1767
  ...j
1718
1768
  } = r;
1719
- C(j, !1);
1720
- const _ = S(), F = x === void 0 ? /* @__PURE__ */ o.jsxs(
1769
+ y(j, !1);
1770
+ const _ = R(), F = v === void 0 ? /* @__PURE__ */ a.jsxs(
1721
1771
  _.Button.Button,
1722
1772
  {
1723
1773
  className: n,
1724
1774
  variant: "ghost",
1725
- disabled: m,
1775
+ disabled: f,
1726
1776
  onClick: u,
1727
1777
  ref: t,
1728
1778
  "aria-label": g,
1729
1779
  ...j,
1730
1780
  children: [
1731
1781
  c,
1732
- a
1782
+ o
1733
1783
  ]
1734
1784
  }
1735
- ) : /* @__PURE__ */ o.jsxs(
1785
+ ) : /* @__PURE__ */ a.jsxs(
1736
1786
  _.Toggle.Toggle,
1737
1787
  {
1738
1788
  className: b(
@@ -1741,128 +1791,133 @@ const er = (r) => {
1741
1791
  ),
1742
1792
  "aria-label": g,
1743
1793
  onClick: u,
1744
- pressed: x,
1745
- disabled: m,
1746
- "data-state": x ? "on" : "off",
1747
- "data-disabled": m,
1794
+ pressed: v,
1795
+ disabled: f,
1796
+ "data-state": v ? "on" : "off",
1797
+ "data-disabled": f,
1748
1798
  ref: t,
1749
1799
  ...j,
1750
1800
  children: [
1751
1801
  c,
1752
- a
1802
+ o
1753
1803
  ]
1754
1804
  }
1755
1805
  );
1756
- return /* @__PURE__ */ o.jsxs(_.Tooltip.Tooltip, { children: [
1757
- /* @__PURE__ */ o.jsx(_.Tooltip.TooltipTrigger, { asChild: !0, children: F }),
1758
- /* @__PURE__ */ o.jsxs(
1806
+ return /* @__PURE__ */ a.jsxs(_.Tooltip.Tooltip, { children: [
1807
+ /* @__PURE__ */ a.jsx(_.Tooltip.TooltipTrigger, { asChild: !0, children: F }),
1808
+ /* @__PURE__ */ a.jsxs(
1759
1809
  _.Tooltip.TooltipContent,
1760
1810
  {
1761
1811
  className: "bn-flex bn-flex-col bn-items-center",
1762
1812
  children: [
1763
- /* @__PURE__ */ o.jsx("span", { children: s }),
1764
- d && /* @__PURE__ */ o.jsx("span", { children: d })
1813
+ /* @__PURE__ */ a.jsx("span", { children: s }),
1814
+ d && /* @__PURE__ */ a.jsx("span", { children: d })
1765
1815
  ]
1766
1816
  }
1767
1817
  )
1768
1818
  ] });
1769
1819
  }
1770
- ), Tr = N((r, t) => {
1771
- const { className: n, items: a, isDisabled: s, ...d } = r;
1772
- C(d);
1773
- const c = S(), x = (u) => /* @__PURE__ */ o.jsxs("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1820
+ ), Dr = C((r, t) => {
1821
+ const { className: n, items: o, isDisabled: s, ...d } = r;
1822
+ y(d);
1823
+ const c = R(), v = (u) => /* @__PURE__ */ a.jsxs("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1774
1824
  u.icon,
1775
1825
  u.text
1776
- ] }), m = a.filter((u) => u.isSelected)[0];
1777
- return m ? /* @__PURE__ */ o.jsxs(
1826
+ ] }), f = o.filter((u) => u.isSelected)[0];
1827
+ return f ? /* @__PURE__ */ a.jsxs(
1778
1828
  c.Select.Select,
1779
1829
  {
1780
- value: m.text,
1830
+ value: f.text,
1781
1831
  onValueChange: (u) => {
1782
1832
  var g, j;
1783
- return (j = (g = a.find((_) => _.text === u)).onClick) == null ? void 0 : j.call(g);
1833
+ return (j = (g = o.find((_) => _.text === u)).onClick) == null ? void 0 : j.call(g);
1784
1834
  },
1785
1835
  disabled: s,
1786
1836
  children: [
1787
- /* @__PURE__ */ o.jsx(c.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ o.jsx(c.Select.SelectValue, {}) }),
1788
- /* @__PURE__ */ o.jsx(c.Select.SelectContent, { className: n, ref: t, children: a.map((u) => /* @__PURE__ */ o.jsx(
1837
+ /* @__PURE__ */ a.jsx(c.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a.jsx(c.Select.SelectValue, {}) }),
1838
+ /* @__PURE__ */ a.jsx(c.Select.SelectContent, { className: n, ref: t, children: o.map((u) => /* @__PURE__ */ a.jsx(
1789
1839
  c.Select.SelectItem,
1790
1840
  {
1791
1841
  disabled: u.isDisabled,
1792
1842
  value: u.text,
1793
- children: /* @__PURE__ */ o.jsx(x, { ...u })
1843
+ children: /* @__PURE__ */ a.jsx(v, { ...u })
1794
1844
  },
1795
1845
  u.text
1796
1846
  )) })
1797
1847
  ]
1798
1848
  }
1799
1849
  ) : null;
1800
- });
1801
- const Rr = {
1850
+ }), _r = {
1802
1851
  FormattingToolbar: {
1803
- Root: Ae,
1804
- Button: $e,
1805
- Select: Tr
1852
+ Root: $e,
1853
+ Button: Ae,
1854
+ Select: Dr
1806
1855
  },
1807
1856
  FilePanel: {
1808
- Root: lr,
1809
- Button: dr,
1810
- FileInput: cr,
1811
- TabPanel: br,
1812
- TextInput: ur
1857
+ Root: br,
1858
+ Button: fr,
1859
+ FileInput: mr,
1860
+ TabPanel: pr,
1861
+ TextInput: gr
1813
1862
  },
1814
1863
  LinkToolbar: {
1815
- Root: Ae,
1816
- Button: $e
1864
+ Root: $e,
1865
+ Button: Ae
1817
1866
  },
1818
1867
  SideMenu: {
1819
- Root: gr,
1820
- Button: vr
1868
+ Root: yr,
1869
+ Button: wr
1821
1870
  },
1822
1871
  SuggestionMenu: {
1823
- Root: xr,
1824
- Item: yr,
1825
- EmptyItem: hr,
1826
- Label: wr,
1827
- Loader: Cr
1872
+ Root: Cr,
1873
+ Item: jr,
1874
+ EmptyItem: Nr,
1875
+ Label: Sr,
1876
+ Loader: Tr
1877
+ },
1878
+ GridSuggestionMenu: {
1879
+ Root: nr,
1880
+ Item: rr,
1881
+ EmptyItem: tr,
1882
+ Loader: or
1828
1883
  },
1829
1884
  TableHandle: {
1830
- Root: Nr
1885
+ Root: Rr
1831
1886
  },
1832
1887
  Generic: {
1833
1888
  Form: {
1834
1889
  Root: er,
1835
- TextInput: jr
1890
+ TextInput: Er
1836
1891
  },
1837
1892
  Menu: {
1838
- Root: tr,
1839
- Trigger: rr,
1840
- Dropdown: or,
1841
- Divider: sr,
1842
- Label: ir,
1843
- Item: ar
1893
+ Root: sr,
1894
+ Trigger: ir,
1895
+ Dropdown: lr,
1896
+ Divider: cr,
1897
+ Label: ur,
1898
+ Item: dr
1844
1899
  },
1845
1900
  Popover: {
1846
- Root: fr,
1847
- Trigger: mr,
1848
- Content: pr
1901
+ Root: vr,
1902
+ Trigger: xr,
1903
+ Content: hr
1849
1904
  }
1850
1905
  }
1851
- }, Or = (r) => {
1852
- const { className: t, shadCNComponents: n, ...a } = r, s = We(() => ({
1906
+ }, $r = (r) => {
1907
+ const { className: t, shadCNComponents: n, ...o } = r, s = Ue(() => ({
1853
1908
  ...Qt,
1854
1909
  ...n
1855
1910
  }), [n]);
1856
- return /* @__PURE__ */ o.jsx(yn.Provider, { value: s, children: /* @__PURE__ */ o.jsx(bt.Provider, { value: Rr, children: /* @__PURE__ */ o.jsx(
1857
- ut,
1911
+ return /* @__PURE__ */ a.jsx(jn.Provider, { value: s, children: /* @__PURE__ */ a.jsx(ut.Provider, { value: _r, children: /* @__PURE__ */ a.jsx(
1912
+ bt,
1858
1913
  {
1859
- className: lt("bn-shadcn", t || ""),
1860
- ...a
1914
+ className: ct("bn-shadcn", t || ""),
1915
+ ...o
1861
1916
  }
1862
1917
  ) }) });
1863
1918
  };
1864
1919
  export {
1865
- Or as BlockNoteView,
1866
- Rr as components
1920
+ $r as BlockNoteView,
1921
+ _r as components
1867
1922
  };
1868
1923
  //# sourceMappingURL=blocknote-shadcn.js.map