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