@blocknote/shadcn 0.14.1 → 0.14.2

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