@blocknote/shadcn 0.23.3 → 0.23.5
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.
package/dist/blocknote-shadcn.js
CHANGED
|
@@ -1,652 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
|
|
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({
|
|
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({
|
|
644
20
|
prefix: "bn-"
|
|
645
21
|
});
|
|
646
22
|
function d(...t) {
|
|
647
|
-
return
|
|
23
|
+
return Te(we(t));
|
|
648
24
|
}
|
|
649
|
-
const
|
|
25
|
+
const Me = T(
|
|
650
26
|
"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",
|
|
651
27
|
{
|
|
652
28
|
variants: {
|
|
@@ -662,14 +38,10 @@ const xo = Q(
|
|
|
662
38
|
}
|
|
663
39
|
}
|
|
664
40
|
);
|
|
665
|
-
function
|
|
666
|
-
return /* @__PURE__ */
|
|
667
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/badge.tsx",
|
|
668
|
-
lineNumber: 32,
|
|
669
|
-
columnNumber: 5
|
|
670
|
-
}, this);
|
|
41
|
+
function Ie({ className: t, variant: n, ...e }) {
|
|
42
|
+
return /* @__PURE__ */ a("div", { className: d(Me({ variant: n }), t), ...e });
|
|
671
43
|
}
|
|
672
|
-
const
|
|
44
|
+
const De = T(
|
|
673
45
|
"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",
|
|
674
46
|
{
|
|
675
47
|
variants: {
|
|
@@ -693,789 +65,450 @@ const yo = Q(
|
|
|
693
65
|
size: "default"
|
|
694
66
|
}
|
|
695
67
|
}
|
|
696
|
-
),
|
|
697
|
-
({ className: t, variant:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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
|
-
}
|
|
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
|
+
)
|
|
717
78
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
79
|
+
O.displayName = "Button";
|
|
80
|
+
const H = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
720
81
|
"div",
|
|
721
82
|
{
|
|
722
|
-
ref:
|
|
83
|
+
ref: e,
|
|
723
84
|
className: d(
|
|
724
85
|
"bn-rounded-lg bn-border bn-bg-card bn-text-card-foreground bn-shadow-sm",
|
|
725
86
|
t
|
|
726
87
|
),
|
|
727
|
-
...
|
|
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
|
|
88
|
+
...n
|
|
89
|
+
}
|
|
737
90
|
));
|
|
738
|
-
|
|
739
|
-
const
|
|
91
|
+
H.displayName = "Card";
|
|
92
|
+
const Re = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
740
93
|
"div",
|
|
741
94
|
{
|
|
742
|
-
ref:
|
|
95
|
+
ref: e,
|
|
743
96
|
className: d("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", t),
|
|
744
|
-
...
|
|
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
|
|
97
|
+
...n
|
|
98
|
+
}
|
|
754
99
|
));
|
|
755
|
-
|
|
756
|
-
const
|
|
100
|
+
Re.displayName = "CardHeader";
|
|
101
|
+
const Pe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
757
102
|
"h3",
|
|
758
103
|
{
|
|
759
|
-
ref:
|
|
104
|
+
ref: e,
|
|
760
105
|
className: d(
|
|
761
106
|
"bn-text-2xl bn-font-semibold bn-leading-none bn-tracking-tight",
|
|
762
107
|
t
|
|
763
108
|
),
|
|
764
|
-
...
|
|
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
|
|
109
|
+
...n
|
|
110
|
+
}
|
|
774
111
|
));
|
|
775
|
-
|
|
776
|
-
const
|
|
112
|
+
Pe.displayName = "CardTitle";
|
|
113
|
+
const Fe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
777
114
|
"p",
|
|
778
115
|
{
|
|
779
|
-
ref:
|
|
116
|
+
ref: e,
|
|
780
117
|
className: d("bn-text-sm bn-text-muted-foreground", t),
|
|
781
|
-
...
|
|
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
|
|
118
|
+
...n
|
|
119
|
+
}
|
|
791
120
|
));
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
columnNumber: 3
|
|
797
|
-
}, void 0));
|
|
798
|
-
en.displayName = "CardContent";
|
|
799
|
-
const So = f.forwardRef(({ className: t, ...o }, n) => /* @__PURE__ */ s.jsxDEV(
|
|
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(
|
|
800
125
|
"div",
|
|
801
126
|
{
|
|
802
|
-
ref:
|
|
127
|
+
ref: e,
|
|
803
128
|
className: d("bn-flex bn-items-center bn-p-6 bn-pt-0", t),
|
|
804
|
-
...
|
|
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
|
|
129
|
+
...n
|
|
130
|
+
}
|
|
814
131
|
));
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
|
|
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,
|
|
818
135
|
{
|
|
819
|
-
ref:
|
|
136
|
+
ref: r,
|
|
820
137
|
className: d(
|
|
821
138
|
"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",
|
|
822
|
-
|
|
139
|
+
n && "bn-pl-8",
|
|
823
140
|
t
|
|
824
141
|
),
|
|
825
|
-
...
|
|
142
|
+
...o,
|
|
826
143
|
children: [
|
|
827
|
-
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
|
|
830
|
-
lineNumber: 34,
|
|
831
|
-
columnNumber: 5
|
|
832
|
-
}, void 0)
|
|
144
|
+
e,
|
|
145
|
+
/* @__PURE__ */ a(E, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
833
146
|
]
|
|
834
|
-
}
|
|
835
|
-
void 0,
|
|
836
|
-
!0,
|
|
837
|
-
{
|
|
838
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
|
|
839
|
-
lineNumber: 25,
|
|
840
|
-
columnNumber: 3
|
|
841
|
-
},
|
|
842
|
-
void 0
|
|
147
|
+
}
|
|
843
148
|
));
|
|
844
|
-
|
|
845
|
-
const
|
|
846
|
-
|
|
149
|
+
q.displayName = h.SubTrigger.displayName;
|
|
150
|
+
const W = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
151
|
+
h.SubContent,
|
|
847
152
|
{
|
|
848
|
-
ref:
|
|
153
|
+
ref: e,
|
|
849
154
|
className: d(
|
|
850
155
|
"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",
|
|
851
156
|
t
|
|
852
157
|
),
|
|
853
|
-
...
|
|
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
|
|
158
|
+
...n
|
|
159
|
+
}
|
|
863
160
|
));
|
|
864
|
-
|
|
865
|
-
const
|
|
161
|
+
W.displayName = h.SubContent.displayName;
|
|
162
|
+
const A = l.forwardRef(({ className: t, sideOffset: n = 4, ...e }, o) => (
|
|
866
163
|
// <DropdownMenuPrimitive.Portal>
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
|
|
164
|
+
/* @__PURE__ */ a(
|
|
165
|
+
h.Content,
|
|
869
166
|
{
|
|
870
|
-
ref:
|
|
871
|
-
sideOffset:
|
|
167
|
+
ref: o,
|
|
168
|
+
sideOffset: n,
|
|
872
169
|
className: d(
|
|
873
170
|
"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",
|
|
874
171
|
t
|
|
875
172
|
),
|
|
876
|
-
...
|
|
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
|
|
173
|
+
...e
|
|
174
|
+
}
|
|
886
175
|
)
|
|
887
176
|
));
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
|
|
177
|
+
A.displayName = h.Content.displayName;
|
|
178
|
+
const J = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
|
|
179
|
+
h.Item,
|
|
891
180
|
{
|
|
892
|
-
ref:
|
|
181
|
+
ref: o,
|
|
893
182
|
className: d(
|
|
894
183
|
"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",
|
|
895
|
-
|
|
184
|
+
n && "bn-pl-8",
|
|
896
185
|
t
|
|
897
186
|
),
|
|
898
|
-
...
|
|
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
|
|
187
|
+
...e
|
|
188
|
+
}
|
|
908
189
|
));
|
|
909
|
-
|
|
910
|
-
const
|
|
911
|
-
|
|
190
|
+
J.displayName = h.Item.displayName;
|
|
191
|
+
const Q = l.forwardRef(({ className: t, children: n, checked: e, ...o }, r) => /* @__PURE__ */ v(
|
|
192
|
+
h.CheckboxItem,
|
|
912
193
|
{
|
|
913
|
-
ref:
|
|
194
|
+
ref: r,
|
|
914
195
|
className: d(
|
|
915
196
|
"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",
|
|
916
197
|
t
|
|
917
198
|
),
|
|
918
|
-
checked:
|
|
919
|
-
...
|
|
199
|
+
checked: e,
|
|
200
|
+
...o,
|
|
920
201
|
children: [
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
|
|
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
|
|
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
|
|
935
204
|
]
|
|
936
|
-
}
|
|
937
|
-
void 0,
|
|
938
|
-
!0,
|
|
939
|
-
{
|
|
940
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
|
|
941
|
-
lineNumber: 96,
|
|
942
|
-
columnNumber: 3
|
|
943
|
-
},
|
|
944
|
-
void 0
|
|
205
|
+
}
|
|
945
206
|
));
|
|
946
|
-
|
|
947
|
-
const
|
|
948
|
-
|
|
207
|
+
Q.displayName = h.CheckboxItem.displayName;
|
|
208
|
+
const Ve = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
|
|
209
|
+
h.RadioItem,
|
|
949
210
|
{
|
|
950
|
-
ref:
|
|
211
|
+
ref: o,
|
|
951
212
|
className: d(
|
|
952
213
|
"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",
|
|
953
214
|
t
|
|
954
215
|
),
|
|
955
|
-
...
|
|
216
|
+
...e,
|
|
956
217
|
children: [
|
|
957
|
-
/* @__PURE__ */
|
|
958
|
-
|
|
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
|
|
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
|
|
971
220
|
]
|
|
972
|
-
}
|
|
973
|
-
void 0,
|
|
974
|
-
!0,
|
|
975
|
-
{
|
|
976
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/dropdown-menu.tsx",
|
|
977
|
-
lineNumber: 119,
|
|
978
|
-
columnNumber: 3
|
|
979
|
-
},
|
|
980
|
-
void 0
|
|
221
|
+
}
|
|
981
222
|
));
|
|
982
|
-
|
|
983
|
-
const
|
|
984
|
-
|
|
223
|
+
Ve.displayName = h.RadioItem.displayName;
|
|
224
|
+
const X = l.forwardRef(({ className: t, inset: n, ...e }, o) => /* @__PURE__ */ a(
|
|
225
|
+
h.Label,
|
|
985
226
|
{
|
|
986
|
-
ref:
|
|
227
|
+
ref: o,
|
|
987
228
|
className: d(
|
|
988
229
|
"bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
|
|
989
|
-
|
|
230
|
+
n && "bn-pl-8",
|
|
990
231
|
t
|
|
991
232
|
),
|
|
992
|
-
...
|
|
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
|
|
233
|
+
...e
|
|
234
|
+
}
|
|
1002
235
|
));
|
|
1003
|
-
|
|
1004
|
-
const
|
|
1005
|
-
|
|
236
|
+
X.displayName = h.Label.displayName;
|
|
237
|
+
const Y = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
238
|
+
h.Separator,
|
|
1006
239
|
{
|
|
1007
|
-
ref:
|
|
240
|
+
ref: e,
|
|
1008
241
|
className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
|
|
1009
|
-
...
|
|
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
|
|
242
|
+
...n
|
|
243
|
+
}
|
|
1019
244
|
));
|
|
1020
|
-
|
|
1021
|
-
const
|
|
245
|
+
Y.displayName = h.Separator.displayName;
|
|
246
|
+
const Ee = T(
|
|
1022
247
|
"bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
|
|
1023
|
-
),
|
|
1024
|
-
|
|
1025
|
-
{
|
|
1026
|
-
ref: n,
|
|
1027
|
-
className: d(Vo(), t),
|
|
1028
|
-
...o
|
|
1029
|
-
},
|
|
1030
|
-
void 0,
|
|
1031
|
-
!1,
|
|
248
|
+
), D = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
249
|
+
G.Root,
|
|
1032
250
|
{
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
}
|
|
1037
|
-
void 0
|
|
251
|
+
ref: e,
|
|
252
|
+
className: d(Ee(), t),
|
|
253
|
+
...n
|
|
254
|
+
}
|
|
1038
255
|
));
|
|
1039
|
-
|
|
1040
|
-
const
|
|
256
|
+
D.displayName = G.Root.displayName;
|
|
257
|
+
const je = ve, $e = l.createContext(
|
|
1041
258
|
{}
|
|
1042
|
-
),
|
|
1043
|
-
const t =
|
|
259
|
+
), I = () => {
|
|
260
|
+
const t = l.useContext($e), n = l.useContext(Z), { getFieldState: e, formState: o } = Ne(), r = e(t.name, o);
|
|
1044
261
|
if (!t)
|
|
1045
262
|
throw new Error("useFormField should be used within <FormField>");
|
|
1046
|
-
const { id:
|
|
263
|
+
const { id: s } = n;
|
|
1047
264
|
return {
|
|
1048
|
-
id:
|
|
265
|
+
id: s,
|
|
1049
266
|
name: t.name,
|
|
1050
|
-
formItemId: `${
|
|
1051
|
-
formDescriptionId: `${
|
|
1052
|
-
formMessageId: `${
|
|
1053
|
-
...
|
|
267
|
+
formItemId: `${s}-form-item`,
|
|
268
|
+
formDescriptionId: `${s}-form-item-description`,
|
|
269
|
+
formMessageId: `${s}-form-item-message`,
|
|
270
|
+
...r
|
|
1054
271
|
};
|
|
1055
|
-
},
|
|
272
|
+
}, Z = l.createContext(
|
|
1056
273
|
{}
|
|
1057
|
-
),
|
|
1058
|
-
const
|
|
1059
|
-
return /* @__PURE__ */
|
|
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);
|
|
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 }) });
|
|
1068
277
|
});
|
|
1069
|
-
|
|
1070
|
-
const
|
|
1071
|
-
const { error:
|
|
1072
|
-
return /* @__PURE__ */
|
|
1073
|
-
|
|
1074
|
-
{
|
|
1075
|
-
ref:
|
|
1076
|
-
className: d(
|
|
1077
|
-
htmlFor:
|
|
1078
|
-
...
|
|
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
|
|
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
|
+
}
|
|
1088
289
|
);
|
|
1089
290
|
});
|
|
1090
|
-
|
|
1091
|
-
const
|
|
1092
|
-
const { error:
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
|
|
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,
|
|
1095
296
|
{
|
|
1096
|
-
ref:
|
|
1097
|
-
id:
|
|
1098
|
-
"aria-describedby":
|
|
1099
|
-
"aria-invalid": !!
|
|
297
|
+
ref: n,
|
|
298
|
+
id: o,
|
|
299
|
+
"aria-describedby": e ? `${r} ${s}` : `${r}`,
|
|
300
|
+
"aria-invalid": !!e,
|
|
1100
301
|
...t
|
|
1101
|
-
}
|
|
1102
|
-
void 0,
|
|
1103
|
-
!1,
|
|
1104
|
-
{
|
|
1105
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/form.tsx",
|
|
1106
|
-
lineNumber: 112,
|
|
1107
|
-
columnNumber: 5
|
|
1108
|
-
},
|
|
1109
|
-
void 0
|
|
302
|
+
}
|
|
1110
303
|
);
|
|
1111
304
|
});
|
|
1112
|
-
|
|
1113
|
-
const
|
|
1114
|
-
const { formDescriptionId:
|
|
1115
|
-
return /* @__PURE__ */
|
|
305
|
+
Oe.displayName = "FormControl";
|
|
306
|
+
const He = l.forwardRef(({ className: t, ...n }, e) => {
|
|
307
|
+
const { formDescriptionId: o } = I();
|
|
308
|
+
return /* @__PURE__ */ a(
|
|
1116
309
|
"p",
|
|
1117
310
|
{
|
|
1118
|
-
ref:
|
|
1119
|
-
id:
|
|
311
|
+
ref: e,
|
|
312
|
+
id: o,
|
|
1120
313
|
className: d("bn-text-sm bn-text-muted-foreground", t),
|
|
1121
|
-
...
|
|
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
|
|
314
|
+
...n
|
|
315
|
+
}
|
|
1131
316
|
);
|
|
1132
317
|
});
|
|
1133
|
-
|
|
1134
|
-
const
|
|
1135
|
-
const { error:
|
|
1136
|
-
return
|
|
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(
|
|
1137
322
|
"p",
|
|
1138
323
|
{
|
|
1139
|
-
ref:
|
|
1140
|
-
id:
|
|
324
|
+
ref: o,
|
|
325
|
+
id: s,
|
|
1141
326
|
className: d("bn-text-sm bn-font-medium bn-text-destructive", t),
|
|
1142
|
-
...
|
|
1143
|
-
children:
|
|
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
|
|
327
|
+
...e,
|
|
328
|
+
children: i
|
|
329
|
+
}
|
|
1153
330
|
) : null;
|
|
1154
331
|
});
|
|
1155
|
-
|
|
1156
|
-
const
|
|
1157
|
-
({ className: t, type:
|
|
332
|
+
Ke.displayName = "FormMessage";
|
|
333
|
+
const _ = l.forwardRef(
|
|
334
|
+
({ className: t, type: n, ...e }, o) => /* @__PURE__ */ a(
|
|
1158
335
|
"input",
|
|
1159
336
|
{
|
|
1160
|
-
type:
|
|
337
|
+
type: n,
|
|
1161
338
|
className: d(
|
|
1162
339
|
"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",
|
|
1163
340
|
t
|
|
1164
341
|
),
|
|
1165
|
-
ref:
|
|
1166
|
-
...
|
|
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
|
|
342
|
+
ref: o,
|
|
343
|
+
...e
|
|
344
|
+
}
|
|
1176
345
|
)
|
|
1177
346
|
);
|
|
1178
|
-
|
|
1179
|
-
const
|
|
347
|
+
_.displayName = "Input";
|
|
348
|
+
const qe = M.Root, We = M.Trigger, ee = l.forwardRef(({ className: t, align: n = "center", sideOffset: e = 4, ...o }, r) => (
|
|
1180
349
|
// <PopoverPrimitive.Portal>
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
|
|
350
|
+
/* @__PURE__ */ a(
|
|
351
|
+
M.Content,
|
|
1183
352
|
{
|
|
1184
|
-
ref:
|
|
1185
|
-
align:
|
|
1186
|
-
sideOffset:
|
|
353
|
+
ref: r,
|
|
354
|
+
align: n,
|
|
355
|
+
sideOffset: e,
|
|
1187
356
|
className: d(
|
|
1188
357
|
"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",
|
|
1189
358
|
t
|
|
1190
359
|
),
|
|
1191
|
-
...
|
|
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
|
|
360
|
+
...o
|
|
361
|
+
}
|
|
1201
362
|
)
|
|
1202
363
|
));
|
|
1203
|
-
|
|
1204
|
-
const
|
|
1205
|
-
|
|
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,
|
|
1206
367
|
{
|
|
1207
|
-
ref:
|
|
368
|
+
ref: o,
|
|
1208
369
|
className: d(
|
|
1209
370
|
"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",
|
|
1210
371
|
t
|
|
1211
372
|
),
|
|
1212
|
-
...
|
|
373
|
+
...e,
|
|
1213
374
|
children: [
|
|
1214
|
-
|
|
1215
|
-
/* @__PURE__ */
|
|
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)
|
|
375
|
+
n,
|
|
376
|
+
/* @__PURE__ */ a(N.Icon, { asChild: !0, children: /* @__PURE__ */ a($, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
|
|
1224
377
|
]
|
|
1225
|
-
}
|
|
1226
|
-
void 0,
|
|
1227
|
-
!0,
|
|
1228
|
-
{
|
|
1229
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
|
|
1230
|
-
lineNumber: 17,
|
|
1231
|
-
columnNumber: 3
|
|
1232
|
-
},
|
|
1233
|
-
void 0
|
|
378
|
+
}
|
|
1234
379
|
));
|
|
1235
|
-
|
|
1236
|
-
const
|
|
1237
|
-
|
|
380
|
+
ne.displayName = N.Trigger.displayName;
|
|
381
|
+
const te = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
382
|
+
N.ScrollUpButton,
|
|
1238
383
|
{
|
|
1239
|
-
ref:
|
|
384
|
+
ref: e,
|
|
1240
385
|
className: d(
|
|
1241
386
|
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
1242
387
|
t
|
|
1243
388
|
),
|
|
1244
|
-
...
|
|
1245
|
-
children: /* @__PURE__ */
|
|
1246
|
-
|
|
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
|
|
389
|
+
...n,
|
|
390
|
+
children: /* @__PURE__ */ a(Se, { className: "bn-h-4 bn-w-4" })
|
|
391
|
+
}
|
|
1259
392
|
));
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
|
|
393
|
+
te.displayName = N.ScrollUpButton.displayName;
|
|
394
|
+
const oe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
395
|
+
N.ScrollDownButton,
|
|
1263
396
|
{
|
|
1264
|
-
ref:
|
|
397
|
+
ref: e,
|
|
1265
398
|
className: d(
|
|
1266
399
|
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
1267
400
|
t
|
|
1268
401
|
),
|
|
1269
|
-
...
|
|
1270
|
-
children: /* @__PURE__ */
|
|
1271
|
-
|
|
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
|
|
402
|
+
...n,
|
|
403
|
+
children: /* @__PURE__ */ a($, { className: "bn-h-4 bn-w-4" })
|
|
404
|
+
}
|
|
1284
405
|
));
|
|
1285
|
-
|
|
1286
|
-
const
|
|
406
|
+
oe.displayName = N.ScrollDownButton.displayName;
|
|
407
|
+
const re = l.forwardRef(({ className: t, children: n, position: e = "popper", ...o }, r) => (
|
|
1287
408
|
// <SelectPrimitive.Portal>
|
|
1288
|
-
/* @__PURE__ */
|
|
1289
|
-
|
|
409
|
+
/* @__PURE__ */ v(
|
|
410
|
+
N.Content,
|
|
1290
411
|
{
|
|
1291
|
-
ref:
|
|
412
|
+
ref: r,
|
|
1292
413
|
className: d(
|
|
1293
414
|
"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",
|
|
1294
|
-
|
|
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",
|
|
1295
416
|
t
|
|
1296
417
|
),
|
|
1297
|
-
position:
|
|
1298
|
-
...
|
|
418
|
+
position: e,
|
|
419
|
+
...o,
|
|
1299
420
|
children: [
|
|
1300
|
-
/* @__PURE__ */
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
columnNumber: 5
|
|
1304
|
-
}, void 0),
|
|
1305
|
-
/* @__PURE__ */ s.jsxDEV(
|
|
1306
|
-
T.Viewport,
|
|
421
|
+
/* @__PURE__ */ a(te, {}),
|
|
422
|
+
/* @__PURE__ */ a(
|
|
423
|
+
N.Viewport,
|
|
1307
424
|
{
|
|
1308
425
|
className: d(
|
|
1309
426
|
"bn-p-1",
|
|
1310
|
-
|
|
427
|
+
e === "popper" && "bn-h-[var(--radix-select-trigger-height)] bn-w-full bn-min-w-[var(--radix-select-trigger-width)]"
|
|
1311
428
|
),
|
|
1312
|
-
children:
|
|
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
|
|
429
|
+
children: n
|
|
430
|
+
}
|
|
1322
431
|
),
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
|
|
1325
|
-
lineNumber: 89,
|
|
1326
|
-
columnNumber: 5
|
|
1327
|
-
}, void 0)
|
|
432
|
+
/* @__PURE__ */ a(oe, {})
|
|
1328
433
|
]
|
|
1329
|
-
}
|
|
1330
|
-
void 0,
|
|
1331
|
-
!0,
|
|
1332
|
-
{
|
|
1333
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
|
|
1334
|
-
lineNumber: 70,
|
|
1335
|
-
columnNumber: 3
|
|
1336
|
-
},
|
|
1337
|
-
void 0
|
|
434
|
+
}
|
|
1338
435
|
)
|
|
1339
436
|
));
|
|
1340
|
-
|
|
1341
|
-
const
|
|
1342
|
-
|
|
437
|
+
re.displayName = N.Content.displayName;
|
|
438
|
+
const Qe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
439
|
+
N.Label,
|
|
1343
440
|
{
|
|
1344
|
-
ref:
|
|
441
|
+
ref: e,
|
|
1345
442
|
className: d(
|
|
1346
443
|
"bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-font-semibold",
|
|
1347
444
|
t
|
|
1348
445
|
),
|
|
1349
|
-
...
|
|
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
|
|
446
|
+
...n
|
|
447
|
+
}
|
|
1359
448
|
));
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1362
|
-
|
|
449
|
+
Qe.displayName = N.Label.displayName;
|
|
450
|
+
const ae = l.forwardRef(({ className: t, children: n, ...e }, o) => /* @__PURE__ */ v(
|
|
451
|
+
N.Item,
|
|
1363
452
|
{
|
|
1364
|
-
ref:
|
|
453
|
+
ref: o,
|
|
1365
454
|
className: d(
|
|
1366
455
|
"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",
|
|
1367
456
|
t
|
|
1368
457
|
),
|
|
1369
|
-
...
|
|
458
|
+
...e,
|
|
1370
459
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
|
|
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)
|
|
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 })
|
|
1389
462
|
]
|
|
1390
|
-
}
|
|
1391
|
-
void 0,
|
|
1392
|
-
!0,
|
|
1393
|
-
{
|
|
1394
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/components/ui/select.tsx",
|
|
1395
|
-
lineNumber: 114,
|
|
1396
|
-
columnNumber: 3
|
|
1397
|
-
},
|
|
1398
|
-
void 0
|
|
463
|
+
}
|
|
1399
464
|
));
|
|
1400
|
-
|
|
1401
|
-
const
|
|
1402
|
-
|
|
465
|
+
ae.displayName = N.Item.displayName;
|
|
466
|
+
const Xe = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
467
|
+
N.Separator,
|
|
1403
468
|
{
|
|
1404
|
-
ref:
|
|
469
|
+
ref: e,
|
|
1405
470
|
className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", t),
|
|
1406
|
-
...
|
|
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
|
|
471
|
+
...n
|
|
472
|
+
}
|
|
1416
473
|
));
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1419
|
-
|
|
474
|
+
Xe.displayName = N.Separator.displayName;
|
|
475
|
+
const Ye = C.Root, se = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
476
|
+
C.List,
|
|
1420
477
|
{
|
|
1421
|
-
ref:
|
|
478
|
+
ref: e,
|
|
1422
479
|
className: d(
|
|
1423
480
|
"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",
|
|
1424
481
|
t
|
|
1425
482
|
),
|
|
1426
|
-
...
|
|
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
|
|
483
|
+
...n
|
|
484
|
+
}
|
|
1436
485
|
));
|
|
1437
|
-
|
|
1438
|
-
const
|
|
1439
|
-
|
|
486
|
+
se.displayName = C.List.displayName;
|
|
487
|
+
const ie = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
488
|
+
C.Trigger,
|
|
1440
489
|
{
|
|
1441
|
-
ref:
|
|
490
|
+
ref: e,
|
|
1442
491
|
className: d(
|
|
1443
492
|
"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",
|
|
1444
493
|
t
|
|
1445
494
|
),
|
|
1446
|
-
...
|
|
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
|
|
495
|
+
...n
|
|
496
|
+
}
|
|
1456
497
|
));
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
|
|
498
|
+
ie.displayName = C.Trigger.displayName;
|
|
499
|
+
const de = l.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ a(
|
|
500
|
+
C.Content,
|
|
1460
501
|
{
|
|
1461
|
-
ref:
|
|
502
|
+
ref: e,
|
|
1462
503
|
className: d(
|
|
1463
504
|
"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",
|
|
1464
|
-
t
|
|
1465
|
-
),
|
|
1466
|
-
...
|
|
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
|
|
505
|
+
t
|
|
506
|
+
),
|
|
507
|
+
...n
|
|
508
|
+
}
|
|
1476
509
|
));
|
|
1477
|
-
|
|
1478
|
-
const
|
|
510
|
+
de.displayName = C.Content.displayName;
|
|
511
|
+
const Ze = T(
|
|
1479
512
|
"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",
|
|
1480
513
|
{
|
|
1481
514
|
variants: {
|
|
@@ -1494,1225 +527,794 @@ const Ko = Q(
|
|
|
1494
527
|
size: "default"
|
|
1495
528
|
}
|
|
1496
529
|
}
|
|
1497
|
-
),
|
|
1498
|
-
|
|
530
|
+
), be = l.forwardRef(({ className: t, variant: n, size: e, ...o }, r) => /* @__PURE__ */ a(
|
|
531
|
+
U.Root,
|
|
1499
532
|
{
|
|
1500
|
-
ref:
|
|
1501
|
-
className: d(
|
|
1502
|
-
...
|
|
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
|
|
533
|
+
ref: r,
|
|
534
|
+
className: d(Ze({ variant: n, size: e, className: t })),
|
|
535
|
+
...o
|
|
536
|
+
}
|
|
1512
537
|
));
|
|
1513
|
-
|
|
1514
|
-
const
|
|
1515
|
-
|
|
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,
|
|
1516
541
|
{
|
|
1517
|
-
ref:
|
|
1518
|
-
sideOffset:
|
|
542
|
+
ref: o,
|
|
543
|
+
sideOffset: n,
|
|
1519
544
|
className: d(
|
|
1520
545
|
"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",
|
|
1521
546
|
t
|
|
1522
547
|
),
|
|
1523
|
-
...
|
|
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
|
|
548
|
+
...e
|
|
549
|
+
}
|
|
1533
550
|
));
|
|
1534
|
-
|
|
1535
|
-
const
|
|
551
|
+
le.displayName = S.Content.displayName;
|
|
552
|
+
const tn = {
|
|
1536
553
|
Badge: {
|
|
1537
|
-
Badge:
|
|
554
|
+
Badge: Ie
|
|
1538
555
|
},
|
|
1539
556
|
Button: {
|
|
1540
|
-
Button:
|
|
557
|
+
Button: O
|
|
1541
558
|
},
|
|
1542
559
|
Card: {
|
|
1543
|
-
Card:
|
|
1544
|
-
CardContent:
|
|
560
|
+
Card: H,
|
|
561
|
+
CardContent: K
|
|
1545
562
|
},
|
|
1546
563
|
DropdownMenu: {
|
|
1547
|
-
DropdownMenu:
|
|
1548
|
-
DropdownMenuCheckboxItem:
|
|
1549
|
-
DropdownMenuContent:
|
|
1550
|
-
DropdownMenuItem:
|
|
1551
|
-
DropdownMenuLabel:
|
|
1552
|
-
DropdownMenuSeparator:
|
|
1553
|
-
DropdownMenuSub:
|
|
1554
|
-
DropdownMenuSubContent:
|
|
1555
|
-
DropdownMenuSubTrigger:
|
|
1556
|
-
DropdownMenuTrigger:
|
|
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
|
|
1557
574
|
},
|
|
1558
575
|
Form: {
|
|
1559
|
-
Form:
|
|
576
|
+
Form: je
|
|
1560
577
|
},
|
|
1561
578
|
Input: {
|
|
1562
|
-
Input:
|
|
579
|
+
Input: _
|
|
1563
580
|
},
|
|
1564
581
|
Label: {
|
|
1565
|
-
Label:
|
|
582
|
+
Label: D
|
|
1566
583
|
},
|
|
1567
584
|
Popover: {
|
|
1568
|
-
Popover:
|
|
1569
|
-
PopoverContent:
|
|
1570
|
-
PopoverTrigger:
|
|
585
|
+
Popover: qe,
|
|
586
|
+
PopoverContent: ee,
|
|
587
|
+
PopoverTrigger: We
|
|
1571
588
|
},
|
|
1572
589
|
Select: {
|
|
1573
|
-
Select:
|
|
1574
|
-
SelectContent:
|
|
1575
|
-
SelectItem:
|
|
1576
|
-
SelectTrigger:
|
|
1577
|
-
SelectValue:
|
|
590
|
+
Select: Ae,
|
|
591
|
+
SelectContent: re,
|
|
592
|
+
SelectItem: ae,
|
|
593
|
+
SelectTrigger: ne,
|
|
594
|
+
SelectValue: Je
|
|
1578
595
|
},
|
|
1579
596
|
Tabs: {
|
|
1580
|
-
Tabs:
|
|
1581
|
-
TabsContent:
|
|
1582
|
-
TabsList:
|
|
1583
|
-
TabsTrigger:
|
|
597
|
+
Tabs: Ye,
|
|
598
|
+
TabsContent: de,
|
|
599
|
+
TabsList: se,
|
|
600
|
+
TabsTrigger: ie
|
|
1584
601
|
},
|
|
1585
602
|
Toggle: {
|
|
1586
|
-
Toggle:
|
|
603
|
+
Toggle: be
|
|
1587
604
|
},
|
|
1588
605
|
Tooltip: {
|
|
1589
|
-
Tooltip:
|
|
1590
|
-
TooltipContent:
|
|
1591
|
-
TooltipProvider:
|
|
1592
|
-
TooltipTrigger:
|
|
606
|
+
Tooltip: en,
|
|
607
|
+
TooltipContent: le,
|
|
608
|
+
TooltipProvider: _e,
|
|
609
|
+
TooltipTrigger: nn
|
|
1593
610
|
}
|
|
1594
|
-
},
|
|
1595
|
-
function
|
|
1596
|
-
return
|
|
611
|
+
}, ce = ge(void 0);
|
|
612
|
+
function g() {
|
|
613
|
+
return he(ce);
|
|
1597
614
|
}
|
|
1598
|
-
const
|
|
1599
|
-
const { children:
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1602
|
-
return /* @__PURE__ */
|
|
1603
|
-
|
|
1604
|
-
lineNumber: 17,
|
|
1605
|
-
columnNumber: 5
|
|
1606
|
-
}, void 0);
|
|
1607
|
-
}, Qo = x((t, o) => {
|
|
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) => {
|
|
1608
621
|
const {
|
|
1609
|
-
className:
|
|
1610
|
-
name:
|
|
1611
|
-
label:
|
|
1612
|
-
icon:
|
|
622
|
+
className: e,
|
|
623
|
+
name: o,
|
|
624
|
+
label: r,
|
|
625
|
+
icon: s,
|
|
1613
626
|
// TODO: implement
|
|
1614
|
-
value:
|
|
1615
|
-
autoFocus:
|
|
1616
|
-
placeholder:
|
|
1617
|
-
onKeyDown:
|
|
1618
|
-
onChange:
|
|
1619
|
-
onSubmit:
|
|
1620
|
-
...
|
|
627
|
+
value: i,
|
|
628
|
+
autoFocus: u,
|
|
629
|
+
placeholder: m,
|
|
630
|
+
onKeyDown: b,
|
|
631
|
+
onChange: f,
|
|
632
|
+
onSubmit: x,
|
|
633
|
+
...w
|
|
1621
634
|
} = t;
|
|
1622
|
-
|
|
1623
|
-
const
|
|
1624
|
-
return
|
|
1625
|
-
/* @__PURE__ */
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
columnNumber: 7
|
|
1629
|
-
}, void 0),
|
|
1630
|
-
/* @__PURE__ */ s.jsxDEV(
|
|
1631
|
-
P.Input.Input,
|
|
1632
|
-
{
|
|
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,
|
|
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,
|
|
1645
641
|
{
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
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
|
+
}
|
|
1651
652
|
)
|
|
1652
|
-
] }
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
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
|
|
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
|
+
}
|
|
1677
666
|
);
|
|
1678
|
-
}),
|
|
1679
|
-
(
|
|
667
|
+
}), an = (t) => p(
|
|
668
|
+
(n, e) => /* @__PURE__ */ a(
|
|
1680
669
|
t,
|
|
1681
670
|
{
|
|
1682
|
-
onPointerDown: (
|
|
1683
|
-
|
|
671
|
+
onPointerDown: (o) => {
|
|
672
|
+
o.nativeEvent.fakeEvent || (o.ctrlKey = !0);
|
|
1684
673
|
},
|
|
1685
|
-
onPointerUp: (
|
|
1686
|
-
const
|
|
1687
|
-
|
|
674
|
+
onPointerUp: (o) => {
|
|
675
|
+
const r = new PointerEvent("pointerdown", o.nativeEvent);
|
|
676
|
+
r.fakeEvent = !0, o.target.dispatchEvent(r);
|
|
1688
677
|
},
|
|
1689
|
-
...
|
|
1690
|
-
ref:
|
|
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
|
|
678
|
+
...n,
|
|
679
|
+
ref: e
|
|
680
|
+
}
|
|
1700
681
|
)
|
|
1701
|
-
),
|
|
682
|
+
), sn = (t) => {
|
|
1702
683
|
const {
|
|
1703
|
-
children:
|
|
1704
|
-
onOpenChange:
|
|
1705
|
-
position:
|
|
684
|
+
children: n,
|
|
685
|
+
onOpenChange: e,
|
|
686
|
+
position: o,
|
|
1706
687
|
// Unused
|
|
1707
|
-
sub:
|
|
1708
|
-
...
|
|
688
|
+
sub: r,
|
|
689
|
+
...s
|
|
1709
690
|
} = t;
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1713
|
-
|
|
1714
|
-
{
|
|
1715
|
-
onOpenChange: n,
|
|
1716
|
-
children: o
|
|
1717
|
-
},
|
|
1718
|
-
void 0,
|
|
1719
|
-
!1,
|
|
691
|
+
c(s);
|
|
692
|
+
const i = g();
|
|
693
|
+
return r ? /* @__PURE__ */ a(
|
|
694
|
+
i.DropdownMenu.DropdownMenuSub,
|
|
1720
695
|
{
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
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
|
|
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
|
|
1737
706
|
),
|
|
1738
|
-
[
|
|
707
|
+
[r.DropdownMenu.DropdownMenuTrigger]
|
|
1739
708
|
);
|
|
1740
|
-
return
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
u.DropdownMenu.DropdownMenuSubContent,
|
|
1755
|
-
{
|
|
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,
|
|
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,
|
|
1777
723
|
{
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
}
|
|
1782
|
-
void 0
|
|
724
|
+
className: e,
|
|
725
|
+
ref: n,
|
|
726
|
+
children: o
|
|
727
|
+
}
|
|
1783
728
|
);
|
|
1784
|
-
}),
|
|
1785
|
-
const { className:
|
|
1786
|
-
|
|
1787
|
-
const
|
|
1788
|
-
return
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
] }
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
ref: o,
|
|
1800
|
-
checked: l,
|
|
1801
|
-
onClick: g,
|
|
1802
|
-
...p,
|
|
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,
|
|
1803
744
|
children: [
|
|
1804
|
-
|
|
1805
|
-
|
|
745
|
+
r,
|
|
746
|
+
o
|
|
1806
747
|
]
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
{
|
|
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,
|
|
748
|
+
}
|
|
749
|
+
) : /* @__PURE__ */ v(
|
|
750
|
+
b.DropdownMenu.DropdownMenuItem,
|
|
1818
751
|
{
|
|
1819
|
-
className:
|
|
1820
|
-
ref:
|
|
1821
|
-
onClick:
|
|
1822
|
-
...
|
|
752
|
+
className: e,
|
|
753
|
+
ref: n,
|
|
754
|
+
onClick: u,
|
|
755
|
+
...m,
|
|
1823
756
|
children: [
|
|
1824
|
-
a,
|
|
1825
757
|
r,
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
lineNumber: 169,
|
|
1829
|
-
columnNumber: 22
|
|
1830
|
-
}, void 0)
|
|
758
|
+
o,
|
|
759
|
+
i && /* @__PURE__ */ a(E, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
1831
760
|
]
|
|
1832
|
-
}
|
|
1833
|
-
void 0,
|
|
1834
|
-
!0,
|
|
1835
|
-
{
|
|
1836
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/menu/Menu.tsx",
|
|
1837
|
-
lineNumber: 162,
|
|
1838
|
-
columnNumber: 5
|
|
1839
|
-
},
|
|
1840
|
-
void 0
|
|
761
|
+
}
|
|
1841
762
|
);
|
|
1842
|
-
}),
|
|
1843
|
-
const { className:
|
|
1844
|
-
|
|
1845
|
-
const
|
|
1846
|
-
return /* @__PURE__ */
|
|
1847
|
-
|
|
1848
|
-
{
|
|
1849
|
-
className:
|
|
1850
|
-
ref:
|
|
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
|
|
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
|
+
}
|
|
1860
773
|
);
|
|
1861
|
-
}),
|
|
1862
|
-
const { className:
|
|
1863
|
-
|
|
1864
|
-
const
|
|
1865
|
-
return /* @__PURE__ */
|
|
1866
|
-
|
|
1867
|
-
{
|
|
1868
|
-
className:
|
|
1869
|
-
ref:
|
|
1870
|
-
children:
|
|
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
|
|
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
|
+
}
|
|
1880
785
|
);
|
|
1881
|
-
}),
|
|
786
|
+
}), un = p((t, n) => {
|
|
1882
787
|
const {
|
|
1883
|
-
className:
|
|
1884
|
-
tabs:
|
|
1885
|
-
defaultOpenTab:
|
|
1886
|
-
openTab:
|
|
1887
|
-
setOpenTab:
|
|
1888
|
-
loading:
|
|
788
|
+
className: e,
|
|
789
|
+
tabs: o,
|
|
790
|
+
defaultOpenTab: r,
|
|
791
|
+
openTab: s,
|
|
792
|
+
setOpenTab: i,
|
|
793
|
+
loading: u,
|
|
1889
794
|
// TODO: implement loader
|
|
1890
|
-
...
|
|
795
|
+
...m
|
|
1891
796
|
} = t;
|
|
1892
|
-
|
|
1893
|
-
const
|
|
1894
|
-
return /* @__PURE__ */
|
|
1895
|
-
|
|
797
|
+
c(m);
|
|
798
|
+
const b = g();
|
|
799
|
+
return /* @__PURE__ */ v(
|
|
800
|
+
b.Tabs.Tabs,
|
|
1896
801
|
{
|
|
1897
|
-
className: d(
|
|
1898
|
-
ref:
|
|
1899
|
-
value:
|
|
1900
|
-
defaultValue:
|
|
1901
|
-
onValueChange:
|
|
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,
|
|
1902
807
|
children: [
|
|
1903
|
-
/* @__PURE__ */
|
|
1904
|
-
|
|
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))
|
|
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))
|
|
1925
810
|
]
|
|
1926
|
-
}
|
|
1927
|
-
void 0,
|
|
1928
|
-
!0,
|
|
1929
|
-
{
|
|
1930
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/panel/Panel.tsx",
|
|
1931
|
-
lineNumber: 27,
|
|
1932
|
-
columnNumber: 5
|
|
1933
|
-
},
|
|
1934
|
-
void 0
|
|
811
|
+
}
|
|
1935
812
|
);
|
|
1936
|
-
}),
|
|
1937
|
-
const { className:
|
|
1938
|
-
return
|
|
813
|
+
}), pn = p((t, n) => {
|
|
814
|
+
const { className: e, children: o, ...r } = t;
|
|
815
|
+
return c(r), /* @__PURE__ */ a(
|
|
1939
816
|
"div",
|
|
1940
817
|
{
|
|
1941
818
|
className: d(
|
|
1942
|
-
|
|
819
|
+
e,
|
|
1943
820
|
"bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
|
|
1944
821
|
),
|
|
1945
|
-
ref:
|
|
1946
|
-
children:
|
|
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
|
|
822
|
+
ref: n,
|
|
823
|
+
children: o
|
|
824
|
+
}
|
|
1956
825
|
);
|
|
1957
|
-
}),
|
|
1958
|
-
const { className:
|
|
1959
|
-
|
|
1960
|
-
const
|
|
1961
|
-
return /* @__PURE__ */
|
|
1962
|
-
|
|
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,
|
|
1963
832
|
{
|
|
1964
833
|
"data-test": "embed-input",
|
|
1965
|
-
className: d(
|
|
1966
|
-
ref:
|
|
1967
|
-
value:
|
|
1968
|
-
placeholder:
|
|
1969
|
-
onKeyDown:
|
|
1970
|
-
onChange:
|
|
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
|
|
834
|
+
className: d(e, "bn-w-80"),
|
|
835
|
+
ref: n,
|
|
836
|
+
value: o,
|
|
837
|
+
placeholder: r,
|
|
838
|
+
onKeyDown: s,
|
|
839
|
+
onChange: i
|
|
840
|
+
}
|
|
1980
841
|
);
|
|
1981
|
-
}),
|
|
842
|
+
}), gn = (t) => {
|
|
1982
843
|
const {
|
|
1983
|
-
children:
|
|
1984
|
-
opened:
|
|
1985
|
-
position:
|
|
844
|
+
children: n,
|
|
845
|
+
opened: e,
|
|
846
|
+
position: o,
|
|
1986
847
|
// unused
|
|
1987
|
-
...
|
|
848
|
+
...r
|
|
1988
849
|
} = t;
|
|
1989
|
-
|
|
1990
|
-
const
|
|
1991
|
-
return /* @__PURE__ */ s.
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
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);
|
|
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 });
|
|
2006
859
|
}
|
|
2007
|
-
),
|
|
2008
|
-
const { className:
|
|
2009
|
-
|
|
2010
|
-
const
|
|
2011
|
-
return /* @__PURE__ */
|
|
2012
|
-
|
|
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,
|
|
2013
866
|
{
|
|
2014
867
|
sideOffset: 8,
|
|
2015
868
|
className: d(
|
|
2016
|
-
|
|
869
|
+
e,
|
|
2017
870
|
"bn-flex bn-flex-col bn-gap-2",
|
|
2018
|
-
|
|
871
|
+
o === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
|
|
2019
872
|
),
|
|
2020
|
-
ref:
|
|
2021
|
-
children:
|
|
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
|
|
873
|
+
ref: n,
|
|
874
|
+
children: r
|
|
875
|
+
}
|
|
2031
876
|
);
|
|
2032
|
-
}),
|
|
2033
|
-
const { className:
|
|
2034
|
-
return
|
|
2035
|
-
|
|
2036
|
-
lineNumber: 14,
|
|
2037
|
-
columnNumber: 5
|
|
2038
|
-
}, void 0);
|
|
2039
|
-
}), ft = x((t, o) => {
|
|
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) => {
|
|
2040
881
|
const {
|
|
2041
|
-
className:
|
|
2042
|
-
children:
|
|
2043
|
-
icon:
|
|
2044
|
-
onClick:
|
|
2045
|
-
onDragEnd:
|
|
2046
|
-
onDragStart:
|
|
2047
|
-
draggable:
|
|
2048
|
-
label:
|
|
2049
|
-
...
|
|
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
|
|
2050
891
|
} = t;
|
|
2051
|
-
|
|
2052
|
-
const
|
|
2053
|
-
return /* @__PURE__ */
|
|
2054
|
-
|
|
892
|
+
c(f, !1);
|
|
893
|
+
const x = g();
|
|
894
|
+
return /* @__PURE__ */ v(
|
|
895
|
+
x.Button.Button,
|
|
2055
896
|
{
|
|
2056
897
|
variant: "ghost",
|
|
2057
|
-
className: d(
|
|
2058
|
-
ref:
|
|
2059
|
-
"aria-label":
|
|
2060
|
-
onClick:
|
|
2061
|
-
onDragStart:
|
|
2062
|
-
onDragEnd:
|
|
2063
|
-
draggable:
|
|
2064
|
-
...
|
|
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,
|
|
2065
906
|
children: [
|
|
2066
|
-
|
|
2067
|
-
|
|
907
|
+
r,
|
|
908
|
+
o
|
|
2068
909
|
]
|
|
2069
|
-
}
|
|
2070
|
-
void 0,
|
|
2071
|
-
!0,
|
|
2072
|
-
{
|
|
2073
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/sideMenu/SideMenuButton.tsx",
|
|
2074
|
-
lineNumber: 31,
|
|
2075
|
-
columnNumber: 5
|
|
2076
|
-
},
|
|
2077
|
-
void 0
|
|
910
|
+
}
|
|
2078
911
|
);
|
|
2079
|
-
}),
|
|
2080
|
-
const { className:
|
|
2081
|
-
return
|
|
912
|
+
}), wn = p((t, n) => {
|
|
913
|
+
const { className: e, children: o, id: r, columns: s, ...i } = t;
|
|
914
|
+
return c(i), /* @__PURE__ */ a(
|
|
2082
915
|
"div",
|
|
2083
916
|
{
|
|
2084
|
-
className:
|
|
2085
|
-
style: { gridTemplateColumns: `repeat(${
|
|
2086
|
-
ref:
|
|
2087
|
-
id:
|
|
917
|
+
className: e,
|
|
918
|
+
style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
|
|
919
|
+
ref: n,
|
|
920
|
+
id: r,
|
|
2088
921
|
role: "grid",
|
|
2089
|
-
children:
|
|
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
|
|
922
|
+
children: o
|
|
923
|
+
}
|
|
2099
924
|
);
|
|
2100
|
-
}),
|
|
2101
|
-
const { className:
|
|
2102
|
-
return
|
|
925
|
+
}), Cn = p((t, n) => {
|
|
926
|
+
const { className: e, children: o, columns: r, ...s } = t;
|
|
927
|
+
return c(s), /* @__PURE__ */ a(
|
|
2103
928
|
"div",
|
|
2104
929
|
{
|
|
2105
|
-
className:
|
|
2106
|
-
style: { gridColumn: `1 / ${
|
|
2107
|
-
ref:
|
|
2108
|
-
children:
|
|
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
|
|
930
|
+
className: e,
|
|
931
|
+
style: { gridColumn: `1 / ${r + 1}` },
|
|
932
|
+
ref: n,
|
|
933
|
+
children: o
|
|
934
|
+
}
|
|
2118
935
|
);
|
|
2119
|
-
}),
|
|
2120
|
-
const { className:
|
|
2121
|
-
return
|
|
936
|
+
}), yn = p((t, n) => {
|
|
937
|
+
const { className: e, children: o, id: r, ...s } = t;
|
|
938
|
+
return c(s), /* @__PURE__ */ a(
|
|
2122
939
|
"div",
|
|
2123
940
|
{
|
|
2124
|
-
id:
|
|
941
|
+
id: r,
|
|
2125
942
|
role: "listbox",
|
|
2126
943
|
className: d(
|
|
2127
944
|
"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",
|
|
2128
|
-
|
|
945
|
+
e
|
|
2129
946
|
),
|
|
2130
|
-
ref:
|
|
2131
|
-
children:
|
|
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
|
|
947
|
+
ref: n,
|
|
948
|
+
children: o
|
|
949
|
+
}
|
|
2141
950
|
);
|
|
2142
|
-
}),
|
|
2143
|
-
const { className:
|
|
2144
|
-
return
|
|
951
|
+
}), Sn = p((t, n) => {
|
|
952
|
+
const { className: e, children: o, ...r } = t;
|
|
953
|
+
return c(r), /* @__PURE__ */ a(
|
|
2145
954
|
"div",
|
|
2146
955
|
{
|
|
2147
956
|
className: d(
|
|
2148
957
|
"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",
|
|
2149
|
-
|
|
958
|
+
e
|
|
2150
959
|
),
|
|
2151
|
-
ref:
|
|
2152
|
-
children: /* @__PURE__ */
|
|
2153
|
-
|
|
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
|
|
960
|
+
ref: n,
|
|
961
|
+
children: /* @__PURE__ */ a("div", { children: o })
|
|
962
|
+
}
|
|
2166
963
|
);
|
|
2167
|
-
}),
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2170
|
-
const
|
|
2171
|
-
return
|
|
2172
|
-
if (!
|
|
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)
|
|
2173
970
|
return;
|
|
2174
|
-
const
|
|
2175
|
-
|
|
971
|
+
const f = F(
|
|
972
|
+
b.current,
|
|
2176
973
|
document.querySelector(".bn-suggestion-menu")
|
|
2177
974
|
);
|
|
2178
|
-
|
|
2179
|
-
}, [
|
|
975
|
+
f === "top" ? b.current.scrollIntoView(!0) : f === "bottom" && b.current.scrollIntoView(!1);
|
|
976
|
+
}, [s]), /* @__PURE__ */ v(
|
|
2180
977
|
"div",
|
|
2181
978
|
{
|
|
2182
979
|
className: d(
|
|
2183
980
|
"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",
|
|
2184
|
-
|
|
981
|
+
o
|
|
2185
982
|
),
|
|
2186
|
-
ref:
|
|
2187
|
-
id:
|
|
2188
|
-
onClick:
|
|
983
|
+
ref: B([n, b]),
|
|
984
|
+
id: u,
|
|
985
|
+
onClick: i,
|
|
2189
986
|
role: "option",
|
|
2190
|
-
"aria-selected":
|
|
987
|
+
"aria-selected": s || void 0,
|
|
2191
988
|
children: [
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
}
|
|
2197
|
-
/* @__PURE__ */
|
|
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)
|
|
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 }) })
|
|
2222
995
|
]
|
|
2223
|
-
}
|
|
2224
|
-
void 0,
|
|
2225
|
-
!0,
|
|
2226
|
-
{
|
|
2227
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
2228
|
-
lineNumber: 37,
|
|
2229
|
-
columnNumber: 5
|
|
2230
|
-
},
|
|
2231
|
-
void 0
|
|
996
|
+
}
|
|
2232
997
|
);
|
|
2233
|
-
}),
|
|
2234
|
-
const { className:
|
|
2235
|
-
return
|
|
998
|
+
}), Mn = p((t, n) => {
|
|
999
|
+
const { className: e, children: o, ...r } = t;
|
|
1000
|
+
return c(r), /* @__PURE__ */ a(
|
|
2236
1001
|
"div",
|
|
2237
1002
|
{
|
|
2238
|
-
className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
|
|
2239
|
-
ref:
|
|
2240
|
-
children:
|
|
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
|
|
1003
|
+
className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
|
|
1004
|
+
ref: n,
|
|
1005
|
+
children: o
|
|
1006
|
+
}
|
|
2250
1007
|
);
|
|
2251
|
-
}),
|
|
2252
|
-
const { className:
|
|
2253
|
-
return
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
k(u, !1);
|
|
2261
|
-
const g = E();
|
|
2262
|
-
return /* @__PURE__ */ s.jsxDEV(
|
|
2263
|
-
g.Button.Button,
|
|
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,
|
|
2264
1017
|
{
|
|
2265
1018
|
variant: "ghost",
|
|
2266
1019
|
className: d(
|
|
2267
|
-
|
|
1020
|
+
e,
|
|
2268
1021
|
"bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
|
|
2269
|
-
|
|
2270
|
-
|
|
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" : ""
|
|
2271
1024
|
),
|
|
2272
|
-
ref:
|
|
2273
|
-
onClick:
|
|
2274
|
-
onMouseDown:
|
|
2275
|
-
...
|
|
2276
|
-
children:
|
|
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
|
|
1025
|
+
ref: n,
|
|
1026
|
+
onClick: s,
|
|
1027
|
+
onMouseDown: r,
|
|
1028
|
+
...i,
|
|
1029
|
+
children: o
|
|
1030
|
+
}
|
|
2286
1031
|
);
|
|
2287
|
-
}),
|
|
1032
|
+
}), Rn = p((t, n) => {
|
|
2288
1033
|
const {
|
|
2289
|
-
className:
|
|
2290
|
-
children:
|
|
2291
|
-
draggable:
|
|
2292
|
-
onDragStart:
|
|
2293
|
-
onDragEnd:
|
|
2294
|
-
style:
|
|
2295
|
-
label:
|
|
2296
|
-
...
|
|
1034
|
+
className: e,
|
|
1035
|
+
children: o,
|
|
1036
|
+
draggable: r,
|
|
1037
|
+
onDragStart: s,
|
|
1038
|
+
onDragEnd: i,
|
|
1039
|
+
style: u,
|
|
1040
|
+
label: m,
|
|
1041
|
+
...b
|
|
2297
1042
|
} = t;
|
|
2298
|
-
|
|
2299
|
-
const
|
|
2300
|
-
return /* @__PURE__ */
|
|
2301
|
-
|
|
1043
|
+
c(b, !1);
|
|
1044
|
+
const f = g();
|
|
1045
|
+
return /* @__PURE__ */ a(
|
|
1046
|
+
f.Button.Button,
|
|
2302
1047
|
{
|
|
2303
1048
|
variant: "ghost",
|
|
2304
|
-
className: d(
|
|
2305
|
-
ref:
|
|
2306
|
-
"aria-label":
|
|
2307
|
-
draggable:
|
|
2308
|
-
onDragStart:
|
|
2309
|
-
onDragEnd:
|
|
2310
|
-
style:
|
|
2311
|
-
...
|
|
2312
|
-
children:
|
|
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
|
|
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
|
+
}
|
|
2322
1059
|
);
|
|
2323
|
-
}),
|
|
2324
|
-
(t,
|
|
2325
|
-
const { className:
|
|
2326
|
-
|
|
2327
|
-
const
|
|
2328
|
-
return /* @__PURE__ */
|
|
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(
|
|
2329
1066
|
"div",
|
|
2330
1067
|
{
|
|
2331
1068
|
className: d(
|
|
2332
|
-
|
|
1069
|
+
e,
|
|
2333
1070
|
"bn-flex bn-gap-1 bn-p-1 bn-bg-popover bn-text-popover-foreground bn-border bn-rounded-lg bn-shadow-md"
|
|
2334
1071
|
),
|
|
2335
|
-
ref:
|
|
2336
|
-
onMouseEnter:
|
|
2337
|
-
onMouseLeave:
|
|
2338
|
-
children:
|
|
2339
|
-
}
|
|
2340
|
-
|
|
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);
|
|
1072
|
+
ref: n,
|
|
1073
|
+
onMouseEnter: r,
|
|
1074
|
+
onMouseLeave: s,
|
|
1075
|
+
children: o
|
|
1076
|
+
}
|
|
1077
|
+
) });
|
|
2353
1078
|
}
|
|
2354
|
-
),
|
|
2355
|
-
(t,
|
|
1079
|
+
), P = p(
|
|
1080
|
+
(t, n) => {
|
|
2356
1081
|
const {
|
|
2357
|
-
className:
|
|
2358
|
-
children:
|
|
2359
|
-
mainTooltip:
|
|
2360
|
-
secondaryTooltip:
|
|
2361
|
-
icon:
|
|
2362
|
-
isSelected:
|
|
2363
|
-
isDisabled:
|
|
2364
|
-
onClick:
|
|
2365
|
-
label:
|
|
2366
|
-
...
|
|
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
|
|
2367
1092
|
} = t;
|
|
2368
|
-
|
|
2369
|
-
const
|
|
2370
|
-
|
|
1093
|
+
c(x, !1);
|
|
1094
|
+
const w = g(), y = u === void 0 ? /* @__PURE__ */ v(
|
|
1095
|
+
w.Button.Button,
|
|
2371
1096
|
{
|
|
2372
|
-
className:
|
|
1097
|
+
className: e,
|
|
2373
1098
|
variant: "ghost",
|
|
2374
|
-
disabled:
|
|
2375
|
-
onClick:
|
|
2376
|
-
ref:
|
|
2377
|
-
"aria-label":
|
|
2378
|
-
...
|
|
1099
|
+
disabled: m,
|
|
1100
|
+
onClick: b,
|
|
1101
|
+
ref: n,
|
|
1102
|
+
"aria-label": f,
|
|
1103
|
+
...x,
|
|
2379
1104
|
children: [
|
|
2380
|
-
|
|
2381
|
-
|
|
1105
|
+
i,
|
|
1106
|
+
o
|
|
2382
1107
|
]
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
|
|
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,
|
|
1108
|
+
}
|
|
1109
|
+
) : /* @__PURE__ */ v(
|
|
1110
|
+
w.Toggle.Toggle,
|
|
2394
1111
|
{
|
|
2395
1112
|
className: d(
|
|
2396
|
-
|
|
1113
|
+
e,
|
|
2397
1114
|
"data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground"
|
|
2398
1115
|
),
|
|
2399
|
-
"aria-label":
|
|
2400
|
-
onClick:
|
|
2401
|
-
pressed:
|
|
2402
|
-
disabled:
|
|
2403
|
-
"data-state":
|
|
2404
|
-
"data-disabled":
|
|
2405
|
-
ref:
|
|
2406
|
-
...
|
|
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,
|
|
2407
1124
|
children: [
|
|
2408
|
-
|
|
2409
|
-
|
|
1125
|
+
i,
|
|
1126
|
+
o
|
|
2410
1127
|
]
|
|
2411
|
-
}
|
|
2412
|
-
void 0,
|
|
2413
|
-
!0,
|
|
2414
|
-
{
|
|
2415
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
|
|
2416
|
-
lineNumber: 74,
|
|
2417
|
-
columnNumber: 9
|
|
2418
|
-
},
|
|
2419
|
-
void 0
|
|
1128
|
+
}
|
|
2420
1129
|
);
|
|
2421
|
-
return /* @__PURE__ */
|
|
2422
|
-
/* @__PURE__ */
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
columnNumber: 9
|
|
2426
|
-
}, void 0),
|
|
2427
|
-
/* @__PURE__ */ s.jsxDEV(
|
|
2428
|
-
M.Tooltip.TooltipContent,
|
|
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,
|
|
2429
1134
|
{
|
|
2430
1135
|
className: "bn-flex bn-flex-col bn-items-center",
|
|
2431
1136
|
children: [
|
|
2432
|
-
/* @__PURE__ */
|
|
2433
|
-
|
|
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)
|
|
1137
|
+
/* @__PURE__ */ a("span", { children: r }),
|
|
1138
|
+
s && /* @__PURE__ */ a("span", { children: s })
|
|
2442
1139
|
]
|
|
2443
|
-
}
|
|
2444
|
-
void 0,
|
|
2445
|
-
!0,
|
|
2446
|
-
{
|
|
2447
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
|
|
2448
|
-
lineNumber: 97,
|
|
2449
|
-
columnNumber: 9
|
|
2450
|
-
},
|
|
2451
|
-
void 0
|
|
1140
|
+
}
|
|
2452
1141
|
)
|
|
2453
|
-
] }
|
|
2454
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
|
|
2455
|
-
lineNumber: 93,
|
|
2456
|
-
columnNumber: 7
|
|
2457
|
-
}, void 0);
|
|
1142
|
+
] });
|
|
2458
1143
|
}
|
|
2459
|
-
),
|
|
2460
|
-
const { className:
|
|
2461
|
-
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
] },
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
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);
|
|
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);
|
|
2477
1158
|
},
|
|
2478
|
-
disabled:
|
|
1159
|
+
disabled: r,
|
|
2479
1160
|
children: [
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
|
|
2482
|
-
|
|
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,
|
|
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,
|
|
2502
1164
|
{
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
1165
|
+
disabled: b.isDisabled,
|
|
1166
|
+
value: b.text,
|
|
1167
|
+
children: /* @__PURE__ */ a(u, { ...b })
|
|
2506
1168
|
},
|
|
2507
|
-
|
|
2508
|
-
)) }
|
|
2509
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
|
|
2510
|
-
lineNumber: 141,
|
|
2511
|
-
columnNumber: 7
|
|
2512
|
-
}, void 0)
|
|
1169
|
+
b.text
|
|
1170
|
+
)) })
|
|
2513
1171
|
]
|
|
2514
|
-
}
|
|
2515
|
-
void 0,
|
|
2516
|
-
!0,
|
|
2517
|
-
{
|
|
2518
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/shadcn/src/toolbar/Toolbar.tsx",
|
|
2519
|
-
lineNumber: 132,
|
|
2520
|
-
columnNumber: 5
|
|
2521
|
-
},
|
|
2522
|
-
void 0
|
|
1172
|
+
}
|
|
2523
1173
|
) : null;
|
|
2524
|
-
}),
|
|
2525
|
-
const { className:
|
|
2526
|
-
|
|
2527
|
-
const
|
|
2528
|
-
return /* @__PURE__ */
|
|
2529
|
-
|
|
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,
|
|
2530
1180
|
{
|
|
2531
1181
|
type: "submit",
|
|
2532
|
-
className:
|
|
2533
|
-
"aria-label":
|
|
2534
|
-
ref:
|
|
2535
|
-
onClick:
|
|
2536
|
-
children:
|
|
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
|
|
1182
|
+
className: e,
|
|
1183
|
+
"aria-label": s,
|
|
1184
|
+
ref: n,
|
|
1185
|
+
onClick: r,
|
|
1186
|
+
children: o
|
|
1187
|
+
}
|
|
2546
1188
|
);
|
|
2547
|
-
}),
|
|
2548
|
-
const { className:
|
|
2549
|
-
|
|
2550
|
-
const
|
|
2551
|
-
return /* @__PURE__ */
|
|
2552
|
-
|
|
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,
|
|
2553
1195
|
{
|
|
2554
1196
|
type: "file",
|
|
2555
|
-
className:
|
|
2556
|
-
ref:
|
|
2557
|
-
accept:
|
|
2558
|
-
value:
|
|
2559
|
-
onChange: async (
|
|
2560
|
-
placeholder:
|
|
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
|
|
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
|
+
}
|
|
2570
1204
|
);
|
|
2571
|
-
}),
|
|
2572
|
-
const { className:
|
|
2573
|
-
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2576
|
-
if (!
|
|
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)
|
|
2577
1211
|
return;
|
|
2578
|
-
const
|
|
2579
|
-
|
|
1212
|
+
const b = F(
|
|
1213
|
+
m.current,
|
|
2580
1214
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
2581
1215
|
);
|
|
2582
|
-
|
|
2583
|
-
}, [
|
|
1216
|
+
b === "top" ? m.current.scrollIntoView(!0) : b === "bottom" && m.current.scrollIntoView(!1);
|
|
1217
|
+
}, [o]), /* @__PURE__ */ a(
|
|
2584
1218
|
"div",
|
|
2585
1219
|
{
|
|
2586
|
-
className:
|
|
2587
|
-
ref:
|
|
2588
|
-
id:
|
|
1220
|
+
className: e,
|
|
1221
|
+
ref: B([n, m]),
|
|
1222
|
+
id: i,
|
|
2589
1223
|
role: "option",
|
|
2590
|
-
onClick:
|
|
2591
|
-
"aria-selected":
|
|
2592
|
-
children:
|
|
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
|
|
1224
|
+
onClick: r,
|
|
1225
|
+
"aria-selected": o || void 0,
|
|
1226
|
+
children: s.icon
|
|
1227
|
+
}
|
|
2602
1228
|
);
|
|
2603
|
-
}),
|
|
1229
|
+
}), Ln = p((t, n) => {
|
|
2604
1230
|
const {
|
|
2605
|
-
className:
|
|
2606
|
-
children:
|
|
1231
|
+
className: e,
|
|
1232
|
+
children: o,
|
|
2607
1233
|
// unused, using "dots" instead
|
|
2608
|
-
columns:
|
|
2609
|
-
...
|
|
1234
|
+
columns: r,
|
|
1235
|
+
...s
|
|
2610
1236
|
} = t;
|
|
2611
|
-
return
|
|
1237
|
+
return c(s), /* @__PURE__ */ a(
|
|
2612
1238
|
"div",
|
|
2613
1239
|
{
|
|
2614
|
-
className:
|
|
2615
|
-
style: { gridColumn: `1 / ${
|
|
2616
|
-
ref:
|
|
2617
|
-
children:
|
|
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
|
|
1240
|
+
className: e,
|
|
1241
|
+
style: { gridColumn: `1 / ${r + 1}` },
|
|
1242
|
+
ref: n,
|
|
1243
|
+
children: o
|
|
1244
|
+
}
|
|
2627
1245
|
);
|
|
2628
|
-
}),
|
|
1246
|
+
}), zn = {
|
|
2629
1247
|
FormattingToolbar: {
|
|
2630
|
-
Root:
|
|
2631
|
-
Button:
|
|
2632
|
-
Select:
|
|
1248
|
+
Root: R,
|
|
1249
|
+
Button: P,
|
|
1250
|
+
Select: Pn
|
|
2633
1251
|
},
|
|
2634
1252
|
FilePanel: {
|
|
2635
|
-
Root:
|
|
2636
|
-
Button:
|
|
2637
|
-
FileInput:
|
|
2638
|
-
TabPanel:
|
|
2639
|
-
TextInput:
|
|
1253
|
+
Root: un,
|
|
1254
|
+
Button: Fn,
|
|
1255
|
+
FileInput: Bn,
|
|
1256
|
+
TabPanel: pn,
|
|
1257
|
+
TextInput: fn
|
|
2640
1258
|
},
|
|
2641
1259
|
LinkToolbar: {
|
|
2642
|
-
Root:
|
|
2643
|
-
Button:
|
|
1260
|
+
Root: R,
|
|
1261
|
+
Button: P
|
|
2644
1262
|
},
|
|
2645
1263
|
SideMenu: {
|
|
2646
|
-
Root:
|
|
2647
|
-
Button:
|
|
1264
|
+
Root: Nn,
|
|
1265
|
+
Button: xn
|
|
2648
1266
|
},
|
|
2649
1267
|
SuggestionMenu: {
|
|
2650
|
-
Root:
|
|
2651
|
-
Item:
|
|
2652
|
-
EmptyItem:
|
|
2653
|
-
Label:
|
|
2654
|
-
Loader:
|
|
1268
|
+
Root: yn,
|
|
1269
|
+
Item: Tn,
|
|
1270
|
+
EmptyItem: Sn,
|
|
1271
|
+
Label: Mn,
|
|
1272
|
+
Loader: In
|
|
2655
1273
|
},
|
|
2656
1274
|
GridSuggestionMenu: {
|
|
2657
|
-
Root:
|
|
2658
|
-
Item:
|
|
2659
|
-
EmptyItem:
|
|
2660
|
-
Loader:
|
|
1275
|
+
Root: wn,
|
|
1276
|
+
Item: kn,
|
|
1277
|
+
EmptyItem: Cn,
|
|
1278
|
+
Loader: Ln
|
|
2661
1279
|
},
|
|
2662
1280
|
TableHandle: {
|
|
2663
|
-
Root:
|
|
2664
|
-
ExtendButton:
|
|
1281
|
+
Root: Rn,
|
|
1282
|
+
ExtendButton: Dn
|
|
2665
1283
|
},
|
|
2666
1284
|
Generic: {
|
|
2667
1285
|
Form: {
|
|
2668
|
-
Root:
|
|
2669
|
-
TextInput:
|
|
1286
|
+
Root: on,
|
|
1287
|
+
TextInput: rn
|
|
2670
1288
|
},
|
|
2671
1289
|
Menu: {
|
|
2672
|
-
Root:
|
|
2673
|
-
Trigger:
|
|
2674
|
-
Dropdown:
|
|
2675
|
-
Divider:
|
|
2676
|
-
Label:
|
|
2677
|
-
Item:
|
|
1290
|
+
Root: sn,
|
|
1291
|
+
Trigger: dn,
|
|
1292
|
+
Dropdown: bn,
|
|
1293
|
+
Divider: cn,
|
|
1294
|
+
Label: mn,
|
|
1295
|
+
Item: ln
|
|
2678
1296
|
},
|
|
2679
1297
|
Popover: {
|
|
2680
|
-
Root:
|
|
2681
|
-
Trigger:
|
|
2682
|
-
Content:
|
|
1298
|
+
Root: gn,
|
|
1299
|
+
Trigger: hn,
|
|
1300
|
+
Content: vn
|
|
2683
1301
|
}
|
|
2684
1302
|
}
|
|
2685
|
-
},
|
|
2686
|
-
const { className:
|
|
2687
|
-
...
|
|
2688
|
-
...
|
|
2689
|
-
}), [
|
|
2690
|
-
return /* @__PURE__ */
|
|
2691
|
-
|
|
2692
|
-
{
|
|
2693
|
-
className:
|
|
2694
|
-
...
|
|
2695
|
-
}
|
|
2696
|
-
|
|
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);
|
|
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
|
+
) }) });
|
|
2713
1315
|
};
|
|
2714
1316
|
export {
|
|
2715
|
-
|
|
2716
|
-
|
|
1317
|
+
Wn as BlockNoteView,
|
|
1318
|
+
zn as components
|
|
2717
1319
|
};
|
|
2718
1320
|
//# sourceMappingURL=blocknote-shadcn.js.map
|