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