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