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