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