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