@blocknote/shadcn 0.14.0 → 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 +812 -778
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/blocknote-shadcn.umd.cjs +14 -9
- 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 +9 -3
- 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 +25 -9
- 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
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
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";
|
|
5
|
+
import { cva as Q } from "class-variance-authority";
|
|
6
|
+
import { clsx as ft } from "clsx";
|
|
7
|
+
import { extendTailwindMerge as mt } from "tailwind-merge";
|
|
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
|
|
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
|
-
import * as
|
|
13
|
+
import * as ee from "@radix-ui/react-popover";
|
|
13
14
|
import * as D from "@radix-ui/react-select";
|
|
14
|
-
import * as
|
|
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 de = { exports: {} }, Y = {};
|
|
18
|
+
var be = { exports: {} }, K = {};
|
|
19
19
|
/**
|
|
20
20
|
* @license React
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
@@ -25,25 +25,25 @@ var de = { exports: {} }, Y = {};
|
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
function c(x, m,
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
for (
|
|
38
|
-
a.call(m,
|
|
28
|
+
var Be;
|
|
29
|
+
function yt() {
|
|
30
|
+
if (Be)
|
|
31
|
+
return K;
|
|
32
|
+
Be = 1;
|
|
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
|
|
44
|
+
return K.Fragment = n, K.jsx = c, K.jsxs = c, K;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var J = {};
|
|
47
47
|
/**
|
|
48
48
|
* @license React
|
|
49
49
|
* react-jsx-runtime.development.js
|
|
@@ -53,27 +53,27 @@ var U = {};
|
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return
|
|
59
|
-
var
|
|
60
|
-
function
|
|
56
|
+
var Ve;
|
|
57
|
+
function wt() {
|
|
58
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
59
|
+
var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), 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
|
|
66
|
+
var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
67
67
|
function P(e) {
|
|
68
68
|
{
|
|
69
69
|
for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++)
|
|
70
70
|
l[f - 1] = arguments[f];
|
|
71
|
-
|
|
71
|
+
Nn("error", e, l);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Nn(e, s, l) {
|
|
75
75
|
{
|
|
76
|
-
var f =
|
|
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 ur() {
|
|
|
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
|
|
93
|
+
function _n(e, s, l) {
|
|
94
94
|
var f = e.displayName;
|
|
95
95
|
if (f)
|
|
96
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,27 +110,27 @@ function ur() {
|
|
|
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
|
|
131
|
+
return pe(l._context) + ".Provider";
|
|
132
132
|
case m:
|
|
133
|
-
return
|
|
133
|
+
return _n(e, e.render, "ForwardRef");
|
|
134
134
|
case S:
|
|
135
135
|
var f = e.displayName || null;
|
|
136
136
|
return f !== null ? f : F(e.type) || "Memo";
|
|
@@ -145,18 +145,18 @@ function ur() {
|
|
|
145
145
|
}
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
|
-
var O = Object.assign,
|
|
149
|
-
function
|
|
148
|
+
var O = Object.assign, W = 0, ge, ve, xe, he, ye, we, Ce;
|
|
149
|
+
function Ne() {
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
function
|
|
151
|
+
Ne.__reactDisabledLog = !0;
|
|
152
|
+
function Pn() {
|
|
153
153
|
{
|
|
154
|
-
if (
|
|
155
|
-
|
|
154
|
+
if (W === 0) {
|
|
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,
|
|
159
|
-
value:
|
|
159
|
+
value: Ne,
|
|
160
160
|
writable: !0
|
|
161
161
|
};
|
|
162
162
|
Object.defineProperties(console, {
|
|
@@ -169,12 +169,12 @@ function ur() {
|
|
|
169
169
|
groupEnd: e
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
W++;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function In() {
|
|
176
176
|
{
|
|
177
|
-
if (
|
|
177
|
+
if (W--, W === 0) {
|
|
178
178
|
var e = {
|
|
179
179
|
configurable: !0,
|
|
180
180
|
enumerable: !0,
|
|
@@ -182,32 +182,32 @@ function ur() {
|
|
|
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
|
-
value:
|
|
191
|
+
value: xe
|
|
192
192
|
}),
|
|
193
193
|
error: O({}, e, {
|
|
194
|
-
value:
|
|
194
|
+
value: he
|
|
195
195
|
}),
|
|
196
196
|
group: O({}, e, {
|
|
197
|
-
value:
|
|
197
|
+
value: ye
|
|
198
198
|
}),
|
|
199
199
|
groupCollapsed: O({}, e, {
|
|
200
|
-
value:
|
|
200
|
+
value: we
|
|
201
201
|
}),
|
|
202
202
|
groupEnd: O({}, e, {
|
|
203
|
-
value:
|
|
203
|
+
value: Ce
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
W < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var te =
|
|
210
|
+
var te = A.ReactCurrentDispatcher, re;
|
|
211
211
|
function G(e, s, l) {
|
|
212
212
|
{
|
|
213
213
|
if (re === void 0)
|
|
@@ -223,10 +223,10 @@ function ur() {
|
|
|
223
223
|
}
|
|
224
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
|
-
function
|
|
229
|
+
function je(e, s) {
|
|
230
230
|
if (!e || oe)
|
|
231
231
|
return "";
|
|
232
232
|
{
|
|
@@ -239,7 +239,7 @@ function ur() {
|
|
|
239
239
|
var y = Error.prepareStackTrace;
|
|
240
240
|
Error.prepareStackTrace = void 0;
|
|
241
241
|
var w;
|
|
242
|
-
w = te.current, te.current = null,
|
|
242
|
+
w = te.current, te.current = null, Pn();
|
|
243
243
|
try {
|
|
244
244
|
if (s) {
|
|
245
245
|
var h = function() {
|
|
@@ -252,29 +252,29 @@ function ur() {
|
|
|
252
252
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
253
253
|
try {
|
|
254
254
|
Reflect.construct(h, []);
|
|
255
|
-
} catch (
|
|
256
|
-
f =
|
|
255
|
+
} catch (M) {
|
|
256
|
+
f = M;
|
|
257
257
|
}
|
|
258
258
|
Reflect.construct(e, [], h);
|
|
259
259
|
} else {
|
|
260
260
|
try {
|
|
261
261
|
h.call();
|
|
262
|
-
} catch (
|
|
263
|
-
f =
|
|
262
|
+
} catch (M) {
|
|
263
|
+
f = M;
|
|
264
264
|
}
|
|
265
265
|
e.call(h.prototype);
|
|
266
266
|
}
|
|
267
267
|
} else {
|
|
268
268
|
try {
|
|
269
269
|
throw Error();
|
|
270
|
-
} catch (
|
|
271
|
-
f =
|
|
270
|
+
} catch (M) {
|
|
271
|
+
f = M;
|
|
272
272
|
}
|
|
273
273
|
e();
|
|
274
274
|
}
|
|
275
|
-
} catch (
|
|
276
|
-
if (
|
|
277
|
-
for (var v =
|
|
275
|
+
} catch (M) {
|
|
276
|
+
if (M && f && typeof M.stack == "string") {
|
|
277
|
+
for (var v = M.stack.split(`
|
|
278
278
|
`), I = f.stack.split(`
|
|
279
279
|
`), j = v.length - 1, E = I.length - 1; j >= 1 && E >= 0 && v[j] !== I[E]; )
|
|
280
280
|
E--;
|
|
@@ -283,67 +283,67 @@ function ur() {
|
|
|
283
283
|
if (j !== 1 || E !== 1)
|
|
284
284
|
do
|
|
285
285
|
if (j--, E--, E < 0 || v[j] !== I[E]) {
|
|
286
|
-
var
|
|
286
|
+
var k = `
|
|
287
287
|
` + v[j].replace(" at new ", " at ");
|
|
288
|
-
return e.displayName &&
|
|
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);
|
|
291
291
|
break;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
} finally {
|
|
295
|
-
oe = !1, te.current = w,
|
|
295
|
+
oe = !1, te.current = w, In(), Error.prepareStackTrace = y;
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
return typeof e == "function" && H.set(e,
|
|
297
|
+
var z = e ? e.displayName || e.name : "", L = z ? G(z) : "";
|
|
298
|
+
return typeof e == "function" && H.set(e, L), L;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function kn(e, s, l) {
|
|
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
|
}
|
|
307
|
-
function
|
|
307
|
+
function X(e, s, l) {
|
|
308
308
|
if (e == null)
|
|
309
309
|
return "";
|
|
310
310
|
if (typeof e == "function")
|
|
311
|
-
return
|
|
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
322
|
case m:
|
|
323
|
-
return
|
|
323
|
+
return kn(e.render);
|
|
324
324
|
case S:
|
|
325
|
-
return
|
|
325
|
+
return X(e.type, s, l);
|
|
326
326
|
case _: {
|
|
327
327
|
var f = e, y = f._payload, w = f._init;
|
|
328
328
|
try {
|
|
329
|
-
return
|
|
329
|
+
return X(w(y), s, l);
|
|
330
330
|
} catch {
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
return "";
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
336
|
+
var Y = Object.prototype.hasOwnProperty, Te = {}, Re = A.ReactDebugCurrentFrame;
|
|
337
|
+
function Z(e) {
|
|
338
338
|
if (e) {
|
|
339
|
-
var s = e._owner, l =
|
|
340
|
-
|
|
339
|
+
var s = e._owner, l = X(e.type, e._source, s ? s.type : null);
|
|
340
|
+
Re.setExtraStackFrame(l);
|
|
341
341
|
} else
|
|
342
|
-
|
|
342
|
+
Re.setExtraStackFrame(null);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function On(e, s, l, f, y) {
|
|
345
345
|
{
|
|
346
|
-
var w = Function.call.bind(
|
|
346
|
+
var w = Function.call.bind(Y);
|
|
347
347
|
for (var h in e)
|
|
348
348
|
if (w(e, h)) {
|
|
349
349
|
var v = void 0;
|
|
@@ -356,67 +356,67 @@ function ur() {
|
|
|
356
356
|
} catch (j) {
|
|
357
357
|
v = j;
|
|
358
358
|
}
|
|
359
|
-
v && !(v instanceof Error) && (
|
|
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
|
|
364
|
-
function
|
|
365
|
-
return
|
|
363
|
+
var Ln = Array.isArray;
|
|
364
|
+
function ae(e) {
|
|
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
|
-
return
|
|
375
|
+
return Se(e), !1;
|
|
376
376
|
} catch {
|
|
377
377
|
return !0;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Se(e) {
|
|
381
381
|
return "" + e;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
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.",
|
|
383
|
+
function Ee(e) {
|
|
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
|
|
387
|
+
var U = A.ReactCurrentOwner, An = {
|
|
388
388
|
key: !0,
|
|
389
389
|
ref: !0,
|
|
390
390
|
__self: !0,
|
|
391
391
|
__source: !0
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
function
|
|
395
|
-
if (
|
|
392
|
+
}, De, _e, se;
|
|
393
|
+
se = {};
|
|
394
|
+
function $n(e) {
|
|
395
|
+
if (Y.call(e, "ref")) {
|
|
396
396
|
var s = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
397
397
|
if (s && s.isReactWarning)
|
|
398
398
|
return !1;
|
|
399
399
|
}
|
|
400
400
|
return e.ref !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
if (
|
|
402
|
+
function zn(e) {
|
|
403
|
+
if (Y.call(e, "key")) {
|
|
404
404
|
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
405
405
|
if (s && s.isReactWarning)
|
|
406
406
|
return !1;
|
|
407
407
|
}
|
|
408
408
|
return e.key !== void 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
if (typeof e.ref == "string" &&
|
|
412
|
-
var l = F(
|
|
413
|
-
|
|
410
|
+
function Wn(e, s) {
|
|
411
|
+
if (typeof e.ref == "string" && U.current && s && U.current.stateNode !== s) {
|
|
412
|
+
var l = F(U.current.type);
|
|
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));
|
|
420
420
|
};
|
|
421
421
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
422
422
|
get: l,
|
|
@@ -424,10 +424,10 @@ function ur() {
|
|
|
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));
|
|
431
431
|
};
|
|
432
432
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
433
433
|
get: l,
|
|
@@ -435,10 +435,10 @@ function ur() {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var Kn = function(e, s, l, f, y, w, h) {
|
|
439
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,
|
|
@@ -464,12 +464,12 @@ function ur() {
|
|
|
464
464
|
value: y
|
|
465
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
469
|
var w, h = {}, v = null, I = null;
|
|
470
|
-
l !== void 0 && (
|
|
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
|
-
|
|
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)
|
|
@@ -477,28 +477,28 @@ function ur() {
|
|
|
477
477
|
}
|
|
478
478
|
if (v || I) {
|
|
479
479
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
480
|
-
v &&
|
|
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
|
-
var
|
|
486
|
-
function
|
|
485
|
+
var ie = A.ReactCurrentOwner, Pe = A.ReactDebugCurrentFrame;
|
|
486
|
+
function $(e) {
|
|
487
487
|
if (e) {
|
|
488
|
-
var s = e._owner, l =
|
|
489
|
-
|
|
488
|
+
var s = e._owner, l = X(e.type, e._source, s ? s.type : null);
|
|
489
|
+
Pe.setExtraStackFrame(l);
|
|
490
490
|
} else
|
|
491
|
-
|
|
491
|
+
Pe.setExtraStackFrame(null);
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
|
|
495
|
-
function
|
|
496
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
493
|
+
var le;
|
|
494
|
+
le = !1;
|
|
495
|
+
function de(e) {
|
|
496
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Ie() {
|
|
499
499
|
{
|
|
500
|
-
if (
|
|
501
|
-
var e = F(
|
|
500
|
+
if (ie.current) {
|
|
501
|
+
var e = F(ie.current.type);
|
|
502
502
|
if (e)
|
|
503
503
|
return `
|
|
504
504
|
|
|
@@ -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;
|
|
@@ -518,10 +518,10 @@ Check your code at ` + s + ":" + l + ".";
|
|
|
518
518
|
return "";
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
521
|
+
var Me = {};
|
|
522
|
+
function Gn(e) {
|
|
523
523
|
{
|
|
524
|
-
var s =
|
|
524
|
+
var s = Ie();
|
|
525
525
|
if (!s) {
|
|
526
526
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
527
527
|
l && (s = `
|
|
@@ -531,39 +531,39 @@ Check the top-level render call using <` + l + ">.");
|
|
|
531
531
|
return s;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ke(e, s) {
|
|
535
535
|
{
|
|
536
536
|
if (!e._store || e._store.validated || e.key != null)
|
|
537
537
|
return;
|
|
538
538
|
e._store.validated = !0;
|
|
539
|
-
var l =
|
|
540
|
-
if (
|
|
539
|
+
var l = Gn(s);
|
|
540
|
+
if (Me[l])
|
|
541
541
|
return;
|
|
542
|
-
|
|
542
|
+
Me[l] = !0;
|
|
543
543
|
var f = "";
|
|
544
|
-
e && e._owner && e._owner !==
|
|
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
|
-
function
|
|
547
|
+
function Fe(e, s) {
|
|
548
548
|
{
|
|
549
549
|
if (typeof e != "object")
|
|
550
550
|
return;
|
|
551
|
-
if (
|
|
551
|
+
if (ae(e))
|
|
552
552
|
for (var l = 0; l < e.length; l++) {
|
|
553
553
|
var f = e[l];
|
|
554
|
-
|
|
554
|
+
de(f) && ke(f, s);
|
|
555
555
|
}
|
|
556
|
-
else if (
|
|
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")
|
|
@@ -579,81 +579,99 @@ Check the top-level render call using <` + l + ">.");
|
|
|
579
579
|
return;
|
|
580
580
|
if (l) {
|
|
581
581
|
var f = F(s);
|
|
582
|
-
|
|
583
|
-
} else if (s.PropTypes !== void 0 && !
|
|
584
|
-
|
|
582
|
+
On(l, e.props, "prop", f, e);
|
|
583
|
+
} else if (s.PropTypes !== void 0 && !le) {
|
|
584
|
+
le = !0;
|
|
585
585
|
var y = F(s);
|
|
586
586
|
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
587
587
|
}
|
|
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
594
|
var f = s[l];
|
|
595
595
|
if (f !== "children" && f !== "key") {
|
|
596
|
-
|
|
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
|
}
|
|
600
|
-
e.ref !== null && (
|
|
600
|
+
e.ref !== null && ($(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
|
|
603
|
+
var Oe = {};
|
|
604
|
+
function Le(e, s, l, f, y, w) {
|
|
604
605
|
{
|
|
605
|
-
var h =
|
|
606
|
+
var h = Dn(e);
|
|
606
607
|
if (!h) {
|
|
607
608
|
var v = "";
|
|
608
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.");
|
|
609
|
-
var I =
|
|
610
|
-
I ? v += I : v +=
|
|
610
|
+
var I = qn(y);
|
|
611
|
+
I ? v += I : v += Ie();
|
|
611
612
|
var j;
|
|
612
|
-
e === null ? j = "null" :
|
|
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);
|
|
613
614
|
}
|
|
614
|
-
var E =
|
|
615
|
+
var E = Jn(e, s, l, y, w);
|
|
615
616
|
if (E == null)
|
|
616
617
|
return E;
|
|
617
618
|
if (h) {
|
|
618
|
-
var
|
|
619
|
-
if (
|
|
619
|
+
var k = s.children;
|
|
620
|
+
if (k !== void 0)
|
|
620
621
|
if (f)
|
|
621
|
-
if (
|
|
622
|
-
for (var
|
|
623
|
-
|
|
624
|
-
Object.freeze && Object.freeze(
|
|
622
|
+
if (ae(k)) {
|
|
623
|
+
for (var z = 0; z < k.length; z++)
|
|
624
|
+
Fe(k[z], e);
|
|
625
|
+
Object.freeze && Object.freeze(k);
|
|
625
626
|
} else
|
|
626
627
|
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
627
628
|
else
|
|
628
|
-
|
|
629
|
+
Fe(k, e);
|
|
629
630
|
}
|
|
630
|
-
|
|
631
|
+
if (Y.call(s, "key")) {
|
|
632
|
+
var L = F(e), M = Object.keys(s).filter(function(rt) {
|
|
633
|
+
return rt !== "key";
|
|
634
|
+
}), ce = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
635
|
+
if (!Oe[L + ce]) {
|
|
636
|
+
var tt = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
|
|
637
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
638
|
+
let props = %s;
|
|
639
|
+
<%s {...props} />
|
|
640
|
+
React keys must be passed directly to JSX without using spread:
|
|
641
|
+
let props = %s;
|
|
642
|
+
<%s key={someKey} {...props} />`, ce, L, tt, L), Oe[L + ce] = !0;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return e === a ? Xn(E) : Hn(E), E;
|
|
631
646
|
}
|
|
632
647
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
648
|
+
function Zn(e, s, l) {
|
|
649
|
+
return Le(e, s, l, !0);
|
|
635
650
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
651
|
+
function Qn(e, s, l) {
|
|
652
|
+
return Le(e, s, l, !1);
|
|
638
653
|
}
|
|
639
|
-
var
|
|
640
|
-
|
|
641
|
-
}()),
|
|
654
|
+
var et = Qn, nt = Zn;
|
|
655
|
+
J.Fragment = a, J.jsx = et, J.jsxs = nt;
|
|
656
|
+
}()), J;
|
|
642
657
|
}
|
|
643
|
-
process.env.NODE_ENV === "production" ?
|
|
644
|
-
var
|
|
645
|
-
|
|
646
|
-
|
|
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));
|
|
647
665
|
}
|
|
648
|
-
const
|
|
649
|
-
"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",
|
|
650
668
|
{
|
|
651
669
|
variants: {
|
|
652
670
|
variant: {
|
|
653
|
-
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
654
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
655
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
656
|
-
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"
|
|
657
675
|
}
|
|
658
676
|
},
|
|
659
677
|
defaultVariants: {
|
|
@@ -661,26 +679,26 @@ const fr = Z(
|
|
|
661
679
|
}
|
|
662
680
|
}
|
|
663
681
|
);
|
|
664
|
-
function
|
|
665
|
-
return /* @__PURE__ */
|
|
682
|
+
function jt({ className: r, variant: t, ...n }) {
|
|
683
|
+
return /* @__PURE__ */ o.jsx("div", { className: b(Nt({ variant: t }), r), ...n });
|
|
666
684
|
}
|
|
667
|
-
const
|
|
668
|
-
"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",
|
|
669
687
|
{
|
|
670
688
|
variants: {
|
|
671
689
|
variant: {
|
|
672
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
673
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
674
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
675
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
676
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
677
|
-
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"
|
|
678
696
|
},
|
|
679
697
|
size: {
|
|
680
|
-
default: "h-10 px-4 py-2",
|
|
681
|
-
sm: "h-9 rounded-md px-3",
|
|
682
|
-
lg: "h-11 rounded-md px-8",
|
|
683
|
-
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"
|
|
684
702
|
}
|
|
685
703
|
},
|
|
686
704
|
defaultVariants: {
|
|
@@ -688,13 +706,13 @@ const pr = Z(
|
|
|
688
706
|
size: "default"
|
|
689
707
|
}
|
|
690
708
|
}
|
|
691
|
-
), He =
|
|
692
|
-
({ className:
|
|
693
|
-
const c = a ?
|
|
694
|
-
return /* @__PURE__ */
|
|
709
|
+
), He = p.forwardRef(
|
|
710
|
+
({ className: r, variant: t, size: n, asChild: a = !1, ...i }, d) => {
|
|
711
|
+
const c = a ? Ye : "button";
|
|
712
|
+
return /* @__PURE__ */ o.jsx(
|
|
695
713
|
c,
|
|
696
714
|
{
|
|
697
|
-
className:
|
|
715
|
+
className: b(Tt({ variant: t, size: n, className: r })),
|
|
698
716
|
ref: d,
|
|
699
717
|
...i
|
|
700
718
|
}
|
|
@@ -702,446 +720,449 @@ const pr = Z(
|
|
|
702
720
|
}
|
|
703
721
|
);
|
|
704
722
|
He.displayName = "Button";
|
|
705
|
-
const
|
|
723
|
+
const Xe = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
706
724
|
"div",
|
|
707
725
|
{
|
|
708
|
-
ref:
|
|
709
|
-
className:
|
|
710
|
-
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
711
|
-
|
|
726
|
+
ref: n,
|
|
727
|
+
className: b(
|
|
728
|
+
"bn-rounded-lg bn-border bn-bg-card bn-text-card-foreground bn-shadow-sm",
|
|
729
|
+
r
|
|
712
730
|
),
|
|
713
|
-
...
|
|
731
|
+
...t
|
|
714
732
|
}
|
|
715
733
|
));
|
|
716
|
-
|
|
717
|
-
const
|
|
734
|
+
Xe.displayName = "Card";
|
|
735
|
+
const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
718
736
|
"div",
|
|
719
737
|
{
|
|
720
|
-
ref:
|
|
721
|
-
className:
|
|
722
|
-
...
|
|
738
|
+
ref: n,
|
|
739
|
+
className: b("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", r),
|
|
740
|
+
...t
|
|
723
741
|
}
|
|
724
742
|
));
|
|
725
|
-
|
|
726
|
-
const
|
|
743
|
+
Rt.displayName = "CardHeader";
|
|
744
|
+
const St = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
727
745
|
"h3",
|
|
728
746
|
{
|
|
729
|
-
ref:
|
|
730
|
-
className:
|
|
731
|
-
"text-2xl font-semibold leading-none tracking-tight",
|
|
732
|
-
|
|
747
|
+
ref: n,
|
|
748
|
+
className: b(
|
|
749
|
+
"bn-text-2xl bn-font-semibold bn-leading-none bn-tracking-tight",
|
|
750
|
+
r
|
|
733
751
|
),
|
|
734
|
-
...
|
|
752
|
+
...t
|
|
735
753
|
}
|
|
736
754
|
));
|
|
737
|
-
|
|
738
|
-
const
|
|
755
|
+
St.displayName = "CardTitle";
|
|
756
|
+
const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
739
757
|
"p",
|
|
740
758
|
{
|
|
741
|
-
ref:
|
|
742
|
-
className:
|
|
743
|
-
...
|
|
759
|
+
ref: n,
|
|
760
|
+
className: b("bn-text-sm bn-text-muted-foreground", r),
|
|
761
|
+
...t
|
|
744
762
|
}
|
|
745
763
|
));
|
|
746
|
-
|
|
747
|
-
const
|
|
748
|
-
|
|
749
|
-
const
|
|
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 }));
|
|
766
|
+
Ze.displayName = "CardContent";
|
|
767
|
+
const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
750
768
|
"div",
|
|
751
769
|
{
|
|
752
|
-
ref:
|
|
753
|
-
className:
|
|
754
|
-
...
|
|
770
|
+
ref: n,
|
|
771
|
+
className: b("bn-flex bn-items-center bn-p-6 bn-pt-0", r),
|
|
772
|
+
...t
|
|
755
773
|
}
|
|
756
774
|
));
|
|
757
|
-
|
|
758
|
-
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(
|
|
759
777
|
T.SubTrigger,
|
|
760
778
|
{
|
|
761
779
|
ref: i,
|
|
762
|
-
className:
|
|
763
|
-
"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",
|
|
764
|
-
|
|
765
|
-
|
|
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
|
|
766
784
|
),
|
|
767
785
|
...a,
|
|
768
786
|
children: [
|
|
769
|
-
|
|
770
|
-
/* @__PURE__ */
|
|
787
|
+
n,
|
|
788
|
+
/* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
771
789
|
]
|
|
772
790
|
}
|
|
773
791
|
));
|
|
774
|
-
|
|
775
|
-
const
|
|
792
|
+
Qe.displayName = T.SubTrigger.displayName;
|
|
793
|
+
const en = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
776
794
|
T.SubContent,
|
|
777
795
|
{
|
|
778
|
-
ref:
|
|
779
|
-
className:
|
|
780
|
-
"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",
|
|
781
|
-
|
|
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
|
|
782
800
|
),
|
|
783
|
-
...
|
|
801
|
+
...t
|
|
784
802
|
}
|
|
785
803
|
));
|
|
786
|
-
|
|
787
|
-
const
|
|
804
|
+
en.displayName = T.SubContent.displayName;
|
|
805
|
+
const nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => (
|
|
788
806
|
// <DropdownMenuPrimitive.Portal>
|
|
789
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ o.jsx(
|
|
790
808
|
T.Content,
|
|
791
809
|
{
|
|
792
810
|
ref: a,
|
|
793
|
-
sideOffset:
|
|
794
|
-
className:
|
|
795
|
-
"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",
|
|
796
|
-
|
|
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
|
|
797
815
|
),
|
|
798
|
-
...
|
|
816
|
+
...n
|
|
799
817
|
}
|
|
800
818
|
)
|
|
801
819
|
));
|
|
802
|
-
|
|
803
|
-
const
|
|
820
|
+
nn.displayName = T.Content.displayName;
|
|
821
|
+
const tn = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
|
|
804
822
|
T.Item,
|
|
805
823
|
{
|
|
806
824
|
ref: a,
|
|
807
|
-
className:
|
|
808
|
-
"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",
|
|
809
|
-
|
|
810
|
-
|
|
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
|
|
811
829
|
),
|
|
812
|
-
...
|
|
830
|
+
...n
|
|
813
831
|
}
|
|
814
832
|
));
|
|
815
|
-
|
|
816
|
-
const
|
|
833
|
+
tn.displayName = T.Item.displayName;
|
|
834
|
+
const rn = p.forwardRef(({ className: r, children: t, checked: n, ...a }, i) => /* @__PURE__ */ o.jsxs(
|
|
817
835
|
T.CheckboxItem,
|
|
818
836
|
{
|
|
819
837
|
ref: i,
|
|
820
|
-
className:
|
|
821
|
-
"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",
|
|
822
|
-
|
|
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
|
|
823
841
|
),
|
|
824
|
-
checked:
|
|
842
|
+
checked: n,
|
|
825
843
|
...a,
|
|
826
844
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
|
|
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
|
|
829
847
|
]
|
|
830
848
|
}
|
|
831
849
|
));
|
|
832
|
-
|
|
833
|
-
const
|
|
850
|
+
rn.displayName = T.CheckboxItem.displayName;
|
|
851
|
+
const Mt = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
|
|
834
852
|
T.RadioItem,
|
|
835
853
|
{
|
|
836
854
|
ref: a,
|
|
837
|
-
className:
|
|
838
|
-
"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",
|
|
839
|
-
|
|
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
|
|
840
858
|
),
|
|
841
|
-
...
|
|
859
|
+
...n,
|
|
842
860
|
children: [
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
|
|
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
|
|
845
863
|
]
|
|
846
864
|
}
|
|
847
865
|
));
|
|
848
|
-
|
|
849
|
-
const
|
|
866
|
+
Mt.displayName = T.RadioItem.displayName;
|
|
867
|
+
const on = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
|
|
850
868
|
T.Label,
|
|
851
869
|
{
|
|
852
870
|
ref: a,
|
|
853
|
-
className:
|
|
854
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
855
|
-
|
|
856
|
-
|
|
871
|
+
className: b(
|
|
872
|
+
"bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
|
|
873
|
+
t && "bn-pl-8",
|
|
874
|
+
r
|
|
857
875
|
),
|
|
858
|
-
...
|
|
876
|
+
...n
|
|
859
877
|
}
|
|
860
878
|
));
|
|
861
|
-
|
|
862
|
-
const
|
|
879
|
+
on.displayName = T.Label.displayName;
|
|
880
|
+
const an = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
863
881
|
T.Separator,
|
|
864
882
|
{
|
|
865
|
-
ref:
|
|
866
|
-
className:
|
|
867
|
-
...
|
|
883
|
+
ref: n,
|
|
884
|
+
className: b("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", r),
|
|
885
|
+
...t
|
|
868
886
|
}
|
|
869
887
|
));
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
873
|
-
),
|
|
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(
|
|
874
892
|
qe.Root,
|
|
875
893
|
{
|
|
876
|
-
ref:
|
|
877
|
-
className:
|
|
878
|
-
...
|
|
894
|
+
ref: n,
|
|
895
|
+
className: b(kt(), r),
|
|
896
|
+
...t
|
|
879
897
|
}
|
|
880
898
|
));
|
|
881
|
-
|
|
882
|
-
const
|
|
899
|
+
ue.displayName = qe.Root.displayName;
|
|
900
|
+
const Ft = vt, Ot = p.createContext(
|
|
883
901
|
{}
|
|
884
|
-
),
|
|
885
|
-
const
|
|
886
|
-
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)
|
|
887
905
|
throw new Error("useFormField should be used within <FormField>");
|
|
888
|
-
const { id: d } =
|
|
906
|
+
const { id: d } = t;
|
|
889
907
|
return {
|
|
890
908
|
id: d,
|
|
891
|
-
name:
|
|
909
|
+
name: r.name,
|
|
892
910
|
formItemId: `${d}-form-item`,
|
|
893
911
|
formDescriptionId: `${d}-form-item-description`,
|
|
894
912
|
formMessageId: `${d}-form-item-message`,
|
|
895
913
|
...i
|
|
896
914
|
};
|
|
897
|
-
},
|
|
915
|
+
}, sn = p.createContext(
|
|
898
916
|
{}
|
|
899
|
-
),
|
|
900
|
-
const a =
|
|
901
|
-
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 }) });
|
|
902
920
|
});
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
const { error: a, formItemId: i } =
|
|
906
|
-
return /* @__PURE__ */
|
|
907
|
-
|
|
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,
|
|
908
926
|
{
|
|
909
|
-
ref:
|
|
910
|
-
className:
|
|
927
|
+
ref: n,
|
|
928
|
+
className: b(a && "bn-text-destructive", r),
|
|
911
929
|
htmlFor: i,
|
|
912
|
-
...
|
|
930
|
+
...t
|
|
913
931
|
}
|
|
914
932
|
);
|
|
915
933
|
});
|
|
916
|
-
|
|
917
|
-
const
|
|
918
|
-
const { error:
|
|
919
|
-
return /* @__PURE__ */
|
|
920
|
-
|
|
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(
|
|
938
|
+
Ye,
|
|
921
939
|
{
|
|
922
|
-
ref:
|
|
940
|
+
ref: t,
|
|
923
941
|
id: a,
|
|
924
|
-
"aria-describedby":
|
|
925
|
-
"aria-invalid": !!
|
|
926
|
-
...
|
|
942
|
+
"aria-describedby": n ? `${i} ${d}` : `${i}`,
|
|
943
|
+
"aria-invalid": !!n,
|
|
944
|
+
...r
|
|
927
945
|
}
|
|
928
946
|
);
|
|
929
947
|
});
|
|
930
|
-
|
|
931
|
-
const
|
|
932
|
-
const { formDescriptionId: a } =
|
|
933
|
-
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(
|
|
934
952
|
"p",
|
|
935
953
|
{
|
|
936
|
-
ref:
|
|
954
|
+
ref: n,
|
|
937
955
|
id: a,
|
|
938
|
-
className:
|
|
939
|
-
...
|
|
956
|
+
className: b("bn-text-sm bn-text-muted-foreground", r),
|
|
957
|
+
...t
|
|
940
958
|
}
|
|
941
959
|
);
|
|
942
960
|
});
|
|
943
|
-
|
|
944
|
-
const
|
|
945
|
-
const { error: i, formMessageId: d } =
|
|
946
|
-
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(
|
|
947
965
|
"p",
|
|
948
966
|
{
|
|
949
967
|
ref: a,
|
|
950
968
|
id: d,
|
|
951
|
-
className:
|
|
952
|
-
...
|
|
969
|
+
className: b("bn-text-sm bn-font-medium bn-text-destructive", r),
|
|
970
|
+
...n,
|
|
953
971
|
children: c
|
|
954
972
|
}
|
|
955
973
|
) : null;
|
|
956
974
|
});
|
|
957
|
-
|
|
958
|
-
const
|
|
959
|
-
({ className:
|
|
975
|
+
$t.displayName = "FormMessage";
|
|
976
|
+
const ln = p.forwardRef(
|
|
977
|
+
({ className: r, type: t, ...n }, a) => /* @__PURE__ */ o.jsx(
|
|
960
978
|
"input",
|
|
961
979
|
{
|
|
962
|
-
type:
|
|
963
|
-
className:
|
|
964
|
-
"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",
|
|
965
|
-
|
|
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
|
|
966
984
|
),
|
|
967
985
|
ref: a,
|
|
968
|
-
...
|
|
986
|
+
...n
|
|
969
987
|
}
|
|
970
988
|
)
|
|
971
989
|
);
|
|
972
|
-
|
|
973
|
-
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) => (
|
|
974
992
|
// <PopoverPrimitive.Portal>
|
|
975
|
-
/* @__PURE__ */
|
|
976
|
-
|
|
993
|
+
/* @__PURE__ */ o.jsx(
|
|
994
|
+
ee.Content,
|
|
977
995
|
{
|
|
978
996
|
ref: i,
|
|
979
|
-
align:
|
|
980
|
-
sideOffset:
|
|
981
|
-
className:
|
|
982
|
-
"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",
|
|
983
|
-
|
|
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
|
|
984
1002
|
),
|
|
985
1003
|
...a
|
|
986
1004
|
}
|
|
987
1005
|
)
|
|
988
1006
|
));
|
|
989
|
-
|
|
990
|
-
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(
|
|
991
1009
|
D.Trigger,
|
|
992
1010
|
{
|
|
993
1011
|
ref: a,
|
|
994
|
-
className:
|
|
995
|
-
"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",
|
|
996
|
-
|
|
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
|
|
997
1015
|
),
|
|
998
|
-
...
|
|
1016
|
+
...n,
|
|
999
1017
|
children: [
|
|
1000
|
-
|
|
1001
|
-
/* @__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" }) })
|
|
1002
1020
|
]
|
|
1003
1021
|
}
|
|
1004
1022
|
));
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1023
|
+
cn.displayName = D.Trigger.displayName;
|
|
1024
|
+
const bn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1007
1025
|
D.ScrollUpButton,
|
|
1008
1026
|
{
|
|
1009
|
-
ref:
|
|
1010
|
-
className:
|
|
1011
|
-
"flex cursor-default items-center justify-center py-1",
|
|
1012
|
-
|
|
1027
|
+
ref: n,
|
|
1028
|
+
className: b(
|
|
1029
|
+
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
1030
|
+
r
|
|
1013
1031
|
),
|
|
1014
|
-
...
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1032
|
+
...t,
|
|
1033
|
+
children: /* @__PURE__ */ o.jsx(gt, { className: "bn-h-4 bn-w-4" })
|
|
1016
1034
|
}
|
|
1017
1035
|
));
|
|
1018
|
-
|
|
1019
|
-
const
|
|
1036
|
+
bn.displayName = D.ScrollUpButton.displayName;
|
|
1037
|
+
const un = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1020
1038
|
D.ScrollDownButton,
|
|
1021
1039
|
{
|
|
1022
|
-
ref:
|
|
1023
|
-
className:
|
|
1024
|
-
"flex cursor-default items-center justify-center py-1",
|
|
1025
|
-
|
|
1040
|
+
ref: n,
|
|
1041
|
+
className: b(
|
|
1042
|
+
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
1043
|
+
r
|
|
1026
1044
|
),
|
|
1027
|
-
...
|
|
1028
|
-
children: /* @__PURE__ */
|
|
1045
|
+
...t,
|
|
1046
|
+
children: /* @__PURE__ */ o.jsx(Je, { className: "bn-h-4 bn-w-4" })
|
|
1029
1047
|
}
|
|
1030
1048
|
));
|
|
1031
|
-
|
|
1032
|
-
const
|
|
1049
|
+
un.displayName = D.ScrollDownButton.displayName;
|
|
1050
|
+
const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ...a }, i) => (
|
|
1033
1051
|
// <SelectPrimitive.Portal>
|
|
1034
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ o.jsxs(
|
|
1035
1053
|
D.Content,
|
|
1036
1054
|
{
|
|
1037
1055
|
ref: i,
|
|
1038
|
-
className:
|
|
1039
|
-
"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",
|
|
1040
|
-
|
|
1041
|
-
|
|
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
|
|
1042
1060
|
),
|
|
1043
|
-
position:
|
|
1061
|
+
position: n,
|
|
1044
1062
|
...a,
|
|
1045
1063
|
children: [
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ o.jsx(bn, {}),
|
|
1065
|
+
/* @__PURE__ */ o.jsx(
|
|
1048
1066
|
D.Viewport,
|
|
1049
1067
|
{
|
|
1050
|
-
className:
|
|
1051
|
-
"p-1",
|
|
1052
|
-
|
|
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)]"
|
|
1053
1071
|
),
|
|
1054
|
-
children:
|
|
1072
|
+
children: t
|
|
1055
1073
|
}
|
|
1056
1074
|
),
|
|
1057
|
-
/* @__PURE__ */
|
|
1075
|
+
/* @__PURE__ */ o.jsx(un, {})
|
|
1058
1076
|
]
|
|
1059
1077
|
}
|
|
1060
1078
|
)
|
|
1061
1079
|
));
|
|
1062
|
-
|
|
1063
|
-
const
|
|
1080
|
+
fn.displayName = D.Content.displayName;
|
|
1081
|
+
const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1064
1082
|
D.Label,
|
|
1065
1083
|
{
|
|
1066
|
-
ref:
|
|
1067
|
-
className:
|
|
1068
|
-
|
|
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
|
|
1069
1090
|
}
|
|
1070
1091
|
));
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1092
|
+
Kt.displayName = D.Label.displayName;
|
|
1093
|
+
const mn = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
|
|
1073
1094
|
D.Item,
|
|
1074
1095
|
{
|
|
1075
1096
|
ref: a,
|
|
1076
|
-
className:
|
|
1077
|
-
"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",
|
|
1078
|
-
|
|
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
|
|
1079
1100
|
),
|
|
1080
|
-
...
|
|
1101
|
+
...n,
|
|
1081
1102
|
children: [
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
/* @__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 })
|
|
1084
1105
|
]
|
|
1085
1106
|
}
|
|
1086
1107
|
));
|
|
1087
|
-
|
|
1088
|
-
const
|
|
1108
|
+
mn.displayName = D.Item.displayName;
|
|
1109
|
+
const Jt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1089
1110
|
D.Separator,
|
|
1090
1111
|
{
|
|
1091
|
-
ref:
|
|
1092
|
-
className:
|
|
1093
|
-
...
|
|
1112
|
+
ref: n,
|
|
1113
|
+
className: b("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", r),
|
|
1114
|
+
...t
|
|
1094
1115
|
}
|
|
1095
1116
|
));
|
|
1096
|
-
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1117
|
+
Jt.displayName = D.Separator.displayName;
|
|
1118
|
+
const qt = B.Root, pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1119
|
+
B.List,
|
|
1099
1120
|
{
|
|
1100
|
-
ref:
|
|
1101
|
-
className:
|
|
1102
|
-
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
1103
|
-
|
|
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
|
|
1104
1125
|
),
|
|
1105
|
-
...
|
|
1126
|
+
...t
|
|
1106
1127
|
}
|
|
1107
1128
|
));
|
|
1108
|
-
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1129
|
+
pn.displayName = B.List.displayName;
|
|
1130
|
+
const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1131
|
+
B.Trigger,
|
|
1111
1132
|
{
|
|
1112
|
-
ref:
|
|
1113
|
-
className:
|
|
1114
|
-
"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",
|
|
1115
|
-
|
|
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
|
|
1116
1137
|
),
|
|
1117
|
-
...
|
|
1138
|
+
...t
|
|
1118
1139
|
}
|
|
1119
1140
|
));
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1141
|
+
gn.displayName = B.Trigger.displayName;
|
|
1142
|
+
const vn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1143
|
+
B.Content,
|
|
1123
1144
|
{
|
|
1124
|
-
ref:
|
|
1125
|
-
className:
|
|
1126
|
-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1127
|
-
|
|
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
|
|
1128
1149
|
),
|
|
1129
|
-
...
|
|
1150
|
+
...t
|
|
1130
1151
|
}
|
|
1131
1152
|
));
|
|
1132
|
-
|
|
1133
|
-
const
|
|
1134
|
-
"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",
|
|
1135
1156
|
{
|
|
1136
1157
|
variants: {
|
|
1137
1158
|
variant: {
|
|
1138
|
-
default: "bg-transparent",
|
|
1139
|
-
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"
|
|
1140
1161
|
},
|
|
1141
1162
|
size: {
|
|
1142
|
-
default: "h-10 px-3",
|
|
1143
|
-
sm: "h-9 px-2.5",
|
|
1144
|
-
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"
|
|
1145
1166
|
}
|
|
1146
1167
|
},
|
|
1147
1168
|
defaultVariants: {
|
|
@@ -1149,99 +1170,99 @@ const Br = Z(
|
|
|
1149
1170
|
size: "default"
|
|
1150
1171
|
}
|
|
1151
1172
|
}
|
|
1152
|
-
),
|
|
1173
|
+
), xn = p.forwardRef(({ className: r, variant: t, size: n, ...a }, i) => /* @__PURE__ */ o.jsx(
|
|
1153
1174
|
Ge.Root,
|
|
1154
1175
|
{
|
|
1155
1176
|
ref: i,
|
|
1156
|
-
className:
|
|
1177
|
+
className: b(Gt({ variant: t, size: n, className: r })),
|
|
1157
1178
|
...a
|
|
1158
1179
|
}
|
|
1159
1180
|
));
|
|
1160
|
-
|
|
1161
|
-
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(
|
|
1162
1183
|
q.Content,
|
|
1163
1184
|
{
|
|
1164
1185
|
ref: a,
|
|
1165
|
-
sideOffset:
|
|
1166
|
-
className:
|
|
1167
|
-
"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",
|
|
1168
|
-
|
|
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
|
|
1169
1190
|
),
|
|
1170
|
-
...
|
|
1191
|
+
...n
|
|
1171
1192
|
}
|
|
1172
1193
|
));
|
|
1173
|
-
|
|
1174
|
-
const
|
|
1194
|
+
hn.displayName = q.Content.displayName;
|
|
1195
|
+
const Qt = {
|
|
1175
1196
|
Badge: {
|
|
1176
|
-
Badge:
|
|
1197
|
+
Badge: jt
|
|
1177
1198
|
},
|
|
1178
1199
|
Button: {
|
|
1179
1200
|
Button: He
|
|
1180
1201
|
},
|
|
1181
1202
|
Card: {
|
|
1182
|
-
Card:
|
|
1183
|
-
CardContent:
|
|
1203
|
+
Card: Xe,
|
|
1204
|
+
CardContent: Ze
|
|
1184
1205
|
},
|
|
1185
1206
|
DropdownMenu: {
|
|
1186
|
-
DropdownMenu:
|
|
1187
|
-
DropdownMenuCheckboxItem:
|
|
1188
|
-
DropdownMenuContent:
|
|
1189
|
-
DropdownMenuItem:
|
|
1190
|
-
DropdownMenuLabel:
|
|
1191
|
-
DropdownMenuSeparator:
|
|
1192
|
-
DropdownMenuSub:
|
|
1193
|
-
DropdownMenuSubContent:
|
|
1194
|
-
DropdownMenuSubTrigger:
|
|
1195
|
-
DropdownMenuTrigger:
|
|
1207
|
+
DropdownMenu: _t,
|
|
1208
|
+
DropdownMenuCheckboxItem: rn,
|
|
1209
|
+
DropdownMenuContent: nn,
|
|
1210
|
+
DropdownMenuItem: tn,
|
|
1211
|
+
DropdownMenuLabel: on,
|
|
1212
|
+
DropdownMenuSeparator: an,
|
|
1213
|
+
DropdownMenuSub: It,
|
|
1214
|
+
DropdownMenuSubContent: en,
|
|
1215
|
+
DropdownMenuSubTrigger: Qe,
|
|
1216
|
+
DropdownMenuTrigger: Pt
|
|
1196
1217
|
},
|
|
1197
1218
|
Form: {
|
|
1198
|
-
Form:
|
|
1219
|
+
Form: Ft
|
|
1199
1220
|
},
|
|
1200
1221
|
Input: {
|
|
1201
|
-
Input:
|
|
1222
|
+
Input: ln
|
|
1202
1223
|
},
|
|
1203
1224
|
Label: {
|
|
1204
|
-
Label:
|
|
1225
|
+
Label: ue
|
|
1205
1226
|
},
|
|
1206
1227
|
Popover: {
|
|
1207
|
-
Popover:
|
|
1208
|
-
PopoverContent:
|
|
1209
|
-
PopoverTrigger:
|
|
1228
|
+
Popover: zt,
|
|
1229
|
+
PopoverContent: dn,
|
|
1230
|
+
PopoverTrigger: Wt
|
|
1210
1231
|
},
|
|
1211
1232
|
Select: {
|
|
1212
|
-
Select:
|
|
1213
|
-
SelectContent:
|
|
1214
|
-
SelectItem:
|
|
1215
|
-
SelectTrigger:
|
|
1216
|
-
SelectValue:
|
|
1233
|
+
Select: Yt,
|
|
1234
|
+
SelectContent: fn,
|
|
1235
|
+
SelectItem: mn,
|
|
1236
|
+
SelectTrigger: cn,
|
|
1237
|
+
SelectValue: Ut
|
|
1217
1238
|
},
|
|
1218
1239
|
Tabs: {
|
|
1219
|
-
Tabs:
|
|
1220
|
-
TabsContent:
|
|
1221
|
-
TabsList:
|
|
1222
|
-
TabsTrigger:
|
|
1240
|
+
Tabs: qt,
|
|
1241
|
+
TabsContent: vn,
|
|
1242
|
+
TabsList: pn,
|
|
1243
|
+
TabsTrigger: gn
|
|
1223
1244
|
},
|
|
1224
1245
|
Toggle: {
|
|
1225
|
-
Toggle:
|
|
1246
|
+
Toggle: xn
|
|
1226
1247
|
},
|
|
1227
1248
|
Tooltip: {
|
|
1228
|
-
Tooltip:
|
|
1229
|
-
TooltipContent:
|
|
1230
|
-
TooltipProvider:
|
|
1231
|
-
TooltipTrigger:
|
|
1249
|
+
Tooltip: Xt,
|
|
1250
|
+
TooltipContent: hn,
|
|
1251
|
+
TooltipProvider: Ht,
|
|
1252
|
+
TooltipTrigger: Zt
|
|
1232
1253
|
}
|
|
1233
|
-
},
|
|
1254
|
+
}, yn = ot(void 0);
|
|
1234
1255
|
function R() {
|
|
1235
|
-
return
|
|
1256
|
+
return at(yn);
|
|
1236
1257
|
}
|
|
1237
|
-
const
|
|
1238
|
-
const { children:
|
|
1239
|
-
C(
|
|
1240
|
-
const a = R(), i =
|
|
1241
|
-
return /* @__PURE__ */
|
|
1242
|
-
},
|
|
1243
|
-
(
|
|
1244
|
-
|
|
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,
|
|
1245
1266
|
{
|
|
1246
1267
|
onPointerDown: (a) => {
|
|
1247
1268
|
a.nativeEvent.fakeEvent || (a.ctrlKey = !0);
|
|
@@ -1250,69 +1271,69 @@ const Wr = (o) => {
|
|
|
1250
1271
|
const i = new PointerEvent("pointerdown", a.nativeEvent);
|
|
1251
1272
|
i.fakeEvent = !0, a.target.dispatchEvent(i);
|
|
1252
1273
|
},
|
|
1253
|
-
...
|
|
1254
|
-
ref:
|
|
1274
|
+
...t,
|
|
1275
|
+
ref: n
|
|
1255
1276
|
}
|
|
1256
1277
|
)
|
|
1257
|
-
),
|
|
1278
|
+
), tr = (r) => {
|
|
1258
1279
|
const {
|
|
1259
|
-
children:
|
|
1260
|
-
onOpenChange:
|
|
1280
|
+
children: t,
|
|
1281
|
+
onOpenChange: n,
|
|
1261
1282
|
position: a,
|
|
1262
1283
|
// Unused
|
|
1263
1284
|
sub: i,
|
|
1264
1285
|
...d
|
|
1265
|
-
} =
|
|
1286
|
+
} = r;
|
|
1266
1287
|
C(d);
|
|
1267
1288
|
const c = R();
|
|
1268
|
-
return i ? /* @__PURE__ */
|
|
1289
|
+
return i ? /* @__PURE__ */ o.jsx(
|
|
1269
1290
|
c.DropdownMenu.DropdownMenuSub,
|
|
1270
1291
|
{
|
|
1271
|
-
onOpenChange:
|
|
1272
|
-
children:
|
|
1292
|
+
onOpenChange: n,
|
|
1293
|
+
children: t
|
|
1273
1294
|
}
|
|
1274
|
-
) : /* @__PURE__ */
|
|
1275
|
-
},
|
|
1276
|
-
const { children:
|
|
1295
|
+
) : /* @__PURE__ */ o.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
|
|
1296
|
+
}, rr = (r) => {
|
|
1297
|
+
const { children: t, sub: n, ...a } = r;
|
|
1277
1298
|
C(a);
|
|
1278
|
-
const i = R(), d =
|
|
1279
|
-
() =>
|
|
1299
|
+
const i = R(), d = We(
|
|
1300
|
+
() => nr(
|
|
1280
1301
|
i.DropdownMenu.DropdownMenuTrigger
|
|
1281
1302
|
),
|
|
1282
1303
|
[i.DropdownMenu.DropdownMenuTrigger]
|
|
1283
1304
|
);
|
|
1284
|
-
return
|
|
1285
|
-
},
|
|
1286
|
-
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;
|
|
1287
1308
|
C(d);
|
|
1288
1309
|
const c = R();
|
|
1289
|
-
return i ? /* @__PURE__ */
|
|
1310
|
+
return i ? /* @__PURE__ */ o.jsx(
|
|
1290
1311
|
c.DropdownMenu.DropdownMenuSubContent,
|
|
1291
1312
|
{
|
|
1292
|
-
className:
|
|
1293
|
-
ref:
|
|
1313
|
+
className: n,
|
|
1314
|
+
ref: t,
|
|
1294
1315
|
children: a
|
|
1295
1316
|
}
|
|
1296
|
-
) : /* @__PURE__ */
|
|
1317
|
+
) : /* @__PURE__ */ o.jsx(
|
|
1297
1318
|
c.DropdownMenu.DropdownMenuContent,
|
|
1298
1319
|
{
|
|
1299
|
-
className:
|
|
1300
|
-
ref:
|
|
1320
|
+
className: n,
|
|
1321
|
+
ref: t,
|
|
1301
1322
|
children: a
|
|
1302
1323
|
}
|
|
1303
1324
|
);
|
|
1304
|
-
}),
|
|
1305
|
-
const { className:
|
|
1325
|
+
}), ar = N((r, t) => {
|
|
1326
|
+
const { className: n, children: a, icon: i, checked: d, subTrigger: c, onClick: x, ...m } = r;
|
|
1306
1327
|
C(m);
|
|
1307
|
-
const
|
|
1308
|
-
return c ? /* @__PURE__ */
|
|
1328
|
+
const u = R();
|
|
1329
|
+
return c ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1309
1330
|
i,
|
|
1310
1331
|
a
|
|
1311
|
-
] }) : d !== void 0 ? /* @__PURE__ */
|
|
1312
|
-
|
|
1332
|
+
] }) : d !== void 0 ? /* @__PURE__ */ o.jsxs(
|
|
1333
|
+
u.DropdownMenu.DropdownMenuCheckboxItem,
|
|
1313
1334
|
{
|
|
1314
|
-
className:
|
|
1315
|
-
ref:
|
|
1335
|
+
className: b(n, "bn-gap-1"),
|
|
1336
|
+
ref: t,
|
|
1316
1337
|
checked: d,
|
|
1317
1338
|
onClick: x,
|
|
1318
1339
|
...m,
|
|
@@ -1321,46 +1342,46 @@ const Wr = (o) => {
|
|
|
1321
1342
|
a
|
|
1322
1343
|
]
|
|
1323
1344
|
}
|
|
1324
|
-
) : /* @__PURE__ */
|
|
1325
|
-
|
|
1345
|
+
) : /* @__PURE__ */ o.jsxs(
|
|
1346
|
+
u.DropdownMenu.DropdownMenuItem,
|
|
1326
1347
|
{
|
|
1327
|
-
className:
|
|
1328
|
-
ref:
|
|
1348
|
+
className: n,
|
|
1349
|
+
ref: t,
|
|
1329
1350
|
onClick: x,
|
|
1330
1351
|
...m,
|
|
1331
1352
|
children: [
|
|
1332
1353
|
i,
|
|
1333
1354
|
a,
|
|
1334
|
-
c && /* @__PURE__ */
|
|
1355
|
+
c && /* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
1335
1356
|
]
|
|
1336
1357
|
}
|
|
1337
1358
|
);
|
|
1338
|
-
}),
|
|
1339
|
-
const { className:
|
|
1359
|
+
}), sr = N((r, t) => {
|
|
1360
|
+
const { className: n, ...a } = r;
|
|
1340
1361
|
C(a);
|
|
1341
1362
|
const i = R();
|
|
1342
|
-
return /* @__PURE__ */
|
|
1363
|
+
return /* @__PURE__ */ o.jsx(
|
|
1343
1364
|
i.DropdownMenu.DropdownMenuSeparator,
|
|
1344
1365
|
{
|
|
1345
|
-
className:
|
|
1346
|
-
ref:
|
|
1366
|
+
className: n,
|
|
1367
|
+
ref: t
|
|
1347
1368
|
}
|
|
1348
1369
|
);
|
|
1349
|
-
}),
|
|
1350
|
-
const { className:
|
|
1370
|
+
}), ir = N((r, t) => {
|
|
1371
|
+
const { className: n, children: a, ...i } = r;
|
|
1351
1372
|
C(i);
|
|
1352
1373
|
const d = R();
|
|
1353
|
-
return /* @__PURE__ */
|
|
1374
|
+
return /* @__PURE__ */ o.jsx(
|
|
1354
1375
|
d.DropdownMenu.DropdownMenuLabel,
|
|
1355
1376
|
{
|
|
1356
|
-
className:
|
|
1357
|
-
ref:
|
|
1377
|
+
className: n,
|
|
1378
|
+
ref: t,
|
|
1358
1379
|
children: a
|
|
1359
1380
|
}
|
|
1360
1381
|
);
|
|
1361
|
-
}),
|
|
1382
|
+
}), lr = N((r, t) => {
|
|
1362
1383
|
const {
|
|
1363
|
-
className:
|
|
1384
|
+
className: n,
|
|
1364
1385
|
tabs: a,
|
|
1365
1386
|
defaultOpenTab: i,
|
|
1366
1387
|
openTab: d,
|
|
@@ -1368,251 +1389,258 @@ const Wr = (o) => {
|
|
|
1368
1389
|
loading: x,
|
|
1369
1390
|
// TODO: implement loader
|
|
1370
1391
|
...m
|
|
1371
|
-
} =
|
|
1392
|
+
} = r;
|
|
1372
1393
|
C(m);
|
|
1373
|
-
const
|
|
1374
|
-
return /* @__PURE__ */
|
|
1375
|
-
|
|
1394
|
+
const u = R();
|
|
1395
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1396
|
+
u.Tabs.Tabs,
|
|
1376
1397
|
{
|
|
1377
|
-
className:
|
|
1378
|
-
ref:
|
|
1398
|
+
className: b(n, "bn-bg-popover bn-p-2 bn-rounded-lg"),
|
|
1399
|
+
ref: t,
|
|
1379
1400
|
value: d,
|
|
1380
1401
|
defaultValue: i,
|
|
1381
1402
|
onValueChange: c,
|
|
1382
1403
|
children: [
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
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))
|
|
1385
1406
|
]
|
|
1386
1407
|
}
|
|
1387
1408
|
);
|
|
1388
|
-
}),
|
|
1389
|
-
const { className:
|
|
1409
|
+
}), dr = N((r, t) => {
|
|
1410
|
+
const { className: n, children: a, onClick: i, label: d, ...c } = r;
|
|
1390
1411
|
C(c);
|
|
1391
1412
|
const x = R();
|
|
1392
|
-
return /* @__PURE__ */
|
|
1413
|
+
return /* @__PURE__ */ o.jsx(
|
|
1393
1414
|
x.Button.Button,
|
|
1394
1415
|
{
|
|
1395
1416
|
type: "submit",
|
|
1396
|
-
className:
|
|
1417
|
+
className: n,
|
|
1397
1418
|
"aria-label": d,
|
|
1398
|
-
ref:
|
|
1419
|
+
ref: t,
|
|
1399
1420
|
onClick: i,
|
|
1400
1421
|
children: a
|
|
1401
1422
|
}
|
|
1402
1423
|
);
|
|
1403
|
-
}),
|
|
1404
|
-
const { className:
|
|
1424
|
+
}), cr = N((r, t) => {
|
|
1425
|
+
const { className: n, accept: a, value: i, placeholder: d, onChange: c, ...x } = r;
|
|
1405
1426
|
C(x);
|
|
1406
1427
|
const m = R();
|
|
1407
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ o.jsx(
|
|
1408
1429
|
m.Input.Input,
|
|
1409
1430
|
{
|
|
1410
1431
|
type: "file",
|
|
1411
|
-
className:
|
|
1412
|
-
ref:
|
|
1432
|
+
className: n,
|
|
1433
|
+
ref: t,
|
|
1413
1434
|
accept: a,
|
|
1414
1435
|
value: i ? i.name : void 0,
|
|
1415
|
-
onChange: async (
|
|
1436
|
+
onChange: async (u) => c == null ? void 0 : c(u.target.files[0]),
|
|
1416
1437
|
placeholder: d
|
|
1417
1438
|
}
|
|
1418
1439
|
);
|
|
1419
|
-
}),
|
|
1420
|
-
const { className:
|
|
1421
|
-
return C(i), /* @__PURE__ */
|
|
1440
|
+
}), br = N((r, t) => {
|
|
1441
|
+
const { className: n, children: a, ...i } = r;
|
|
1442
|
+
return C(i), /* @__PURE__ */ o.jsx(
|
|
1422
1443
|
"div",
|
|
1423
1444
|
{
|
|
1424
|
-
className:
|
|
1425
|
-
|
|
1426
|
-
"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"
|
|
1427
1448
|
),
|
|
1428
|
-
ref:
|
|
1449
|
+
ref: t,
|
|
1429
1450
|
children: a
|
|
1430
1451
|
}
|
|
1431
1452
|
);
|
|
1432
|
-
}),
|
|
1433
|
-
const { className:
|
|
1453
|
+
}), ur = N((r, t) => {
|
|
1454
|
+
const { className: n, value: a, placeholder: i, onKeyDown: d, onChange: c, ...x } = r;
|
|
1434
1455
|
C(x);
|
|
1435
1456
|
const m = R();
|
|
1436
|
-
return /* @__PURE__ */
|
|
1457
|
+
return /* @__PURE__ */ o.jsx(
|
|
1437
1458
|
m.Input.Input,
|
|
1438
1459
|
{
|
|
1439
1460
|
"data-test": "embed-input",
|
|
1440
|
-
className:
|
|
1441
|
-
ref:
|
|
1461
|
+
className: b(n, "bn-w-80"),
|
|
1462
|
+
ref: t,
|
|
1442
1463
|
value: a,
|
|
1443
1464
|
placeholder: i,
|
|
1444
1465
|
onKeyDown: d,
|
|
1445
1466
|
onChange: c
|
|
1446
1467
|
}
|
|
1447
1468
|
);
|
|
1448
|
-
}),
|
|
1469
|
+
}), fr = (r) => {
|
|
1449
1470
|
const {
|
|
1450
|
-
children:
|
|
1451
|
-
opened:
|
|
1471
|
+
children: t,
|
|
1472
|
+
opened: n,
|
|
1452
1473
|
position: a,
|
|
1453
1474
|
// unused
|
|
1454
1475
|
...i
|
|
1455
|
-
} =
|
|
1476
|
+
} = r;
|
|
1456
1477
|
C(i);
|
|
1457
1478
|
const d = R();
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
},
|
|
1460
|
-
(
|
|
1461
|
-
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;
|
|
1462
1483
|
C(a);
|
|
1463
1484
|
const i = R();
|
|
1464
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ o.jsx(i.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
|
|
1465
1486
|
}
|
|
1466
|
-
),
|
|
1467
|
-
const { className:
|
|
1487
|
+
), pr = N((r, t) => {
|
|
1488
|
+
const { className: n, variant: a, children: i, ...d } = r;
|
|
1468
1489
|
C(d);
|
|
1469
1490
|
const c = R();
|
|
1470
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ o.jsx(
|
|
1471
1492
|
c.Popover.PopoverContent,
|
|
1472
1493
|
{
|
|
1473
1494
|
sideOffset: 8,
|
|
1474
|
-
className:
|
|
1475
|
-
|
|
1476
|
-
"flex flex-col gap-2",
|
|
1477
|
-
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" : ""
|
|
1478
1499
|
),
|
|
1479
|
-
ref:
|
|
1500
|
+
ref: t,
|
|
1480
1501
|
children: i
|
|
1481
1502
|
}
|
|
1482
1503
|
);
|
|
1483
|
-
}),
|
|
1484
|
-
const { className:
|
|
1485
|
-
return C(i, !1), /* @__PURE__ */
|
|
1486
|
-
}),
|
|
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) => {
|
|
1487
1508
|
const {
|
|
1488
|
-
className:
|
|
1509
|
+
className: n,
|
|
1489
1510
|
children: a,
|
|
1490
1511
|
icon: i,
|
|
1491
1512
|
onClick: d,
|
|
1492
1513
|
onDragEnd: c,
|
|
1493
1514
|
onDragStart: x,
|
|
1494
1515
|
draggable: m,
|
|
1495
|
-
label:
|
|
1496
|
-
...
|
|
1497
|
-
} =
|
|
1498
|
-
C(
|
|
1516
|
+
label: u,
|
|
1517
|
+
...g
|
|
1518
|
+
} = r;
|
|
1519
|
+
C(g, !1);
|
|
1499
1520
|
const S = R();
|
|
1500
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1501
1522
|
S.Button.Button,
|
|
1502
1523
|
{
|
|
1503
1524
|
variant: "ghost",
|
|
1504
|
-
className:
|
|
1505
|
-
ref:
|
|
1506
|
-
"aria-label":
|
|
1525
|
+
className: b(n, "bn-text-gray-400"),
|
|
1526
|
+
ref: t,
|
|
1527
|
+
"aria-label": u,
|
|
1507
1528
|
onClick: d,
|
|
1508
1529
|
onDragStart: x,
|
|
1509
1530
|
onDragEnd: c,
|
|
1510
1531
|
draggable: m,
|
|
1511
|
-
...
|
|
1532
|
+
...g,
|
|
1512
1533
|
children: [
|
|
1513
1534
|
i,
|
|
1514
1535
|
a
|
|
1515
1536
|
]
|
|
1516
1537
|
}
|
|
1517
1538
|
);
|
|
1518
|
-
}),
|
|
1519
|
-
const { className:
|
|
1520
|
-
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(
|
|
1521
1542
|
"div",
|
|
1522
1543
|
{
|
|
1523
1544
|
id: i,
|
|
1524
1545
|
role: "listbox",
|
|
1525
|
-
className:
|
|
1526
|
-
"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",
|
|
1527
|
-
|
|
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
|
|
1528
1549
|
),
|
|
1529
|
-
ref:
|
|
1550
|
+
ref: t,
|
|
1530
1551
|
children: a
|
|
1531
1552
|
}
|
|
1532
1553
|
);
|
|
1533
|
-
}),
|
|
1534
|
-
const { className:
|
|
1535
|
-
return C(i), /* @__PURE__ */
|
|
1554
|
+
}), hr = N((r, t) => {
|
|
1555
|
+
const { className: n, children: a, ...i } = r;
|
|
1556
|
+
return C(i), /* @__PURE__ */ o.jsx(
|
|
1536
1557
|
"div",
|
|
1537
1558
|
{
|
|
1538
|
-
className:
|
|
1539
|
-
"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",
|
|
1540
|
-
|
|
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
|
|
1541
1562
|
),
|
|
1542
|
-
ref:
|
|
1543
|
-
children: /* @__PURE__ */
|
|
1563
|
+
ref: t,
|
|
1564
|
+
children: /* @__PURE__ */ o.jsx("div", { children: a })
|
|
1544
1565
|
}
|
|
1545
1566
|
);
|
|
1546
|
-
}),
|
|
1547
|
-
const
|
|
1548
|
-
|
|
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)
|
|
1573
|
+
return;
|
|
1574
|
+
const g = dt(u.current);
|
|
1575
|
+
g === "top" ? u.current.scrollIntoView(!0) : g === "bottom" && u.current.scrollIntoView(!1);
|
|
1576
|
+
}, [d]), /* @__PURE__ */ o.jsxs(
|
|
1549
1577
|
"div",
|
|
1550
1578
|
{
|
|
1551
|
-
className:
|
|
1552
|
-
"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",
|
|
1553
1581
|
a
|
|
1554
1582
|
),
|
|
1555
|
-
ref:
|
|
1583
|
+
ref: ct([t, u]),
|
|
1556
1584
|
id: x,
|
|
1557
1585
|
onClick: c,
|
|
1558
1586
|
role: "option",
|
|
1559
1587
|
"aria-selected": d || void 0,
|
|
1560
1588
|
children: [
|
|
1561
|
-
i.icon && /* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
1564
|
-
/* @__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 })
|
|
1565
1593
|
] }),
|
|
1566
|
-
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 }) })
|
|
1567
1595
|
]
|
|
1568
1596
|
}
|
|
1569
1597
|
);
|
|
1570
|
-
}),
|
|
1571
|
-
const { className:
|
|
1572
|
-
return C(i), /* @__PURE__ */
|
|
1598
|
+
}), wr = N((r, t) => {
|
|
1599
|
+
const { className: n, children: a, ...i } = r;
|
|
1600
|
+
return C(i), /* @__PURE__ */ o.jsx(
|
|
1573
1601
|
"div",
|
|
1574
1602
|
{
|
|
1575
|
-
className:
|
|
1576
|
-
ref:
|
|
1603
|
+
className: b("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", n),
|
|
1604
|
+
ref: t,
|
|
1577
1605
|
children: a
|
|
1578
1606
|
}
|
|
1579
1607
|
);
|
|
1580
|
-
}),
|
|
1581
|
-
const { className:
|
|
1582
|
-
return C(i), /* @__PURE__ */
|
|
1583
|
-
}),
|
|
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) => {
|
|
1584
1612
|
const {
|
|
1585
|
-
className:
|
|
1613
|
+
className: n,
|
|
1586
1614
|
children: a,
|
|
1587
1615
|
draggable: i,
|
|
1588
1616
|
onDragStart: d,
|
|
1589
1617
|
onDragEnd: c,
|
|
1590
1618
|
style: x,
|
|
1591
1619
|
label: m,
|
|
1592
|
-
...
|
|
1593
|
-
} =
|
|
1594
|
-
C(
|
|
1595
|
-
const
|
|
1596
|
-
return /* @__PURE__ */
|
|
1597
|
-
|
|
1620
|
+
...u
|
|
1621
|
+
} = r;
|
|
1622
|
+
C(u, !1);
|
|
1623
|
+
const g = R();
|
|
1624
|
+
return /* @__PURE__ */ o.jsx(
|
|
1625
|
+
g.Button.Button,
|
|
1598
1626
|
{
|
|
1599
1627
|
variant: "ghost",
|
|
1600
|
-
className:
|
|
1601
|
-
ref:
|
|
1628
|
+
className: b(n, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
|
|
1629
|
+
ref: t,
|
|
1602
1630
|
"aria-label": m,
|
|
1603
1631
|
draggable: i,
|
|
1604
1632
|
onDragStart: d,
|
|
1605
1633
|
onDragEnd: c,
|
|
1606
1634
|
style: x,
|
|
1607
|
-
...
|
|
1635
|
+
...u,
|
|
1608
1636
|
children: a
|
|
1609
1637
|
}
|
|
1610
1638
|
);
|
|
1611
|
-
}),
|
|
1612
|
-
(
|
|
1639
|
+
}), jr = N(
|
|
1640
|
+
(r) => {
|
|
1613
1641
|
const {
|
|
1614
|
-
className:
|
|
1615
|
-
name:
|
|
1642
|
+
className: t,
|
|
1643
|
+
name: n,
|
|
1616
1644
|
label: a,
|
|
1617
1645
|
icon: i,
|
|
1618
1646
|
// TODO: implement
|
|
@@ -1620,105 +1648,105 @@ const Wr = (o) => {
|
|
|
1620
1648
|
autoFocus: c,
|
|
1621
1649
|
placeholder: x,
|
|
1622
1650
|
onKeyDown: m,
|
|
1623
|
-
onChange:
|
|
1624
|
-
onSubmit:
|
|
1651
|
+
onChange: u,
|
|
1652
|
+
onSubmit: g,
|
|
1625
1653
|
...S
|
|
1626
|
-
} =
|
|
1654
|
+
} = r;
|
|
1627
1655
|
C(S);
|
|
1628
1656
|
const _ = R();
|
|
1629
|
-
return a ? /* @__PURE__ */
|
|
1630
|
-
/* @__PURE__ */
|
|
1631
|
-
/* @__PURE__ */
|
|
1657
|
+
return a ? /* @__PURE__ */ o.jsxs("div", { children: [
|
|
1658
|
+
/* @__PURE__ */ o.jsx(_.Label.Label, { htmlFor: a, children: a }),
|
|
1659
|
+
/* @__PURE__ */ o.jsx(
|
|
1632
1660
|
_.Input.Input,
|
|
1633
1661
|
{
|
|
1634
|
-
className:
|
|
1662
|
+
className: t,
|
|
1635
1663
|
id: a,
|
|
1636
|
-
name:
|
|
1664
|
+
name: n,
|
|
1637
1665
|
autoFocus: c,
|
|
1638
1666
|
placeholder: x,
|
|
1639
1667
|
value: d,
|
|
1640
1668
|
onKeyDown: m,
|
|
1641
|
-
onChange:
|
|
1642
|
-
onSubmit:
|
|
1669
|
+
onChange: u,
|
|
1670
|
+
onSubmit: g
|
|
1643
1671
|
}
|
|
1644
1672
|
)
|
|
1645
|
-
] }) : /* @__PURE__ */
|
|
1673
|
+
] }) : /* @__PURE__ */ o.jsx(
|
|
1646
1674
|
_.Input.Input,
|
|
1647
1675
|
{
|
|
1648
|
-
"aria-label":
|
|
1649
|
-
name:
|
|
1676
|
+
"aria-label": n,
|
|
1677
|
+
name: n,
|
|
1650
1678
|
autoFocus: c,
|
|
1651
1679
|
placeholder: x,
|
|
1652
1680
|
value: d,
|
|
1653
1681
|
onKeyDown: m,
|
|
1654
|
-
onChange:
|
|
1655
|
-
onSubmit:
|
|
1682
|
+
onChange: u,
|
|
1683
|
+
onSubmit: g
|
|
1656
1684
|
}
|
|
1657
1685
|
);
|
|
1658
1686
|
}
|
|
1659
|
-
),
|
|
1660
|
-
(
|
|
1661
|
-
const { className:
|
|
1687
|
+
), Ae = N(
|
|
1688
|
+
(r, t) => {
|
|
1689
|
+
const { className: n, children: a, onMouseEnter: i, onMouseLeave: d, ...c } = r;
|
|
1662
1690
|
C(c);
|
|
1663
1691
|
const x = R();
|
|
1664
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ o.jsx(x.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ o.jsx(
|
|
1665
1693
|
"div",
|
|
1666
1694
|
{
|
|
1667
|
-
className:
|
|
1668
|
-
|
|
1669
|
-
"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"
|
|
1670
1698
|
),
|
|
1671
|
-
ref:
|
|
1699
|
+
ref: t,
|
|
1672
1700
|
onMouseEnter: i,
|
|
1673
1701
|
onMouseLeave: d,
|
|
1674
1702
|
children: a
|
|
1675
1703
|
}
|
|
1676
1704
|
) });
|
|
1677
1705
|
}
|
|
1678
|
-
),
|
|
1679
|
-
(
|
|
1706
|
+
), $e = N(
|
|
1707
|
+
(r, t) => {
|
|
1680
1708
|
const {
|
|
1681
|
-
className:
|
|
1709
|
+
className: n,
|
|
1682
1710
|
children: a,
|
|
1683
1711
|
mainTooltip: i,
|
|
1684
1712
|
secondaryTooltip: d,
|
|
1685
1713
|
icon: c,
|
|
1686
1714
|
isSelected: x,
|
|
1687
1715
|
isDisabled: m,
|
|
1688
|
-
onClick:
|
|
1689
|
-
label:
|
|
1716
|
+
onClick: u,
|
|
1717
|
+
label: g,
|
|
1690
1718
|
...S
|
|
1691
|
-
} =
|
|
1719
|
+
} = r;
|
|
1692
1720
|
C(S, !1);
|
|
1693
|
-
const _ = R(),
|
|
1721
|
+
const _ = R(), V = x === void 0 ? /* @__PURE__ */ o.jsxs(
|
|
1694
1722
|
_.Button.Button,
|
|
1695
1723
|
{
|
|
1696
|
-
className:
|
|
1724
|
+
className: n,
|
|
1697
1725
|
variant: "ghost",
|
|
1698
1726
|
disabled: m,
|
|
1699
|
-
onClick:
|
|
1700
|
-
ref:
|
|
1701
|
-
"aria-label":
|
|
1727
|
+
onClick: u,
|
|
1728
|
+
ref: t,
|
|
1729
|
+
"aria-label": g,
|
|
1702
1730
|
...S,
|
|
1703
1731
|
children: [
|
|
1704
1732
|
c,
|
|
1705
1733
|
a
|
|
1706
1734
|
]
|
|
1707
1735
|
}
|
|
1708
|
-
) : /* @__PURE__ */
|
|
1736
|
+
) : /* @__PURE__ */ o.jsxs(
|
|
1709
1737
|
_.Toggle.Toggle,
|
|
1710
1738
|
{
|
|
1711
|
-
className:
|
|
1712
|
-
|
|
1739
|
+
className: b(
|
|
1740
|
+
n,
|
|
1713
1741
|
"data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground"
|
|
1714
1742
|
),
|
|
1715
|
-
"aria-label":
|
|
1716
|
-
onClick:
|
|
1743
|
+
"aria-label": g,
|
|
1744
|
+
onClick: u,
|
|
1717
1745
|
pressed: x,
|
|
1718
1746
|
disabled: m,
|
|
1719
1747
|
"data-state": x ? "on" : "off",
|
|
1720
1748
|
"data-disabled": m,
|
|
1721
|
-
ref:
|
|
1749
|
+
ref: t,
|
|
1722
1750
|
...S,
|
|
1723
1751
|
children: [
|
|
1724
1752
|
c,
|
|
@@ -1726,110 +1754,116 @@ const Wr = (o) => {
|
|
|
1726
1754
|
]
|
|
1727
1755
|
}
|
|
1728
1756
|
);
|
|
1729
|
-
return /* @__PURE__ */
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1757
|
+
return /* @__PURE__ */ o.jsxs(_.Tooltip.Tooltip, { children: [
|
|
1758
|
+
/* @__PURE__ */ o.jsx(_.Tooltip.TooltipTrigger, { asChild: !0, children: V }),
|
|
1759
|
+
/* @__PURE__ */ o.jsxs(
|
|
1732
1760
|
_.Tooltip.TooltipContent,
|
|
1733
1761
|
{
|
|
1734
|
-
className: "flex flex-col items-center",
|
|
1762
|
+
className: "bn-flex bn-flex-col bn-items-center",
|
|
1735
1763
|
children: [
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
d && /* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ o.jsx("span", { children: i }),
|
|
1765
|
+
d && /* @__PURE__ */ o.jsx("span", { children: d })
|
|
1738
1766
|
]
|
|
1739
1767
|
}
|
|
1740
1768
|
)
|
|
1741
1769
|
] });
|
|
1742
1770
|
}
|
|
1743
|
-
),
|
|
1744
|
-
const { className:
|
|
1771
|
+
), Tr = N((r, t) => {
|
|
1772
|
+
const { className: n, items: a, isDisabled: i, ...d } = r;
|
|
1745
1773
|
C(d);
|
|
1746
|
-
const c = R(), x = (
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
] }), m = a.filter((
|
|
1750
|
-
return m ? /* @__PURE__ */
|
|
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(
|
|
1751
1779
|
c.Select.Select,
|
|
1752
1780
|
{
|
|
1753
1781
|
value: m.text,
|
|
1754
|
-
onValueChange: (
|
|
1755
|
-
var
|
|
1756
|
-
return (S = (
|
|
1782
|
+
onValueChange: (u) => {
|
|
1783
|
+
var g, S;
|
|
1784
|
+
return (S = (g = a.find((_) => _.text === u)).onClick) == null ? void 0 : S.call(g);
|
|
1757
1785
|
},
|
|
1758
1786
|
disabled: i,
|
|
1759
1787
|
children: [
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__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(
|
|
1762
1790
|
c.Select.SelectItem,
|
|
1763
1791
|
{
|
|
1764
|
-
disabled:
|
|
1765
|
-
value:
|
|
1766
|
-
children: /* @__PURE__ */
|
|
1792
|
+
disabled: u.isDisabled,
|
|
1793
|
+
value: u.text,
|
|
1794
|
+
children: /* @__PURE__ */ o.jsx(x, { ...u })
|
|
1767
1795
|
},
|
|
1768
|
-
|
|
1796
|
+
u.text
|
|
1769
1797
|
)) })
|
|
1770
1798
|
]
|
|
1771
1799
|
}
|
|
1772
1800
|
) : null;
|
|
1773
1801
|
});
|
|
1774
|
-
const
|
|
1802
|
+
const Rr = {
|
|
1775
1803
|
FormattingToolbar: {
|
|
1776
|
-
Root:
|
|
1777
|
-
Button:
|
|
1778
|
-
Select:
|
|
1804
|
+
Root: Ae,
|
|
1805
|
+
Button: $e,
|
|
1806
|
+
Select: Tr
|
|
1779
1807
|
},
|
|
1780
1808
|
FilePanel: {
|
|
1781
|
-
Root:
|
|
1782
|
-
Button:
|
|
1783
|
-
FileInput:
|
|
1784
|
-
TabPanel:
|
|
1785
|
-
TextInput:
|
|
1809
|
+
Root: lr,
|
|
1810
|
+
Button: dr,
|
|
1811
|
+
FileInput: cr,
|
|
1812
|
+
TabPanel: br,
|
|
1813
|
+
TextInput: ur
|
|
1786
1814
|
},
|
|
1787
1815
|
LinkToolbar: {
|
|
1788
|
-
Root:
|
|
1789
|
-
Button:
|
|
1816
|
+
Root: Ae,
|
|
1817
|
+
Button: $e
|
|
1790
1818
|
},
|
|
1791
1819
|
SideMenu: {
|
|
1792
|
-
Root:
|
|
1793
|
-
Button:
|
|
1820
|
+
Root: gr,
|
|
1821
|
+
Button: vr
|
|
1794
1822
|
},
|
|
1795
1823
|
SuggestionMenu: {
|
|
1796
|
-
Root:
|
|
1797
|
-
Item:
|
|
1798
|
-
EmptyItem:
|
|
1799
|
-
Label:
|
|
1800
|
-
Loader:
|
|
1824
|
+
Root: xr,
|
|
1825
|
+
Item: yr,
|
|
1826
|
+
EmptyItem: hr,
|
|
1827
|
+
Label: wr,
|
|
1828
|
+
Loader: Cr
|
|
1801
1829
|
},
|
|
1802
1830
|
TableHandle: {
|
|
1803
|
-
Root:
|
|
1831
|
+
Root: Nr
|
|
1804
1832
|
},
|
|
1805
1833
|
Generic: {
|
|
1806
1834
|
Form: {
|
|
1807
|
-
Root:
|
|
1808
|
-
TextInput:
|
|
1835
|
+
Root: er,
|
|
1836
|
+
TextInput: jr
|
|
1809
1837
|
},
|
|
1810
1838
|
Menu: {
|
|
1811
|
-
Root:
|
|
1812
|
-
Trigger:
|
|
1813
|
-
Dropdown:
|
|
1814
|
-
Divider:
|
|
1815
|
-
Label:
|
|
1816
|
-
Item:
|
|
1839
|
+
Root: tr,
|
|
1840
|
+
Trigger: rr,
|
|
1841
|
+
Dropdown: or,
|
|
1842
|
+
Divider: sr,
|
|
1843
|
+
Label: ir,
|
|
1844
|
+
Item: ar
|
|
1817
1845
|
},
|
|
1818
1846
|
Popover: {
|
|
1819
|
-
Root:
|
|
1820
|
-
Trigger:
|
|
1821
|
-
Content:
|
|
1847
|
+
Root: fr,
|
|
1848
|
+
Trigger: mr,
|
|
1849
|
+
Content: pr
|
|
1822
1850
|
}
|
|
1823
1851
|
}
|
|
1824
|
-
},
|
|
1825
|
-
const { shadCNComponents:
|
|
1826
|
-
...
|
|
1827
|
-
...
|
|
1828
|
-
}), [
|
|
1829
|
-
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
|
+
) }) });
|
|
1830
1864
|
};
|
|
1831
1865
|
export {
|
|
1832
|
-
|
|
1833
|
-
|
|
1866
|
+
Or as BlockNoteView,
|
|
1867
|
+
Rr as components
|
|
1834
1868
|
};
|
|
1835
1869
|
//# sourceMappingURL=blocknote-shadcn.js.map
|