@blocknote/shadcn 0.23.2 → 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,450 +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
- type: "button",
75
- ...r
76
- }
77
- )
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
+ }
78
717
  );
79
- O.displayName = "Button";
80
- 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(
81
720
  "div",
82
721
  {
83
- ref: e,
722
+ ref: n,
84
723
  className: d(
85
724
  "bn-rounded-lg bn-border bn-bg-card bn-text-card-foreground bn-shadow-sm",
86
725
  t
87
726
  ),
88
- ...n
89
- }
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
90
737
  ));
91
- H.displayName = "Card";
92
- 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(
93
740
  "div",
94
741
  {
95
- ref: e,
742
+ ref: n,
96
743
  className: d("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", t),
97
- ...n
98
- }
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
99
754
  ));
100
- Re.displayName = "CardHeader";
101
- 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(
102
757
  "h3",
103
758
  {
104
- ref: e,
759
+ ref: n,
105
760
  className: d(
106
761
  "bn-text-2xl bn-font-semibold bn-leading-none bn-tracking-tight",
107
762
  t
108
763
  ),
109
- ...n
110
- }
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
111
774
  ));
112
- Pe.displayName = "CardTitle";
113
- 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(
114
777
  "p",
115
778
  {
116
- ref: e,
779
+ ref: n,
117
780
  className: d("bn-text-sm bn-text-muted-foreground", t),
118
- ...n
119
- }
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
120
791
  ));
121
- Fe.displayName = "CardDescription";
122
- const K = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a("div", { ref: e, className: d("bn-p-6 bn-pt-0", t), ...n }));
123
- K.displayName = "CardContent";
124
- 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(
125
800
  "div",
126
801
  {
127
- ref: e,
802
+ ref: n,
128
803
  className: d("bn-flex bn-items-center bn-p-6 bn-pt-0", t),
129
- ...n
130
- }
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
131
814
  ));
132
- Be.displayName = "CardFooter";
133
- const ke = h.Root, Le = h.Trigger, ze = h.Sub, q = l.forwardRef(({ className: t, inset: n, children: e, ...o }, r) => /* @__PURE__ */ v(
134
- 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,
135
818
  {
136
- ref: r,
819
+ ref: a,
137
820
  className: d(
138
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",
139
- n && "bn-pl-8",
822
+ o && "bn-pl-8",
140
823
  t
141
824
  ),
142
- ...o,
825
+ ...r,
143
826
  children: [
144
- e,
145
- /* @__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)
146
833
  ]
147
- }
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
148
843
  ));
149
- q.displayName = h.SubTrigger.displayName;
150
- const W = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
151
- h.SubContent,
844
+ nn.displayName = C.SubTrigger.displayName;
845
+ const on = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
846
+ C.SubContent,
152
847
  {
153
- ref: e,
848
+ ref: n,
154
849
  className: d(
155
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",
156
851
  t
157
852
  ),
158
- ...n
159
- }
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
160
863
  ));
161
- W.displayName = h.SubContent.displayName;
162
- 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) => (
163
866
  // <DropdownMenuPrimitive.Portal>
164
- /* @__PURE__ */ a(
165
- h.Content,
867
+ /* @__PURE__ */ s.jsxDEV(
868
+ C.Content,
166
869
  {
167
- ref: o,
168
- sideOffset: n,
870
+ ref: r,
871
+ sideOffset: o,
169
872
  className: d(
170
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",
171
874
  t
172
875
  ),
173
- ...e
174
- }
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
175
886
  )
176
887
  ));
177
- A.displayName = h.Content.displayName;
178
- const J = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
179
- 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,
180
891
  {
181
- ref: o,
892
+ ref: r,
182
893
  className: d(
183
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",
184
- n && "bn-pl-8",
895
+ o && "bn-pl-8",
185
896
  t
186
897
  ),
187
- ...e
188
- }
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
189
908
  ));
190
- J.displayName = h.Item.displayName;
191
- const Q = l.forwardRef(({ className: t, children: n, checked: e, ...o }, r) => /* @__PURE__ */ v(
192
- 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,
193
912
  {
194
- ref: r,
913
+ ref: a,
195
914
  className: d(
196
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",
197
916
  t
198
917
  ),
199
- checked: e,
200
- ...o,
918
+ checked: n,
919
+ ...r,
201
920
  children: [
202
- /* @__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" }) }) }),
203
- 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
204
935
  ]
205
- }
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
206
945
  ));
207
- Q.displayName = h.CheckboxItem.displayName;
208
- const Ve = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
209
- 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,
210
949
  {
211
- ref: o,
950
+ ref: r,
212
951
  className: d(
213
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",
214
953
  t
215
954
  ),
216
- ...e,
955
+ ...n,
217
956
  children: [
218
- /* @__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" }) }) }),
219
- 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
220
971
  ]
221
- }
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
222
981
  ));
223
- Ve.displayName = h.RadioItem.displayName;
224
- const X = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
225
- 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,
226
985
  {
227
- ref: o,
986
+ ref: r,
228
987
  className: d(
229
988
  "bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
230
- n && "bn-pl-8",
989
+ o && "bn-pl-8",
231
990
  t
232
991
  ),
233
- ...e
234
- }
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
235
1002
  ));
236
- X.displayName = h.Label.displayName;
237
- const Y = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
238
- h.Separator,
1003
+ an.displayName = C.Label.displayName;
1004
+ const cn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1005
+ C.Separator,
239
1006
  {
240
- ref: e,
1007
+ ref: n,
241
1008
  className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
242
- ...n
243
- }
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
244
1019
  ));
245
- Y.displayName = h.Separator.displayName;
246
- const Ee = T(
1020
+ cn.displayName = C.Separator.displayName;
1021
+ const Vo = Q(
247
1022
  "bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
248
- ), D = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
249
- G.Root,
1023
+ ), me = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1024
+ qe.Root,
250
1025
  {
251
- ref: e,
252
- className: d(Ee(), t),
253
- ...n
254
- }
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
255
1038
  ));
256
- D.displayName = G.Root.displayName;
257
- const je = ve, $e = l.createContext(
1039
+ me.displayName = qe.Root.displayName;
1040
+ const Mo = uo, Uo = f.createContext(
258
1041
  {}
259
- ), I = () => {
260
- 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);
261
1044
  if (!t)
262
1045
  throw new Error("useFormField should be used within <FormField>");
263
- const { id: s } = n;
1046
+ const { id: l } = o;
264
1047
  return {
265
- id: s,
1048
+ id: l,
266
1049
  name: t.name,
267
- formItemId: `${s}-form-item`,
268
- formDescriptionId: `${s}-form-item-description`,
269
- formMessageId: `${s}-form-item-message`,
270
- ...r
1050
+ formItemId: `${l}-form-item`,
1051
+ formDescriptionId: `${l}-form-item-description`,
1052
+ formMessageId: `${l}-form-item-message`,
1053
+ ...a
271
1054
  };
272
- }, Z = l.createContext(
1055
+ }, ln = f.createContext(
273
1056
  {}
274
- ), Ge = l.forwardRef(({ className: t, ...n }, e) => {
275
- const o = l.useId();
276
- 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);
277
1068
  });
278
- Ge.displayName = "FormItem";
279
- const Ue = l.forwardRef(({ className: t, ...n }, e) => {
280
- const { error: o, formItemId: r } = I();
281
- return /* @__PURE__ */ a(
282
- D,
283
- {
284
- ref: e,
285
- className: d(o && "bn-text-destructive", t),
286
- htmlFor: r,
287
- ...n
288
- }
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
289
1088
  );
290
1089
  });
291
- Ue.displayName = "FormLabel";
292
- const Oe = l.forwardRef(({ ...t }, n) => {
293
- const { error: e, formItemId: o, formDescriptionId: r, formMessageId: s } = I();
294
- return /* @__PURE__ */ a(
295
- 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,
296
1095
  {
297
- ref: n,
298
- id: o,
299
- "aria-describedby": e ? `${r} ${s}` : `${r}`,
300
- "aria-invalid": !!e,
1096
+ ref: o,
1097
+ id: r,
1098
+ "aria-describedby": n ? `${a} ${l}` : `${a}`,
1099
+ "aria-invalid": !!n,
301
1100
  ...t
302
- }
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
303
1110
  );
304
1111
  });
305
- Oe.displayName = "FormControl";
306
- const He = l.forwardRef(({ className: t, ...n }, e) => {
307
- const { formDescriptionId: o } = I();
308
- 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(
309
1116
  "p",
310
1117
  {
311
- ref: e,
312
- id: o,
1118
+ ref: n,
1119
+ id: r,
313
1120
  className: d("bn-text-sm bn-text-muted-foreground", t),
314
- ...n
315
- }
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
316
1131
  );
317
1132
  });
318
- He.displayName = "FormDescription";
319
- const Ke = l.forwardRef(({ className: t, children: n, ...e }, o) => {
320
- const { error: r, formMessageId: s } = I(), i = r ? String(r == null ? void 0 : r.message) : n;
321
- 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(
322
1137
  "p",
323
1138
  {
324
- ref: o,
325
- id: s,
1139
+ ref: r,
1140
+ id: l,
326
1141
  className: d("bn-text-sm bn-font-medium bn-text-destructive", t),
327
- ...e,
328
- children: i
329
- }
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
330
1153
  ) : null;
331
1154
  });
332
- Ke.displayName = "FormMessage";
333
- const _ = l.forwardRef(
334
- ({ 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(
335
1158
  "input",
336
1159
  {
337
- type: n,
1160
+ type: o,
338
1161
  className: d(
339
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",
340
1163
  t
341
1164
  ),
342
- ref: o,
343
- ...e
344
- }
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
345
1176
  )
346
1177
  );
347
- _.displayName = "Input";
348
- 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) => (
349
1180
  // <PopoverPrimitive.Portal>
350
- /* @__PURE__ */ a(
351
- M.Content,
1181
+ /* @__PURE__ */ s.jsxDEV(
1182
+ ee.Content,
352
1183
  {
353
- ref: r,
354
- align: n,
355
- sideOffset: e,
1184
+ ref: a,
1185
+ align: o,
1186
+ sideOffset: n,
356
1187
  className: d(
357
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",
358
1189
  t
359
1190
  ),
360
- ...o
361
- }
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
362
1201
  )
363
1202
  ));
364
- ee.displayName = M.Content.displayName;
365
- const Ae = N.Root, Je = N.Value, ne = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
366
- 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,
367
1206
  {
368
- ref: o,
1207
+ ref: r,
369
1208
  className: d(
370
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",
371
1210
  t
372
1211
  ),
373
- ...e,
1212
+ ...n,
374
1213
  children: [
375
- n,
376
- /* @__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)
377
1224
  ]
378
- }
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
379
1234
  ));
380
- ne.displayName = N.Trigger.displayName;
381
- const te = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
382
- N.ScrollUpButton,
1235
+ mn.displayName = T.Trigger.displayName;
1236
+ const bn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1237
+ T.ScrollUpButton,
383
1238
  {
384
- ref: e,
1239
+ ref: n,
385
1240
  className: d(
386
1241
  "bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
387
1242
  t
388
1243
  ),
389
- ...n,
390
- children: /* @__PURE__ */ a(Se, { className: "bn-h-4 bn-w-4" })
391
- }
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
392
1259
  ));
393
- te.displayName = N.ScrollUpButton.displayName;
394
- const oe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
395
- N.ScrollDownButton,
1260
+ bn.displayName = T.ScrollUpButton.displayName;
1261
+ const fn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1262
+ T.ScrollDownButton,
396
1263
  {
397
- ref: e,
1264
+ ref: n,
398
1265
  className: d(
399
1266
  "bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
400
1267
  t
401
1268
  ),
402
- ...n,
403
- children: /* @__PURE__ */ a($, { className: "bn-h-4 bn-w-4" })
404
- }
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
405
1284
  ));
406
- oe.displayName = N.ScrollDownButton.displayName;
407
- 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) => (
408
1287
  // <SelectPrimitive.Portal>
409
- /* @__PURE__ */ v(
410
- N.Content,
1288
+ /* @__PURE__ */ s.jsxDEV(
1289
+ T.Content,
411
1290
  {
412
- ref: r,
1291
+ ref: a,
413
1292
  className: d(
414
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",
415
- 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",
416
1295
  t
417
1296
  ),
418
- position: e,
419
- ...o,
1297
+ position: n,
1298
+ ...r,
420
1299
  children: [
421
- /* @__PURE__ */ a(te, {}),
422
- /* @__PURE__ */ a(
423
- 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,
424
1307
  {
425
1308
  className: d(
426
1309
  "bn-p-1",
427
- 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)]"
428
1311
  ),
429
- children: n
430
- }
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
431
1322
  ),
432
- /* @__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)
433
1328
  ]
434
- }
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
435
1338
  )
436
1339
  ));
437
- re.displayName = N.Content.displayName;
438
- const Qe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
439
- N.Label,
1340
+ pn.displayName = T.Content.displayName;
1341
+ const Wo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1342
+ T.Label,
440
1343
  {
441
- ref: e,
1344
+ ref: n,
442
1345
  className: d(
443
1346
  "bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-font-semibold",
444
1347
  t
445
1348
  ),
446
- ...n
447
- }
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
448
1359
  ));
449
- Qe.displayName = N.Label.displayName;
450
- const ae = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
451
- 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,
452
1363
  {
453
- ref: o,
1364
+ ref: r,
454
1365
  className: d(
455
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",
456
1367
  t
457
1368
  ),
458
- ...e,
1369
+ ...n,
459
1370
  children: [
460
- /* @__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" }) }) }),
461
- /* @__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)
462
1389
  ]
463
- }
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
464
1399
  ));
465
- ae.displayName = N.Item.displayName;
466
- const Xe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
467
- N.Separator,
1400
+ Nn.displayName = T.Item.displayName;
1401
+ const Yo = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1402
+ T.Separator,
468
1403
  {
469
- ref: e,
1404
+ ref: n,
470
1405
  className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
471
- ...n
472
- }
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
473
1416
  ));
474
- Xe.displayName = N.Separator.displayName;
475
- const Ye = C.Root, se = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
476
- 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,
477
1420
  {
478
- ref: e,
1421
+ ref: n,
479
1422
  className: d(
480
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",
481
1424
  t
482
1425
  ),
483
- ...n
484
- }
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
485
1436
  ));
486
- se.displayName = C.List.displayName;
487
- const ie = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
488
- C.Trigger,
1437
+ vn.displayName = O.List.displayName;
1438
+ const gn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1439
+ O.Trigger,
489
1440
  {
490
- ref: e,
1441
+ ref: n,
491
1442
  className: d(
492
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",
493
1444
  t
494
1445
  ),
495
- ...n
496
- }
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
497
1456
  ));
498
- ie.displayName = C.Trigger.displayName;
499
- const de = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
500
- C.Content,
1457
+ gn.displayName = O.Trigger.displayName;
1458
+ const kn = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
1459
+ O.Content,
501
1460
  {
502
- ref: e,
1461
+ ref: n,
503
1462
  className: d(
504
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",
505
1464
  t
506
1465
  ),
507
- ...n
508
- }
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
509
1476
  ));
510
- de.displayName = C.Content.displayName;
511
- const Ze = T(
1477
+ kn.displayName = O.Content.displayName;
1478
+ const Ko = Q(
512
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",
513
1480
  {
514
1481
  variants: {
@@ -527,794 +1494,1225 @@ const Ze = T(
527
1494
  size: "default"
528
1495
  }
529
1496
  }
530
- ), be = l.forwardRef(({ className: t, variant: n, size: e, ...o }, r) => /* @__PURE__ */ a(
531
- U.Root,
1497
+ ), hn = f.forwardRef(({ className: t, variant: o, size: n, ...r }, a) => /* @__PURE__ */ s.jsxDEV(
1498
+ Xe.Root,
532
1499
  {
533
- ref: r,
534
- className: d(Ze({ variant: n, size: e, className: t })),
535
- ...o
536
- }
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
537
1512
  ));
538
- be.displayName = U.Root.displayName;
539
- const _e = S.Provider, en = S.Root, nn = S.Trigger, le = l.forwardRef(({ className: t, sideOffset: n = 4, ...e }, o) => /* @__PURE__ */ a(
540
- 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,
541
1516
  {
542
- ref: o,
543
- sideOffset: n,
1517
+ ref: r,
1518
+ sideOffset: o,
544
1519
  className: d(
545
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",
546
1521
  t
547
1522
  ),
548
- ...e
549
- }
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
550
1533
  ));
551
- le.displayName = S.Content.displayName;
552
- const tn = {
1534
+ xn.displayName = G.Content.displayName;
1535
+ const Xo = {
553
1536
  Badge: {
554
- Badge: Ie
1537
+ Badge: Do
555
1538
  },
556
1539
  Button: {
557
- Button: O
1540
+ Button: Ze
558
1541
  },
559
1542
  Card: {
560
- Card: H,
561
- CardContent: K
1543
+ Card: Qe,
1544
+ CardContent: en
562
1545
  },
563
1546
  DropdownMenu: {
564
- DropdownMenu: ke,
565
- DropdownMenuCheckboxItem: Q,
566
- DropdownMenuContent: A,
567
- DropdownMenuItem: J,
568
- DropdownMenuLabel: X,
569
- DropdownMenuSeparator: Y,
570
- DropdownMenuSub: ze,
571
- DropdownMenuSubContent: W,
572
- DropdownMenuSubTrigger: q,
573
- 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
574
1557
  },
575
1558
  Form: {
576
- Form: je
1559
+ Form: Mo
577
1560
  },
578
1561
  Input: {
579
- Input: _
1562
+ Input: un
580
1563
  },
581
1564
  Label: {
582
- Label: D
1565
+ Label: me
583
1566
  },
584
1567
  Popover: {
585
- Popover: qe,
586
- PopoverContent: ee,
587
- PopoverTrigger: We
1568
+ Popover: Lo,
1569
+ PopoverContent: dn,
1570
+ PopoverTrigger: $o
588
1571
  },
589
1572
  Select: {
590
- Select: Ae,
591
- SelectContent: re,
592
- SelectItem: ae,
593
- SelectTrigger: ne,
594
- SelectValue: Je
1573
+ Select: Ao,
1574
+ SelectContent: pn,
1575
+ SelectItem: Nn,
1576
+ SelectTrigger: mn,
1577
+ SelectValue: zo
595
1578
  },
596
1579
  Tabs: {
597
- Tabs: Ye,
598
- TabsContent: de,
599
- TabsList: se,
600
- TabsTrigger: ie
1580
+ Tabs: Go,
1581
+ TabsContent: kn,
1582
+ TabsList: vn,
1583
+ TabsTrigger: gn
601
1584
  },
602
1585
  Toggle: {
603
- Toggle: be
1586
+ Toggle: hn
604
1587
  },
605
1588
  Tooltip: {
606
- Tooltip: en,
607
- TooltipContent: le,
608
- TooltipProvider: _e,
609
- TooltipTrigger: nn
1589
+ Tooltip: Jo,
1590
+ TooltipContent: xn,
1591
+ TooltipProvider: Ho,
1592
+ TooltipTrigger: qo
610
1593
  }
611
- }, ce = ge(void 0);
612
- function g() {
613
- return he(ce);
1594
+ }, Dn = so(void 0);
1595
+ function E() {
1596
+ return ao(Dn);
614
1597
  }
615
- const on = (t) => {
616
- const { children: n, ...e } = t;
617
- c(e);
618
- const o = g(), r = xe();
619
- return /* @__PURE__ */ a(o.Form.Form, { ...r, children: n });
620
- }, 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) => {
621
1608
  const {
622
- className: e,
623
- name: o,
624
- label: r,
625
- icon: s,
1609
+ className: n,
1610
+ name: r,
1611
+ label: a,
1612
+ icon: l,
626
1613
  // TODO: implement
627
- value: i,
628
- autoFocus: u,
629
- placeholder: m,
630
- onKeyDown: b,
631
- onChange: f,
632
- onSubmit: x,
633
- ...w
1614
+ value: u,
1615
+ autoFocus: g,
1616
+ placeholder: p,
1617
+ onKeyDown: m,
1618
+ onChange: D,
1619
+ onSubmit: j,
1620
+ ...M
634
1621
  } = t;
635
- c(w);
636
- const y = g();
637
- return r ? /* @__PURE__ */ v("div", { children: [
638
- /* @__PURE__ */ a(y.Label.Label, { htmlFor: r, children: r }),
639
- /* @__PURE__ */ a(
640
- 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,
641
1632
  {
642
- className: e,
643
- id: r,
644
- name: o,
645
- autoFocus: u,
646
- placeholder: m,
647
- value: i,
648
- onKeyDown: b,
649
- onChange: f,
650
- onSubmit: x
651
- }
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
652
1651
  )
653
- ] }) : /* @__PURE__ */ a(
654
- y.Input.Input,
655
- {
656
- "aria-label": o,
657
- name: o,
658
- autoFocus: u,
659
- placeholder: m,
660
- value: i,
661
- onKeyDown: b,
662
- onChange: f,
663
- onSubmit: x,
664
- ref: n
665
- }
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
666
1677
  );
667
- }), an = (t) => p(
668
- (n, e) => /* @__PURE__ */ a(
1678
+ }), et = (t) => x(
1679
+ (o, n) => /* @__PURE__ */ s.jsxDEV(
669
1680
  t,
670
1681
  {
671
- onPointerDown: (o) => {
672
- o.nativeEvent.fakeEvent || (o.ctrlKey = !0);
1682
+ onPointerDown: (r) => {
1683
+ r.nativeEvent.fakeEvent || (r.ctrlKey = !0);
673
1684
  },
674
- onPointerUp: (o) => {
675
- const r = new PointerEvent("pointerdown", o.nativeEvent);
676
- 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);
677
1688
  },
678
- ...n,
679
- ref: e
680
- }
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
681
1700
  )
682
- ), sn = (t) => {
1701
+ ), nt = (t) => {
683
1702
  const {
684
- children: n,
685
- onOpenChange: e,
686
- position: o,
1703
+ children: o,
1704
+ onOpenChange: n,
1705
+ position: r,
687
1706
  // Unused
688
- sub: r,
689
- ...s
1707
+ sub: a,
1708
+ ...l
690
1709
  } = t;
691
- c(s);
692
- const i = g();
693
- return r ? /* @__PURE__ */ a(
694
- i.DropdownMenu.DropdownMenuSub,
1710
+ k(l);
1711
+ const u = E();
1712
+ return a ? /* @__PURE__ */ s.jsxDEV(
1713
+ u.DropdownMenu.DropdownMenuSub,
695
1714
  {
696
- onOpenChange: e,
697
- children: n
698
- }
699
- ) : /* @__PURE__ */ a(i.DropdownMenu.DropdownMenu, { onOpenChange: e, children: n });
700
- }, dn = (t) => {
701
- const { children: n, sub: e, ...o } = t;
702
- c(o);
703
- const r = g(), s = k(
704
- () => an(
705
- 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
706
1737
  ),
707
- [r.DropdownMenu.DropdownMenuTrigger]
1738
+ [a.DropdownMenu.DropdownMenuTrigger]
708
1739
  );
709
- return e ? /* @__PURE__ */ a(r.DropdownMenu.DropdownMenuSubTrigger, { children: n }) : /* @__PURE__ */ a(s, { asChild: !0, ...o, children: n });
710
- }, bn = p((t, n) => {
711
- const { className: e, children: o, sub: r, ...s } = t;
712
- c(s);
713
- const i = g();
714
- return r ? /* @__PURE__ */ a(
715
- i.DropdownMenu.DropdownMenuSubContent,
716
- {
717
- className: e,
718
- ref: n,
719
- children: o
720
- }
721
- ) : /* @__PURE__ */ a(
722
- 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,
723
1755
  {
724
- className: e,
725
- ref: n,
726
- children: o
727
- }
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
728
1783
  );
729
- }), ln = p((t, n) => {
730
- const { className: e, children: o, icon: r, checked: s, subTrigger: i, onClick: u, ...m } = t;
731
- c(m);
732
- const b = g();
733
- return i ? /* @__PURE__ */ v(me, { children: [
734
- r,
735
- o
736
- ] }) : s !== void 0 ? /* @__PURE__ */ v(
737
- b.DropdownMenu.DropdownMenuCheckboxItem,
738
- {
739
- className: d(e, "bn-gap-1"),
740
- ref: n,
741
- checked: s,
742
- onClick: u,
743
- ...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,
744
1803
  children: [
745
- r,
746
- o
1804
+ a,
1805
+ r
747
1806
  ]
748
- }
749
- ) : /* @__PURE__ */ v(
750
- b.DropdownMenu.DropdownMenuItem,
1807
+ },
1808
+ void 0,
1809
+ !0,
751
1810
  {
752
- className: e,
753
- ref: n,
754
- onClick: u,
755
- ...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,
756
1823
  children: [
1824
+ a,
757
1825
  r,
758
- o,
759
- 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)
760
1831
  ]
761
- }
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
762
1841
  );
763
- }), cn = p((t, n) => {
764
- const { className: e, ...o } = t;
765
- c(o);
766
- const r = g();
767
- return /* @__PURE__ */ a(
768
- r.DropdownMenu.DropdownMenuSeparator,
769
- {
770
- className: e,
771
- ref: n
772
- }
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
773
1860
  );
774
- }), mn = p((t, n) => {
775
- const { className: e, children: o, ...r } = t;
776
- c(r);
777
- const s = g();
778
- return /* @__PURE__ */ a(
779
- s.DropdownMenu.DropdownMenuLabel,
780
- {
781
- className: e,
782
- ref: n,
783
- children: o
784
- }
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
785
1880
  );
786
- }), un = p((t, n) => {
1881
+ }), it = x((t, o) => {
787
1882
  const {
788
- className: e,
789
- tabs: o,
790
- defaultOpenTab: r,
791
- openTab: s,
792
- setOpenTab: i,
793
- loading: u,
1883
+ className: n,
1884
+ tabs: r,
1885
+ defaultOpenTab: a,
1886
+ openTab: l,
1887
+ setOpenTab: u,
1888
+ loading: g,
794
1889
  // TODO: implement loader
795
- ...m
1890
+ ...p
796
1891
  } = t;
797
- c(m);
798
- const b = g();
799
- return /* @__PURE__ */ v(
800
- b.Tabs.Tabs,
1892
+ k(p);
1893
+ const m = E();
1894
+ return /* @__PURE__ */ s.jsxDEV(
1895
+ m.Tabs.Tabs,
801
1896
  {
802
- className: d(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
803
- ref: n,
804
- value: s,
805
- defaultValue: r,
806
- 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,
807
1902
  children: [
808
- /* @__PURE__ */ a(b.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(b.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
809
- 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))
810
1925
  ]
811
- }
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
812
1935
  );
813
- }), pn = p((t, n) => {
814
- const { className: e, children: o, ...r } = t;
815
- 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(
816
1939
  "div",
817
1940
  {
818
1941
  className: d(
819
- e,
1942
+ n,
820
1943
  "bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
821
1944
  ),
822
- ref: n,
823
- children: o
824
- }
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
825
1956
  );
826
- }), fn = p((t, n) => {
827
- const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: i, ...u } = t;
828
- c(u);
829
- const m = g();
830
- return /* @__PURE__ */ a(
831
- 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,
832
1963
  {
833
1964
  "data-test": "embed-input",
834
- className: d(e, "bn-w-80"),
835
- ref: n,
836
- value: o,
837
- placeholder: r,
838
- onKeyDown: s,
839
- onChange: i
840
- }
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
841
1980
  );
842
- }), gn = (t) => {
1981
+ }), ut = (t) => {
843
1982
  const {
844
- children: n,
845
- opened: e,
846
- position: o,
1983
+ children: o,
1984
+ opened: n,
1985
+ position: r,
847
1986
  // unused
848
- ...r
1987
+ ...a
849
1988
  } = t;
850
- c(r);
851
- const s = g();
852
- return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: n });
853
- }, hn = p(
854
- (t, n) => {
855
- const { children: e, ...o } = t;
856
- c(o);
857
- const r = g();
858
- 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);
859
2006
  }
860
- ), vn = p((t, n) => {
861
- const { className: e, variant: o, children: r, ...s } = t;
862
- c(s);
863
- const i = g();
864
- return /* @__PURE__ */ a(
865
- 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,
866
2013
  {
867
2014
  sideOffset: 8,
868
2015
  className: d(
869
- e,
2016
+ n,
870
2017
  "bn-flex bn-flex-col bn-gap-2",
871
- 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" : ""
872
2019
  ),
873
- ref: n,
874
- children: r
875
- }
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
876
2031
  );
877
- }), Nn = p((t, n) => {
878
- const { className: e, children: o, ...r } = t;
879
- return c(r, !1), /* @__PURE__ */ a("div", { className: e, ref: n, ...r, children: o });
880
- }), 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) => {
881
2040
  const {
882
- className: e,
883
- children: o,
884
- icon: r,
885
- onClick: s,
886
- onDragEnd: i,
887
- onDragStart: u,
888
- draggable: m,
889
- label: b,
890
- ...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
891
2050
  } = t;
892
- c(f, !1);
893
- const x = g();
894
- return /* @__PURE__ */ v(
895
- x.Button.Button,
2051
+ k(D, !1);
2052
+ const j = E();
2053
+ return /* @__PURE__ */ s.jsxDEV(
2054
+ j.Button.Button,
896
2055
  {
897
2056
  variant: "ghost",
898
- className: d(e, "bn-text-gray-400"),
899
- ref: n,
900
- "aria-label": b,
901
- onClick: s,
902
- onDragStart: u,
903
- onDragEnd: i,
904
- draggable: m,
905
- ...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,
906
2065
  children: [
907
- r,
908
- o
2066
+ a,
2067
+ r
909
2068
  ]
910
- }
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
911
2078
  );
912
- }), wn = p((t, n) => {
913
- const { className: e, children: o, id: r, columns: s, ...i } = t;
914
- 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(
915
2082
  "div",
916
2083
  {
917
- className: e,
918
- style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
919
- ref: n,
920
- id: r,
2084
+ className: n,
2085
+ style: { gridTemplateColumns: `repeat(${l}, 1fr)` },
2086
+ ref: o,
2087
+ id: a,
921
2088
  role: "grid",
922
- children: o
923
- }
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
924
2099
  );
925
- }), Cn = p((t, n) => {
926
- const { className: e, children: o, columns: r, ...s } = t;
927
- 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(
928
2103
  "div",
929
2104
  {
930
- className: e,
931
- style: { gridColumn: `1 / ${r + 1}` },
932
- ref: n,
933
- children: o
934
- }
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
935
2118
  );
936
- }), yn = p((t, n) => {
937
- const { className: e, children: o, id: r, ...s } = t;
938
- 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(
939
2122
  "div",
940
2123
  {
941
- id: r,
2124
+ id: a,
942
2125
  role: "listbox",
943
2126
  className: d(
944
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",
945
- e
2128
+ n
946
2129
  ),
947
- ref: n,
948
- children: o
949
- }
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
950
2141
  );
951
- }), Sn = p((t, n) => {
952
- const { className: e, children: o, ...r } = t;
953
- 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(
954
2145
  "div",
955
2146
  {
956
2147
  className: d(
957
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",
958
- e
2149
+ n
959
2150
  ),
960
- ref: n,
961
- children: /* @__PURE__ */ a("div", { children: o })
962
- }
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
963
2166
  );
964
- }), Tn = p((t, n) => {
965
- const e = g(), { className: o, item: r, isSelected: s, onClick: i, id: u, ...m } = t;
966
- c(m);
967
- const b = L(null);
968
- return z(() => {
969
- 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)
970
2173
  return;
971
- const f = F(
972
- b.current,
2174
+ const D = We(
2175
+ m.current,
973
2176
  document.querySelector(".bn-suggestion-menu")
974
2177
  );
975
- f === "top" ? b.current.scrollIntoView(!0) : f === "bottom" && b.current.scrollIntoView(!1);
976
- }, [s]), /* @__PURE__ */ v(
2178
+ D === "top" ? m.current.scrollIntoView(!0) : D === "bottom" && m.current.scrollIntoView(!1);
2179
+ }, [l]), /* @__PURE__ */ s.jsxDEV(
977
2180
  "div",
978
2181
  {
979
2182
  className: d(
980
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",
981
- o
2184
+ r
982
2185
  ),
983
- ref: B([n, b]),
984
- id: u,
985
- onClick: i,
2186
+ ref: Ye([o, m]),
2187
+ id: g,
2188
+ onClick: u,
986
2189
  role: "option",
987
- "aria-selected": s || void 0,
2190
+ "aria-selected": l || void 0,
988
2191
  children: [
989
- r.icon && /* @__PURE__ */ a("div", { className: "bn-p-3", "data-position": "left", children: r.icon }),
990
- /* @__PURE__ */ v("div", { className: "bn-flex-1", children: [
991
- /* @__PURE__ */ a("div", { className: "bn-text-base", children: r.title }),
992
- /* @__PURE__ */ a("div", { className: "bn-text-xs", children: r.subtext })
993
- ] }),
994
- 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)
995
2222
  ]
996
- }
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
997
2232
  );
998
- }), Mn = p((t, n) => {
999
- const { className: e, children: o, ...r } = t;
1000
- 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(
1001
2236
  "div",
1002
2237
  {
1003
- className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
1004
- ref: n,
1005
- children: o
1006
- }
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
1007
2250
  );
1008
- }), In = p((t, n) => {
1009
- const { className: e, children: o, ...r } = t;
1010
- return c(r), /* @__PURE__ */ a("div", { className: e, ref: n, children: o });
1011
- }), Dn = p((t, n) => {
1012
- const { className: e, children: o, onMouseDown: r, onClick: s, ...i } = t;
1013
- c(i, !1);
1014
- const u = g();
1015
- return /* @__PURE__ */ a(
1016
- 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,
1017
2264
  {
1018
2265
  variant: "ghost",
1019
2266
  className: d(
1020
- e,
2267
+ n,
1021
2268
  "bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
1022
- e != null && e.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
1023
- 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" : ""
1024
2271
  ),
1025
- ref: n,
1026
- onClick: s,
1027
- onMouseDown: r,
1028
- ...i,
1029
- children: o
1030
- }
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
1031
2286
  );
1032
- }), Rn = p((t, n) => {
2287
+ }), yt = x((t, o) => {
1033
2288
  const {
1034
- className: e,
1035
- children: o,
1036
- draggable: r,
1037
- onDragStart: s,
1038
- onDragEnd: i,
1039
- style: u,
1040
- label: m,
1041
- ...b
2289
+ className: n,
2290
+ children: r,
2291
+ draggable: a,
2292
+ onDragStart: l,
2293
+ onDragEnd: u,
2294
+ style: g,
2295
+ label: p,
2296
+ ...m
1042
2297
  } = t;
1043
- c(b, !1);
1044
- const f = g();
1045
- return /* @__PURE__ */ a(
1046
- f.Button.Button,
2298
+ k(m, !1);
2299
+ const D = E();
2300
+ return /* @__PURE__ */ s.jsxDEV(
2301
+ D.Button.Button,
1047
2302
  {
1048
2303
  variant: "ghost",
1049
- className: d(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1050
- ref: n,
1051
- "aria-label": m,
1052
- draggable: r,
1053
- onDragStart: s,
1054
- onDragEnd: i,
1055
- style: u,
1056
- ...b,
1057
- children: o
1058
- }
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
1059
2322
  );
1060
- }), R = p(
1061
- (t, n) => {
1062
- const { className: e, children: o, onMouseEnter: r, onMouseLeave: s, ...i } = t;
1063
- c(i);
1064
- const u = g();
1065
- 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(
1066
2329
  "div",
1067
2330
  {
1068
2331
  className: d(
1069
- e,
2332
+ n,
1070
2333
  "bn-flex bn-gap-1 bn-p-1 bn-bg-popover bn-text-popover-foreground bn-border bn-rounded-lg bn-shadow-md"
1071
2334
  ),
1072
- ref: n,
1073
- onMouseEnter: r,
1074
- onMouseLeave: s,
1075
- children: o
1076
- }
1077
- ) });
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);
1078
2353
  }
1079
- ), P = p(
1080
- (t, n) => {
2354
+ ), Le = x(
2355
+ (t, o) => {
1081
2356
  const {
1082
- className: e,
1083
- children: o,
1084
- mainTooltip: r,
1085
- secondaryTooltip: s,
1086
- icon: i,
1087
- isSelected: u,
1088
- isDisabled: m,
1089
- onClick: b,
1090
- label: f,
1091
- ...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
1092
2367
  } = t;
1093
- c(x, !1);
1094
- const w = g(), y = u === void 0 ? /* @__PURE__ */ v(
1095
- w.Button.Button,
2368
+ k(j, !1);
2369
+ const M = E(), P = g === void 0 ? /* @__PURE__ */ s.jsxDEV(
2370
+ M.Button.Button,
1096
2371
  {
1097
- className: e,
2372
+ className: n,
1098
2373
  variant: "ghost",
1099
- disabled: m,
1100
- onClick: b,
1101
- ref: n,
1102
- "aria-label": f,
1103
- ...x,
2374
+ disabled: p,
2375
+ onClick: m,
2376
+ ref: o,
2377
+ "aria-label": D,
2378
+ ...j,
1104
2379
  children: [
1105
- i,
1106
- o
2380
+ u,
2381
+ r
1107
2382
  ]
1108
- }
1109
- ) : /* @__PURE__ */ v(
1110
- 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,
1111
2394
  {
1112
2395
  className: d(
1113
- e,
2396
+ n,
1114
2397
  "data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground"
1115
2398
  ),
1116
- "aria-label": f,
1117
- onClick: b,
1118
- pressed: u,
1119
- disabled: m,
1120
- "data-state": u ? "on" : "off",
1121
- "data-disabled": m,
1122
- ref: n,
1123
- ...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,
1124
2407
  children: [
1125
- i,
1126
- o
2408
+ u,
2409
+ r
1127
2410
  ]
1128
- }
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
1129
2420
  );
1130
- return /* @__PURE__ */ v(w.Tooltip.Tooltip, { children: [
1131
- /* @__PURE__ */ a(w.Tooltip.TooltipTrigger, { asChild: !0, children: y }),
1132
- /* @__PURE__ */ v(
1133
- 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,
1134
2429
  {
1135
2430
  className: "bn-flex bn-flex-col bn-items-center",
1136
2431
  children: [
1137
- /* @__PURE__ */ a("span", { children: r }),
1138
- 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)
1139
2442
  ]
1140
- }
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
1141
2452
  )
1142
- ] });
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);
1143
2458
  }
1144
- ), Pn = p((t, n) => {
1145
- const { className: e, items: o, isDisabled: r, ...s } = t;
1146
- c(s);
1147
- const i = g(), u = (b) => /* @__PURE__ */ v("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1148
- b.icon,
1149
- b.text
1150
- ] }), m = o.filter((b) => b.isSelected)[0];
1151
- return m ? /* @__PURE__ */ v(
1152
- i.Select.Select,
1153
- {
1154
- value: m.text,
1155
- onValueChange: (b) => {
1156
- var f, x;
1157
- 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);
1158
2477
  },
1159
- disabled: r,
2478
+ disabled: a,
1160
2479
  children: [
1161
- /* @__PURE__ */ a(i.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(i.Select.SelectValue, {}) }),
1162
- /* @__PURE__ */ a(i.Select.SelectContent, { className: e, ref: n, children: o.map((b) => /* @__PURE__ */ a(
1163
- 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,
1164
2502
  {
1165
- disabled: b.isDisabled,
1166
- value: b.text,
1167
- children: /* @__PURE__ */ a(u, { ...b })
2503
+ fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
2504
+ lineNumber: 143,
2505
+ columnNumber: 11
1168
2506
  },
1169
- b.text
1170
- )) })
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)
1171
2513
  ]
1172
- }
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
1173
2523
  ) : null;
1174
- }), Fn = p((t, n) => {
1175
- const { className: e, children: o, onClick: r, label: s, ...i } = t;
1176
- c(i);
1177
- const u = g();
1178
- return /* @__PURE__ */ a(
1179
- 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,
1180
2530
  {
1181
2531
  type: "submit",
1182
- className: e,
1183
- "aria-label": s,
1184
- ref: n,
1185
- onClick: r,
1186
- children: o
1187
- }
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
1188
2546
  );
1189
- }), Bn = p((t, n) => {
1190
- const { className: e, accept: o, value: r, placeholder: s, onChange: i, ...u } = t;
1191
- c(u);
1192
- const m = g();
1193
- return /* @__PURE__ */ a(
1194
- 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,
1195
2553
  {
1196
2554
  type: "file",
1197
- className: e,
1198
- ref: n,
1199
- accept: o,
1200
- value: r ? r.name : void 0,
1201
- onChange: async (b) => i == null ? void 0 : i(b.target.files[0]),
1202
- placeholder: s
1203
- }
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
1204
2570
  );
1205
- }), kn = p((t, n) => {
1206
- const { className: e, isSelected: o, onClick: r, item: s, id: i, ...u } = t;
1207
- c(u);
1208
- const m = L(null);
1209
- return z(() => {
1210
- 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)
1211
2577
  return;
1212
- const b = F(
1213
- m.current,
2578
+ const m = We(
2579
+ p.current,
1214
2580
  document.querySelector(".bn-grid-suggestion-menu")
1215
2581
  );
1216
- b === "top" ? m.current.scrollIntoView(!0) : b === "bottom" && m.current.scrollIntoView(!1);
1217
- }, [o]), /* @__PURE__ */ a(
2582
+ m === "top" ? p.current.scrollIntoView(!0) : m === "bottom" && p.current.scrollIntoView(!1);
2583
+ }, [r]), /* @__PURE__ */ s.jsxDEV(
1218
2584
  "div",
1219
2585
  {
1220
- className: e,
1221
- ref: B([n, m]),
1222
- id: i,
2586
+ className: n,
2587
+ ref: Ye([o, p]),
2588
+ id: u,
1223
2589
  role: "option",
1224
- onClick: r,
1225
- "aria-selected": o || void 0,
1226
- children: s.icon
1227
- }
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
1228
2602
  );
1229
- }), Ln = p((t, n) => {
2603
+ }), Tt = x((t, o) => {
1230
2604
  const {
1231
- className: e,
1232
- children: o,
2605
+ className: n,
2606
+ children: r,
1233
2607
  // unused, using "dots" instead
1234
- columns: r,
1235
- ...s
2608
+ columns: a,
2609
+ ...l
1236
2610
  } = t;
1237
- return c(s), /* @__PURE__ */ a(
2611
+ return k(l), /* @__PURE__ */ s.jsxDEV(
1238
2612
  "div",
1239
2613
  {
1240
- className: e,
1241
- style: { gridColumn: `1 / ${r + 1}` },
1242
- ref: n,
1243
- children: o
1244
- }
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
1245
2627
  );
1246
- }), zn = {
2628
+ }), jt = {
1247
2629
  FormattingToolbar: {
1248
- Root: R,
1249
- Button: P,
1250
- Select: Pn
2630
+ Root: Oe,
2631
+ Button: Le,
2632
+ Select: Et
1251
2633
  },
1252
2634
  FilePanel: {
1253
- Root: un,
1254
- Button: Fn,
1255
- FileInput: Bn,
1256
- TabPanel: pn,
1257
- TextInput: fn
2635
+ Root: it,
2636
+ Button: wt,
2637
+ FileInput: Ct,
2638
+ TabPanel: ct,
2639
+ TextInput: lt
1258
2640
  },
1259
2641
  LinkToolbar: {
1260
- Root: R,
1261
- Button: P
2642
+ Root: Oe,
2643
+ Button: Le
1262
2644
  },
1263
2645
  SideMenu: {
1264
- Root: Nn,
1265
- Button: xn
2646
+ Root: bt,
2647
+ Button: ft
1266
2648
  },
1267
2649
  SuggestionMenu: {
1268
- Root: yn,
1269
- Item: Tn,
1270
- EmptyItem: Sn,
1271
- Label: Mn,
1272
- Loader: In
2650
+ Root: vt,
2651
+ Item: kt,
2652
+ EmptyItem: gt,
2653
+ Label: ht,
2654
+ Loader: xt
1273
2655
  },
1274
2656
  GridSuggestionMenu: {
1275
- Root: wn,
1276
- Item: kn,
1277
- EmptyItem: Cn,
1278
- Loader: Ln
2657
+ Root: pt,
2658
+ Item: St,
2659
+ EmptyItem: Nt,
2660
+ Loader: Tt
1279
2661
  },
1280
2662
  TableHandle: {
1281
- Root: Rn,
1282
- ExtendButton: Dn
2663
+ Root: yt,
2664
+ ExtendButton: Dt
1283
2665
  },
1284
2666
  Generic: {
1285
2667
  Form: {
1286
- Root: on,
1287
- TextInput: rn
2668
+ Root: Zo,
2669
+ TextInput: Qo
1288
2670
  },
1289
2671
  Menu: {
1290
- Root: sn,
1291
- Trigger: dn,
1292
- Dropdown: bn,
1293
- Divider: cn,
1294
- Label: mn,
1295
- Item: ln
2672
+ Root: nt,
2673
+ Trigger: ot,
2674
+ Dropdown: tt,
2675
+ Divider: st,
2676
+ Label: at,
2677
+ Item: rt
1296
2678
  },
1297
2679
  Popover: {
1298
- Root: gn,
1299
- Trigger: hn,
1300
- Content: vn
2680
+ Root: ut,
2681
+ Trigger: dt,
2682
+ Content: mt
1301
2683
  }
1302
2684
  }
1303
- }, Wn = (t) => {
1304
- const { className: n, shadCNComponents: e, ...o } = t, r = k(() => ({
1305
- ...tn,
1306
- ...e
1307
- }), [e]);
1308
- return /* @__PURE__ */ a(ce.Provider, { value: r, children: /* @__PURE__ */ a(pe.Provider, { value: zn, children: /* @__PURE__ */ a(
1309
- fe,
1310
- {
1311
- className: ue("bn-shadcn", n || ""),
1312
- ...o
1313
- }
1314
- ) }) });
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);
1315
2713
  };
1316
2714
  export {
1317
- Wn as BlockNoteView,
1318
- zn as components
2715
+ Ot as BlockNoteView,
2716
+ jt as components
1319
2717
  };
1320
2718
  //# sourceMappingURL=blocknote-shadcn.js.map