@blocknote/shadcn 0.23.1 → 0.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,652 @@
1
- import { jsx as a, jsxs as v, Fragment as me } from "react/jsx-runtime";
2
- import { assertEmpty as c, mergeCSSClasses as ue } from "@blocknote/core";
3
- import { elementOverflow as F, mergeRefs as B, ComponentsContext as pe, BlockNoteViewRaw as fe } from "@blocknote/react";
4
- import * as l from "react";
5
- import { createContext as ge, useContext as he, forwardRef as p, useMemo as k, useRef as L, useEffect as z } from "react";
6
- import { FormProvider as ve, useFormContext as Ne, useForm as xe } from "react-hook-form";
7
- import { cva as T } from "class-variance-authority";
8
- import { clsx as we } from "clsx";
9
- import { extendTailwindMerge as Ce } from "tailwind-merge";
10
- import { Slot as V } from "@radix-ui/react-slot";
11
- import * as h from "@radix-ui/react-dropdown-menu";
12
- import { ChevronRight as E, Check as j, Circle as ye, ChevronDown as $, ChevronUp as Se } from "lucide-react";
13
- import * as G from "@radix-ui/react-label";
14
- import * as M from "@radix-ui/react-popover";
15
- import * as N from "@radix-ui/react-select";
16
- import * as C from "@radix-ui/react-tabs";
17
- import * as U from "@radix-ui/react-toggle";
18
- import * as S from "@radix-ui/react-tooltip";
19
- const Te = Ce({
1
+ import * as f from "react";
2
+ import ro, { createContext as so, useContext as ao, forwardRef as x, useMemo as $e, useRef as Ae, useEffect as ze } from "react";
3
+ import { assertEmpty as k, mergeCSSClasses as io } from "@blocknote/core";
4
+ import { elementOverflow as We, mergeRefs as Ye, ComponentsContext as co, BlockNoteViewRaw as lo } from "@blocknote/react";
5
+ import { FormProvider as uo, useFormContext as mo, useForm as bo } from "react-hook-form";
6
+ import { cva as Q } from "class-variance-authority";
7
+ import { clsx as fo } from "clsx";
8
+ import { extendTailwindMerge as po } from "tailwind-merge";
9
+ import { Slot as Ge } from "@radix-ui/react-slot";
10
+ import * as C from "@radix-ui/react-dropdown-menu";
11
+ import { ChevronRight as Ke, Check as He, Circle as No, ChevronDown as Je, ChevronUp as vo } from "lucide-react";
12
+ import * as qe from "@radix-ui/react-label";
13
+ import * as ee from "@radix-ui/react-popover";
14
+ import * as T from "@radix-ui/react-select";
15
+ import * as O from "@radix-ui/react-tabs";
16
+ import * as Xe from "@radix-ui/react-toggle";
17
+ import * as G from "@radix-ui/react-tooltip";
18
+ var de = { exports: {} }, X = {};
19
+ /**
20
+ * @license React
21
+ * react-jsx-dev-runtime.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ var _e;
29
+ function go() {
30
+ if (_e) return X;
31
+ _e = 1;
32
+ var t = Symbol.for("react.fragment");
33
+ return X.Fragment = t, X.jsxDEV = void 0, X;
34
+ }
35
+ var Z = {};
36
+ /**
37
+ * @license React
38
+ * react-jsx-dev-runtime.development.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+ var Fe;
46
+ function ko() {
47
+ return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var t = ro, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), be = Symbol.iterator, yn = "@@iterator";
49
+ function En(e) {
50
+ if (e === null || typeof e != "object")
51
+ return null;
52
+ var i = be && e[be] || e[yn];
53
+ return typeof i == "function" ? i : null;
54
+ }
55
+ var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function B(e) {
57
+ {
58
+ for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), b = 1; b < i; b++)
59
+ c[b - 1] = arguments[b];
60
+ wn("error", e, c);
61
+ }
62
+ }
63
+ function wn(e, i, c) {
64
+ {
65
+ var b = L.ReactDebugCurrentFrame, h = b.getStackAddendum();
66
+ h !== "" && (i += "%s", c = c.concat([h]));
67
+ var y = c.map(function(v) {
68
+ return String(v);
69
+ });
70
+ y.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, y);
71
+ }
72
+ }
73
+ var Cn = !1, Sn = !1, Tn = !1, jn = !1, Bn = !1, fe;
74
+ fe = Symbol.for("react.module.reference");
75
+ function Rn(e) {
76
+ return !!(typeof e == "string" || typeof e == "function" || e === r || e === l || Bn || e === a || e === m || e === D || jn || e === P || Cn || Sn || Tn || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === j || e.$$typeof === u || e.$$typeof === g || e.$$typeof === p || // This needs to include all possible module reference object
77
+ // types supported by any Flight configuration anywhere since
78
+ // we don't know which Flight build this will end up being used
79
+ // with.
80
+ e.$$typeof === fe || e.getModuleId !== void 0));
81
+ }
82
+ function Vn(e, i, c) {
83
+ var b = e.displayName;
84
+ if (b)
85
+ return b;
86
+ var h = i.displayName || i.name || "";
87
+ return h !== "" ? c + "(" + h + ")" : c;
88
+ }
89
+ function pe(e) {
90
+ return e.displayName || "Context";
91
+ }
92
+ function I(e) {
93
+ if (e == null)
94
+ return null;
95
+ if (typeof e.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
96
+ return e.displayName || e.name || null;
97
+ if (typeof e == "string")
98
+ return e;
99
+ switch (e) {
100
+ case r:
101
+ return "Fragment";
102
+ case n:
103
+ return "Portal";
104
+ case l:
105
+ return "Profiler";
106
+ case a:
107
+ return "StrictMode";
108
+ case m:
109
+ return "Suspense";
110
+ case D:
111
+ return "SuspenseList";
112
+ }
113
+ if (typeof e == "object")
114
+ switch (e.$$typeof) {
115
+ case g:
116
+ var i = e;
117
+ return pe(i) + ".Consumer";
118
+ case u:
119
+ var c = e;
120
+ return pe(c._context) + ".Provider";
121
+ case p:
122
+ return Vn(e, e.render, "ForwardRef");
123
+ case j:
124
+ var b = e.displayName || null;
125
+ return b !== null ? b : I(e.type) || "Memo";
126
+ case M: {
127
+ var h = e, y = h._payload, v = h._init;
128
+ try {
129
+ return I(v(y));
130
+ } catch {
131
+ return null;
132
+ }
133
+ }
134
+ }
135
+ return null;
136
+ }
137
+ var _ = Object.assign, z = 0, Ne, ve, ge, ke, he, xe, De;
138
+ function ye() {
139
+ }
140
+ ye.__reactDisabledLog = !0;
141
+ function Mn() {
142
+ {
143
+ if (z === 0) {
144
+ Ne = console.log, ve = console.info, ge = console.warn, ke = console.error, he = console.group, xe = console.groupCollapsed, De = console.groupEnd;
145
+ var e = {
146
+ configurable: !0,
147
+ enumerable: !0,
148
+ value: ye,
149
+ writable: !0
150
+ };
151
+ Object.defineProperties(console, {
152
+ info: e,
153
+ log: e,
154
+ warn: e,
155
+ error: e,
156
+ group: e,
157
+ groupCollapsed: e,
158
+ groupEnd: e
159
+ });
160
+ }
161
+ z++;
162
+ }
163
+ }
164
+ function Un() {
165
+ {
166
+ if (z--, z === 0) {
167
+ var e = {
168
+ configurable: !0,
169
+ enumerable: !0,
170
+ writable: !0
171
+ };
172
+ Object.defineProperties(console, {
173
+ log: _({}, e, {
174
+ value: Ne
175
+ }),
176
+ info: _({}, e, {
177
+ value: ve
178
+ }),
179
+ warn: _({}, e, {
180
+ value: ge
181
+ }),
182
+ error: _({}, e, {
183
+ value: ke
184
+ }),
185
+ group: _({}, e, {
186
+ value: he
187
+ }),
188
+ groupCollapsed: _({}, e, {
189
+ value: xe
190
+ }),
191
+ groupEnd: _({}, e, {
192
+ value: De
193
+ })
194
+ });
195
+ }
196
+ z < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ }
198
+ }
199
+ var oe = L.ReactCurrentDispatcher, te;
200
+ function K(e, i, c) {
201
+ {
202
+ if (te === void 0)
203
+ try {
204
+ throw Error();
205
+ } catch (h) {
206
+ var b = h.stack.trim().match(/\n( *(at )?)/);
207
+ te = b && b[1] || "";
208
+ }
209
+ return `
210
+ ` + te + e;
211
+ }
212
+ }
213
+ var re = !1, H;
214
+ {
215
+ var In = typeof WeakMap == "function" ? WeakMap : Map;
216
+ H = new In();
217
+ }
218
+ function Ee(e, i) {
219
+ if (!e || re)
220
+ return "";
221
+ {
222
+ var c = H.get(e);
223
+ if (c !== void 0)
224
+ return c;
225
+ }
226
+ var b;
227
+ re = !0;
228
+ var h = Error.prepareStackTrace;
229
+ Error.prepareStackTrace = void 0;
230
+ var y;
231
+ y = oe.current, oe.current = null, Mn();
232
+ try {
233
+ if (i) {
234
+ var v = function() {
235
+ throw Error();
236
+ };
237
+ if (Object.defineProperty(v.prototype, "props", {
238
+ set: function() {
239
+ throw Error();
240
+ }
241
+ }), typeof Reflect == "object" && Reflect.construct) {
242
+ try {
243
+ Reflect.construct(v, []);
244
+ } catch (V) {
245
+ b = V;
246
+ }
247
+ Reflect.construct(e, [], v);
248
+ } else {
249
+ try {
250
+ v.call();
251
+ } catch (V) {
252
+ b = V;
253
+ }
254
+ e.call(v.prototype);
255
+ }
256
+ } else {
257
+ try {
258
+ throw Error();
259
+ } catch (V) {
260
+ b = V;
261
+ }
262
+ e();
263
+ }
264
+ } catch (V) {
265
+ if (V && b && typeof V.stack == "string") {
266
+ for (var N = V.stack.split(`
267
+ `), R = b.stack.split(`
268
+ `), w = N.length - 1, S = R.length - 1; w >= 1 && S >= 0 && N[w] !== R[S]; )
269
+ S--;
270
+ for (; w >= 1 && S >= 0; w--, S--)
271
+ if (N[w] !== R[S]) {
272
+ if (w !== 1 || S !== 1)
273
+ do
274
+ if (w--, S--, S < 0 || N[w] !== R[S]) {
275
+ var U = `
276
+ ` + N[w].replace(" at new ", " at ");
277
+ return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, U), U;
278
+ }
279
+ while (w >= 1 && S >= 0);
280
+ break;
281
+ }
282
+ }
283
+ } finally {
284
+ re = !1, oe.current = y, Un(), Error.prepareStackTrace = h;
285
+ }
286
+ var A = e ? e.displayName || e.name : "", F = A ? K(A) : "";
287
+ return typeof e == "function" && H.set(e, F), F;
288
+ }
289
+ function Pn(e, i, c) {
290
+ return Ee(e, !1);
291
+ }
292
+ function _n(e) {
293
+ var i = e.prototype;
294
+ return !!(i && i.isReactComponent);
295
+ }
296
+ function J(e, i, c) {
297
+ if (e == null)
298
+ return "";
299
+ if (typeof e == "function")
300
+ return Ee(e, _n(e));
301
+ if (typeof e == "string")
302
+ return K(e);
303
+ switch (e) {
304
+ case m:
305
+ return K("Suspense");
306
+ case D:
307
+ return K("SuspenseList");
308
+ }
309
+ if (typeof e == "object")
310
+ switch (e.$$typeof) {
311
+ case p:
312
+ return Pn(e.render);
313
+ case j:
314
+ return J(e.type, i, c);
315
+ case M: {
316
+ var b = e, h = b._payload, y = b._init;
317
+ try {
318
+ return J(y(h), i, c);
319
+ } catch {
320
+ }
321
+ }
322
+ }
323
+ return "";
324
+ }
325
+ var W = Object.prototype.hasOwnProperty, we = {}, Ce = L.ReactDebugCurrentFrame;
326
+ function q(e) {
327
+ if (e) {
328
+ var i = e._owner, c = J(e.type, e._source, i ? i.type : null);
329
+ Ce.setExtraStackFrame(c);
330
+ } else
331
+ Ce.setExtraStackFrame(null);
332
+ }
333
+ function Fn(e, i, c, b, h) {
334
+ {
335
+ var y = Function.call.bind(W);
336
+ for (var v in e)
337
+ if (y(e, v)) {
338
+ var N = void 0;
339
+ try {
340
+ if (typeof e[v] != "function") {
341
+ var R = Error((b || "React class") + ": " + c + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw R.name = "Invariant Violation", R;
343
+ }
344
+ N = e[v](i, v, b, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch (w) {
346
+ N = w;
347
+ }
348
+ N && !(N instanceof Error) && (q(h), B("%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).", b || "React class", c, v, typeof N), q(null)), N instanceof Error && !(N.message in we) && (we[N.message] = !0, q(h), B("Failed %s type: %s", c, N.message), q(null));
349
+ }
350
+ }
351
+ }
352
+ var On = Array.isArray;
353
+ function se(e) {
354
+ return On(e);
355
+ }
356
+ function Ln(e) {
357
+ {
358
+ var i = typeof Symbol == "function" && Symbol.toStringTag, c = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
359
+ return c;
360
+ }
361
+ }
362
+ function $n(e) {
363
+ try {
364
+ return Se(e), !1;
365
+ } catch {
366
+ return !0;
367
+ }
368
+ }
369
+ function Se(e) {
370
+ return "" + e;
371
+ }
372
+ function Te(e) {
373
+ if ($n(e))
374
+ return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ln(e)), Se(e);
375
+ }
376
+ var Y = L.ReactCurrentOwner, An = {
377
+ key: !0,
378
+ ref: !0,
379
+ __self: !0,
380
+ __source: !0
381
+ }, je, Be, ae;
382
+ ae = {};
383
+ function zn(e) {
384
+ if (W.call(e, "ref")) {
385
+ var i = Object.getOwnPropertyDescriptor(e, "ref").get;
386
+ if (i && i.isReactWarning)
387
+ return !1;
388
+ }
389
+ return e.ref !== void 0;
390
+ }
391
+ function Wn(e) {
392
+ if (W.call(e, "key")) {
393
+ var i = Object.getOwnPropertyDescriptor(e, "key").get;
394
+ if (i && i.isReactWarning)
395
+ return !1;
396
+ }
397
+ return e.key !== void 0;
398
+ }
399
+ function Yn(e, i) {
400
+ if (typeof e.ref == "string" && Y.current && i && Y.current.stateNode !== i) {
401
+ var c = I(Y.current.type);
402
+ ae[c] || (B('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', I(Y.current.type), e.ref), ae[c] = !0);
403
+ }
404
+ }
405
+ function Gn(e, i) {
406
+ {
407
+ var c = function() {
408
+ je || (je = !0, B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
409
+ };
410
+ c.isReactWarning = !0, Object.defineProperty(e, "key", {
411
+ get: c,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ function Kn(e, i) {
417
+ {
418
+ var c = function() {
419
+ Be || (Be = !0, B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
420
+ };
421
+ c.isReactWarning = !0, Object.defineProperty(e, "ref", {
422
+ get: c,
423
+ configurable: !0
424
+ });
425
+ }
426
+ }
427
+ var Hn = function(e, i, c, b, h, y, v) {
428
+ var N = {
429
+ // This tag allows us to uniquely identify this as a React Element
430
+ $$typeof: o,
431
+ // Built-in properties that belong on the element
432
+ type: e,
433
+ key: i,
434
+ ref: c,
435
+ props: v,
436
+ // Record the component responsible for creating this element.
437
+ _owner: y
438
+ };
439
+ return N._store = {}, Object.defineProperty(N._store, "validated", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !0,
443
+ value: !1
444
+ }), Object.defineProperty(N, "_self", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: b
449
+ }), Object.defineProperty(N, "_source", {
450
+ configurable: !1,
451
+ enumerable: !1,
452
+ writable: !1,
453
+ value: h
454
+ }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
455
+ };
456
+ function Jn(e, i, c, b, h) {
457
+ {
458
+ var y, v = {}, N = null, R = null;
459
+ c !== void 0 && (Te(c), N = "" + c), Wn(i) && (Te(i.key), N = "" + i.key), zn(i) && (R = i.ref, Yn(i, h));
460
+ for (y in i)
461
+ W.call(i, y) && !An.hasOwnProperty(y) && (v[y] = i[y]);
462
+ if (e && e.defaultProps) {
463
+ var w = e.defaultProps;
464
+ for (y in w)
465
+ v[y] === void 0 && (v[y] = w[y]);
466
+ }
467
+ if (N || R) {
468
+ var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
469
+ N && Gn(v, S), R && Kn(v, S);
470
+ }
471
+ return Hn(e, N, R, h, b, Y.current, v);
472
+ }
473
+ }
474
+ var ie = L.ReactCurrentOwner, Re = L.ReactDebugCurrentFrame;
475
+ function $(e) {
476
+ if (e) {
477
+ var i = e._owner, c = J(e.type, e._source, i ? i.type : null);
478
+ Re.setExtraStackFrame(c);
479
+ } else
480
+ Re.setExtraStackFrame(null);
481
+ }
482
+ var ce;
483
+ ce = !1;
484
+ function le(e) {
485
+ return typeof e == "object" && e !== null && e.$$typeof === o;
486
+ }
487
+ function Ve() {
488
+ {
489
+ if (ie.current) {
490
+ var e = I(ie.current.type);
491
+ if (e)
492
+ return `
493
+
494
+ Check the render method of \`` + e + "`.";
495
+ }
496
+ return "";
497
+ }
498
+ }
499
+ function qn(e) {
500
+ {
501
+ if (e !== void 0) {
502
+ var i = e.fileName.replace(/^.*[\\\/]/, ""), c = e.lineNumber;
503
+ return `
504
+
505
+ Check your code at ` + i + ":" + c + ".";
506
+ }
507
+ return "";
508
+ }
509
+ }
510
+ var Me = {};
511
+ function Xn(e) {
512
+ {
513
+ var i = Ve();
514
+ if (!i) {
515
+ var c = typeof e == "string" ? e : e.displayName || e.name;
516
+ c && (i = `
517
+
518
+ Check the top-level render call using <` + c + ">.");
519
+ }
520
+ return i;
521
+ }
522
+ }
523
+ function Ue(e, i) {
524
+ {
525
+ if (!e._store || e._store.validated || e.key != null)
526
+ return;
527
+ e._store.validated = !0;
528
+ var c = Xn(i);
529
+ if (Me[c])
530
+ return;
531
+ Me[c] = !0;
532
+ var b = "";
533
+ e && e._owner && e._owner !== ie.current && (b = " It was passed a child from " + I(e._owner.type) + "."), $(e), B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, b), $(null);
534
+ }
535
+ }
536
+ function Ie(e, i) {
537
+ {
538
+ if (typeof e != "object")
539
+ return;
540
+ if (se(e))
541
+ for (var c = 0; c < e.length; c++) {
542
+ var b = e[c];
543
+ le(b) && Ue(b, i);
544
+ }
545
+ else if (le(e))
546
+ e._store && (e._store.validated = !0);
547
+ else if (e) {
548
+ var h = En(e);
549
+ if (typeof h == "function" && h !== e.entries)
550
+ for (var y = h.call(e), v; !(v = y.next()).done; )
551
+ le(v.value) && Ue(v.value, i);
552
+ }
553
+ }
554
+ }
555
+ function Zn(e) {
556
+ {
557
+ var i = e.type;
558
+ if (i == null || typeof i == "string")
559
+ return;
560
+ var c;
561
+ if (typeof i == "function")
562
+ c = i.propTypes;
563
+ else if (typeof i == "object" && (i.$$typeof === p || // Note: Memo only checks outer props here.
564
+ // Inner props are checked in the reconciler.
565
+ i.$$typeof === j))
566
+ c = i.propTypes;
567
+ else
568
+ return;
569
+ if (c) {
570
+ var b = I(i);
571
+ Fn(c, e.props, "prop", b, e);
572
+ } else if (i.PropTypes !== void 0 && !ce) {
573
+ ce = !0;
574
+ var h = I(i);
575
+ B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
576
+ }
577
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
+ }
579
+ }
580
+ function Qn(e) {
581
+ {
582
+ for (var i = Object.keys(e.props), c = 0; c < i.length; c++) {
583
+ var b = i[c];
584
+ if (b !== "children" && b !== "key") {
585
+ $(e), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), $(null);
586
+ break;
587
+ }
588
+ }
589
+ e.ref !== null && ($(e), B("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
590
+ }
591
+ }
592
+ var Pe = {};
593
+ function eo(e, i, c, b, h, y) {
594
+ {
595
+ var v = Rn(e);
596
+ if (!v) {
597
+ var N = "";
598
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var R = qn(h);
600
+ R ? N += R : N += Ve();
601
+ var w;
602
+ e === null ? w = "null" : se(e) ? w = "array" : e !== void 0 && e.$$typeof === o ? (w = "<" + (I(e.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, N);
603
+ }
604
+ var S = Jn(e, i, c, h, y);
605
+ if (S == null)
606
+ return S;
607
+ if (v) {
608
+ var U = i.children;
609
+ if (U !== void 0)
610
+ if (b)
611
+ if (se(U)) {
612
+ for (var A = 0; A < U.length; A++)
613
+ Ie(U[A], e);
614
+ Object.freeze && Object.freeze(U);
615
+ } else
616
+ B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
+ else
618
+ Ie(U, e);
619
+ }
620
+ if (W.call(i, "key")) {
621
+ var F = I(e), V = Object.keys(i).filter(function(to) {
622
+ return to !== "key";
623
+ }), ue = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!Pe[F + ue]) {
625
+ var oo = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
626
+ B(`A props object containing a "key" prop is being spread into JSX:
627
+ let props = %s;
628
+ <%s {...props} />
629
+ React keys must be passed directly to JSX without using spread:
630
+ let props = %s;
631
+ <%s key={someKey} {...props} />`, ue, F, oo, F), Pe[F + ue] = !0;
632
+ }
633
+ }
634
+ return e === r ? Qn(S) : Zn(S), S;
635
+ }
636
+ }
637
+ var no = eo;
638
+ Z.Fragment = r, Z.jsxDEV = no;
639
+ }()), Z;
640
+ }
641
+ process.env.NODE_ENV === "production" ? de.exports = go() : de.exports = ko();
642
+ var s = de.exports;
643
+ const ho = po({
20
644
  prefix: "bn-"
21
645
  });
22
646
  function d(...t) {
23
- return Te(we(t));
647
+ return ho(fo(t));
24
648
  }
25
- const Me = T(
649
+ const xo = Q(
26
650
  "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",
27
651
  {
28
652
  variants: {
@@ -38,10 +662,14 @@ const Me = T(
38
662
  }
39
663
  }
40
664
  );
41
- function Ie({ className: t, variant: n, ...e }) {
42
- return /* @__PURE__ */ a("div", { className: d(Me({ variant: n }), t), ...e });
665
+ function Do({ className: t, variant: o, ...n }) {
666
+ return /* @__PURE__ */ s.jsxDEV("div", { className: d(xo({ variant: o }), t), ...n }, void 0, !1, {
667
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/badge.tsx",
668
+ lineNumber: 32,
669
+ columnNumber: 5
670
+ }, this);
43
671
  }
44
- const De = T(
672
+ const yo = Q(
45
673
  "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",
46
674
  {
47
675
  variants: {
@@ -65,449 +693,789 @@ const De = T(
65
693
  size: "default"
66
694
  }
67
695
  }
68
- ), O = l.forwardRef(
69
- ({ className: t, variant: n, size: e, asChild: o = !1, ...r }, s) => /* @__PURE__ */ a(
70
- o ? V : "button",
71
- {
72
- className: d(De({ variant: n, size: e, className: t })),
73
- ref: s,
74
- ...r
75
- }
76
- )
696
+ ), Ze = f.forwardRef(
697
+ ({ className: t, variant: o, size: n, asChild: r = !1, ...a }, l) => {
698
+ const u = r ? Ge : "button";
699
+ return /* @__PURE__ */ s.jsxDEV(
700
+ u,
701
+ {
702
+ className: d(yo({ variant: o, size: n, className: t })),
703
+ ref: l,
704
+ type: "button",
705
+ ...a
706
+ },
707
+ void 0,
708
+ !1,
709
+ {
710
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/button.tsx",
711
+ lineNumber: 47,
712
+ columnNumber: 7
713
+ },
714
+ void 0
715
+ );
716
+ }
77
717
  );
78
- O.displayName = "Button";
79
- const H = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
718
+ Ze.displayName = "Button";
719
+ const Qe = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
80
720
  "div",
81
721
  {
82
- ref: e,
722
+ ref: n,
83
723
  className: d(
84
724
  "bn-rounded-lg bn-border bn-bg-card bn-text-card-foreground bn-shadow-sm",
85
725
  t
86
726
  ),
87
- ...n
88
- }
727
+ ...o
728
+ },
729
+ void 0,
730
+ !1,
731
+ {
732
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
733
+ lineNumber: 9,
734
+ columnNumber: 3
735
+ },
736
+ void 0
89
737
  ));
90
- H.displayName = "Card";
91
- const Re = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
738
+ Qe.displayName = "Card";
739
+ const Eo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
92
740
  "div",
93
741
  {
94
- ref: e,
742
+ ref: n,
95
743
  className: d("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", t),
96
- ...n
97
- }
744
+ ...o
745
+ },
746
+ void 0,
747
+ !1,
748
+ {
749
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
750
+ lineNumber: 24,
751
+ columnNumber: 3
752
+ },
753
+ void 0
98
754
  ));
99
- Re.displayName = "CardHeader";
100
- const Pe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
755
+ Eo.displayName = "CardHeader";
756
+ const wo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
101
757
  "h3",
102
758
  {
103
- ref: e,
759
+ ref: n,
104
760
  className: d(
105
761
  "bn-text-2xl bn-font-semibold bn-leading-none bn-tracking-tight",
106
762
  t
107
763
  ),
108
- ...n
109
- }
764
+ ...o
765
+ },
766
+ void 0,
767
+ !1,
768
+ {
769
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
770
+ lineNumber: 36,
771
+ columnNumber: 3
772
+ },
773
+ void 0
110
774
  ));
111
- Pe.displayName = "CardTitle";
112
- const Fe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
775
+ wo.displayName = "CardTitle";
776
+ const Co = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
113
777
  "p",
114
778
  {
115
- ref: e,
779
+ ref: n,
116
780
  className: d("bn-text-sm bn-text-muted-foreground", t),
117
- ...n
118
- }
781
+ ...o
782
+ },
783
+ void 0,
784
+ !1,
785
+ {
786
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
787
+ lineNumber: 51,
788
+ columnNumber: 3
789
+ },
790
+ void 0
119
791
  ));
120
- Fe.displayName = "CardDescription";
121
- const K = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a("div", { ref: e, className: d("bn-p-6 bn-pt-0", t), ...n }));
122
- K.displayName = "CardContent";
123
- const Be = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
792
+ Co.displayName = "CardDescription";
793
+ const en = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV("div", { ref: n, className: d("bn-p-6 bn-pt-0", t), ...o }, void 0, !1, {
794
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
795
+ lineNumber: 63,
796
+ columnNumber: 3
797
+ }, void 0));
798
+ en.displayName = "CardContent";
799
+ const So = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
124
800
  "div",
125
801
  {
126
- ref: e,
802
+ ref: n,
127
803
  className: d("bn-flex bn-items-center bn-p-6 bn-pt-0", t),
128
- ...n
129
- }
804
+ ...o
805
+ },
806
+ void 0,
807
+ !1,
808
+ {
809
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/card.tsx",
810
+ lineNumber: 71,
811
+ columnNumber: 3
812
+ },
813
+ void 0
130
814
  ));
131
- Be.displayName = "CardFooter";
132
- const ke = h.Root, Le = h.Trigger, ze = h.Sub, q = l.forwardRef(({ className: t, inset: n, children: e, ...o }, r) => /* @__PURE__ */ v(
133
- h.SubTrigger,
815
+ So.displayName = "CardFooter";
816
+ const To = C.Root, jo = C.Trigger, Bo = C.Sub, nn = f.forwardRef(({ className: t, inset: o, children: n, ...r }, a) => /* @__PURE__ */ s.jsxDEV(
817
+ C.SubTrigger,
134
818
  {
135
- ref: r,
819
+ ref: a,
136
820
  className: d(
137
821
  "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",
138
- n && "bn-pl-8",
822
+ o && "bn-pl-8",
139
823
  t
140
824
  ),
141
- ...o,
825
+ ...r,
142
826
  children: [
143
- e,
144
- /* @__PURE__ */ a(E, { className: "bn-ml-auto bn-h-4 bn-w-4" })
827
+ n,
828
+ /* @__PURE__ */ s.jsxDEV(Ke, { className: "bn-ml-auto bn-h-4 bn-w-4" }, void 0, !1, {
829
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
830
+ lineNumber: 34,
831
+ columnNumber: 5
832
+ }, void 0)
145
833
  ]
146
- }
834
+ },
835
+ void 0,
836
+ !0,
837
+ {
838
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
839
+ lineNumber: 25,
840
+ columnNumber: 3
841
+ },
842
+ void 0
147
843
  ));
148
- q.displayName = h.SubTrigger.displayName;
149
- const W = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
150
- h.SubContent,
844
+ nn.displayName = C.SubTrigger.displayName;
845
+ const on = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
846
+ C.SubContent,
151
847
  {
152
- ref: e,
848
+ ref: n,
153
849
  className: d(
154
850
  "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",
155
851
  t
156
852
  ),
157
- ...n
158
- }
853
+ ...o
854
+ },
855
+ void 0,
856
+ !1,
857
+ {
858
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
859
+ lineNumber: 44,
860
+ columnNumber: 3
861
+ },
862
+ void 0
159
863
  ));
160
- W.displayName = h.SubContent.displayName;
161
- const A = l.forwardRef(({ className: t, sideOffset: n = 4, ...e }, o) => (
864
+ on.displayName = C.SubContent.displayName;
865
+ const tn = f.forwardRef(({ className: t, sideOffset: o = 4, ...n }, r) => (
162
866
  // <DropdownMenuPrimitive.Portal>
163
- /* @__PURE__ */ a(
164
- h.Content,
867
+ /* @__PURE__ */ s.jsxDEV(
868
+ C.Content,
165
869
  {
166
- ref: o,
167
- sideOffset: n,
870
+ ref: r,
871
+ sideOffset: o,
168
872
  className: d(
169
873
  "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",
170
874
  t
171
875
  ),
172
- ...e
173
- }
876
+ ...n
877
+ },
878
+ void 0,
879
+ !1,
880
+ {
881
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
882
+ lineNumber: 61,
883
+ columnNumber: 3
884
+ },
885
+ void 0
174
886
  )
175
887
  ));
176
- A.displayName = h.Content.displayName;
177
- const J = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
178
- h.Item,
888
+ tn.displayName = C.Content.displayName;
889
+ const rn = f.forwardRef(({ className: t, inset: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
890
+ C.Item,
179
891
  {
180
- ref: o,
892
+ ref: r,
181
893
  className: d(
182
894
  "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",
183
- n && "bn-pl-8",
895
+ o && "bn-pl-8",
184
896
  t
185
897
  ),
186
- ...e
187
- }
898
+ ...n
899
+ },
900
+ void 0,
901
+ !1,
902
+ {
903
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
904
+ lineNumber: 80,
905
+ columnNumber: 3
906
+ },
907
+ void 0
188
908
  ));
189
- J.displayName = h.Item.displayName;
190
- const Q = l.forwardRef(({ className: t, children: n, checked: e, ...o }, r) => /* @__PURE__ */ v(
191
- h.CheckboxItem,
909
+ rn.displayName = C.Item.displayName;
910
+ const sn = f.forwardRef(({ className: t, children: o, checked: n, ...r }, a) => /* @__PURE__ */ s.jsxDEV(
911
+ C.CheckboxItem,
192
912
  {
193
- ref: r,
913
+ ref: a,
194
914
  className: d(
195
915
  "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",
196
916
  t
197
917
  ),
198
- checked: e,
199
- ...o,
918
+ checked: n,
919
+ ...r,
200
920
  children: [
201
- /* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(h.ItemIndicator, { children: /* @__PURE__ */ a(j, { className: "bn-h-4 bn-w-4" }) }) }),
202
- n
921
+ /* @__PURE__ */ s.jsxDEV("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__ */ s.jsxDEV(C.ItemIndicator, { children: /* @__PURE__ */ s.jsxDEV(He, { className: "bn-h-4 bn-w-4" }, void 0, !1, {
922
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
923
+ lineNumber: 106,
924
+ columnNumber: 9
925
+ }, void 0) }, void 0, !1, {
926
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
927
+ lineNumber: 105,
928
+ columnNumber: 7
929
+ }, void 0) }, void 0, !1, {
930
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
931
+ lineNumber: 104,
932
+ columnNumber: 5
933
+ }, void 0),
934
+ o
203
935
  ]
204
- }
936
+ },
937
+ void 0,
938
+ !0,
939
+ {
940
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
941
+ lineNumber: 96,
942
+ columnNumber: 3
943
+ },
944
+ void 0
205
945
  ));
206
- Q.displayName = h.CheckboxItem.displayName;
207
- const Ve = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
208
- h.RadioItem,
946
+ sn.displayName = C.CheckboxItem.displayName;
947
+ const Ro = f.forwardRef(({ className: t, children: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
948
+ C.RadioItem,
209
949
  {
210
- ref: o,
950
+ ref: r,
211
951
  className: d(
212
952
  "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",
213
953
  t
214
954
  ),
215
- ...e,
955
+ ...n,
216
956
  children: [
217
- /* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(h.ItemIndicator, { children: /* @__PURE__ */ a(ye, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
218
- n
957
+ /* @__PURE__ */ s.jsxDEV("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__ */ s.jsxDEV(C.ItemIndicator, { children: /* @__PURE__ */ s.jsxDEV(No, { className: "bn-h-2 bn-w-2 bn-fill-current" }, void 0, !1, {
958
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
959
+ lineNumber: 128,
960
+ columnNumber: 9
961
+ }, void 0) }, void 0, !1, {
962
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
963
+ lineNumber: 127,
964
+ columnNumber: 7
965
+ }, void 0) }, void 0, !1, {
966
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
967
+ lineNumber: 126,
968
+ columnNumber: 5
969
+ }, void 0),
970
+ o
219
971
  ]
220
- }
972
+ },
973
+ void 0,
974
+ !0,
975
+ {
976
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
977
+ lineNumber: 119,
978
+ columnNumber: 3
979
+ },
980
+ void 0
221
981
  ));
222
- Ve.displayName = h.RadioItem.displayName;
223
- const X = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
224
- h.Label,
982
+ Ro.displayName = C.RadioItem.displayName;
983
+ const an = f.forwardRef(({ className: t, inset: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
984
+ C.Label,
225
985
  {
226
- ref: o,
986
+ ref: r,
227
987
  className: d(
228
988
  "bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
229
- n && "bn-pl-8",
989
+ o && "bn-pl-8",
230
990
  t
231
991
  ),
232
- ...e
233
- }
992
+ ...n
993
+ },
994
+ void 0,
995
+ !1,
996
+ {
997
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
998
+ lineNumber: 142,
999
+ columnNumber: 3
1000
+ },
1001
+ void 0
234
1002
  ));
235
- X.displayName = h.Label.displayName;
236
- const Y = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
237
- h.Separator,
1003
+ an.displayName = C.Label.displayName;
1004
+ const cn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1005
+ C.Separator,
238
1006
  {
239
- ref: e,
1007
+ ref: n,
240
1008
  className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
241
- ...n
242
- }
1009
+ ...o
1010
+ },
1011
+ void 0,
1012
+ !1,
1013
+ {
1014
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
1015
+ lineNumber: 158,
1016
+ columnNumber: 3
1017
+ },
1018
+ void 0
243
1019
  ));
244
- Y.displayName = h.Separator.displayName;
245
- const Ee = T(
1020
+ cn.displayName = C.Separator.displayName;
1021
+ const Vo = Q(
246
1022
  "bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
247
- ), D = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
248
- G.Root,
1023
+ ), me = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1024
+ qe.Root,
249
1025
  {
250
- ref: e,
251
- className: d(Ee(), t),
252
- ...n
253
- }
1026
+ ref: n,
1027
+ className: d(Vo(), t),
1028
+ ...o
1029
+ },
1030
+ void 0,
1031
+ !1,
1032
+ {
1033
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/label.tsx",
1034
+ lineNumber: 16,
1035
+ columnNumber: 3
1036
+ },
1037
+ void 0
254
1038
  ));
255
- D.displayName = G.Root.displayName;
256
- const je = ve, $e = l.createContext(
1039
+ me.displayName = qe.Root.displayName;
1040
+ const Mo = uo, Uo = f.createContext(
257
1041
  {}
258
- ), I = () => {
259
- const t = l.useContext($e), n = l.useContext(Z), { getFieldState: e, formState: o } = Ne(), r = e(t.name, o);
1042
+ ), ne = () => {
1043
+ const t = f.useContext(Uo), o = f.useContext(ln), { getFieldState: n, formState: r } = mo(), a = n(t.name, r);
260
1044
  if (!t)
261
1045
  throw new Error("useFormField should be used within <FormField>");
262
- const { id: s } = n;
1046
+ const { id: l } = o;
263
1047
  return {
264
- id: s,
1048
+ id: l,
265
1049
  name: t.name,
266
- formItemId: `${s}-form-item`,
267
- formDescriptionId: `${s}-form-item-description`,
268
- formMessageId: `${s}-form-item-message`,
269
- ...r
1050
+ formItemId: `${l}-form-item`,
1051
+ formDescriptionId: `${l}-form-item-description`,
1052
+ formMessageId: `${l}-form-item-message`,
1053
+ ...a
270
1054
  };
271
- }, Z = l.createContext(
1055
+ }, ln = f.createContext(
272
1056
  {}
273
- ), Ge = l.forwardRef(({ className: t, ...n }, e) => {
274
- const o = l.useId();
275
- return /* @__PURE__ */ a(Z.Provider, { value: { id: o }, children: /* @__PURE__ */ a("div", { ref: e, className: d("bn-space-y-2", t), ...n }) });
1057
+ ), Io = f.forwardRef(({ className: t, ...o }, n) => {
1058
+ const r = f.useId();
1059
+ return /* @__PURE__ */ s.jsxDEV(ln.Provider, { value: { id: r }, children: /* @__PURE__ */ s.jsxDEV("div", { ref: n, className: d("bn-space-y-2", t), ...o }, void 0, !1, {
1060
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1061
+ lineNumber: 81,
1062
+ columnNumber: 7
1063
+ }, void 0) }, void 0, !1, {
1064
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1065
+ lineNumber: 80,
1066
+ columnNumber: 5
1067
+ }, void 0);
276
1068
  });
277
- Ge.displayName = "FormItem";
278
- const Ue = l.forwardRef(({ className: t, ...n }, e) => {
279
- const { error: o, formItemId: r } = I();
280
- return /* @__PURE__ */ a(
281
- D,
282
- {
283
- ref: e,
284
- className: d(o && "bn-text-destructive", t),
285
- htmlFor: r,
286
- ...n
287
- }
1069
+ Io.displayName = "FormItem";
1070
+ const Po = f.forwardRef(({ className: t, ...o }, n) => {
1071
+ const { error: r, formItemId: a } = ne();
1072
+ return /* @__PURE__ */ s.jsxDEV(
1073
+ me,
1074
+ {
1075
+ ref: n,
1076
+ className: d(r && "bn-text-destructive", t),
1077
+ htmlFor: a,
1078
+ ...o
1079
+ },
1080
+ void 0,
1081
+ !1,
1082
+ {
1083
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1084
+ lineNumber: 94,
1085
+ columnNumber: 5
1086
+ },
1087
+ void 0
288
1088
  );
289
1089
  });
290
- Ue.displayName = "FormLabel";
291
- const Oe = l.forwardRef(({ ...t }, n) => {
292
- const { error: e, formItemId: o, formDescriptionId: r, formMessageId: s } = I();
293
- return /* @__PURE__ */ a(
294
- V,
1090
+ Po.displayName = "FormLabel";
1091
+ const _o = f.forwardRef(({ ...t }, o) => {
1092
+ const { error: n, formItemId: r, formDescriptionId: a, formMessageId: l } = ne();
1093
+ return /* @__PURE__ */ s.jsxDEV(
1094
+ Ge,
295
1095
  {
296
- ref: n,
297
- id: o,
298
- "aria-describedby": e ? `${r} ${s}` : `${r}`,
299
- "aria-invalid": !!e,
1096
+ ref: o,
1097
+ id: r,
1098
+ "aria-describedby": n ? `${a} ${l}` : `${a}`,
1099
+ "aria-invalid": !!n,
300
1100
  ...t
301
- }
1101
+ },
1102
+ void 0,
1103
+ !1,
1104
+ {
1105
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1106
+ lineNumber: 112,
1107
+ columnNumber: 5
1108
+ },
1109
+ void 0
302
1110
  );
303
1111
  });
304
- Oe.displayName = "FormControl";
305
- const He = l.forwardRef(({ className: t, ...n }, e) => {
306
- const { formDescriptionId: o } = I();
307
- return /* @__PURE__ */ a(
1112
+ _o.displayName = "FormControl";
1113
+ const Fo = f.forwardRef(({ className: t, ...o }, n) => {
1114
+ const { formDescriptionId: r } = ne();
1115
+ return /* @__PURE__ */ s.jsxDEV(
308
1116
  "p",
309
1117
  {
310
- ref: e,
311
- id: o,
1118
+ ref: n,
1119
+ id: r,
312
1120
  className: d("bn-text-sm bn-text-muted-foreground", t),
313
- ...n
314
- }
1121
+ ...o
1122
+ },
1123
+ void 0,
1124
+ !1,
1125
+ {
1126
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1127
+ lineNumber: 134,
1128
+ columnNumber: 5
1129
+ },
1130
+ void 0
315
1131
  );
316
1132
  });
317
- He.displayName = "FormDescription";
318
- const Ke = l.forwardRef(({ className: t, children: n, ...e }, o) => {
319
- const { error: r, formMessageId: s } = I(), i = r ? String(r == null ? void 0 : r.message) : n;
320
- return i ? /* @__PURE__ */ a(
1133
+ Fo.displayName = "FormDescription";
1134
+ const Oo = f.forwardRef(({ className: t, children: o, ...n }, r) => {
1135
+ const { error: a, formMessageId: l } = ne(), u = a ? String(a == null ? void 0 : a.message) : o;
1136
+ return u ? /* @__PURE__ */ s.jsxDEV(
321
1137
  "p",
322
1138
  {
323
- ref: o,
324
- id: s,
1139
+ ref: r,
1140
+ id: l,
325
1141
  className: d("bn-text-sm bn-font-medium bn-text-destructive", t),
326
- ...e,
327
- children: i
328
- }
1142
+ ...n,
1143
+ children: u
1144
+ },
1145
+ void 0,
1146
+ !1,
1147
+ {
1148
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
1149
+ lineNumber: 156,
1150
+ columnNumber: 5
1151
+ },
1152
+ void 0
329
1153
  ) : null;
330
1154
  });
331
- Ke.displayName = "FormMessage";
332
- const _ = l.forwardRef(
333
- ({ className: t, type: n, ...e }, o) => /* @__PURE__ */ a(
1155
+ Oo.displayName = "FormMessage";
1156
+ const un = f.forwardRef(
1157
+ ({ className: t, type: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
334
1158
  "input",
335
1159
  {
336
- type: n,
1160
+ type: o,
337
1161
  className: d(
338
1162
  "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",
339
1163
  t
340
1164
  ),
341
- ref: o,
342
- ...e
343
- }
1165
+ ref: r,
1166
+ ...n
1167
+ },
1168
+ void 0,
1169
+ !1,
1170
+ {
1171
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/input.tsx",
1172
+ lineNumber: 11,
1173
+ columnNumber: 7
1174
+ },
1175
+ void 0
344
1176
  )
345
1177
  );
346
- _.displayName = "Input";
347
- const qe = M.Root, We = M.Trigger, ee = l.forwardRef(({ className: t, align: n = "center", sideOffset: e = 4, ...o }, r) => (
1178
+ un.displayName = "Input";
1179
+ const Lo = ee.Root, $o = ee.Trigger, dn = f.forwardRef(({ className: t, align: o = "center", sideOffset: n = 4, ...r }, a) => (
348
1180
  // <PopoverPrimitive.Portal>
349
- /* @__PURE__ */ a(
350
- M.Content,
1181
+ /* @__PURE__ */ s.jsxDEV(
1182
+ ee.Content,
351
1183
  {
352
- ref: r,
353
- align: n,
354
- sideOffset: e,
1184
+ ref: a,
1185
+ align: o,
1186
+ sideOffset: n,
355
1187
  className: d(
356
1188
  "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",
357
1189
  t
358
1190
  ),
359
- ...o
360
- }
1191
+ ...r
1192
+ },
1193
+ void 0,
1194
+ !1,
1195
+ {
1196
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/popover.tsx",
1197
+ lineNumber: 15,
1198
+ columnNumber: 3
1199
+ },
1200
+ void 0
361
1201
  )
362
1202
  ));
363
- ee.displayName = M.Content.displayName;
364
- const Ae = N.Root, Je = N.Value, ne = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
365
- N.Trigger,
1203
+ dn.displayName = ee.Content.displayName;
1204
+ const Ao = T.Root, zo = T.Value, mn = f.forwardRef(({ className: t, children: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
1205
+ T.Trigger,
366
1206
  {
367
- ref: o,
1207
+ ref: r,
368
1208
  className: d(
369
1209
  "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",
370
1210
  t
371
1211
  ),
372
- ...e,
1212
+ ...n,
373
1213
  children: [
374
- n,
375
- /* @__PURE__ */ a(N.Icon, { asChild: !0, children: /* @__PURE__ */ a($, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
1214
+ o,
1215
+ /* @__PURE__ */ s.jsxDEV(T.Icon, { asChild: !0, children: /* @__PURE__ */ s.jsxDEV(Je, { className: "bn-h-4 bn-w-4 bn-opacity-50" }, void 0, !1, {
1216
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1217
+ lineNumber: 26,
1218
+ columnNumber: 7
1219
+ }, void 0) }, void 0, !1, {
1220
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1221
+ lineNumber: 25,
1222
+ columnNumber: 5
1223
+ }, void 0)
376
1224
  ]
377
- }
1225
+ },
1226
+ void 0,
1227
+ !0,
1228
+ {
1229
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1230
+ lineNumber: 17,
1231
+ columnNumber: 3
1232
+ },
1233
+ void 0
378
1234
  ));
379
- ne.displayName = N.Trigger.displayName;
380
- const te = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
381
- N.ScrollUpButton,
1235
+ mn.displayName = T.Trigger.displayName;
1236
+ const bn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1237
+ T.ScrollUpButton,
382
1238
  {
383
- ref: e,
1239
+ ref: n,
384
1240
  className: d(
385
1241
  "bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
386
1242
  t
387
1243
  ),
388
- ...n,
389
- children: /* @__PURE__ */ a(Se, { className: "bn-h-4 bn-w-4" })
390
- }
1244
+ ...o,
1245
+ children: /* @__PURE__ */ s.jsxDEV(vo, { className: "bn-h-4 bn-w-4" }, void 0, !1, {
1246
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1247
+ lineNumber: 43,
1248
+ columnNumber: 5
1249
+ }, void 0)
1250
+ },
1251
+ void 0,
1252
+ !1,
1253
+ {
1254
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1255
+ lineNumber: 36,
1256
+ columnNumber: 3
1257
+ },
1258
+ void 0
391
1259
  ));
392
- te.displayName = N.ScrollUpButton.displayName;
393
- const oe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
394
- N.ScrollDownButton,
1260
+ bn.displayName = T.ScrollUpButton.displayName;
1261
+ const fn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1262
+ T.ScrollDownButton,
395
1263
  {
396
- ref: e,
1264
+ ref: n,
397
1265
  className: d(
398
1266
  "bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
399
1267
  t
400
1268
  ),
401
- ...n,
402
- children: /* @__PURE__ */ a($, { className: "bn-h-4 bn-w-4" })
403
- }
1269
+ ...o,
1270
+ children: /* @__PURE__ */ s.jsxDEV(Je, { className: "bn-h-4 bn-w-4" }, void 0, !1, {
1271
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1272
+ lineNumber: 59,
1273
+ columnNumber: 5
1274
+ }, void 0)
1275
+ },
1276
+ void 0,
1277
+ !1,
1278
+ {
1279
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1280
+ lineNumber: 52,
1281
+ columnNumber: 3
1282
+ },
1283
+ void 0
404
1284
  ));
405
- oe.displayName = N.ScrollDownButton.displayName;
406
- const re = l.forwardRef(({ className: t, children: n, position: e = "popper", ...o }, r) => (
1285
+ fn.displayName = T.ScrollDownButton.displayName;
1286
+ const pn = f.forwardRef(({ className: t, children: o, position: n = "popper", ...r }, a) => (
407
1287
  // <SelectPrimitive.Portal>
408
- /* @__PURE__ */ v(
409
- N.Content,
1288
+ /* @__PURE__ */ s.jsxDEV(
1289
+ T.Content,
410
1290
  {
411
- ref: r,
1291
+ ref: a,
412
1292
  className: d(
413
1293
  "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",
414
- e === "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",
1294
+ 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",
415
1295
  t
416
1296
  ),
417
- position: e,
418
- ...o,
1297
+ position: n,
1298
+ ...r,
419
1299
  children: [
420
- /* @__PURE__ */ a(te, {}),
421
- /* @__PURE__ */ a(
422
- N.Viewport,
1300
+ /* @__PURE__ */ s.jsxDEV(bn, {}, void 0, !1, {
1301
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1302
+ lineNumber: 80,
1303
+ columnNumber: 5
1304
+ }, void 0),
1305
+ /* @__PURE__ */ s.jsxDEV(
1306
+ T.Viewport,
423
1307
  {
424
1308
  className: d(
425
1309
  "bn-p-1",
426
- e === "popper" && "bn-h-[var(--radix-select-trigger-height)] bn-w-full bn-min-w-[var(--radix-select-trigger-width)]"
1310
+ n === "popper" && "bn-h-[var(--radix-select-trigger-height)] bn-w-full bn-min-w-[var(--radix-select-trigger-width)]"
427
1311
  ),
428
- children: n
429
- }
1312
+ children: o
1313
+ },
1314
+ void 0,
1315
+ !1,
1316
+ {
1317
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1318
+ lineNumber: 81,
1319
+ columnNumber: 5
1320
+ },
1321
+ void 0
430
1322
  ),
431
- /* @__PURE__ */ a(oe, {})
1323
+ /* @__PURE__ */ s.jsxDEV(fn, {}, void 0, !1, {
1324
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1325
+ lineNumber: 89,
1326
+ columnNumber: 5
1327
+ }, void 0)
432
1328
  ]
433
- }
1329
+ },
1330
+ void 0,
1331
+ !0,
1332
+ {
1333
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1334
+ lineNumber: 70,
1335
+ columnNumber: 3
1336
+ },
1337
+ void 0
434
1338
  )
435
1339
  ));
436
- re.displayName = N.Content.displayName;
437
- const Qe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
438
- N.Label,
1340
+ pn.displayName = T.Content.displayName;
1341
+ const Wo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1342
+ T.Label,
439
1343
  {
440
- ref: e,
1344
+ ref: n,
441
1345
  className: d(
442
1346
  "bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-font-semibold",
443
1347
  t
444
1348
  ),
445
- ...n
446
- }
1349
+ ...o
1350
+ },
1351
+ void 0,
1352
+ !1,
1353
+ {
1354
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1355
+ lineNumber: 99,
1356
+ columnNumber: 3
1357
+ },
1358
+ void 0
447
1359
  ));
448
- Qe.displayName = N.Label.displayName;
449
- const ae = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
450
- N.Item,
1360
+ Wo.displayName = T.Label.displayName;
1361
+ const Nn = f.forwardRef(({ className: t, children: o, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
1362
+ T.Item,
451
1363
  {
452
- ref: o,
1364
+ ref: r,
453
1365
  className: d(
454
1366
  "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",
455
1367
  t
456
1368
  ),
457
- ...e,
1369
+ ...n,
458
1370
  children: [
459
- /* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(N.ItemIndicator, { children: /* @__PURE__ */ a(j, { className: "bn-h-4 bn-w-4" }) }) }),
460
- /* @__PURE__ */ a(N.ItemText, { children: n })
1371
+ /* @__PURE__ */ s.jsxDEV("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__ */ s.jsxDEV(T.ItemIndicator, { children: /* @__PURE__ */ s.jsxDEV(He, { className: "bn-h-4 bn-w-4" }, void 0, !1, {
1372
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1373
+ lineNumber: 123,
1374
+ columnNumber: 9
1375
+ }, void 0) }, void 0, !1, {
1376
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1377
+ lineNumber: 122,
1378
+ columnNumber: 7
1379
+ }, void 0) }, void 0, !1, {
1380
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1381
+ lineNumber: 121,
1382
+ columnNumber: 5
1383
+ }, void 0),
1384
+ /* @__PURE__ */ s.jsxDEV(T.ItemText, { children: o }, void 0, !1, {
1385
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1386
+ lineNumber: 127,
1387
+ columnNumber: 5
1388
+ }, void 0)
461
1389
  ]
462
- }
1390
+ },
1391
+ void 0,
1392
+ !0,
1393
+ {
1394
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1395
+ lineNumber: 114,
1396
+ columnNumber: 3
1397
+ },
1398
+ void 0
463
1399
  ));
464
- ae.displayName = N.Item.displayName;
465
- const Xe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
466
- N.Separator,
1400
+ Nn.displayName = T.Item.displayName;
1401
+ const Yo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1402
+ T.Separator,
467
1403
  {
468
- ref: e,
1404
+ ref: n,
469
1405
  className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
470
- ...n
471
- }
1406
+ ...o
1407
+ },
1408
+ void 0,
1409
+ !1,
1410
+ {
1411
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
1412
+ lineNumber: 136,
1413
+ columnNumber: 3
1414
+ },
1415
+ void 0
472
1416
  ));
473
- Xe.displayName = N.Separator.displayName;
474
- const Ye = C.Root, se = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
475
- C.List,
1417
+ Yo.displayName = T.Separator.displayName;
1418
+ const Go = O.Root, vn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1419
+ O.List,
476
1420
  {
477
- ref: e,
1421
+ ref: n,
478
1422
  className: d(
479
1423
  "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",
480
1424
  t
481
1425
  ),
482
- ...n
483
- }
1426
+ ...o
1427
+ },
1428
+ void 0,
1429
+ !1,
1430
+ {
1431
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/tabs.tsx",
1432
+ lineNumber: 12,
1433
+ columnNumber: 3
1434
+ },
1435
+ void 0
484
1436
  ));
485
- se.displayName = C.List.displayName;
486
- const ie = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
487
- C.Trigger,
1437
+ vn.displayName = O.List.displayName;
1438
+ const gn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1439
+ O.Trigger,
488
1440
  {
489
- ref: e,
1441
+ ref: n,
490
1442
  className: d(
491
1443
  "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",
492
1444
  t
493
1445
  ),
494
- ...n
495
- }
1446
+ ...o
1447
+ },
1448
+ void 0,
1449
+ !1,
1450
+ {
1451
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/tabs.tsx",
1452
+ lineNumber: 27,
1453
+ columnNumber: 3
1454
+ },
1455
+ void 0
496
1456
  ));
497
- ie.displayName = C.Trigger.displayName;
498
- const de = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
499
- C.Content,
1457
+ gn.displayName = O.Trigger.displayName;
1458
+ const kn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1459
+ O.Content,
500
1460
  {
501
- ref: e,
1461
+ ref: n,
502
1462
  className: d(
503
1463
  "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",
504
1464
  t
505
1465
  ),
506
- ...n
507
- }
1466
+ ...o
1467
+ },
1468
+ void 0,
1469
+ !1,
1470
+ {
1471
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/tabs.tsx",
1472
+ lineNumber: 42,
1473
+ columnNumber: 3
1474
+ },
1475
+ void 0
508
1476
  ));
509
- de.displayName = C.Content.displayName;
510
- const Ze = T(
1477
+ kn.displayName = O.Content.displayName;
1478
+ const Ko = Q(
511
1479
  "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",
512
1480
  {
513
1481
  variants: {
@@ -526,794 +1494,1225 @@ const Ze = T(
526
1494
  size: "default"
527
1495
  }
528
1496
  }
529
- ), be = l.forwardRef(({ className: t, variant: n, size: e, ...o }, r) => /* @__PURE__ */ a(
530
- U.Root,
1497
+ ), hn = f.forwardRef(({ className: t, variant: o, size: n, ...r }, a) => /* @__PURE__ */ s.jsxDEV(
1498
+ Xe.Root,
531
1499
  {
532
- ref: r,
533
- className: d(Ze({ variant: n, size: e, className: t })),
534
- ...o
535
- }
1500
+ ref: a,
1501
+ className: d(Ko({ variant: o, size: n, className: t })),
1502
+ ...r
1503
+ },
1504
+ void 0,
1505
+ !1,
1506
+ {
1507
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/toggle.tsx",
1508
+ lineNumber: 34,
1509
+ columnNumber: 3
1510
+ },
1511
+ void 0
536
1512
  ));
537
- be.displayName = U.Root.displayName;
538
- const _e = S.Provider, en = S.Root, nn = S.Trigger, le = l.forwardRef(({ className: t, sideOffset: n = 4, ...e }, o) => /* @__PURE__ */ a(
539
- S.Content,
1513
+ hn.displayName = Xe.Root.displayName;
1514
+ const Ho = G.Provider, Jo = G.Root, qo = G.Trigger, xn = f.forwardRef(({ className: t, sideOffset: o = 4, ...n }, r) => /* @__PURE__ */ s.jsxDEV(
1515
+ G.Content,
540
1516
  {
541
- ref: o,
542
- sideOffset: n,
1517
+ ref: r,
1518
+ sideOffset: o,
543
1519
  className: d(
544
1520
  "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",
545
1521
  t
546
1522
  ),
547
- ...e
548
- }
1523
+ ...n
1524
+ },
1525
+ void 0,
1526
+ !1,
1527
+ {
1528
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/tooltip.tsx",
1529
+ lineNumber: 16,
1530
+ columnNumber: 3
1531
+ },
1532
+ void 0
549
1533
  ));
550
- le.displayName = S.Content.displayName;
551
- const tn = {
1534
+ xn.displayName = G.Content.displayName;
1535
+ const Xo = {
552
1536
  Badge: {
553
- Badge: Ie
1537
+ Badge: Do
554
1538
  },
555
1539
  Button: {
556
- Button: O
1540
+ Button: Ze
557
1541
  },
558
1542
  Card: {
559
- Card: H,
560
- CardContent: K
1543
+ Card: Qe,
1544
+ CardContent: en
561
1545
  },
562
1546
  DropdownMenu: {
563
- DropdownMenu: ke,
564
- DropdownMenuCheckboxItem: Q,
565
- DropdownMenuContent: A,
566
- DropdownMenuItem: J,
567
- DropdownMenuLabel: X,
568
- DropdownMenuSeparator: Y,
569
- DropdownMenuSub: ze,
570
- DropdownMenuSubContent: W,
571
- DropdownMenuSubTrigger: q,
572
- DropdownMenuTrigger: Le
1547
+ DropdownMenu: To,
1548
+ DropdownMenuCheckboxItem: sn,
1549
+ DropdownMenuContent: tn,
1550
+ DropdownMenuItem: rn,
1551
+ DropdownMenuLabel: an,
1552
+ DropdownMenuSeparator: cn,
1553
+ DropdownMenuSub: Bo,
1554
+ DropdownMenuSubContent: on,
1555
+ DropdownMenuSubTrigger: nn,
1556
+ DropdownMenuTrigger: jo
573
1557
  },
574
1558
  Form: {
575
- Form: je
1559
+ Form: Mo
576
1560
  },
577
1561
  Input: {
578
- Input: _
1562
+ Input: un
579
1563
  },
580
1564
  Label: {
581
- Label: D
1565
+ Label: me
582
1566
  },
583
1567
  Popover: {
584
- Popover: qe,
585
- PopoverContent: ee,
586
- PopoverTrigger: We
1568
+ Popover: Lo,
1569
+ PopoverContent: dn,
1570
+ PopoverTrigger: $o
587
1571
  },
588
1572
  Select: {
589
- Select: Ae,
590
- SelectContent: re,
591
- SelectItem: ae,
592
- SelectTrigger: ne,
593
- SelectValue: Je
1573
+ Select: Ao,
1574
+ SelectContent: pn,
1575
+ SelectItem: Nn,
1576
+ SelectTrigger: mn,
1577
+ SelectValue: zo
594
1578
  },
595
1579
  Tabs: {
596
- Tabs: Ye,
597
- TabsContent: de,
598
- TabsList: se,
599
- TabsTrigger: ie
1580
+ Tabs: Go,
1581
+ TabsContent: kn,
1582
+ TabsList: vn,
1583
+ TabsTrigger: gn
600
1584
  },
601
1585
  Toggle: {
602
- Toggle: be
1586
+ Toggle: hn
603
1587
  },
604
1588
  Tooltip: {
605
- Tooltip: en,
606
- TooltipContent: le,
607
- TooltipProvider: _e,
608
- TooltipTrigger: nn
1589
+ Tooltip: Jo,
1590
+ TooltipContent: xn,
1591
+ TooltipProvider: Ho,
1592
+ TooltipTrigger: qo
609
1593
  }
610
- }, ce = ge(void 0);
611
- function g() {
612
- return he(ce);
1594
+ }, Dn = so(void 0);
1595
+ function E() {
1596
+ return ao(Dn);
613
1597
  }
614
- const on = (t) => {
615
- const { children: n, ...e } = t;
616
- c(e);
617
- const o = g(), r = xe();
618
- return /* @__PURE__ */ a(o.Form.Form, { ...r, children: n });
619
- }, rn = p((t, n) => {
1598
+ const Zo = (t) => {
1599
+ const { children: o, ...n } = t;
1600
+ k(n);
1601
+ const r = E(), a = bo();
1602
+ return /* @__PURE__ */ s.jsxDEV(r.Form.Form, { ...a, children: o }, void 0, !1, {
1603
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/form/Form.tsx",
1604
+ lineNumber: 17,
1605
+ columnNumber: 5
1606
+ }, void 0);
1607
+ }, Qo = x((t, o) => {
620
1608
  const {
621
- className: e,
622
- name: o,
623
- label: r,
624
- icon: s,
1609
+ className: n,
1610
+ name: r,
1611
+ label: a,
1612
+ icon: l,
625
1613
  // TODO: implement
626
- value: i,
627
- autoFocus: u,
628
- placeholder: m,
629
- onKeyDown: b,
630
- onChange: f,
631
- onSubmit: x,
632
- ...w
1614
+ value: u,
1615
+ autoFocus: g,
1616
+ placeholder: p,
1617
+ onKeyDown: m,
1618
+ onChange: D,
1619
+ onSubmit: j,
1620
+ ...M
633
1621
  } = t;
634
- c(w);
635
- const y = g();
636
- return r ? /* @__PURE__ */ v("div", { children: [
637
- /* @__PURE__ */ a(y.Label.Label, { htmlFor: r, children: r }),
638
- /* @__PURE__ */ a(
639
- y.Input.Input,
1622
+ k(M);
1623
+ const P = E();
1624
+ return a ? /* @__PURE__ */ s.jsxDEV("div", { children: [
1625
+ /* @__PURE__ */ s.jsxDEV(P.Label.Label, { htmlFor: a, children: a }, void 0, !1, {
1626
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/form/TextInput.tsx",
1627
+ lineNumber: 47,
1628
+ columnNumber: 7
1629
+ }, void 0),
1630
+ /* @__PURE__ */ s.jsxDEV(
1631
+ P.Input.Input,
640
1632
  {
641
- className: e,
642
- id: r,
643
- name: o,
644
- autoFocus: u,
645
- placeholder: m,
646
- value: i,
647
- onKeyDown: b,
648
- onChange: f,
649
- onSubmit: x
650
- }
1633
+ className: n,
1634
+ id: a,
1635
+ name: r,
1636
+ autoFocus: g,
1637
+ placeholder: p,
1638
+ value: u,
1639
+ onKeyDown: m,
1640
+ onChange: D,
1641
+ onSubmit: j
1642
+ },
1643
+ void 0,
1644
+ !1,
1645
+ {
1646
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/form/TextInput.tsx",
1647
+ lineNumber: 50,
1648
+ columnNumber: 7
1649
+ },
1650
+ void 0
651
1651
  )
652
- ] }) : /* @__PURE__ */ a(
653
- y.Input.Input,
654
- {
655
- "aria-label": o,
656
- name: o,
657
- autoFocus: u,
658
- placeholder: m,
659
- value: i,
660
- onKeyDown: b,
661
- onChange: f,
662
- onSubmit: x,
663
- ref: n
664
- }
1652
+ ] }, void 0, !0, {
1653
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/form/TextInput.tsx",
1654
+ lineNumber: 46,
1655
+ columnNumber: 5
1656
+ }, void 0) : /* @__PURE__ */ s.jsxDEV(
1657
+ P.Input.Input,
1658
+ {
1659
+ "aria-label": r,
1660
+ name: r,
1661
+ autoFocus: g,
1662
+ placeholder: p,
1663
+ value: u,
1664
+ onKeyDown: m,
1665
+ onChange: D,
1666
+ onSubmit: j,
1667
+ ref: o
1668
+ },
1669
+ void 0,
1670
+ !1,
1671
+ {
1672
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/form/TextInput.tsx",
1673
+ lineNumber: 31,
1674
+ columnNumber: 7
1675
+ },
1676
+ void 0
665
1677
  );
666
- }), an = (t) => p(
667
- (n, e) => /* @__PURE__ */ a(
1678
+ }), et = (t) => x(
1679
+ (o, n) => /* @__PURE__ */ s.jsxDEV(
668
1680
  t,
669
1681
  {
670
- onPointerDown: (o) => {
671
- o.nativeEvent.fakeEvent || (o.ctrlKey = !0);
1682
+ onPointerDown: (r) => {
1683
+ r.nativeEvent.fakeEvent || (r.ctrlKey = !0);
672
1684
  },
673
- onPointerUp: (o) => {
674
- const r = new PointerEvent("pointerdown", o.nativeEvent);
675
- r.fakeEvent = !0, o.target.dispatchEvent(r);
1685
+ onPointerUp: (r) => {
1686
+ const a = new PointerEvent("pointerdown", r.nativeEvent);
1687
+ a.fakeEvent = !0, r.target.dispatchEvent(a);
676
1688
  },
677
- ...n,
678
- ref: e
679
- }
1689
+ ...o,
1690
+ ref: n
1691
+ },
1692
+ void 0,
1693
+ !1,
1694
+ {
1695
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1696
+ lineNumber: 16,
1697
+ columnNumber: 9
1698
+ },
1699
+ void 0
680
1700
  )
681
- ), sn = (t) => {
1701
+ ), nt = (t) => {
682
1702
  const {
683
- children: n,
684
- onOpenChange: e,
685
- position: o,
1703
+ children: o,
1704
+ onOpenChange: n,
1705
+ position: r,
686
1706
  // Unused
687
- sub: r,
688
- ...s
1707
+ sub: a,
1708
+ ...l
689
1709
  } = t;
690
- c(s);
691
- const i = g();
692
- return r ? /* @__PURE__ */ a(
693
- i.DropdownMenu.DropdownMenuSub,
1710
+ k(l);
1711
+ const u = E();
1712
+ return a ? /* @__PURE__ */ s.jsxDEV(
1713
+ u.DropdownMenu.DropdownMenuSub,
694
1714
  {
695
- onOpenChange: e,
696
- children: n
697
- }
698
- ) : /* @__PURE__ */ a(i.DropdownMenu.DropdownMenu, { onOpenChange: e, children: n });
699
- }, dn = (t) => {
700
- const { children: n, sub: e, ...o } = t;
701
- c(o);
702
- const r = g(), s = k(
703
- () => an(
704
- r.DropdownMenu.DropdownMenuTrigger
1715
+ onOpenChange: n,
1716
+ children: o
1717
+ },
1718
+ void 0,
1719
+ !1,
1720
+ {
1721
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1722
+ lineNumber: 52,
1723
+ columnNumber: 7
1724
+ },
1725
+ void 0
1726
+ ) : /* @__PURE__ */ s.jsxDEV(u.DropdownMenu.DropdownMenu, { onOpenChange: n, children: o }, void 0, !1, {
1727
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1728
+ lineNumber: 59,
1729
+ columnNumber: 7
1730
+ }, void 0);
1731
+ }, ot = (t) => {
1732
+ const { children: o, sub: n, ...r } = t;
1733
+ k(r);
1734
+ const a = E(), l = $e(
1735
+ () => et(
1736
+ a.DropdownMenu.DropdownMenuTrigger
705
1737
  ),
706
- [r.DropdownMenu.DropdownMenuTrigger]
1738
+ [a.DropdownMenu.DropdownMenuTrigger]
707
1739
  );
708
- return e ? /* @__PURE__ */ a(r.DropdownMenu.DropdownMenuSubTrigger, { children: n }) : /* @__PURE__ */ a(s, { asChild: !0, ...o, children: n });
709
- }, bn = p((t, n) => {
710
- const { className: e, children: o, sub: r, ...s } = t;
711
- c(s);
712
- const i = g();
713
- return r ? /* @__PURE__ */ a(
714
- i.DropdownMenu.DropdownMenuSubContent,
715
- {
716
- className: e,
717
- ref: n,
718
- children: o
719
- }
720
- ) : /* @__PURE__ */ a(
721
- i.DropdownMenu.DropdownMenuContent,
1740
+ return n ? /* @__PURE__ */ s.jsxDEV(a.DropdownMenu.DropdownMenuSubTrigger, { children: o }, void 0, !1, {
1741
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1742
+ lineNumber: 85,
1743
+ columnNumber: 7
1744
+ }, void 0) : /* @__PURE__ */ s.jsxDEV(l, { asChild: !0, ...r, children: o }, void 0, !1, {
1745
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1746
+ lineNumber: 91,
1747
+ columnNumber: 7
1748
+ }, void 0);
1749
+ }, tt = x((t, o) => {
1750
+ const { className: n, children: r, sub: a, ...l } = t;
1751
+ k(l);
1752
+ const u = E();
1753
+ return a ? /* @__PURE__ */ s.jsxDEV(
1754
+ u.DropdownMenu.DropdownMenuSubContent,
722
1755
  {
723
- className: e,
724
- ref: n,
725
- children: o
726
- }
1756
+ className: n,
1757
+ ref: o,
1758
+ children: r
1759
+ },
1760
+ void 0,
1761
+ !1,
1762
+ {
1763
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1764
+ lineNumber: 110,
1765
+ columnNumber: 7
1766
+ },
1767
+ void 0
1768
+ ) : /* @__PURE__ */ s.jsxDEV(
1769
+ u.DropdownMenu.DropdownMenuContent,
1770
+ {
1771
+ className: n,
1772
+ ref: o,
1773
+ children: r
1774
+ },
1775
+ void 0,
1776
+ !1,
1777
+ {
1778
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1779
+ lineNumber: 118,
1780
+ columnNumber: 7
1781
+ },
1782
+ void 0
727
1783
  );
728
- }), ln = p((t, n) => {
729
- const { className: e, children: o, icon: r, checked: s, subTrigger: i, onClick: u, ...m } = t;
730
- c(m);
731
- const b = g();
732
- return i ? /* @__PURE__ */ v(me, { children: [
733
- r,
734
- o
735
- ] }) : s !== void 0 ? /* @__PURE__ */ v(
736
- b.DropdownMenu.DropdownMenuCheckboxItem,
737
- {
738
- className: d(e, "bn-gap-1"),
739
- ref: n,
740
- checked: s,
741
- onClick: u,
742
- ...m,
1784
+ }), rt = x((t, o) => {
1785
+ const { className: n, children: r, icon: a, checked: l, subTrigger: u, onClick: g, ...p } = t;
1786
+ k(p);
1787
+ const m = E();
1788
+ return u ? /* @__PURE__ */ s.jsxDEV(s.Fragment, { children: [
1789
+ a,
1790
+ r
1791
+ ] }, void 0, !0, {
1792
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1793
+ lineNumber: 140,
1794
+ columnNumber: 7
1795
+ }, void 0) : l !== void 0 ? /* @__PURE__ */ s.jsxDEV(
1796
+ m.DropdownMenu.DropdownMenuCheckboxItem,
1797
+ {
1798
+ className: d(n, "bn-gap-1"),
1799
+ ref: o,
1800
+ checked: l,
1801
+ onClick: g,
1802
+ ...p,
743
1803
  children: [
744
- r,
745
- o
1804
+ a,
1805
+ r
746
1806
  ]
747
- }
748
- ) : /* @__PURE__ */ v(
749
- b.DropdownMenu.DropdownMenuItem,
1807
+ },
1808
+ void 0,
1809
+ !0,
750
1810
  {
751
- className: e,
752
- ref: n,
753
- onClick: u,
754
- ...m,
1811
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1812
+ lineNumber: 149,
1813
+ columnNumber: 7
1814
+ },
1815
+ void 0
1816
+ ) : /* @__PURE__ */ s.jsxDEV(
1817
+ m.DropdownMenu.DropdownMenuItem,
1818
+ {
1819
+ className: n,
1820
+ ref: o,
1821
+ onClick: g,
1822
+ ...p,
755
1823
  children: [
1824
+ a,
756
1825
  r,
757
- o,
758
- i && /* @__PURE__ */ a(E, { className: "bn-ml-auto bn-h-4 bn-w-4" })
1826
+ u && /* @__PURE__ */ s.jsxDEV(Ke, { className: "bn-ml-auto bn-h-4 bn-w-4" }, void 0, !1, {
1827
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1828
+ lineNumber: 169,
1829
+ columnNumber: 22
1830
+ }, void 0)
759
1831
  ]
760
- }
1832
+ },
1833
+ void 0,
1834
+ !0,
1835
+ {
1836
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1837
+ lineNumber: 162,
1838
+ columnNumber: 5
1839
+ },
1840
+ void 0
761
1841
  );
762
- }), cn = p((t, n) => {
763
- const { className: e, ...o } = t;
764
- c(o);
765
- const r = g();
766
- return /* @__PURE__ */ a(
767
- r.DropdownMenu.DropdownMenuSeparator,
768
- {
769
- className: e,
770
- ref: n
771
- }
1842
+ }), st = x((t, o) => {
1843
+ const { className: n, ...r } = t;
1844
+ k(r);
1845
+ const a = E();
1846
+ return /* @__PURE__ */ s.jsxDEV(
1847
+ a.DropdownMenu.DropdownMenuSeparator,
1848
+ {
1849
+ className: n,
1850
+ ref: o
1851
+ },
1852
+ void 0,
1853
+ !1,
1854
+ {
1855
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1856
+ lineNumber: 185,
1857
+ columnNumber: 5
1858
+ },
1859
+ void 0
772
1860
  );
773
- }), mn = p((t, n) => {
774
- const { className: e, children: o, ...r } = t;
775
- c(r);
776
- const s = g();
777
- return /* @__PURE__ */ a(
778
- s.DropdownMenu.DropdownMenuLabel,
779
- {
780
- className: e,
781
- ref: n,
782
- children: o
783
- }
1861
+ }), at = x((t, o) => {
1862
+ const { className: n, children: r, ...a } = t;
1863
+ k(a);
1864
+ const l = E();
1865
+ return /* @__PURE__ */ s.jsxDEV(
1866
+ l.DropdownMenu.DropdownMenuLabel,
1867
+ {
1868
+ className: n,
1869
+ ref: o,
1870
+ children: r
1871
+ },
1872
+ void 0,
1873
+ !1,
1874
+ {
1875
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
1876
+ lineNumber: 203,
1877
+ columnNumber: 5
1878
+ },
1879
+ void 0
784
1880
  );
785
- }), un = p((t, n) => {
1881
+ }), it = x((t, o) => {
786
1882
  const {
787
- className: e,
788
- tabs: o,
789
- defaultOpenTab: r,
790
- openTab: s,
791
- setOpenTab: i,
792
- loading: u,
1883
+ className: n,
1884
+ tabs: r,
1885
+ defaultOpenTab: a,
1886
+ openTab: l,
1887
+ setOpenTab: u,
1888
+ loading: g,
793
1889
  // TODO: implement loader
794
- ...m
1890
+ ...p
795
1891
  } = t;
796
- c(m);
797
- const b = g();
798
- return /* @__PURE__ */ v(
799
- b.Tabs.Tabs,
1892
+ k(p);
1893
+ const m = E();
1894
+ return /* @__PURE__ */ s.jsxDEV(
1895
+ m.Tabs.Tabs,
800
1896
  {
801
- className: d(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
802
- ref: n,
803
- value: s,
804
- defaultValue: r,
805
- onValueChange: i,
1897
+ className: d(n, "bn-bg-popover bn-p-2 bn-rounded-lg"),
1898
+ ref: o,
1899
+ value: l,
1900
+ defaultValue: a,
1901
+ onValueChange: u,
806
1902
  children: [
807
- /* @__PURE__ */ a(b.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(b.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
808
- o.map((f) => /* @__PURE__ */ a(b.Tabs.TabsContent, { value: f.name, children: /* @__PURE__ */ a(b.Card.Card, { children: /* @__PURE__ */ a(b.Card.CardContent, { className: "bn-p-4", children: f.tabPanel }) }) }, f.name))
1903
+ /* @__PURE__ */ s.jsxDEV(m.Tabs.TabsList, { children: r.map((D) => /* @__PURE__ */ s.jsxDEV(m.Tabs.TabsTrigger, { value: D.name, children: D.name }, D.name, !1, {
1904
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1905
+ lineNumber: 37,
1906
+ columnNumber: 11
1907
+ }, void 0)) }, void 0, !1, {
1908
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1909
+ lineNumber: 35,
1910
+ columnNumber: 7
1911
+ }, void 0),
1912
+ r.map((D) => /* @__PURE__ */ s.jsxDEV(m.Tabs.TabsContent, { value: D.name, children: /* @__PURE__ */ s.jsxDEV(m.Card.Card, { children: /* @__PURE__ */ s.jsxDEV(m.Card.CardContent, { className: "bn-p-4", children: D.tabPanel }, void 0, !1, {
1913
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1914
+ lineNumber: 46,
1915
+ columnNumber: 13
1916
+ }, void 0) }, void 0, !1, {
1917
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1918
+ lineNumber: 45,
1919
+ columnNumber: 11
1920
+ }, void 0) }, D.name, !1, {
1921
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1922
+ lineNumber: 44,
1923
+ columnNumber: 9
1924
+ }, void 0))
809
1925
  ]
810
- }
1926
+ },
1927
+ void 0,
1928
+ !0,
1929
+ {
1930
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
1931
+ lineNumber: 27,
1932
+ columnNumber: 5
1933
+ },
1934
+ void 0
811
1935
  );
812
- }), pn = p((t, n) => {
813
- const { className: e, children: o, ...r } = t;
814
- return c(r), /* @__PURE__ */ a(
1936
+ }), ct = x((t, o) => {
1937
+ const { className: n, children: r, ...a } = t;
1938
+ return k(a), /* @__PURE__ */ s.jsxDEV(
815
1939
  "div",
816
1940
  {
817
1941
  className: d(
818
- e,
1942
+ n,
819
1943
  "bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
820
1944
  ),
821
- ref: n,
822
- children: o
823
- }
1945
+ ref: o,
1946
+ children: r
1947
+ },
1948
+ void 0,
1949
+ !1,
1950
+ {
1951
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/PanelTab.tsx",
1952
+ lineNumber: 16,
1953
+ columnNumber: 5
1954
+ },
1955
+ void 0
824
1956
  );
825
- }), fn = p((t, n) => {
826
- const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: i, ...u } = t;
827
- c(u);
828
- const m = g();
829
- return /* @__PURE__ */ a(
830
- m.Input.Input,
1957
+ }), lt = x((t, o) => {
1958
+ const { className: n, value: r, placeholder: a, onKeyDown: l, onChange: u, ...g } = t;
1959
+ k(g);
1960
+ const p = E();
1961
+ return /* @__PURE__ */ s.jsxDEV(
1962
+ p.Input.Input,
831
1963
  {
832
1964
  "data-test": "embed-input",
833
- className: d(e, "bn-w-80"),
834
- ref: n,
835
- value: o,
836
- placeholder: r,
837
- onKeyDown: s,
838
- onChange: i
839
- }
1965
+ className: d(n, "bn-w-80"),
1966
+ ref: o,
1967
+ value: r,
1968
+ placeholder: a,
1969
+ onKeyDown: l,
1970
+ onChange: u
1971
+ },
1972
+ void 0,
1973
+ !1,
1974
+ {
1975
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/PanelTextInput.tsx",
1976
+ lineNumber: 19,
1977
+ columnNumber: 5
1978
+ },
1979
+ void 0
840
1980
  );
841
- }), gn = (t) => {
1981
+ }), ut = (t) => {
842
1982
  const {
843
- children: n,
844
- opened: e,
845
- position: o,
1983
+ children: o,
1984
+ opened: n,
1985
+ position: r,
846
1986
  // unused
847
- ...r
1987
+ ...a
848
1988
  } = t;
849
- c(r);
850
- const s = g();
851
- return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: n });
852
- }, hn = p(
853
- (t, n) => {
854
- const { children: e, ...o } = t;
855
- c(o);
856
- const r = g();
857
- return /* @__PURE__ */ a(r.Popover.PopoverTrigger, { ref: n, asChild: !0, children: e });
1989
+ k(a);
1990
+ const l = E();
1991
+ return /* @__PURE__ */ s.jsxDEV(l.Popover.Popover, { open: n, children: o }, void 0, !1, {
1992
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/popover/popover.tsx",
1993
+ lineNumber: 23,
1994
+ columnNumber: 5
1995
+ }, void 0);
1996
+ }, dt = x(
1997
+ (t, o) => {
1998
+ const { children: n, ...r } = t;
1999
+ k(r);
2000
+ const a = E();
2001
+ return /* @__PURE__ */ s.jsxDEV(a.Popover.PopoverTrigger, { ref: o, asChild: !0, children: n }, void 0, !1, {
2002
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/popover/popover.tsx",
2003
+ lineNumber: 38,
2004
+ columnNumber: 7
2005
+ }, void 0);
858
2006
  }
859
- ), vn = p((t, n) => {
860
- const { className: e, variant: o, children: r, ...s } = t;
861
- c(s);
862
- const i = g();
863
- return /* @__PURE__ */ a(
864
- i.Popover.PopoverContent,
2007
+ ), mt = x((t, o) => {
2008
+ const { className: n, variant: r, children: a, ...l } = t;
2009
+ k(l);
2010
+ const u = E();
2011
+ return /* @__PURE__ */ s.jsxDEV(
2012
+ u.Popover.PopoverContent,
865
2013
  {
866
2014
  sideOffset: 8,
867
2015
  className: d(
868
- e,
2016
+ n,
869
2017
  "bn-flex bn-flex-col bn-gap-2",
870
- o === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
2018
+ r === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
871
2019
  ),
872
- ref: n,
873
- children: r
874
- }
2020
+ ref: o,
2021
+ children: a
2022
+ },
2023
+ void 0,
2024
+ !1,
2025
+ {
2026
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/popover/popover.tsx",
2027
+ lineNumber: 56,
2028
+ columnNumber: 5
2029
+ },
2030
+ void 0
875
2031
  );
876
- }), Nn = p((t, n) => {
877
- const { className: e, children: o, ...r } = t;
878
- return c(r, !1), /* @__PURE__ */ a("div", { className: e, ref: n, ...r, children: o });
879
- }), xn = p((t, n) => {
2032
+ }), bt = x((t, o) => {
2033
+ const { className: n, children: r, ...a } = t;
2034
+ return k(a, !1), /* @__PURE__ */ s.jsxDEV("div", { className: n, ref: o, ...a, children: r }, void 0, !1, {
2035
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/sideMenu/SideMenu.tsx",
2036
+ lineNumber: 14,
2037
+ columnNumber: 5
2038
+ }, void 0);
2039
+ }), ft = x((t, o) => {
880
2040
  const {
881
- className: e,
882
- children: o,
883
- icon: r,
884
- onClick: s,
885
- onDragEnd: i,
886
- onDragStart: u,
887
- draggable: m,
888
- label: b,
889
- ...f
2041
+ className: n,
2042
+ children: r,
2043
+ icon: a,
2044
+ onClick: l,
2045
+ onDragEnd: u,
2046
+ onDragStart: g,
2047
+ draggable: p,
2048
+ label: m,
2049
+ ...D
890
2050
  } = t;
891
- c(f, !1);
892
- const x = g();
893
- return /* @__PURE__ */ v(
894
- x.Button.Button,
2051
+ k(D, !1);
2052
+ const j = E();
2053
+ return /* @__PURE__ */ s.jsxDEV(
2054
+ j.Button.Button,
895
2055
  {
896
2056
  variant: "ghost",
897
- className: d(e, "bn-text-gray-400"),
898
- ref: n,
899
- "aria-label": b,
900
- onClick: s,
901
- onDragStart: u,
902
- onDragEnd: i,
903
- draggable: m,
904
- ...f,
2057
+ className: d(n, "bn-text-gray-400"),
2058
+ ref: o,
2059
+ "aria-label": m,
2060
+ onClick: l,
2061
+ onDragStart: g,
2062
+ onDragEnd: u,
2063
+ draggable: p,
2064
+ ...D,
905
2065
  children: [
906
- r,
907
- o
2066
+ a,
2067
+ r
908
2068
  ]
909
- }
2069
+ },
2070
+ void 0,
2071
+ !0,
2072
+ {
2073
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/sideMenu/SideMenuButton.tsx",
2074
+ lineNumber: 31,
2075
+ columnNumber: 5
2076
+ },
2077
+ void 0
910
2078
  );
911
- }), wn = p((t, n) => {
912
- const { className: e, children: o, id: r, columns: s, ...i } = t;
913
- return c(i), /* @__PURE__ */ a(
2079
+ }), pt = x((t, o) => {
2080
+ const { className: n, children: r, id: a, columns: l, ...u } = t;
2081
+ return k(u), /* @__PURE__ */ s.jsxDEV(
914
2082
  "div",
915
2083
  {
916
- className: e,
917
- style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
918
- ref: n,
919
- id: r,
2084
+ className: n,
2085
+ style: { gridTemplateColumns: `repeat(${l}, 1fr)` },
2086
+ ref: o,
2087
+ id: a,
920
2088
  role: "grid",
921
- children: o
922
- }
2089
+ children: r
2090
+ },
2091
+ void 0,
2092
+ !1,
2093
+ {
2094
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx",
2095
+ lineNumber: 14,
2096
+ columnNumber: 5
2097
+ },
2098
+ void 0
923
2099
  );
924
- }), Cn = p((t, n) => {
925
- const { className: e, children: o, columns: r, ...s } = t;
926
- return c(s), /* @__PURE__ */ a(
2100
+ }), Nt = x((t, o) => {
2101
+ const { className: n, children: r, columns: a, ...l } = t;
2102
+ return k(l), /* @__PURE__ */ s.jsxDEV(
927
2103
  "div",
928
2104
  {
929
- className: e,
930
- style: { gridColumn: `1 / ${r + 1}` },
931
- ref: n,
932
- children: o
933
- }
2105
+ className: n,
2106
+ style: { gridColumn: `1 / ${a + 1}` },
2107
+ ref: o,
2108
+ children: r
2109
+ },
2110
+ void 0,
2111
+ !1,
2112
+ {
2113
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx",
2114
+ lineNumber: 14,
2115
+ columnNumber: 5
2116
+ },
2117
+ void 0
934
2118
  );
935
- }), yn = p((t, n) => {
936
- const { className: e, children: o, id: r, ...s } = t;
937
- return c(s), /* @__PURE__ */ a(
2119
+ }), vt = x((t, o) => {
2120
+ const { className: n, children: r, id: a, ...l } = t;
2121
+ return k(l), /* @__PURE__ */ s.jsxDEV(
938
2122
  "div",
939
2123
  {
940
- id: r,
2124
+ id: a,
941
2125
  role: "listbox",
942
2126
  className: d(
943
2127
  "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",
944
- e
2128
+ n
945
2129
  ),
946
- ref: n,
947
- children: o
948
- }
2130
+ ref: o,
2131
+ children: r
2132
+ },
2133
+ void 0,
2134
+ !1,
2135
+ {
2136
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenu.tsx",
2137
+ lineNumber: 16,
2138
+ columnNumber: 5
2139
+ },
2140
+ void 0
949
2141
  );
950
- }), Sn = p((t, n) => {
951
- const { className: e, children: o, ...r } = t;
952
- return c(r), /* @__PURE__ */ a(
2142
+ }), gt = x((t, o) => {
2143
+ const { className: n, children: r, ...a } = t;
2144
+ return k(a), /* @__PURE__ */ s.jsxDEV(
953
2145
  "div",
954
2146
  {
955
2147
  className: d(
956
2148
  "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",
957
- e
2149
+ n
958
2150
  ),
959
- ref: n,
960
- children: /* @__PURE__ */ a("div", { children: o })
961
- }
2151
+ ref: o,
2152
+ children: /* @__PURE__ */ s.jsxDEV("div", { children: r }, void 0, !1, {
2153
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuEmptyItem.tsx",
2154
+ lineNumber: 23,
2155
+ columnNumber: 7
2156
+ }, void 0)
2157
+ },
2158
+ void 0,
2159
+ !1,
2160
+ {
2161
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuEmptyItem.tsx",
2162
+ lineNumber: 16,
2163
+ columnNumber: 5
2164
+ },
2165
+ void 0
962
2166
  );
963
- }), Tn = p((t, n) => {
964
- const e = g(), { className: o, item: r, isSelected: s, onClick: i, id: u, ...m } = t;
965
- c(m);
966
- const b = L(null);
967
- return z(() => {
968
- if (!b.current || !s)
2167
+ }), kt = x((t, o) => {
2168
+ const n = E(), { className: r, item: a, isSelected: l, onClick: u, id: g, ...p } = t;
2169
+ k(p);
2170
+ const m = Ae(null);
2171
+ return ze(() => {
2172
+ if (!m.current || !l)
969
2173
  return;
970
- const f = F(
971
- b.current,
2174
+ const D = We(
2175
+ m.current,
972
2176
  document.querySelector(".bn-suggestion-menu")
973
2177
  );
974
- f === "top" ? b.current.scrollIntoView(!0) : f === "bottom" && b.current.scrollIntoView(!1);
975
- }, [s]), /* @__PURE__ */ v(
2178
+ D === "top" ? m.current.scrollIntoView(!0) : D === "bottom" && m.current.scrollIntoView(!1);
2179
+ }, [l]), /* @__PURE__ */ s.jsxDEV(
976
2180
  "div",
977
2181
  {
978
2182
  className: d(
979
2183
  "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",
980
- o
2184
+ r
981
2185
  ),
982
- ref: B([n, b]),
983
- id: u,
984
- onClick: i,
2186
+ ref: Ye([o, m]),
2187
+ id: g,
2188
+ onClick: u,
985
2189
  role: "option",
986
- "aria-selected": s || void 0,
2190
+ "aria-selected": l || void 0,
987
2191
  children: [
988
- r.icon && /* @__PURE__ */ a("div", { className: "bn-p-3", "data-position": "left", children: r.icon }),
989
- /* @__PURE__ */ v("div", { className: "bn-flex-1", children: [
990
- /* @__PURE__ */ a("div", { className: "bn-text-base", children: r.title }),
991
- /* @__PURE__ */ a("div", { className: "bn-text-xs", children: r.subtext })
992
- ] }),
993
- r.badge && /* @__PURE__ */ a("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ a(e.Badge.Badge, { variant: "secondary", children: r.badge }) })
2192
+ a.icon && /* @__PURE__ */ s.jsxDEV("div", { className: "bn-p-3", "data-position": "left", children: a.icon }, void 0, !1, {
2193
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2194
+ lineNumber: 49,
2195
+ columnNumber: 9
2196
+ }, void 0),
2197
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-flex-1", children: [
2198
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-text-base", children: a.title }, void 0, !1, {
2199
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2200
+ lineNumber: 54,
2201
+ columnNumber: 9
2202
+ }, void 0),
2203
+ /* @__PURE__ */ s.jsxDEV("div", { className: "bn-text-xs", children: a.subtext }, void 0, !1, {
2204
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2205
+ lineNumber: 55,
2206
+ columnNumber: 9
2207
+ }, void 0)
2208
+ ] }, void 0, !0, {
2209
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2210
+ lineNumber: 53,
2211
+ columnNumber: 7
2212
+ }, void 0),
2213
+ a.badge && /* @__PURE__ */ s.jsxDEV("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ s.jsxDEV(n.Badge.Badge, { variant: "secondary", children: a.badge }, void 0, !1, {
2214
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2215
+ lineNumber: 59,
2216
+ columnNumber: 11
2217
+ }, void 0) }, void 0, !1, {
2218
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2219
+ lineNumber: 58,
2220
+ columnNumber: 9
2221
+ }, void 0)
994
2222
  ]
995
- }
2223
+ },
2224
+ void 0,
2225
+ !0,
2226
+ {
2227
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
2228
+ lineNumber: 37,
2229
+ columnNumber: 5
2230
+ },
2231
+ void 0
996
2232
  );
997
- }), Mn = p((t, n) => {
998
- const { className: e, children: o, ...r } = t;
999
- return c(r), /* @__PURE__ */ a(
2233
+ }), ht = x((t, o) => {
2234
+ const { className: n, children: r, ...a } = t;
2235
+ return k(a), /* @__PURE__ */ s.jsxDEV(
1000
2236
  "div",
1001
2237
  {
1002
- className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
1003
- ref: n,
1004
- children: o
1005
- }
2238
+ className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", n),
2239
+ ref: o,
2240
+ children: r
2241
+ },
2242
+ void 0,
2243
+ !1,
2244
+ {
2245
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuLabel.tsx",
2246
+ lineNumber: 16,
2247
+ columnNumber: 5
2248
+ },
2249
+ void 0
1006
2250
  );
1007
- }), In = p((t, n) => {
1008
- const { className: e, children: o, ...r } = t;
1009
- return c(r), /* @__PURE__ */ a("div", { className: e, ref: n, children: o });
1010
- }), Dn = p((t, n) => {
1011
- const { className: e, children: o, onMouseDown: r, onClick: s, ...i } = t;
1012
- c(i, !1);
1013
- const u = g();
1014
- return /* @__PURE__ */ a(
1015
- u.Button.Button,
2251
+ }), xt = x((t, o) => {
2252
+ const { className: n, children: r, ...a } = t;
2253
+ return k(a), /* @__PURE__ */ s.jsxDEV("div", { className: n, ref: o, children: r }, void 0, !1, {
2254
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuLoader.tsx",
2255
+ lineNumber: 14,
2256
+ columnNumber: 5
2257
+ }, void 0);
2258
+ }), Dt = x((t, o) => {
2259
+ const { className: n, children: r, onMouseDown: a, onClick: l, ...u } = t;
2260
+ k(u, !1);
2261
+ const g = E();
2262
+ return /* @__PURE__ */ s.jsxDEV(
2263
+ g.Button.Button,
1016
2264
  {
1017
2265
  variant: "ghost",
1018
2266
  className: d(
1019
- e,
2267
+ n,
1020
2268
  "bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
1021
- e != null && e.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
1022
- e != null && e.includes("bn-extend-button-editing") ? "bn-bg-accent bn-text-accent-foreground" : ""
2269
+ n != null && n.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
2270
+ n != null && n.includes("bn-extend-button-editing") ? "bn-bg-accent bn-text-accent-foreground" : ""
1023
2271
  ),
1024
- ref: n,
1025
- onClick: s,
1026
- onMouseDown: r,
1027
- ...i,
1028
- children: o
1029
- }
2272
+ ref: o,
2273
+ onClick: l,
2274
+ onMouseDown: a,
2275
+ ...u,
2276
+ children: r
2277
+ },
2278
+ void 0,
2279
+ !1,
2280
+ {
2281
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/tableHandle/ExtendButton.tsx",
2282
+ lineNumber: 21,
2283
+ columnNumber: 5
2284
+ },
2285
+ void 0
1030
2286
  );
1031
- }), Rn = p((t, n) => {
2287
+ }), yt = x((t, o) => {
1032
2288
  const {
1033
- className: e,
1034
- children: o,
1035
- draggable: r,
1036
- onDragStart: s,
1037
- onDragEnd: i,
1038
- style: u,
1039
- label: m,
1040
- ...b
2289
+ className: n,
2290
+ children: r,
2291
+ draggable: a,
2292
+ onDragStart: l,
2293
+ onDragEnd: u,
2294
+ style: g,
2295
+ label: p,
2296
+ ...m
1041
2297
  } = t;
1042
- c(b, !1);
1043
- const f = g();
1044
- return /* @__PURE__ */ a(
1045
- f.Button.Button,
2298
+ k(m, !1);
2299
+ const D = E();
2300
+ return /* @__PURE__ */ s.jsxDEV(
2301
+ D.Button.Button,
1046
2302
  {
1047
2303
  variant: "ghost",
1048
- className: d(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1049
- ref: n,
1050
- "aria-label": m,
1051
- draggable: r,
1052
- onDragStart: s,
1053
- onDragEnd: i,
1054
- style: u,
1055
- ...b,
1056
- children: o
1057
- }
2304
+ className: d(n, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
2305
+ ref: o,
2306
+ "aria-label": p,
2307
+ draggable: a,
2308
+ onDragStart: l,
2309
+ onDragEnd: u,
2310
+ style: g,
2311
+ ...m,
2312
+ children: r
2313
+ },
2314
+ void 0,
2315
+ !1,
2316
+ {
2317
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/tableHandle/TableHandle.tsx",
2318
+ lineNumber: 30,
2319
+ columnNumber: 5
2320
+ },
2321
+ void 0
1058
2322
  );
1059
- }), R = p(
1060
- (t, n) => {
1061
- const { className: e, children: o, onMouseEnter: r, onMouseLeave: s, ...i } = t;
1062
- c(i);
1063
- const u = g();
1064
- return /* @__PURE__ */ a(u.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
2323
+ }), Oe = x(
2324
+ (t, o) => {
2325
+ const { className: n, children: r, onMouseEnter: a, onMouseLeave: l, ...u } = t;
2326
+ k(u);
2327
+ const g = E();
2328
+ return /* @__PURE__ */ s.jsxDEV(g.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ s.jsxDEV(
1065
2329
  "div",
1066
2330
  {
1067
2331
  className: d(
1068
- e,
2332
+ n,
1069
2333
  "bn-flex bn-gap-1 bn-p-1 bn-bg-popover bn-text-popover-foreground bn-border bn-rounded-lg bn-shadow-md"
1070
2334
  ),
1071
- ref: n,
1072
- onMouseEnter: r,
1073
- onMouseLeave: s,
1074
- children: o
1075
- }
1076
- ) });
2335
+ ref: o,
2336
+ onMouseEnter: a,
2337
+ onMouseLeave: l,
2338
+ children: r
2339
+ },
2340
+ void 0,
2341
+ !1,
2342
+ {
2343
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2344
+ lineNumber: 21,
2345
+ columnNumber: 9
2346
+ },
2347
+ void 0
2348
+ ) }, void 0, !1, {
2349
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2350
+ lineNumber: 20,
2351
+ columnNumber: 7
2352
+ }, void 0);
1077
2353
  }
1078
- ), P = p(
1079
- (t, n) => {
2354
+ ), Le = x(
2355
+ (t, o) => {
1080
2356
  const {
1081
- className: e,
1082
- children: o,
1083
- mainTooltip: r,
1084
- secondaryTooltip: s,
1085
- icon: i,
1086
- isSelected: u,
1087
- isDisabled: m,
1088
- onClick: b,
1089
- label: f,
1090
- ...x
2357
+ className: n,
2358
+ children: r,
2359
+ mainTooltip: a,
2360
+ secondaryTooltip: l,
2361
+ icon: u,
2362
+ isSelected: g,
2363
+ isDisabled: p,
2364
+ onClick: m,
2365
+ label: D,
2366
+ ...j
1091
2367
  } = t;
1092
- c(x, !1);
1093
- const w = g(), y = u === void 0 ? /* @__PURE__ */ v(
1094
- w.Button.Button,
2368
+ k(j, !1);
2369
+ const M = E(), P = g === void 0 ? /* @__PURE__ */ s.jsxDEV(
2370
+ M.Button.Button,
1095
2371
  {
1096
- className: e,
2372
+ className: n,
1097
2373
  variant: "ghost",
1098
- disabled: m,
1099
- onClick: b,
1100
- ref: n,
1101
- "aria-label": f,
1102
- ...x,
2374
+ disabled: p,
2375
+ onClick: m,
2376
+ ref: o,
2377
+ "aria-label": D,
2378
+ ...j,
1103
2379
  children: [
1104
- i,
1105
- o
2380
+ u,
2381
+ r
1106
2382
  ]
1107
- }
1108
- ) : /* @__PURE__ */ v(
1109
- w.Toggle.Toggle,
2383
+ },
2384
+ void 0,
2385
+ !0,
2386
+ {
2387
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2388
+ lineNumber: 62,
2389
+ columnNumber: 9
2390
+ },
2391
+ void 0
2392
+ ) : /* @__PURE__ */ s.jsxDEV(
2393
+ M.Toggle.Toggle,
1110
2394
  {
1111
2395
  className: d(
1112
- e,
2396
+ n,
1113
2397
  "data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground"
1114
2398
  ),
1115
- "aria-label": f,
1116
- onClick: b,
1117
- pressed: u,
1118
- disabled: m,
1119
- "data-state": u ? "on" : "off",
1120
- "data-disabled": m,
1121
- ref: n,
1122
- ...x,
2399
+ "aria-label": D,
2400
+ onClick: m,
2401
+ pressed: g,
2402
+ disabled: p,
2403
+ "data-state": g ? "on" : "off",
2404
+ "data-disabled": p,
2405
+ ref: o,
2406
+ ...j,
1123
2407
  children: [
1124
- i,
1125
- o
2408
+ u,
2409
+ r
1126
2410
  ]
1127
- }
2411
+ },
2412
+ void 0,
2413
+ !0,
2414
+ {
2415
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2416
+ lineNumber: 74,
2417
+ columnNumber: 9
2418
+ },
2419
+ void 0
1128
2420
  );
1129
- return /* @__PURE__ */ v(w.Tooltip.Tooltip, { children: [
1130
- /* @__PURE__ */ a(w.Tooltip.TooltipTrigger, { asChild: !0, children: y }),
1131
- /* @__PURE__ */ v(
1132
- w.Tooltip.TooltipContent,
2421
+ return /* @__PURE__ */ s.jsxDEV(M.Tooltip.Tooltip, { children: [
2422
+ /* @__PURE__ */ s.jsxDEV(M.Tooltip.TooltipTrigger, { asChild: !0, children: P }, void 0, !1, {
2423
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2424
+ lineNumber: 94,
2425
+ columnNumber: 9
2426
+ }, void 0),
2427
+ /* @__PURE__ */ s.jsxDEV(
2428
+ M.Tooltip.TooltipContent,
1133
2429
  {
1134
2430
  className: "bn-flex bn-flex-col bn-items-center",
1135
2431
  children: [
1136
- /* @__PURE__ */ a("span", { children: r }),
1137
- s && /* @__PURE__ */ a("span", { children: s })
2432
+ /* @__PURE__ */ s.jsxDEV("span", { children: a }, void 0, !1, {
2433
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2434
+ lineNumber: 99,
2435
+ columnNumber: 11
2436
+ }, void 0),
2437
+ l && /* @__PURE__ */ s.jsxDEV("span", { children: l }, void 0, !1, {
2438
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2439
+ lineNumber: 100,
2440
+ columnNumber: 32
2441
+ }, void 0)
1138
2442
  ]
1139
- }
2443
+ },
2444
+ void 0,
2445
+ !0,
2446
+ {
2447
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2448
+ lineNumber: 97,
2449
+ columnNumber: 9
2450
+ },
2451
+ void 0
1140
2452
  )
1141
- ] });
2453
+ ] }, void 0, !0, {
2454
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2455
+ lineNumber: 93,
2456
+ columnNumber: 7
2457
+ }, void 0);
1142
2458
  }
1143
- ), Pn = p((t, n) => {
1144
- const { className: e, items: o, isDisabled: r, ...s } = t;
1145
- c(s);
1146
- const i = g(), u = (b) => /* @__PURE__ */ v("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1147
- b.icon,
1148
- b.text
1149
- ] }), m = o.filter((b) => b.isSelected)[0];
1150
- return m ? /* @__PURE__ */ v(
1151
- i.Select.Select,
1152
- {
1153
- value: m.text,
1154
- onValueChange: (b) => {
1155
- var f, x;
1156
- return (x = (f = o.find((w) => w.text === b)).onClick) == null ? void 0 : x.call(f);
2459
+ ), Et = x((t, o) => {
2460
+ const { className: n, items: r, isDisabled: a, ...l } = t;
2461
+ k(l);
2462
+ const u = E(), g = (m) => /* @__PURE__ */ s.jsxDEV("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
2463
+ m.icon,
2464
+ m.text
2465
+ ] }, void 0, !0, {
2466
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2467
+ lineNumber: 119,
2468
+ columnNumber: 5
2469
+ }, void 0), p = r.filter((m) => m.isSelected)[0];
2470
+ return p ? /* @__PURE__ */ s.jsxDEV(
2471
+ u.Select.Select,
2472
+ {
2473
+ value: p.text,
2474
+ onValueChange: (m) => {
2475
+ var D, j;
2476
+ return (j = (D = r.find((M) => M.text === m)).onClick) == null ? void 0 : j.call(D);
1157
2477
  },
1158
- disabled: r,
2478
+ disabled: a,
1159
2479
  children: [
1160
- /* @__PURE__ */ a(i.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(i.Select.SelectValue, {}) }),
1161
- /* @__PURE__ */ a(i.Select.SelectContent, { className: e, ref: n, children: o.map((b) => /* @__PURE__ */ a(
1162
- i.Select.SelectItem,
2480
+ /* @__PURE__ */ s.jsxDEV(u.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ s.jsxDEV(u.Select.SelectValue, {}, void 0, !1, {
2481
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2482
+ lineNumber: 139,
2483
+ columnNumber: 9
2484
+ }, void 0) }, void 0, !1, {
2485
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2486
+ lineNumber: 138,
2487
+ columnNumber: 7
2488
+ }, void 0),
2489
+ /* @__PURE__ */ s.jsxDEV(u.Select.SelectContent, { className: n, ref: o, children: r.map((m) => /* @__PURE__ */ s.jsxDEV(
2490
+ u.Select.SelectItem,
2491
+ {
2492
+ disabled: m.isDisabled,
2493
+ value: m.text,
2494
+ children: /* @__PURE__ */ s.jsxDEV(g, { ...m }, void 0, !1, {
2495
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2496
+ lineNumber: 147,
2497
+ columnNumber: 13
2498
+ }, void 0)
2499
+ },
2500
+ m.text,
2501
+ !1,
1163
2502
  {
1164
- disabled: b.isDisabled,
1165
- value: b.text,
1166
- children: /* @__PURE__ */ a(u, { ...b })
2503
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2504
+ lineNumber: 143,
2505
+ columnNumber: 11
1167
2506
  },
1168
- b.text
1169
- )) })
2507
+ void 0
2508
+ )) }, void 0, !1, {
2509
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2510
+ lineNumber: 141,
2511
+ columnNumber: 7
2512
+ }, void 0)
1170
2513
  ]
1171
- }
2514
+ },
2515
+ void 0,
2516
+ !0,
2517
+ {
2518
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2519
+ lineNumber: 132,
2520
+ columnNumber: 5
2521
+ },
2522
+ void 0
1172
2523
  ) : null;
1173
- }), Fn = p((t, n) => {
1174
- const { className: e, children: o, onClick: r, label: s, ...i } = t;
1175
- c(i);
1176
- const u = g();
1177
- return /* @__PURE__ */ a(
1178
- u.Button.Button,
2524
+ }), wt = x((t, o) => {
2525
+ const { className: n, children: r, onClick: a, label: l, ...u } = t;
2526
+ k(u);
2527
+ const g = E();
2528
+ return /* @__PURE__ */ s.jsxDEV(
2529
+ g.Button.Button,
1179
2530
  {
1180
2531
  type: "submit",
1181
- className: e,
1182
- "aria-label": s,
1183
- ref: n,
1184
- onClick: r,
1185
- children: o
1186
- }
2532
+ className: n,
2533
+ "aria-label": l,
2534
+ ref: o,
2535
+ onClick: a,
2536
+ children: r
2537
+ },
2538
+ void 0,
2539
+ !1,
2540
+ {
2541
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/PanelButton.tsx",
2542
+ lineNumber: 18,
2543
+ columnNumber: 5
2544
+ },
2545
+ void 0
1187
2546
  );
1188
- }), Bn = p((t, n) => {
1189
- const { className: e, accept: o, value: r, placeholder: s, onChange: i, ...u } = t;
1190
- c(u);
1191
- const m = g();
1192
- return /* @__PURE__ */ a(
1193
- m.Input.Input,
2547
+ }), Ct = x((t, o) => {
2548
+ const { className: n, accept: r, value: a, placeholder: l, onChange: u, ...g } = t;
2549
+ k(g);
2550
+ const p = E();
2551
+ return /* @__PURE__ */ s.jsxDEV(
2552
+ p.Input.Input,
1194
2553
  {
1195
2554
  type: "file",
1196
- className: e,
1197
- ref: n,
1198
- accept: o,
1199
- value: r ? r.name : void 0,
1200
- onChange: async (b) => i == null ? void 0 : i(b.target.files[0]),
1201
- placeholder: s
1202
- }
2555
+ className: n,
2556
+ ref: o,
2557
+ accept: r,
2558
+ value: a ? a.name : void 0,
2559
+ onChange: async (m) => u == null ? void 0 : u(m.target.files[0]),
2560
+ placeholder: l
2561
+ },
2562
+ void 0,
2563
+ !1,
2564
+ {
2565
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/PanelFileInput.tsx",
2566
+ lineNumber: 18,
2567
+ columnNumber: 5
2568
+ },
2569
+ void 0
1203
2570
  );
1204
- }), kn = p((t, n) => {
1205
- const { className: e, isSelected: o, onClick: r, item: s, id: i, ...u } = t;
1206
- c(u);
1207
- const m = L(null);
1208
- return z(() => {
1209
- if (!m.current || !o)
2571
+ }), St = x((t, o) => {
2572
+ const { className: n, isSelected: r, onClick: a, item: l, id: u, ...g } = t;
2573
+ k(g);
2574
+ const p = Ae(null);
2575
+ return ze(() => {
2576
+ if (!p.current || !r)
1210
2577
  return;
1211
- const b = F(
1212
- m.current,
2578
+ const m = We(
2579
+ p.current,
1213
2580
  document.querySelector(".bn-grid-suggestion-menu")
1214
2581
  );
1215
- b === "top" ? m.current.scrollIntoView(!0) : b === "bottom" && m.current.scrollIntoView(!1);
1216
- }, [o]), /* @__PURE__ */ a(
2582
+ m === "top" ? p.current.scrollIntoView(!0) : m === "bottom" && p.current.scrollIntoView(!1);
2583
+ }, [r]), /* @__PURE__ */ s.jsxDEV(
1217
2584
  "div",
1218
2585
  {
1219
- className: e,
1220
- ref: B([n, m]),
1221
- id: i,
2586
+ className: n,
2587
+ ref: Ye([o, p]),
2588
+ id: u,
1222
2589
  role: "option",
1223
- onClick: r,
1224
- "aria-selected": o || void 0,
1225
- children: s.icon
1226
- }
2590
+ onClick: a,
2591
+ "aria-selected": r || void 0,
2592
+ children: l.icon
2593
+ },
2594
+ void 0,
2595
+ !1,
2596
+ {
2597
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx",
2598
+ lineNumber: 33,
2599
+ columnNumber: 5
2600
+ },
2601
+ void 0
1227
2602
  );
1228
- }), Ln = p((t, n) => {
2603
+ }), Tt = x((t, o) => {
1229
2604
  const {
1230
- className: e,
1231
- children: o,
2605
+ className: n,
2606
+ children: r,
1232
2607
  // unused, using "dots" instead
1233
- columns: r,
1234
- ...s
2608
+ columns: a,
2609
+ ...l
1235
2610
  } = t;
1236
- return c(s), /* @__PURE__ */ a(
2611
+ return k(l), /* @__PURE__ */ s.jsxDEV(
1237
2612
  "div",
1238
2613
  {
1239
- className: e,
1240
- style: { gridColumn: `1 / ${r + 1}` },
1241
- ref: n,
1242
- children: o
1243
- }
2614
+ className: n,
2615
+ style: { gridColumn: `1 / ${a + 1}` },
2616
+ ref: o,
2617
+ children: r
2618
+ },
2619
+ void 0,
2620
+ !1,
2621
+ {
2622
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx",
2623
+ lineNumber: 19,
2624
+ columnNumber: 5
2625
+ },
2626
+ void 0
1244
2627
  );
1245
- }), zn = {
2628
+ }), jt = {
1246
2629
  FormattingToolbar: {
1247
- Root: R,
1248
- Button: P,
1249
- Select: Pn
2630
+ Root: Oe,
2631
+ Button: Le,
2632
+ Select: Et
1250
2633
  },
1251
2634
  FilePanel: {
1252
- Root: un,
1253
- Button: Fn,
1254
- FileInput: Bn,
1255
- TabPanel: pn,
1256
- TextInput: fn
2635
+ Root: it,
2636
+ Button: wt,
2637
+ FileInput: Ct,
2638
+ TabPanel: ct,
2639
+ TextInput: lt
1257
2640
  },
1258
2641
  LinkToolbar: {
1259
- Root: R,
1260
- Button: P
2642
+ Root: Oe,
2643
+ Button: Le
1261
2644
  },
1262
2645
  SideMenu: {
1263
- Root: Nn,
1264
- Button: xn
2646
+ Root: bt,
2647
+ Button: ft
1265
2648
  },
1266
2649
  SuggestionMenu: {
1267
- Root: yn,
1268
- Item: Tn,
1269
- EmptyItem: Sn,
1270
- Label: Mn,
1271
- Loader: In
2650
+ Root: vt,
2651
+ Item: kt,
2652
+ EmptyItem: gt,
2653
+ Label: ht,
2654
+ Loader: xt
1272
2655
  },
1273
2656
  GridSuggestionMenu: {
1274
- Root: wn,
1275
- Item: kn,
1276
- EmptyItem: Cn,
1277
- Loader: Ln
2657
+ Root: pt,
2658
+ Item: St,
2659
+ EmptyItem: Nt,
2660
+ Loader: Tt
1278
2661
  },
1279
2662
  TableHandle: {
1280
- Root: Rn,
1281
- ExtendButton: Dn
2663
+ Root: yt,
2664
+ ExtendButton: Dt
1282
2665
  },
1283
2666
  Generic: {
1284
2667
  Form: {
1285
- Root: on,
1286
- TextInput: rn
2668
+ Root: Zo,
2669
+ TextInput: Qo
1287
2670
  },
1288
2671
  Menu: {
1289
- Root: sn,
1290
- Trigger: dn,
1291
- Dropdown: bn,
1292
- Divider: cn,
1293
- Label: mn,
1294
- Item: ln
2672
+ Root: nt,
2673
+ Trigger: ot,
2674
+ Dropdown: tt,
2675
+ Divider: st,
2676
+ Label: at,
2677
+ Item: rt
1295
2678
  },
1296
2679
  Popover: {
1297
- Root: gn,
1298
- Trigger: hn,
1299
- Content: vn
2680
+ Root: ut,
2681
+ Trigger: dt,
2682
+ Content: mt
1300
2683
  }
1301
2684
  }
1302
- }, Wn = (t) => {
1303
- const { className: n, shadCNComponents: e, ...o } = t, r = k(() => ({
1304
- ...tn,
1305
- ...e
1306
- }), [e]);
1307
- return /* @__PURE__ */ a(ce.Provider, { value: r, children: /* @__PURE__ */ a(pe.Provider, { value: zn, children: /* @__PURE__ */ a(
1308
- fe,
1309
- {
1310
- className: ue("bn-shadcn", n || ""),
1311
- ...o
1312
- }
1313
- ) }) });
2685
+ }, Ot = (t) => {
2686
+ const { className: o, shadCNComponents: n, ...r } = t, a = $e(() => ({
2687
+ ...Xo,
2688
+ ...n
2689
+ }), [n]);
2690
+ return /* @__PURE__ */ s.jsxDEV(Dn.Provider, { value: a, children: /* @__PURE__ */ s.jsxDEV(co.Provider, { value: jt, children: /* @__PURE__ */ s.jsxDEV(
2691
+ lo,
2692
+ {
2693
+ className: io("bn-shadcn", o || ""),
2694
+ ...r
2695
+ },
2696
+ void 0,
2697
+ !1,
2698
+ {
2699
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/index.tsx",
2700
+ lineNumber: 136,
2701
+ columnNumber: 9
2702
+ },
2703
+ void 0
2704
+ ) }, void 0, !1, {
2705
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/index.tsx",
2706
+ lineNumber: 135,
2707
+ columnNumber: 7
2708
+ }, void 0) }, void 0, !1, {
2709
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/index.tsx",
2710
+ lineNumber: 134,
2711
+ columnNumber: 5
2712
+ }, void 0);
1314
2713
  };
1315
2714
  export {
1316
- Wn as BlockNoteView,
1317
- zn as components
2715
+ Ot as BlockNoteView,
2716
+ jt as components
1318
2717
  };
1319
2718
  //# sourceMappingURL=blocknote-shadcn.js.map