@blocknote/shadcn 0.35.0 → 0.36.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/LICENSE +1 -1
- package/dist/blocknote-shadcn.cjs +1 -1
- package/dist/blocknote-shadcn.cjs.map +1 -1
- package/dist/blocknote-shadcn.js +274 -271
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/comments/Editor.tsx +4 -0
package/dist/blocknote-shadcn.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as a, jsxs as g, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import { assertEmpty as u, mergeCSSClasses as Ce } from "@blocknote/core";
|
|
3
|
-
import { elementOverflow as z, mergeRefs as E, useFocusWithin as ye, useDictionary as Se,
|
|
3
|
+
import { elementOverflow as z, mergeRefs as E, useFocusWithin as ye, useDictionary as Se, useBlockNoteContext as Te, FormattingToolbarController as Me, getFormattingToolbarItems as Ie, FormattingToolbar as De, ComponentsContext as Re, BlockNoteViewRaw as Be } from "@blocknote/react";
|
|
4
4
|
import * as c from "react";
|
|
5
|
-
import { createContext as ke, useContext as
|
|
6
|
-
import { FormProvider as
|
|
5
|
+
import { createContext as ke, useContext as Fe, forwardRef as p, useMemo as V, useRef as A, useEffect as $, useState as Pe } from "react";
|
|
6
|
+
import { FormProvider as Le, useFormContext as ze, useForm as Ee } from "react-hook-form";
|
|
7
7
|
import * as S from "@radix-ui/react-avatar";
|
|
8
|
-
import { clsx as
|
|
9
|
-
import { extendTailwindMerge as
|
|
8
|
+
import { clsx as Ve } from "clsx";
|
|
9
|
+
import { extendTailwindMerge as Ae } from "tailwind-merge";
|
|
10
10
|
import { cva as I } from "class-variance-authority";
|
|
11
11
|
import { Slot as j } from "@radix-ui/react-slot";
|
|
12
12
|
import * as N from "@radix-ui/react-dropdown-menu";
|
|
13
|
-
import { ChevronRight as q, Check as G, Circle as
|
|
13
|
+
import { ChevronRight as q, Check as G, Circle as $e, ChevronDown as U, ChevronUp as je } from "lucide-react";
|
|
14
14
|
import * as H from "@radix-ui/react-label";
|
|
15
15
|
import * as D from "@radix-ui/react-popover";
|
|
16
16
|
import * as x from "@radix-ui/react-select";
|
|
17
17
|
import * as y from "@radix-ui/react-tabs";
|
|
18
18
|
import * as O from "@radix-ui/react-toggle";
|
|
19
19
|
import * as T from "@radix-ui/react-tooltip";
|
|
20
|
-
const
|
|
20
|
+
const qe = Ae({
|
|
21
21
|
prefix: "bn-"
|
|
22
22
|
});
|
|
23
23
|
function i(...n) {
|
|
24
|
-
return
|
|
24
|
+
return qe(Ve(n));
|
|
25
25
|
}
|
|
26
26
|
const K = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
27
27
|
S.Root,
|
|
@@ -56,7 +56,7 @@ const W = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
58
|
W.displayName = S.Fallback.displayName;
|
|
59
|
-
const
|
|
59
|
+
const Ge = I(
|
|
60
60
|
"bn-inline-flex bn-items-center bn-rounded-full bn-border bn-px-2.5 bn-py-0.5 bn-text-xs bn-font-semibold bn-transition-colors focus:bn-outline-none focus:bn-ring-2 focus:bn-ring-ring focus:bn-ring-offset-2",
|
|
61
61
|
{
|
|
62
62
|
variants: {
|
|
@@ -72,10 +72,10 @@ const qe = I(
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
function
|
|
76
|
-
return /* @__PURE__ */ a("div", { className: i(
|
|
75
|
+
function Ue({ className: n, variant: t, ...e }) {
|
|
76
|
+
return /* @__PURE__ */ a("div", { className: i(Ge({ variant: t }), n), ...e });
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const He = I(
|
|
79
79
|
"bn-inline-flex bn-items-center bn-justify-center bn-whitespace-nowrap bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50",
|
|
80
80
|
{
|
|
81
81
|
variants: {
|
|
@@ -103,7 +103,7 @@ const Ue = I(
|
|
|
103
103
|
({ className: n, variant: t, size: e, asChild: o = !1, ...r }, s) => /* @__PURE__ */ a(
|
|
104
104
|
o ? j : "button",
|
|
105
105
|
{
|
|
106
|
-
className: i(
|
|
106
|
+
className: i(He({ variant: t, size: e, className: n })),
|
|
107
107
|
ref: s,
|
|
108
108
|
type: "button",
|
|
109
109
|
...r
|
|
@@ -123,7 +123,7 @@ const _ = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
123
123
|
}
|
|
124
124
|
));
|
|
125
125
|
_.displayName = "Card";
|
|
126
|
-
const
|
|
126
|
+
const Oe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
127
127
|
"div",
|
|
128
128
|
{
|
|
129
129
|
ref: e,
|
|
@@ -131,8 +131,8 @@ const He = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
131
131
|
...t
|
|
132
132
|
}
|
|
133
133
|
));
|
|
134
|
-
|
|
135
|
-
const
|
|
134
|
+
Oe.displayName = "CardHeader";
|
|
135
|
+
const Ke = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
136
136
|
"h3",
|
|
137
137
|
{
|
|
138
138
|
ref: e,
|
|
@@ -143,8 +143,8 @@ const Oe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
143
143
|
...t
|
|
144
144
|
}
|
|
145
145
|
));
|
|
146
|
-
|
|
147
|
-
const
|
|
146
|
+
Ke.displayName = "CardTitle";
|
|
147
|
+
const Qe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
148
148
|
"p",
|
|
149
149
|
{
|
|
150
150
|
ref: e,
|
|
@@ -152,10 +152,10 @@ const Ke = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
152
152
|
...t
|
|
153
153
|
}
|
|
154
154
|
));
|
|
155
|
-
|
|
155
|
+
Qe.displayName = "CardDescription";
|
|
156
156
|
const J = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a("div", { ref: e, className: i("bn-p-6 bn-pt-0", n), ...t }));
|
|
157
157
|
J.displayName = "CardContent";
|
|
158
|
-
const
|
|
158
|
+
const We = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
ref: e,
|
|
@@ -163,8 +163,8 @@ const Qe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
163
163
|
...t
|
|
164
164
|
}
|
|
165
165
|
));
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
We.displayName = "CardFooter";
|
|
167
|
+
const Ze = N.Root, _e = N.Trigger, Je = N.Sub, X = c.forwardRef(({ className: n, inset: t, children: e, ...o }, r) => /* @__PURE__ */ g(
|
|
168
168
|
N.SubTrigger,
|
|
169
169
|
{
|
|
170
170
|
ref: r,
|
|
@@ -239,7 +239,7 @@ const te = c.forwardRef(({ className: n, children: t, checked: e, ...o }, r) =>
|
|
|
239
239
|
}
|
|
240
240
|
));
|
|
241
241
|
te.displayName = N.CheckboxItem.displayName;
|
|
242
|
-
const
|
|
242
|
+
const Xe = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
243
243
|
N.RadioItem,
|
|
244
244
|
{
|
|
245
245
|
ref: o,
|
|
@@ -249,12 +249,12 @@ const Je = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__
|
|
|
249
249
|
),
|
|
250
250
|
...e,
|
|
251
251
|
children: [
|
|
252
|
-
/* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(N.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
252
|
+
/* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(N.ItemIndicator, { children: /* @__PURE__ */ a($e, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
|
|
253
253
|
t
|
|
254
254
|
]
|
|
255
255
|
}
|
|
256
256
|
));
|
|
257
|
-
|
|
257
|
+
Xe.displayName = N.RadioItem.displayName;
|
|
258
258
|
const oe = c.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
|
|
259
259
|
N.Label,
|
|
260
260
|
{
|
|
@@ -277,21 +277,21 @@ const ae = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
277
277
|
}
|
|
278
278
|
));
|
|
279
279
|
ae.displayName = N.Separator.displayName;
|
|
280
|
-
const
|
|
280
|
+
const Ye = I(
|
|
281
281
|
"bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
|
|
282
282
|
), P = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
283
283
|
H.Root,
|
|
284
284
|
{
|
|
285
285
|
ref: e,
|
|
286
|
-
className: i(
|
|
286
|
+
className: i(Ye(), n),
|
|
287
287
|
...t
|
|
288
288
|
}
|
|
289
289
|
));
|
|
290
290
|
P.displayName = H.Root.displayName;
|
|
291
|
-
const
|
|
291
|
+
const en = Le, nn = c.createContext(
|
|
292
292
|
{}
|
|
293
293
|
), R = () => {
|
|
294
|
-
const n = c.useContext(
|
|
294
|
+
const n = c.useContext(nn), t = c.useContext(re), { getFieldState: e, formState: o } = ze(), r = e(n.name, o);
|
|
295
295
|
if (!n)
|
|
296
296
|
throw new Error("useFormField should be used within <FormField>");
|
|
297
297
|
const { id: s } = t;
|
|
@@ -305,12 +305,12 @@ const Ye = Pe, en = c.createContext(
|
|
|
305
305
|
};
|
|
306
306
|
}, re = c.createContext(
|
|
307
307
|
{}
|
|
308
|
-
),
|
|
308
|
+
), tn = c.forwardRef(({ className: n, ...t }, e) => {
|
|
309
309
|
const o = c.useId();
|
|
310
310
|
return /* @__PURE__ */ a(re.Provider, { value: { id: o }, children: /* @__PURE__ */ a("div", { ref: e, className: i("bn-space-y-2", n), ...t }) });
|
|
311
311
|
});
|
|
312
|
-
|
|
313
|
-
const
|
|
312
|
+
tn.displayName = "FormItem";
|
|
313
|
+
const on = c.forwardRef(({ className: n, ...t }, e) => {
|
|
314
314
|
const { error: o, formItemId: r } = R();
|
|
315
315
|
return /* @__PURE__ */ a(
|
|
316
316
|
P,
|
|
@@ -322,8 +322,8 @@ const tn = c.forwardRef(({ className: n, ...t }, e) => {
|
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
324
|
});
|
|
325
|
-
|
|
326
|
-
const
|
|
325
|
+
on.displayName = "FormLabel";
|
|
326
|
+
const an = c.forwardRef(({ ...n }, t) => {
|
|
327
327
|
const { error: e, formItemId: o, formDescriptionId: r, formMessageId: s } = R();
|
|
328
328
|
return /* @__PURE__ */ a(
|
|
329
329
|
j,
|
|
@@ -336,8 +336,8 @@ const on = c.forwardRef(({ ...n }, t) => {
|
|
|
336
336
|
}
|
|
337
337
|
);
|
|
338
338
|
});
|
|
339
|
-
|
|
340
|
-
const
|
|
339
|
+
an.displayName = "FormControl";
|
|
340
|
+
const rn = c.forwardRef(({ className: n, ...t }, e) => {
|
|
341
341
|
const { formDescriptionId: o } = R();
|
|
342
342
|
return /* @__PURE__ */ a(
|
|
343
343
|
"p",
|
|
@@ -349,21 +349,21 @@ const an = c.forwardRef(({ className: n, ...t }, e) => {
|
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
});
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
const { error: r, formMessageId: s } = R(),
|
|
355
|
-
return
|
|
352
|
+
rn.displayName = "FormDescription";
|
|
353
|
+
const sn = c.forwardRef(({ className: n, children: t, ...e }, o) => {
|
|
354
|
+
const { error: r, formMessageId: s } = R(), l = r ? String(r == null ? void 0 : r.message) : t;
|
|
355
|
+
return l ? /* @__PURE__ */ a(
|
|
356
356
|
"p",
|
|
357
357
|
{
|
|
358
358
|
ref: o,
|
|
359
359
|
id: s,
|
|
360
360
|
className: i("bn-text-sm bn-font-medium bn-text-destructive", n),
|
|
361
361
|
...e,
|
|
362
|
-
children:
|
|
362
|
+
children: l
|
|
363
363
|
}
|
|
364
364
|
) : null;
|
|
365
365
|
});
|
|
366
|
-
|
|
366
|
+
sn.displayName = "FormMessage";
|
|
367
367
|
const se = c.forwardRef(
|
|
368
368
|
({ className: n, type: t, ...e }, o) => /* @__PURE__ */ a(
|
|
369
369
|
"input",
|
|
@@ -379,7 +379,7 @@ const se = c.forwardRef(
|
|
|
379
379
|
)
|
|
380
380
|
);
|
|
381
381
|
se.displayName = "Input";
|
|
382
|
-
const
|
|
382
|
+
const ln = D.Root, dn = D.Trigger, ie = c.forwardRef(({ className: n, align: t = "center", sideOffset: e = 4, ...o }, r) => (
|
|
383
383
|
// <PopoverPrimitive.Portal>
|
|
384
384
|
/* @__PURE__ */ a(
|
|
385
385
|
D.Content,
|
|
@@ -396,7 +396,7 @@ const sn = D.Root, dn = D.Trigger, ie = c.forwardRef(({ className: n, align: t =
|
|
|
396
396
|
)
|
|
397
397
|
));
|
|
398
398
|
ie.displayName = D.Content.displayName;
|
|
399
|
-
const
|
|
399
|
+
const bn = x.Root, cn = x.Value, le = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
400
400
|
x.Trigger,
|
|
401
401
|
{
|
|
402
402
|
ref: o,
|
|
@@ -411,8 +411,8 @@ const ln = x.Root, bn = x.Value, de = c.forwardRef(({ className: n, children: t,
|
|
|
411
411
|
]
|
|
412
412
|
}
|
|
413
413
|
));
|
|
414
|
-
|
|
415
|
-
const
|
|
414
|
+
le.displayName = x.Trigger.displayName;
|
|
415
|
+
const de = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
416
416
|
x.ScrollUpButton,
|
|
417
417
|
{
|
|
418
418
|
ref: e,
|
|
@@ -421,10 +421,10 @@ const le = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
421
421
|
n
|
|
422
422
|
),
|
|
423
423
|
...t,
|
|
424
|
-
children: /* @__PURE__ */ a(
|
|
424
|
+
children: /* @__PURE__ */ a(je, { className: "bn-h-4 bn-w-4" })
|
|
425
425
|
}
|
|
426
426
|
));
|
|
427
|
-
|
|
427
|
+
de.displayName = x.ScrollUpButton.displayName;
|
|
428
428
|
const be = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
429
429
|
x.ScrollDownButton,
|
|
430
430
|
{
|
|
@@ -452,7 +452,7 @@ const ce = c.forwardRef(({ className: n, children: t, position: e = "popper", ..
|
|
|
452
452
|
position: e,
|
|
453
453
|
...o,
|
|
454
454
|
children: [
|
|
455
|
-
/* @__PURE__ */ a(
|
|
455
|
+
/* @__PURE__ */ a(de, {}),
|
|
456
456
|
/* @__PURE__ */ a(
|
|
457
457
|
x.Viewport,
|
|
458
458
|
{
|
|
@@ -469,7 +469,7 @@ const ce = c.forwardRef(({ className: n, children: t, position: e = "popper", ..
|
|
|
469
469
|
)
|
|
470
470
|
));
|
|
471
471
|
ce.displayName = x.Content.displayName;
|
|
472
|
-
const
|
|
472
|
+
const mn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
473
473
|
x.Label,
|
|
474
474
|
{
|
|
475
475
|
ref: e,
|
|
@@ -480,7 +480,7 @@ const cn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
480
480
|
...t
|
|
481
481
|
}
|
|
482
482
|
));
|
|
483
|
-
|
|
483
|
+
mn.displayName = x.Label.displayName;
|
|
484
484
|
const me = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
485
485
|
x.Item,
|
|
486
486
|
{
|
|
@@ -497,7 +497,7 @@ const me = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__
|
|
|
497
497
|
}
|
|
498
498
|
));
|
|
499
499
|
me.displayName = x.Item.displayName;
|
|
500
|
-
const
|
|
500
|
+
const un = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
501
501
|
x.Separator,
|
|
502
502
|
{
|
|
503
503
|
ref: e,
|
|
@@ -505,8 +505,8 @@ const mn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
505
505
|
...t
|
|
506
506
|
}
|
|
507
507
|
));
|
|
508
|
-
|
|
509
|
-
function
|
|
508
|
+
un.displayName = x.Separator.displayName;
|
|
509
|
+
function pn({
|
|
510
510
|
className: n,
|
|
511
511
|
...t
|
|
512
512
|
}) {
|
|
@@ -518,7 +518,7 @@ function un({
|
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
|
-
const
|
|
521
|
+
const fn = y.Root, ue = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
522
522
|
y.List,
|
|
523
523
|
{
|
|
524
524
|
ref: e,
|
|
@@ -554,7 +554,7 @@ const fe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
|
554
554
|
}
|
|
555
555
|
));
|
|
556
556
|
fe.displayName = y.Content.displayName;
|
|
557
|
-
const
|
|
557
|
+
const gn = I(
|
|
558
558
|
"bn-inline-flex bn-items-center bn-justify-center bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors hover:bn-bg-muted hover:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50 data-[state=on]:bn-bg-accent data-[state=on]:bn-text-accent-foreground",
|
|
559
559
|
{
|
|
560
560
|
variants: {
|
|
@@ -577,12 +577,12 @@ const fn = I(
|
|
|
577
577
|
O.Root,
|
|
578
578
|
{
|
|
579
579
|
ref: r,
|
|
580
|
-
className: i(
|
|
580
|
+
className: i(gn({ variant: t, size: e, className: n })),
|
|
581
581
|
...o
|
|
582
582
|
}
|
|
583
583
|
));
|
|
584
584
|
ge.displayName = O.Root.displayName;
|
|
585
|
-
const
|
|
585
|
+
const hn = T.Provider, vn = T.Root, Nn = T.Trigger, he = c.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => /* @__PURE__ */ a(
|
|
586
586
|
T.Content,
|
|
587
587
|
{
|
|
588
588
|
ref: o,
|
|
@@ -595,14 +595,14 @@ const gn = T.Provider, hn = T.Root, vn = T.Trigger, he = c.forwardRef(({ classNa
|
|
|
595
595
|
}
|
|
596
596
|
));
|
|
597
597
|
he.displayName = T.Content.displayName;
|
|
598
|
-
const
|
|
598
|
+
const xn = {
|
|
599
599
|
Avatar: {
|
|
600
600
|
Avatar: K,
|
|
601
601
|
AvatarFallback: W,
|
|
602
602
|
AvatarImage: Q
|
|
603
603
|
},
|
|
604
604
|
Badge: {
|
|
605
|
-
Badge:
|
|
605
|
+
Badge: Ue
|
|
606
606
|
},
|
|
607
607
|
Button: {
|
|
608
608
|
Button: Z
|
|
@@ -612,19 +612,19 @@ const Nn = {
|
|
|
612
612
|
CardContent: J
|
|
613
613
|
},
|
|
614
614
|
DropdownMenu: {
|
|
615
|
-
DropdownMenu:
|
|
615
|
+
DropdownMenu: Ze,
|
|
616
616
|
DropdownMenuCheckboxItem: te,
|
|
617
617
|
DropdownMenuContent: ee,
|
|
618
618
|
DropdownMenuItem: ne,
|
|
619
619
|
DropdownMenuLabel: oe,
|
|
620
620
|
DropdownMenuSeparator: ae,
|
|
621
|
-
DropdownMenuSub:
|
|
621
|
+
DropdownMenuSub: Je,
|
|
622
622
|
DropdownMenuSubContent: Y,
|
|
623
623
|
DropdownMenuSubTrigger: X,
|
|
624
|
-
DropdownMenuTrigger:
|
|
624
|
+
DropdownMenuTrigger: _e
|
|
625
625
|
},
|
|
626
626
|
Form: {
|
|
627
|
-
Form:
|
|
627
|
+
Form: en
|
|
628
628
|
},
|
|
629
629
|
Input: {
|
|
630
630
|
Input: se
|
|
@@ -633,22 +633,22 @@ const Nn = {
|
|
|
633
633
|
Label: P
|
|
634
634
|
},
|
|
635
635
|
Popover: {
|
|
636
|
-
Popover:
|
|
636
|
+
Popover: ln,
|
|
637
637
|
PopoverContent: ie,
|
|
638
638
|
PopoverTrigger: dn
|
|
639
639
|
},
|
|
640
640
|
Select: {
|
|
641
|
-
Select:
|
|
641
|
+
Select: bn,
|
|
642
642
|
SelectContent: ce,
|
|
643
643
|
SelectItem: me,
|
|
644
|
-
SelectTrigger:
|
|
645
|
-
SelectValue:
|
|
644
|
+
SelectTrigger: le,
|
|
645
|
+
SelectValue: cn
|
|
646
646
|
},
|
|
647
647
|
Skeleton: {
|
|
648
|
-
Skeleton:
|
|
648
|
+
Skeleton: pn
|
|
649
649
|
},
|
|
650
650
|
Tabs: {
|
|
651
|
-
Tabs:
|
|
651
|
+
Tabs: fn,
|
|
652
652
|
TabsContent: fe,
|
|
653
653
|
TabsList: ue,
|
|
654
654
|
TabsTrigger: pe
|
|
@@ -657,31 +657,31 @@ const Nn = {
|
|
|
657
657
|
Toggle: ge
|
|
658
658
|
},
|
|
659
659
|
Tooltip: {
|
|
660
|
-
Tooltip:
|
|
660
|
+
Tooltip: vn,
|
|
661
661
|
TooltipContent: he,
|
|
662
|
-
TooltipProvider:
|
|
663
|
-
TooltipTrigger:
|
|
662
|
+
TooltipProvider: hn,
|
|
663
|
+
TooltipTrigger: Nn
|
|
664
664
|
}
|
|
665
665
|
}, ve = ke(void 0);
|
|
666
666
|
function h() {
|
|
667
|
-
return
|
|
667
|
+
return Fe(ve);
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const wn = (n) => {
|
|
670
670
|
const { children: t, ...e } = n;
|
|
671
671
|
u(e);
|
|
672
|
-
const o = h(), r =
|
|
672
|
+
const o = h(), r = Ee();
|
|
673
673
|
return /* @__PURE__ */ a(o.Form.Form, { ...r, children: t });
|
|
674
|
-
},
|
|
674
|
+
}, Cn = p((n, t) => {
|
|
675
675
|
const {
|
|
676
676
|
className: e,
|
|
677
677
|
name: o,
|
|
678
678
|
label: r,
|
|
679
679
|
variant: s,
|
|
680
|
-
icon:
|
|
680
|
+
icon: l,
|
|
681
681
|
// TODO: implement
|
|
682
682
|
value: b,
|
|
683
683
|
autoFocus: m,
|
|
684
|
-
placeholder:
|
|
684
|
+
placeholder: d,
|
|
685
685
|
disabled: f,
|
|
686
686
|
onKeyDown: v,
|
|
687
687
|
onChange: w,
|
|
@@ -702,7 +702,7 @@ const xn = (n) => {
|
|
|
702
702
|
"bn-items-center bn-gap-2 bn-text-foreground"
|
|
703
703
|
),
|
|
704
704
|
children: [
|
|
705
|
-
|
|
705
|
+
l,
|
|
706
706
|
/* @__PURE__ */ g("div", { className: "bn-flex-1", children: [
|
|
707
707
|
r && /* @__PURE__ */ a(L.Label.Label, { htmlFor: r, children: r }),
|
|
708
708
|
/* @__PURE__ */ a(
|
|
@@ -712,7 +712,7 @@ const xn = (n) => {
|
|
|
712
712
|
id: r,
|
|
713
713
|
name: o,
|
|
714
714
|
autoFocus: m,
|
|
715
|
-
placeholder:
|
|
715
|
+
placeholder: d,
|
|
716
716
|
disabled: f,
|
|
717
717
|
value: b,
|
|
718
718
|
onKeyDown: v,
|
|
@@ -726,7 +726,7 @@ const xn = (n) => {
|
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
|
-
}),
|
|
729
|
+
}), yn = (n) => p(
|
|
730
730
|
(t, e) => /* @__PURE__ */ a(
|
|
731
731
|
n,
|
|
732
732
|
{
|
|
@@ -741,7 +741,7 @@ const xn = (n) => {
|
|
|
741
741
|
ref: e
|
|
742
742
|
}
|
|
743
743
|
)
|
|
744
|
-
),
|
|
744
|
+
), Sn = (n) => {
|
|
745
745
|
const {
|
|
746
746
|
children: t,
|
|
747
747
|
onOpenChange: e,
|
|
@@ -751,59 +751,59 @@ const xn = (n) => {
|
|
|
751
751
|
...s
|
|
752
752
|
} = n;
|
|
753
753
|
u(s);
|
|
754
|
-
const
|
|
754
|
+
const l = h();
|
|
755
755
|
return r ? /* @__PURE__ */ a(
|
|
756
|
-
|
|
756
|
+
l.DropdownMenu.DropdownMenuSub,
|
|
757
757
|
{
|
|
758
758
|
onOpenChange: e,
|
|
759
759
|
children: t
|
|
760
760
|
}
|
|
761
761
|
) : /* @__PURE__ */ a(
|
|
762
|
-
|
|
762
|
+
l.DropdownMenu.DropdownMenu,
|
|
763
763
|
{
|
|
764
764
|
modal: !1,
|
|
765
765
|
onOpenChange: e,
|
|
766
766
|
children: t
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
|
-
},
|
|
769
|
+
}, Tn = (n) => {
|
|
770
770
|
const { children: t, sub: e, ...o } = n;
|
|
771
771
|
u(o);
|
|
772
772
|
const r = h(), s = V(
|
|
773
|
-
() =>
|
|
773
|
+
() => yn(
|
|
774
774
|
r.DropdownMenu.DropdownMenuTrigger
|
|
775
775
|
),
|
|
776
776
|
[r.DropdownMenu.DropdownMenuTrigger]
|
|
777
777
|
);
|
|
778
778
|
return e ? /* @__PURE__ */ a(r.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a(s, { asChild: !0, ...o, children: t });
|
|
779
|
-
},
|
|
779
|
+
}, Mn = p((n, t) => {
|
|
780
780
|
const { className: e, children: o, sub: r, ...s } = n;
|
|
781
781
|
u(s);
|
|
782
|
-
const
|
|
782
|
+
const l = h();
|
|
783
783
|
return r ? /* @__PURE__ */ a(
|
|
784
|
-
|
|
784
|
+
l.DropdownMenu.DropdownMenuSubContent,
|
|
785
785
|
{
|
|
786
786
|
className: e,
|
|
787
787
|
ref: t,
|
|
788
788
|
children: o
|
|
789
789
|
}
|
|
790
790
|
) : /* @__PURE__ */ a(
|
|
791
|
-
|
|
791
|
+
l.DropdownMenu.DropdownMenuContent,
|
|
792
792
|
{
|
|
793
793
|
className: e,
|
|
794
794
|
ref: t,
|
|
795
795
|
children: o
|
|
796
796
|
}
|
|
797
797
|
);
|
|
798
|
-
}),
|
|
799
|
-
const { className: e, children: o, icon: r, checked: s, subTrigger:
|
|
798
|
+
}), In = p((n, t) => {
|
|
799
|
+
const { className: e, children: o, icon: r, checked: s, subTrigger: l, onClick: b, ...m } = n;
|
|
800
800
|
u(m);
|
|
801
|
-
const
|
|
802
|
-
return
|
|
801
|
+
const d = h();
|
|
802
|
+
return l ? /* @__PURE__ */ g(we, { children: [
|
|
803
803
|
r,
|
|
804
804
|
o
|
|
805
805
|
] }) : s !== void 0 ? /* @__PURE__ */ g(
|
|
806
|
-
|
|
806
|
+
d.DropdownMenu.DropdownMenuCheckboxItem,
|
|
807
807
|
{
|
|
808
808
|
className: i(e, "bn-gap-1", s ? "" : "bn-px-2"),
|
|
809
809
|
ref: t,
|
|
@@ -816,7 +816,7 @@ const xn = (n) => {
|
|
|
816
816
|
]
|
|
817
817
|
}
|
|
818
818
|
) : /* @__PURE__ */ g(
|
|
819
|
-
|
|
819
|
+
d.DropdownMenu.DropdownMenuItem,
|
|
820
820
|
{
|
|
821
821
|
className: e,
|
|
822
822
|
ref: t,
|
|
@@ -825,11 +825,11 @@ const xn = (n) => {
|
|
|
825
825
|
children: [
|
|
826
826
|
r,
|
|
827
827
|
o,
|
|
828
|
-
|
|
828
|
+
l && /* @__PURE__ */ a(q, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
829
829
|
]
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
|
-
}),
|
|
832
|
+
}), Dn = p((n, t) => {
|
|
833
833
|
const { className: e, ...o } = n;
|
|
834
834
|
u(o);
|
|
835
835
|
const r = h();
|
|
@@ -840,7 +840,7 @@ const xn = (n) => {
|
|
|
840
840
|
ref: t
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
|
-
}),
|
|
843
|
+
}), Rn = p((n, t) => {
|
|
844
844
|
const { className: e, children: o, ...r } = n;
|
|
845
845
|
u(r);
|
|
846
846
|
const s = h();
|
|
@@ -852,16 +852,16 @@ const xn = (n) => {
|
|
|
852
852
|
children: o
|
|
853
853
|
}
|
|
854
854
|
);
|
|
855
|
-
}),
|
|
855
|
+
}), Bn = p((n, t) => {
|
|
856
856
|
const {
|
|
857
857
|
className: e,
|
|
858
858
|
children: o,
|
|
859
859
|
icon: r,
|
|
860
860
|
onClick: s,
|
|
861
|
-
onDragEnd:
|
|
861
|
+
onDragEnd: l,
|
|
862
862
|
onDragStart: b,
|
|
863
863
|
draggable: m,
|
|
864
|
-
label:
|
|
864
|
+
label: d,
|
|
865
865
|
...f
|
|
866
866
|
} = n;
|
|
867
867
|
u(f, !1);
|
|
@@ -872,10 +872,10 @@ const xn = (n) => {
|
|
|
872
872
|
variant: "ghost",
|
|
873
873
|
className: i(e, "bn-text-gray-400"),
|
|
874
874
|
ref: t,
|
|
875
|
-
"aria-label":
|
|
875
|
+
"aria-label": d,
|
|
876
876
|
onClick: s,
|
|
877
877
|
onDragStart: b,
|
|
878
|
-
onDragEnd:
|
|
878
|
+
onDragEnd: l,
|
|
879
879
|
draggable: m,
|
|
880
880
|
...f,
|
|
881
881
|
children: [
|
|
@@ -890,28 +890,28 @@ const xn = (n) => {
|
|
|
890
890
|
tabs: o,
|
|
891
891
|
defaultOpenTab: r,
|
|
892
892
|
openTab: s,
|
|
893
|
-
setOpenTab:
|
|
893
|
+
setOpenTab: l,
|
|
894
894
|
loading: b,
|
|
895
895
|
// TODO: implement loader
|
|
896
896
|
...m
|
|
897
897
|
} = n;
|
|
898
898
|
u(m);
|
|
899
|
-
const
|
|
899
|
+
const d = h();
|
|
900
900
|
return /* @__PURE__ */ g(
|
|
901
|
-
|
|
901
|
+
d.Tabs.Tabs,
|
|
902
902
|
{
|
|
903
903
|
className: i(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
|
|
904
904
|
ref: t,
|
|
905
905
|
value: s,
|
|
906
906
|
defaultValue: r,
|
|
907
|
-
onValueChange:
|
|
907
|
+
onValueChange: l,
|
|
908
908
|
children: [
|
|
909
|
-
/* @__PURE__ */ a(
|
|
910
|
-
o.map((f) => /* @__PURE__ */ a(
|
|
909
|
+
/* @__PURE__ */ a(d.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(d.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
|
|
910
|
+
o.map((f) => /* @__PURE__ */ a(d.Tabs.TabsContent, { value: f.name, children: /* @__PURE__ */ a(d.Card.Card, { children: /* @__PURE__ */ a(d.Card.CardContent, { className: "bn-p-4", children: f.tabPanel }) }) }, f.name))
|
|
911
911
|
]
|
|
912
912
|
}
|
|
913
913
|
);
|
|
914
|
-
}),
|
|
914
|
+
}), Fn = p((n, t) => {
|
|
915
915
|
const { className: e, children: o, ...r } = n;
|
|
916
916
|
return u(r), /* @__PURE__ */ a(
|
|
917
917
|
"div",
|
|
@@ -924,8 +924,8 @@ const xn = (n) => {
|
|
|
924
924
|
children: o
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
}),
|
|
928
|
-
const { className: e, value: o, placeholder: r, onKeyDown: s, onChange:
|
|
927
|
+
}), Pn = p((n, t) => {
|
|
928
|
+
const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: l, ...b } = n;
|
|
929
929
|
u(b);
|
|
930
930
|
const m = h();
|
|
931
931
|
return /* @__PURE__ */ a(
|
|
@@ -937,10 +937,10 @@ const xn = (n) => {
|
|
|
937
937
|
value: o,
|
|
938
938
|
placeholder: r,
|
|
939
939
|
onKeyDown: s,
|
|
940
|
-
onChange:
|
|
940
|
+
onChange: l
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
|
-
}),
|
|
943
|
+
}), Ln = (n) => {
|
|
944
944
|
const {
|
|
945
945
|
children: t,
|
|
946
946
|
opened: e,
|
|
@@ -951,19 +951,19 @@ const xn = (n) => {
|
|
|
951
951
|
u(r);
|
|
952
952
|
const s = h();
|
|
953
953
|
return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: t });
|
|
954
|
-
},
|
|
954
|
+
}, zn = p(
|
|
955
955
|
(n, t) => {
|
|
956
956
|
const { children: e, ...o } = n;
|
|
957
957
|
u(o);
|
|
958
958
|
const r = h();
|
|
959
959
|
return /* @__PURE__ */ a(r.Popover.PopoverTrigger, { ref: t, asChild: !0, children: e });
|
|
960
960
|
}
|
|
961
|
-
),
|
|
961
|
+
), En = p((n, t) => {
|
|
962
962
|
const { className: e, variant: o, children: r, ...s } = n;
|
|
963
963
|
u(s);
|
|
964
|
-
const
|
|
964
|
+
const l = h();
|
|
965
965
|
return /* @__PURE__ */ a(
|
|
966
|
-
|
|
966
|
+
l.Popover.PopoverContent,
|
|
967
967
|
{
|
|
968
968
|
sideOffset: 8,
|
|
969
969
|
className: i(
|
|
@@ -975,19 +975,19 @@ const xn = (n) => {
|
|
|
975
975
|
children: r
|
|
976
976
|
}
|
|
977
977
|
);
|
|
978
|
-
}),
|
|
978
|
+
}), Vn = p((n, t) => {
|
|
979
979
|
const { className: e, children: o, ...r } = n;
|
|
980
980
|
return u(r, !1), /* @__PURE__ */ a("div", { className: e, ref: t, ...r, children: o });
|
|
981
|
-
}),
|
|
981
|
+
}), An = p((n, t) => {
|
|
982
982
|
const {
|
|
983
983
|
className: e,
|
|
984
984
|
children: o,
|
|
985
985
|
icon: r,
|
|
986
986
|
onClick: s,
|
|
987
|
-
onDragEnd:
|
|
987
|
+
onDragEnd: l,
|
|
988
988
|
onDragStart: b,
|
|
989
989
|
draggable: m,
|
|
990
|
-
label:
|
|
990
|
+
label: d,
|
|
991
991
|
...f
|
|
992
992
|
} = n;
|
|
993
993
|
u(f, !1);
|
|
@@ -998,10 +998,10 @@ const xn = (n) => {
|
|
|
998
998
|
variant: "ghost",
|
|
999
999
|
className: i(e, "bn-text-gray-400"),
|
|
1000
1000
|
ref: t,
|
|
1001
|
-
"aria-label":
|
|
1001
|
+
"aria-label": d,
|
|
1002
1002
|
onClick: s,
|
|
1003
1003
|
onDragStart: b,
|
|
1004
|
-
onDragEnd:
|
|
1004
|
+
onDragEnd: l,
|
|
1005
1005
|
draggable: m,
|
|
1006
1006
|
...f,
|
|
1007
1007
|
children: [
|
|
@@ -1010,9 +1010,9 @@ const xn = (n) => {
|
|
|
1010
1010
|
]
|
|
1011
1011
|
}
|
|
1012
1012
|
);
|
|
1013
|
-
}),
|
|
1014
|
-
const { className: e, children: o, id: r, columns: s, ...
|
|
1015
|
-
return u(
|
|
1013
|
+
}), $n = p((n, t) => {
|
|
1014
|
+
const { className: e, children: o, id: r, columns: s, ...l } = n;
|
|
1015
|
+
return u(l), /* @__PURE__ */ a(
|
|
1016
1016
|
"div",
|
|
1017
1017
|
{
|
|
1018
1018
|
className: e,
|
|
@@ -1023,7 +1023,7 @@ const xn = (n) => {
|
|
|
1023
1023
|
children: o
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
|
-
}),
|
|
1026
|
+
}), jn = p((n, t) => {
|
|
1027
1027
|
const { className: e, children: o, columns: r, ...s } = n;
|
|
1028
1028
|
return u(s), /* @__PURE__ */ a(
|
|
1029
1029
|
"div",
|
|
@@ -1034,7 +1034,7 @@ const xn = (n) => {
|
|
|
1034
1034
|
children: o
|
|
1035
1035
|
}
|
|
1036
1036
|
);
|
|
1037
|
-
}),
|
|
1037
|
+
}), qn = p((n, t) => {
|
|
1038
1038
|
const { className: e, children: o, id: r, ...s } = n;
|
|
1039
1039
|
return u(s), /* @__PURE__ */ a(
|
|
1040
1040
|
"div",
|
|
@@ -1049,7 +1049,7 @@ const xn = (n) => {
|
|
|
1049
1049
|
children: o
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
|
-
}),
|
|
1052
|
+
}), Gn = p((n, t) => {
|
|
1053
1053
|
const { className: e, children: o, ...r } = n;
|
|
1054
1054
|
return u(r), /* @__PURE__ */ a(
|
|
1055
1055
|
"div",
|
|
@@ -1062,19 +1062,19 @@ const xn = (n) => {
|
|
|
1062
1062
|
children: /* @__PURE__ */ a("div", { children: o })
|
|
1063
1063
|
}
|
|
1064
1064
|
);
|
|
1065
|
-
}),
|
|
1066
|
-
const e = h(), { className: o, item: r, isSelected: s, onClick:
|
|
1065
|
+
}), Un = p((n, t) => {
|
|
1066
|
+
const e = h(), { className: o, item: r, isSelected: s, onClick: l, id: b, ...m } = n;
|
|
1067
1067
|
u(m);
|
|
1068
|
-
const
|
|
1068
|
+
const d = A(null);
|
|
1069
1069
|
return $(() => {
|
|
1070
|
-
if (!
|
|
1070
|
+
if (!d.current || !s)
|
|
1071
1071
|
return;
|
|
1072
1072
|
const f = z(
|
|
1073
|
-
|
|
1073
|
+
d.current,
|
|
1074
1074
|
document.querySelector(".bn-suggestion-menu, #ai-suggestion-menu")
|
|
1075
1075
|
// TODO
|
|
1076
1076
|
);
|
|
1077
|
-
f === "top" ?
|
|
1077
|
+
f === "top" ? d.current.scrollIntoView(!0) : f === "bottom" && d.current.scrollIntoView(!1);
|
|
1078
1078
|
}, [s]), /* @__PURE__ */ g(
|
|
1079
1079
|
"div",
|
|
1080
1080
|
{
|
|
@@ -1083,10 +1083,10 @@ const xn = (n) => {
|
|
|
1083
1083
|
n.item.size === "small" ? "bn-gap-3 bn-py-1" : "",
|
|
1084
1084
|
o
|
|
1085
1085
|
),
|
|
1086
|
-
ref: E([t,
|
|
1086
|
+
ref: E([t, d]),
|
|
1087
1087
|
id: b,
|
|
1088
1088
|
onMouseDown: (f) => f.preventDefault(),
|
|
1089
|
-
onClick:
|
|
1089
|
+
onClick: l,
|
|
1090
1090
|
role: "option",
|
|
1091
1091
|
"aria-selected": s || void 0,
|
|
1092
1092
|
children: [
|
|
@@ -1130,7 +1130,7 @@ const xn = (n) => {
|
|
|
1130
1130
|
]
|
|
1131
1131
|
}
|
|
1132
1132
|
);
|
|
1133
|
-
}),
|
|
1133
|
+
}), Hn = p((n, t) => {
|
|
1134
1134
|
const { className: e, children: o, ...r } = n;
|
|
1135
1135
|
return u(r), /* @__PURE__ */ a(
|
|
1136
1136
|
"div",
|
|
@@ -1140,7 +1140,7 @@ const xn = (n) => {
|
|
|
1140
1140
|
children: o
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
1143
|
-
}),
|
|
1143
|
+
}), On = p((n, t) => {
|
|
1144
1144
|
const { className: e, ...o } = n;
|
|
1145
1145
|
return u(o), /* @__PURE__ */ a("div", { className: i(e, "bn-animate-spin"), ref: t, children: /* @__PURE__ */ a(
|
|
1146
1146
|
"svg",
|
|
@@ -1153,9 +1153,9 @@ const xn = (n) => {
|
|
|
1153
1153
|
children: /* @__PURE__ */ a("path", { d: "M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z" })
|
|
1154
1154
|
}
|
|
1155
1155
|
) });
|
|
1156
|
-
}),
|
|
1157
|
-
const { className: e, children: o, onMouseDown: r, onClick: s, ...
|
|
1158
|
-
u(
|
|
1156
|
+
}), Kn = p((n, t) => {
|
|
1157
|
+
const { className: e, children: o, onMouseDown: r, onClick: s, ...l } = n;
|
|
1158
|
+
u(l, !1);
|
|
1159
1159
|
const b = h();
|
|
1160
1160
|
return /* @__PURE__ */ a(
|
|
1161
1161
|
b.Button.Button,
|
|
@@ -1170,22 +1170,22 @@ const xn = (n) => {
|
|
|
1170
1170
|
ref: t,
|
|
1171
1171
|
onClick: s,
|
|
1172
1172
|
onMouseDown: r,
|
|
1173
|
-
...
|
|
1173
|
+
...l,
|
|
1174
1174
|
children: o
|
|
1175
1175
|
}
|
|
1176
1176
|
);
|
|
1177
|
-
}),
|
|
1177
|
+
}), Qn = p((n, t) => {
|
|
1178
1178
|
const {
|
|
1179
1179
|
className: e,
|
|
1180
1180
|
children: o,
|
|
1181
1181
|
draggable: r,
|
|
1182
1182
|
onDragStart: s,
|
|
1183
|
-
onDragEnd:
|
|
1183
|
+
onDragEnd: l,
|
|
1184
1184
|
style: b,
|
|
1185
1185
|
label: m,
|
|
1186
|
-
...
|
|
1186
|
+
...d
|
|
1187
1187
|
} = n;
|
|
1188
|
-
u(
|
|
1188
|
+
u(d, !1);
|
|
1189
1189
|
const f = h();
|
|
1190
1190
|
return /* @__PURE__ */ a(
|
|
1191
1191
|
f.Button.Button,
|
|
@@ -1196,20 +1196,20 @@ const xn = (n) => {
|
|
|
1196
1196
|
"aria-label": m,
|
|
1197
1197
|
draggable: r,
|
|
1198
1198
|
onDragStart: s,
|
|
1199
|
-
onDragEnd:
|
|
1199
|
+
onDragEnd: l,
|
|
1200
1200
|
style: b,
|
|
1201
|
-
...
|
|
1201
|
+
...d,
|
|
1202
1202
|
children: o
|
|
1203
1203
|
}
|
|
1204
1204
|
);
|
|
1205
|
-
}),
|
|
1205
|
+
}), B = p(
|
|
1206
1206
|
(n, t) => {
|
|
1207
1207
|
const {
|
|
1208
1208
|
className: e,
|
|
1209
1209
|
children: o,
|
|
1210
1210
|
onMouseEnter: r,
|
|
1211
1211
|
onMouseLeave: s,
|
|
1212
|
-
variant:
|
|
1212
|
+
variant: l,
|
|
1213
1213
|
...b
|
|
1214
1214
|
} = n;
|
|
1215
1215
|
u(b);
|
|
@@ -1220,7 +1220,7 @@ const xn = (n) => {
|
|
|
1220
1220
|
className: i(
|
|
1221
1221
|
e,
|
|
1222
1222
|
"bn-flex bn-gap-1 bn-p-1 bn-bg-popover bn-text-popover-foreground bn-border bn-rounded-lg bn-shadow-md bn-h-fit",
|
|
1223
|
-
|
|
1223
|
+
l === "action-toolbar" ? "bn-w-fit" : ""
|
|
1224
1224
|
),
|
|
1225
1225
|
ref: t,
|
|
1226
1226
|
onMouseEnter: r,
|
|
@@ -1229,17 +1229,17 @@ const xn = (n) => {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
) });
|
|
1231
1231
|
}
|
|
1232
|
-
),
|
|
1232
|
+
), k = p(
|
|
1233
1233
|
(n, t) => {
|
|
1234
1234
|
const {
|
|
1235
1235
|
className: e,
|
|
1236
1236
|
children: o,
|
|
1237
1237
|
mainTooltip: r,
|
|
1238
1238
|
secondaryTooltip: s,
|
|
1239
|
-
icon:
|
|
1239
|
+
icon: l,
|
|
1240
1240
|
isSelected: b,
|
|
1241
1241
|
isDisabled: m,
|
|
1242
|
-
onClick:
|
|
1242
|
+
onClick: d,
|
|
1243
1243
|
label: f,
|
|
1244
1244
|
variant: v,
|
|
1245
1245
|
...w
|
|
@@ -1255,12 +1255,12 @@ const xn = (n) => {
|
|
|
1255
1255
|
variant: "ghost",
|
|
1256
1256
|
size: v === "compact" ? "sm" : "default",
|
|
1257
1257
|
disabled: m,
|
|
1258
|
-
onClick:
|
|
1258
|
+
onClick: d,
|
|
1259
1259
|
ref: t,
|
|
1260
1260
|
"aria-label": f,
|
|
1261
1261
|
...w,
|
|
1262
1262
|
children: [
|
|
1263
|
-
|
|
1263
|
+
l,
|
|
1264
1264
|
o
|
|
1265
1265
|
]
|
|
1266
1266
|
}
|
|
@@ -1274,7 +1274,7 @@ const xn = (n) => {
|
|
|
1274
1274
|
),
|
|
1275
1275
|
size: v === "compact" ? "sm" : "default",
|
|
1276
1276
|
"aria-label": f,
|
|
1277
|
-
onClick:
|
|
1277
|
+
onClick: d,
|
|
1278
1278
|
pressed: b,
|
|
1279
1279
|
disabled: m,
|
|
1280
1280
|
"data-state": b ? "on" : "off",
|
|
@@ -1282,7 +1282,7 @@ const xn = (n) => {
|
|
|
1282
1282
|
ref: t,
|
|
1283
1283
|
...w,
|
|
1284
1284
|
children: [
|
|
1285
|
-
|
|
1285
|
+
l,
|
|
1286
1286
|
o
|
|
1287
1287
|
]
|
|
1288
1288
|
}
|
|
@@ -1304,45 +1304,45 @@ const xn = (n) => {
|
|
|
1304
1304
|
), F = p((n, t) => {
|
|
1305
1305
|
const { className: e, items: o, isDisabled: r, ...s } = n;
|
|
1306
1306
|
u(s);
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
] }), m = o.filter((
|
|
1307
|
+
const l = h(), b = (d) => /* @__PURE__ */ g("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
|
|
1308
|
+
d.icon,
|
|
1309
|
+
d.text
|
|
1310
|
+
] }), m = o.filter((d) => d.isSelected)[0];
|
|
1311
1311
|
return m ? /* @__PURE__ */ g(
|
|
1312
|
-
|
|
1312
|
+
l.Select.Select,
|
|
1313
1313
|
{
|
|
1314
1314
|
value: m.text,
|
|
1315
|
-
onValueChange: (
|
|
1315
|
+
onValueChange: (d) => {
|
|
1316
1316
|
var f, v;
|
|
1317
|
-
return (v = (f = o.find((w) => w.text ===
|
|
1317
|
+
return (v = (f = o.find((w) => w.text === d)).onClick) == null ? void 0 : v.call(f);
|
|
1318
1318
|
},
|
|
1319
1319
|
disabled: r,
|
|
1320
1320
|
children: [
|
|
1321
|
-
/* @__PURE__ */ a(
|
|
1322
|
-
/* @__PURE__ */ a(
|
|
1323
|
-
|
|
1321
|
+
/* @__PURE__ */ a(l.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(l.Select.SelectValue, {}) }),
|
|
1322
|
+
/* @__PURE__ */ a(l.Select.SelectContent, { className: e, ref: t, children: o.map((d) => /* @__PURE__ */ a(
|
|
1323
|
+
l.Select.SelectItem,
|
|
1324
1324
|
{
|
|
1325
|
-
disabled:
|
|
1326
|
-
value:
|
|
1327
|
-
children: /* @__PURE__ */ a(b, { ...
|
|
1325
|
+
disabled: d.isDisabled,
|
|
1326
|
+
value: d.text,
|
|
1327
|
+
children: /* @__PURE__ */ a(b, { ...d })
|
|
1328
1328
|
},
|
|
1329
|
-
|
|
1329
|
+
d.text
|
|
1330
1330
|
)) })
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
1333
1333
|
) : null;
|
|
1334
|
-
}),
|
|
1334
|
+
}), Wn = p((n, t) => {
|
|
1335
1335
|
const {
|
|
1336
1336
|
className: e,
|
|
1337
1337
|
children: o,
|
|
1338
1338
|
selected: r,
|
|
1339
1339
|
headerText: s,
|
|
1340
|
-
onFocus:
|
|
1340
|
+
onFocus: l,
|
|
1341
1341
|
onBlur: b,
|
|
1342
1342
|
tabIndex: m,
|
|
1343
|
-
...
|
|
1343
|
+
...d
|
|
1344
1344
|
} = n;
|
|
1345
|
-
u(
|
|
1345
|
+
u(d);
|
|
1346
1346
|
const f = h();
|
|
1347
1347
|
return /* @__PURE__ */ g(
|
|
1348
1348
|
f.Card.Card,
|
|
@@ -1352,7 +1352,7 @@ const xn = (n) => {
|
|
|
1352
1352
|
"bn-w-[300px]",
|
|
1353
1353
|
r ? "bn-bg-accent bn-text-accent-foreground" : ""
|
|
1354
1354
|
),
|
|
1355
|
-
onFocus:
|
|
1355
|
+
onFocus: l,
|
|
1356
1356
|
onBlur: b,
|
|
1357
1357
|
tabIndex: m,
|
|
1358
1358
|
ref: t,
|
|
@@ -1362,7 +1362,7 @@ const xn = (n) => {
|
|
|
1362
1362
|
]
|
|
1363
1363
|
}
|
|
1364
1364
|
);
|
|
1365
|
-
}),
|
|
1365
|
+
}), Zn = p((n, t) => {
|
|
1366
1366
|
const { className: e, children: o, ...r } = n;
|
|
1367
1367
|
return u(r), /* @__PURE__ */ a(
|
|
1368
1368
|
"div",
|
|
@@ -1376,7 +1376,7 @@ const xn = (n) => {
|
|
|
1376
1376
|
children: o
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
|
-
}),
|
|
1379
|
+
}), _n = p((n, t) => {
|
|
1380
1380
|
const { className: e, children: o, ...r } = n;
|
|
1381
1381
|
u(r, !1);
|
|
1382
1382
|
const s = h();
|
|
@@ -1391,8 +1391,8 @@ const xn = (n) => {
|
|
|
1391
1391
|
children: o
|
|
1392
1392
|
}
|
|
1393
1393
|
);
|
|
1394
|
-
}),
|
|
1395
|
-
const { authorInfo: e, timeString: o, edited: r, ...s } = n,
|
|
1394
|
+
}), Jn = p((n, t) => {
|
|
1395
|
+
const { authorInfo: e, timeString: o, edited: r, ...s } = n, l = Se();
|
|
1396
1396
|
u(s, !1);
|
|
1397
1397
|
const b = h();
|
|
1398
1398
|
return e === "loading" ? /* @__PURE__ */ g(
|
|
@@ -1439,7 +1439,7 @@ const xn = (n) => {
|
|
|
1439
1439
|
/* @__PURE__ */ g("span", { className: "bn-text-xs", children: [
|
|
1440
1440
|
o,
|
|
1441
1441
|
" ",
|
|
1442
|
-
r && `(${
|
|
1442
|
+
r && `(${l.comments.edited})`
|
|
1443
1443
|
] })
|
|
1444
1444
|
]
|
|
1445
1445
|
}
|
|
@@ -1447,19 +1447,19 @@ const xn = (n) => {
|
|
|
1447
1447
|
]
|
|
1448
1448
|
}
|
|
1449
1449
|
);
|
|
1450
|
-
}),
|
|
1450
|
+
}), Xn = p((n, t) => {
|
|
1451
1451
|
const {
|
|
1452
1452
|
className: e,
|
|
1453
1453
|
showActions: o,
|
|
1454
1454
|
authorInfo: r,
|
|
1455
1455
|
timeString: s,
|
|
1456
|
-
actions:
|
|
1456
|
+
actions: l,
|
|
1457
1457
|
edited: b,
|
|
1458
1458
|
children: m,
|
|
1459
|
-
...
|
|
1459
|
+
...d
|
|
1460
1460
|
} = n;
|
|
1461
|
-
u(
|
|
1462
|
-
const [f, v] =
|
|
1461
|
+
u(d);
|
|
1462
|
+
const [f, v] = Pe(!1), { focused: w, ref: C } = ye(), M = l && (o === !0 || o === void 0 || o === "hover" && f || w);
|
|
1463
1463
|
return /* @__PURE__ */ g(
|
|
1464
1464
|
"div",
|
|
1465
1465
|
{
|
|
@@ -1473,21 +1473,24 @@ const xn = (n) => {
|
|
|
1473
1473
|
{
|
|
1474
1474
|
className: "bn-absolute bn-right-0 bn-top-0 bn-z-10",
|
|
1475
1475
|
ref: C,
|
|
1476
|
-
children:
|
|
1476
|
+
children: l
|
|
1477
1477
|
}
|
|
1478
1478
|
) : null,
|
|
1479
|
-
/* @__PURE__ */ a(
|
|
1479
|
+
/* @__PURE__ */ a(Jn, { ...n }),
|
|
1480
1480
|
m
|
|
1481
1481
|
]
|
|
1482
1482
|
}
|
|
1483
1483
|
);
|
|
1484
|
-
}),
|
|
1485
|
-
const { className: e, onFocus: o, onBlur: r, autoFocus: s, editor:
|
|
1486
|
-
|
|
1487
|
-
|
|
1484
|
+
}), Yn = p((n, t) => {
|
|
1485
|
+
const { className: e, onFocus: o, onBlur: r, autoFocus: s, editor: l, editable: b, ...m } = n;
|
|
1486
|
+
u(m);
|
|
1487
|
+
const d = Te();
|
|
1488
|
+
return /* @__PURE__ */ a(
|
|
1489
|
+
lt,
|
|
1488
1490
|
{
|
|
1489
1491
|
autoFocus: s,
|
|
1490
1492
|
className: i(e, ""),
|
|
1493
|
+
theme: d == null ? void 0 : d.colorSchemePreference,
|
|
1491
1494
|
editor: n.editor,
|
|
1492
1495
|
sideMenu: !1,
|
|
1493
1496
|
slashMenu: !1,
|
|
@@ -1499,28 +1502,28 @@ const xn = (n) => {
|
|
|
1499
1502
|
onFocus: o,
|
|
1500
1503
|
onBlur: r,
|
|
1501
1504
|
children: /* @__PURE__ */ a(
|
|
1502
|
-
|
|
1505
|
+
Me,
|
|
1503
1506
|
{
|
|
1504
|
-
formattingToolbar:
|
|
1507
|
+
formattingToolbar: et
|
|
1505
1508
|
}
|
|
1506
1509
|
)
|
|
1507
1510
|
}
|
|
1508
1511
|
);
|
|
1509
|
-
}),
|
|
1510
|
-
const n =
|
|
1512
|
+
}), et = () => {
|
|
1513
|
+
const n = Ie([]).filter(
|
|
1511
1514
|
(t) => t.key !== "nestBlockButton" && t.key !== "unnestBlockButton"
|
|
1512
1515
|
);
|
|
1513
|
-
return /* @__PURE__ */ a(
|
|
1514
|
-
},
|
|
1516
|
+
return /* @__PURE__ */ a(De, { blockTypeSelectItems: [], children: n });
|
|
1517
|
+
}, nt = p((n, t) => {
|
|
1515
1518
|
const {
|
|
1516
1519
|
className: e,
|
|
1517
1520
|
text: o,
|
|
1518
1521
|
icon: r,
|
|
1519
1522
|
isSelected: s,
|
|
1520
|
-
mainTooltip:
|
|
1523
|
+
mainTooltip: l,
|
|
1521
1524
|
secondaryTooltip: b,
|
|
1522
1525
|
onClick: m,
|
|
1523
|
-
onMouseEnter:
|
|
1526
|
+
onMouseEnter: d,
|
|
1524
1527
|
...f
|
|
1525
1528
|
} = n;
|
|
1526
1529
|
u(f, !1);
|
|
@@ -1533,7 +1536,7 @@ const xn = (n) => {
|
|
|
1533
1536
|
"bn-flex bn-items-center bn-gap-1 bn-rounded-full bn-h-7 bn-px-2.5"
|
|
1534
1537
|
),
|
|
1535
1538
|
onClick: m,
|
|
1536
|
-
onMouseEnter:
|
|
1539
|
+
onMouseEnter: d,
|
|
1537
1540
|
ref: t,
|
|
1538
1541
|
children: [
|
|
1539
1542
|
/* @__PURE__ */ a("span", { children: r }),
|
|
@@ -1541,20 +1544,20 @@ const xn = (n) => {
|
|
|
1541
1544
|
]
|
|
1542
1545
|
}
|
|
1543
1546
|
);
|
|
1544
|
-
return
|
|
1547
|
+
return l ? /* @__PURE__ */ g(v.Tooltip.Tooltip, { children: [
|
|
1545
1548
|
/* @__PURE__ */ a(v.Tooltip.TooltipTrigger, { asChild: !0, children: w }),
|
|
1546
1549
|
/* @__PURE__ */ g(
|
|
1547
1550
|
v.Tooltip.TooltipContent,
|
|
1548
1551
|
{
|
|
1549
1552
|
className: "bn-flex bn-flex-col bn-items-center bn-whitespace-pre-wrap",
|
|
1550
1553
|
children: [
|
|
1551
|
-
/* @__PURE__ */ a("span", { children:
|
|
1554
|
+
/* @__PURE__ */ a("span", { children: l }),
|
|
1552
1555
|
b && /* @__PURE__ */ a("span", { children: b })
|
|
1553
1556
|
]
|
|
1554
1557
|
}
|
|
1555
1558
|
)
|
|
1556
1559
|
] }) : w;
|
|
1557
|
-
}),
|
|
1560
|
+
}), tt = p((n, t) => {
|
|
1558
1561
|
const { className: e, children: o, ...r } = n;
|
|
1559
1562
|
u(r);
|
|
1560
1563
|
const s = h();
|
|
@@ -1569,9 +1572,9 @@ const xn = (n) => {
|
|
|
1569
1572
|
children: o
|
|
1570
1573
|
}
|
|
1571
1574
|
) });
|
|
1572
|
-
}),
|
|
1573
|
-
const { className: e, children: o, onClick: r, label: s, ...
|
|
1574
|
-
u(
|
|
1575
|
+
}), ot = p((n, t) => {
|
|
1576
|
+
const { className: e, children: o, onClick: r, label: s, ...l } = n;
|
|
1577
|
+
u(l);
|
|
1575
1578
|
const b = h();
|
|
1576
1579
|
return /* @__PURE__ */ a(
|
|
1577
1580
|
b.Button.Button,
|
|
@@ -1584,8 +1587,8 @@ const xn = (n) => {
|
|
|
1584
1587
|
children: o
|
|
1585
1588
|
}
|
|
1586
1589
|
);
|
|
1587
|
-
}),
|
|
1588
|
-
const { className: e, accept: o, value: r, placeholder: s, onChange:
|
|
1590
|
+
}), at = p((n, t) => {
|
|
1591
|
+
const { className: e, accept: o, value: r, placeholder: s, onChange: l, ...b } = n;
|
|
1589
1592
|
u(b);
|
|
1590
1593
|
const m = h();
|
|
1591
1594
|
return /* @__PURE__ */ a(
|
|
@@ -1596,35 +1599,35 @@ const xn = (n) => {
|
|
|
1596
1599
|
ref: t,
|
|
1597
1600
|
accept: o,
|
|
1598
1601
|
value: r ? r.name : void 0,
|
|
1599
|
-
onChange: async (
|
|
1602
|
+
onChange: async (d) => l == null ? void 0 : l(d.target.files[0]),
|
|
1600
1603
|
placeholder: s
|
|
1601
1604
|
}
|
|
1602
1605
|
);
|
|
1603
|
-
}),
|
|
1604
|
-
const { className: e, isSelected: o, onClick: r, item: s, id:
|
|
1606
|
+
}), rt = p((n, t) => {
|
|
1607
|
+
const { className: e, isSelected: o, onClick: r, item: s, id: l, ...b } = n;
|
|
1605
1608
|
u(b);
|
|
1606
1609
|
const m = A(null);
|
|
1607
1610
|
return $(() => {
|
|
1608
1611
|
if (!m.current || !o)
|
|
1609
1612
|
return;
|
|
1610
|
-
const
|
|
1613
|
+
const d = z(
|
|
1611
1614
|
m.current,
|
|
1612
1615
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
1613
1616
|
);
|
|
1614
|
-
|
|
1617
|
+
d === "top" ? m.current.scrollIntoView(!0) : d === "bottom" && m.current.scrollIntoView(!1);
|
|
1615
1618
|
}, [o]), /* @__PURE__ */ a(
|
|
1616
1619
|
"div",
|
|
1617
1620
|
{
|
|
1618
1621
|
className: e,
|
|
1619
1622
|
ref: E([t, m]),
|
|
1620
|
-
id:
|
|
1623
|
+
id: l,
|
|
1621
1624
|
role: "option",
|
|
1622
1625
|
onClick: r,
|
|
1623
1626
|
"aria-selected": o || void 0,
|
|
1624
1627
|
children: s.icon
|
|
1625
1628
|
}
|
|
1626
1629
|
);
|
|
1627
|
-
}),
|
|
1630
|
+
}), st = p((n, t) => {
|
|
1628
1631
|
const {
|
|
1629
1632
|
className: e,
|
|
1630
1633
|
children: o,
|
|
@@ -1641,88 +1644,88 @@ const xn = (n) => {
|
|
|
1641
1644
|
children: o
|
|
1642
1645
|
}
|
|
1643
1646
|
);
|
|
1644
|
-
}),
|
|
1647
|
+
}), it = {
|
|
1645
1648
|
FormattingToolbar: {
|
|
1646
|
-
Root:
|
|
1647
|
-
Button:
|
|
1649
|
+
Root: B,
|
|
1650
|
+
Button: k,
|
|
1648
1651
|
Select: F
|
|
1649
1652
|
},
|
|
1650
1653
|
FilePanel: {
|
|
1651
1654
|
Root: kn,
|
|
1652
|
-
Button:
|
|
1653
|
-
FileInput:
|
|
1654
|
-
TabPanel:
|
|
1655
|
-
TextInput:
|
|
1655
|
+
Button: ot,
|
|
1656
|
+
FileInput: at,
|
|
1657
|
+
TabPanel: Fn,
|
|
1658
|
+
TextInput: Pn
|
|
1656
1659
|
},
|
|
1657
1660
|
LinkToolbar: {
|
|
1658
|
-
Root:
|
|
1659
|
-
Button:
|
|
1661
|
+
Root: B,
|
|
1662
|
+
Button: k,
|
|
1660
1663
|
Select: F
|
|
1661
1664
|
},
|
|
1662
1665
|
SideMenu: {
|
|
1663
|
-
Root:
|
|
1664
|
-
Button:
|
|
1666
|
+
Root: Vn,
|
|
1667
|
+
Button: An
|
|
1665
1668
|
},
|
|
1666
1669
|
SuggestionMenu: {
|
|
1667
|
-
Root:
|
|
1668
|
-
Item:
|
|
1669
|
-
EmptyItem:
|
|
1670
|
-
Label:
|
|
1671
|
-
Loader:
|
|
1670
|
+
Root: qn,
|
|
1671
|
+
Item: Un,
|
|
1672
|
+
EmptyItem: Gn,
|
|
1673
|
+
Label: Hn,
|
|
1674
|
+
Loader: On
|
|
1672
1675
|
},
|
|
1673
1676
|
GridSuggestionMenu: {
|
|
1674
|
-
Root:
|
|
1675
|
-
Item:
|
|
1676
|
-
EmptyItem:
|
|
1677
|
-
Loader:
|
|
1677
|
+
Root: $n,
|
|
1678
|
+
Item: rt,
|
|
1679
|
+
EmptyItem: jn,
|
|
1680
|
+
Loader: st
|
|
1678
1681
|
},
|
|
1679
1682
|
TableHandle: {
|
|
1680
|
-
Root:
|
|
1681
|
-
ExtendButton:
|
|
1683
|
+
Root: Qn,
|
|
1684
|
+
ExtendButton: Kn
|
|
1682
1685
|
},
|
|
1683
1686
|
Comments: {
|
|
1684
|
-
Comment:
|
|
1685
|
-
Editor:
|
|
1686
|
-
Card:
|
|
1687
|
-
CardSection:
|
|
1688
|
-
ExpandSectionsPrompt:
|
|
1687
|
+
Comment: Xn,
|
|
1688
|
+
Editor: Yn,
|
|
1689
|
+
Card: Wn,
|
|
1690
|
+
CardSection: Zn,
|
|
1691
|
+
ExpandSectionsPrompt: _n
|
|
1689
1692
|
},
|
|
1690
1693
|
Generic: {
|
|
1691
1694
|
Badge: {
|
|
1692
|
-
Root:
|
|
1693
|
-
Group:
|
|
1695
|
+
Root: nt,
|
|
1696
|
+
Group: tt
|
|
1694
1697
|
},
|
|
1695
1698
|
Toolbar: {
|
|
1696
|
-
Root:
|
|
1697
|
-
Button:
|
|
1699
|
+
Root: B,
|
|
1700
|
+
Button: k,
|
|
1698
1701
|
Select: F
|
|
1699
1702
|
},
|
|
1700
1703
|
Form: {
|
|
1701
|
-
Root:
|
|
1702
|
-
TextInput:
|
|
1704
|
+
Root: wn,
|
|
1705
|
+
TextInput: Cn
|
|
1703
1706
|
},
|
|
1704
1707
|
Menu: {
|
|
1705
|
-
Root:
|
|
1706
|
-
Trigger:
|
|
1707
|
-
Dropdown:
|
|
1708
|
-
Divider:
|
|
1709
|
-
Label:
|
|
1710
|
-
Item:
|
|
1711
|
-
Button:
|
|
1708
|
+
Root: Sn,
|
|
1709
|
+
Trigger: Tn,
|
|
1710
|
+
Dropdown: Mn,
|
|
1711
|
+
Divider: Dn,
|
|
1712
|
+
Label: Rn,
|
|
1713
|
+
Item: In,
|
|
1714
|
+
Button: Bn
|
|
1712
1715
|
},
|
|
1713
1716
|
Popover: {
|
|
1714
|
-
Root:
|
|
1715
|
-
Trigger:
|
|
1716
|
-
Content:
|
|
1717
|
+
Root: Ln,
|
|
1718
|
+
Trigger: zn,
|
|
1719
|
+
Content: En
|
|
1717
1720
|
}
|
|
1718
1721
|
}
|
|
1719
|
-
},
|
|
1722
|
+
}, lt = (n) => {
|
|
1720
1723
|
const { className: t, shadCNComponents: e, ...o } = n, r = V(() => ({
|
|
1721
|
-
...
|
|
1724
|
+
...xn,
|
|
1722
1725
|
...e
|
|
1723
1726
|
}), [e]);
|
|
1724
|
-
return /* @__PURE__ */ a(ve.Provider, { value: r, children: /* @__PURE__ */ a(
|
|
1725
|
-
|
|
1727
|
+
return /* @__PURE__ */ a(ve.Provider, { value: r, children: /* @__PURE__ */ a(Re.Provider, { value: it, children: /* @__PURE__ */ a(
|
|
1728
|
+
Be,
|
|
1726
1729
|
{
|
|
1727
1730
|
className: Ce("bn-shadcn", t || ""),
|
|
1728
1731
|
...o
|
|
@@ -1730,7 +1733,7 @@ const xn = (n) => {
|
|
|
1730
1733
|
) }) });
|
|
1731
1734
|
};
|
|
1732
1735
|
export {
|
|
1733
|
-
|
|
1734
|
-
|
|
1736
|
+
lt as BlockNoteView,
|
|
1737
|
+
it as components
|
|
1735
1738
|
};
|
|
1736
1739
|
//# sourceMappingURL=blocknote-shadcn.js.map
|