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