@blocknote/shadcn 0.25.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-shadcn.cjs +1 -1
- package/dist/blocknote-shadcn.cjs.map +1 -1
- package/dist/blocknote-shadcn.js +534 -494
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/comments/Card.tsx +45 -2
- package/src/comments/Comment.tsx +10 -8
- package/src/comments/Editor.tsx +3 -2
- package/src/components.ts +4 -1
- package/src/style.css +6 -0
- package/types/src/comments/Card.d.ts +9 -0
- package/types/src/comments/Comment.d.ts +1 -0
- package/types/src/comments/Editor.d.ts +1 -0
package/dist/blocknote-shadcn.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsx as a, jsxs as g, Fragment as
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import * as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { FormProvider as
|
|
1
|
+
import { jsx as a, jsxs as g, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import { assertEmpty as m, mergeCSSClasses as Ne } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as L, mergeRefs as z, useFocusWithin as xe, FormattingToolbarController as we, getFormattingToolbarItems as Ce, FormattingToolbar as ye, ComponentsContext as Se, BlockNoteViewRaw as Te } from "@blocknote/react";
|
|
4
|
+
import * as c from "react";
|
|
5
|
+
import { createContext as Ie, useContext as Me, forwardRef as p, useMemo as E, useRef as V, useEffect as A, useState as De } from "react";
|
|
6
|
+
import { FormProvider as Re, useFormContext as Be, useForm as Fe } 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 ke } from "clsx";
|
|
9
|
+
import { extendTailwindMerge as Pe } from "tailwind-merge";
|
|
10
10
|
import { cva as I } from "class-variance-authority";
|
|
11
|
-
import { Slot as
|
|
11
|
+
import { Slot as $ } from "@radix-ui/react-slot";
|
|
12
12
|
import * as N from "@radix-ui/react-dropdown-menu";
|
|
13
|
-
import { ChevronRight as
|
|
14
|
-
import * as
|
|
13
|
+
import { ChevronRight as j, Check as G, Circle as Le, ChevronDown as U, ChevronUp as ze } from "lucide-react";
|
|
14
|
+
import * as H from "@radix-ui/react-label";
|
|
15
15
|
import * as M 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
|
-
import * as
|
|
18
|
+
import * as O from "@radix-ui/react-toggle";
|
|
19
19
|
import * as T from "@radix-ui/react-tooltip";
|
|
20
|
-
const
|
|
20
|
+
const Ee = Pe({
|
|
21
21
|
prefix: "bn-"
|
|
22
22
|
});
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function d(...n) {
|
|
24
|
+
return Ee(ke(n));
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const q = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
27
27
|
S.Root,
|
|
28
28
|
{
|
|
29
29
|
ref: e,
|
|
30
|
-
className:
|
|
30
|
+
className: d(
|
|
31
31
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
32
32
|
n
|
|
33
33
|
),
|
|
34
34
|
...t
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
|
-
|
|
38
|
-
const
|
|
37
|
+
q.displayName = S.Root.displayName;
|
|
38
|
+
const K = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
39
39
|
S.Image,
|
|
40
40
|
{
|
|
41
41
|
ref: e,
|
|
42
|
-
className:
|
|
42
|
+
className: d("aspect-square h-full w-full", n),
|
|
43
43
|
...t
|
|
44
44
|
}
|
|
45
45
|
));
|
|
46
|
-
|
|
47
|
-
const
|
|
46
|
+
K.displayName = S.Image.displayName;
|
|
47
|
+
const W = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
48
48
|
S.Fallback,
|
|
49
49
|
{
|
|
50
50
|
ref: e,
|
|
51
|
-
className:
|
|
51
|
+
className: d(
|
|
52
52
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
53
53
|
n
|
|
54
54
|
),
|
|
55
55
|
...t
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
|
-
|
|
58
|
+
W.displayName = S.Fallback.displayName;
|
|
59
59
|
const Ve = 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
|
{
|
|
@@ -72,10 +72,10 @@ const Ve = I(
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
|
-
function
|
|
76
|
-
return /* @__PURE__ */ a("div", { className:
|
|
75
|
+
function Ae({ className: n, variant: t, ...e }) {
|
|
76
|
+
return /* @__PURE__ */ a("div", { className: d(Ve({ variant: t }), n), ...e });
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const $e = 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: {
|
|
@@ -99,76 +99,76 @@ const Ae = I(
|
|
|
99
99
|
size: "default"
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
),
|
|
102
|
+
), _ = c.forwardRef(
|
|
103
103
|
({ className: n, variant: t, size: e, asChild: o = !1, ...r }, s) => /* @__PURE__ */ a(
|
|
104
|
-
o ?
|
|
104
|
+
o ? $ : "button",
|
|
105
105
|
{
|
|
106
|
-
className:
|
|
106
|
+
className: d($e({ variant: t, size: e, className: n })),
|
|
107
107
|
ref: s,
|
|
108
108
|
type: "button",
|
|
109
109
|
...r
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
);
|
|
113
|
-
|
|
114
|
-
const
|
|
113
|
+
_.displayName = "Button";
|
|
114
|
+
const J = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
117
|
ref: e,
|
|
118
|
-
className:
|
|
118
|
+
className: d(
|
|
119
119
|
"bn-rounded-lg bn-border bn-bg-card bn-text-card-foreground bn-shadow-sm",
|
|
120
120
|
n
|
|
121
121
|
),
|
|
122
122
|
...t
|
|
123
123
|
}
|
|
124
124
|
));
|
|
125
|
-
|
|
126
|
-
const
|
|
125
|
+
J.displayName = "Card";
|
|
126
|
+
const je = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
127
127
|
"div",
|
|
128
128
|
{
|
|
129
129
|
ref: e,
|
|
130
|
-
className:
|
|
130
|
+
className: d("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", n),
|
|
131
131
|
...t
|
|
132
132
|
}
|
|
133
133
|
));
|
|
134
|
-
|
|
135
|
-
const
|
|
134
|
+
je.displayName = "CardHeader";
|
|
135
|
+
const Ge = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
136
136
|
"h3",
|
|
137
137
|
{
|
|
138
138
|
ref: e,
|
|
139
|
-
className:
|
|
139
|
+
className: d(
|
|
140
140
|
"bn-text-2xl bn-font-semibold bn-leading-none bn-tracking-tight",
|
|
141
141
|
n
|
|
142
142
|
),
|
|
143
143
|
...t
|
|
144
144
|
}
|
|
145
145
|
));
|
|
146
|
-
|
|
147
|
-
const
|
|
146
|
+
Ge.displayName = "CardTitle";
|
|
147
|
+
const Ue = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
148
148
|
"p",
|
|
149
149
|
{
|
|
150
150
|
ref: e,
|
|
151
|
-
className:
|
|
151
|
+
className: d("bn-text-sm bn-text-muted-foreground", n),
|
|
152
152
|
...t
|
|
153
153
|
}
|
|
154
154
|
));
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
const
|
|
155
|
+
Ue.displayName = "CardDescription";
|
|
156
|
+
const Q = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a("div", { ref: e, className: d("bn-p-6 bn-pt-0", n), ...t }));
|
|
157
|
+
Q.displayName = "CardContent";
|
|
158
|
+
const He = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
ref: e,
|
|
162
|
-
className:
|
|
162
|
+
className: d("bn-flex bn-items-center bn-p-6 bn-pt-0", n),
|
|
163
163
|
...t
|
|
164
164
|
}
|
|
165
165
|
));
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
He.displayName = "CardFooter";
|
|
167
|
+
const Oe = N.Root, qe = N.Trigger, Ke = 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,
|
|
171
|
-
className:
|
|
171
|
+
className: d(
|
|
172
172
|
"bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none focus:bn-bg-accent data-[state=open]:bn-bg-accent",
|
|
173
173
|
t && "bn-pl-8",
|
|
174
174
|
n
|
|
@@ -176,31 +176,31 @@ const He = N.Root, Oe = N.Trigger, qe = N.Sub, J = b.forwardRef(({ className: n,
|
|
|
176
176
|
...o,
|
|
177
177
|
children: [
|
|
178
178
|
e,
|
|
179
|
-
/* @__PURE__ */ a(
|
|
179
|
+
/* @__PURE__ */ a(j, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
180
180
|
]
|
|
181
181
|
}
|
|
182
182
|
));
|
|
183
|
-
|
|
184
|
-
const
|
|
183
|
+
X.displayName = N.SubTrigger.displayName;
|
|
184
|
+
const Y = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
185
185
|
N.SubContent,
|
|
186
186
|
{
|
|
187
187
|
ref: e,
|
|
188
|
-
className:
|
|
188
|
+
className: d(
|
|
189
189
|
"bn-z-50 bn-min-w-[8rem] bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-p-1 bn-text-popover-foreground bn-shadow-lg data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
190
190
|
n
|
|
191
191
|
),
|
|
192
192
|
...t
|
|
193
193
|
}
|
|
194
194
|
));
|
|
195
|
-
|
|
196
|
-
const
|
|
195
|
+
Y.displayName = N.SubContent.displayName;
|
|
196
|
+
const Z = c.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
|
|
197
197
|
// <DropdownMenuPrimitive.Portal>
|
|
198
198
|
/* @__PURE__ */ a(
|
|
199
199
|
N.Content,
|
|
200
200
|
{
|
|
201
201
|
ref: o,
|
|
202
202
|
sideOffset: t,
|
|
203
|
-
className:
|
|
203
|
+
className: d(
|
|
204
204
|
"bn-z-50 bn-min-w-[8rem] bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-p-1 bn-text-popover-foreground bn-shadow-md data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
205
205
|
n
|
|
206
206
|
),
|
|
@@ -208,12 +208,12 @@ const X = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
|
|
|
208
208
|
}
|
|
209
209
|
)
|
|
210
210
|
));
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
Z.displayName = N.Content.displayName;
|
|
212
|
+
const ee = c.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
|
|
213
213
|
N.Item,
|
|
214
214
|
{
|
|
215
215
|
ref: o,
|
|
216
|
-
className:
|
|
216
|
+
className: d(
|
|
217
217
|
"bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
218
218
|
t && "bn-pl-8",
|
|
219
219
|
n
|
|
@@ -221,45 +221,45 @@ const Y = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */
|
|
|
221
221
|
...e
|
|
222
222
|
}
|
|
223
223
|
));
|
|
224
|
-
|
|
225
|
-
const
|
|
224
|
+
ee.displayName = N.Item.displayName;
|
|
225
|
+
const ne = c.forwardRef(({ className: n, children: t, checked: e, ...o }, r) => /* @__PURE__ */ g(
|
|
226
226
|
N.CheckboxItem,
|
|
227
227
|
{
|
|
228
228
|
ref: r,
|
|
229
|
-
className:
|
|
229
|
+
className: d(
|
|
230
230
|
"bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
231
231
|
n
|
|
232
232
|
),
|
|
233
233
|
checked: e,
|
|
234
234
|
...o,
|
|
235
235
|
children: [
|
|
236
|
-
/* @__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(
|
|
236
|
+
/* @__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(G, { className: "bn-h-4 bn-w-4" }) }) }),
|
|
237
237
|
t
|
|
238
238
|
]
|
|
239
239
|
}
|
|
240
240
|
));
|
|
241
|
-
|
|
242
|
-
const
|
|
241
|
+
ne.displayName = N.CheckboxItem.displayName;
|
|
242
|
+
const We = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
243
243
|
N.RadioItem,
|
|
244
244
|
{
|
|
245
245
|
ref: o,
|
|
246
|
-
className:
|
|
246
|
+
className: d(
|
|
247
247
|
"bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
248
248
|
n
|
|
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(Le, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
|
|
253
253
|
t
|
|
254
254
|
]
|
|
255
255
|
}
|
|
256
256
|
));
|
|
257
|
-
|
|
258
|
-
const
|
|
257
|
+
We.displayName = N.RadioItem.displayName;
|
|
258
|
+
const te = c.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
|
|
259
259
|
N.Label,
|
|
260
260
|
{
|
|
261
261
|
ref: o,
|
|
262
|
-
className:
|
|
262
|
+
className: d(
|
|
263
263
|
"bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
|
|
264
264
|
t && "bn-pl-8",
|
|
265
265
|
n
|
|
@@ -267,31 +267,31 @@ const ee = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */
|
|
|
267
267
|
...e
|
|
268
268
|
}
|
|
269
269
|
));
|
|
270
|
-
|
|
271
|
-
const
|
|
270
|
+
te.displayName = N.Label.displayName;
|
|
271
|
+
const oe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
272
272
|
N.Separator,
|
|
273
273
|
{
|
|
274
274
|
ref: e,
|
|
275
|
-
className:
|
|
275
|
+
className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
|
|
276
276
|
...t
|
|
277
277
|
}
|
|
278
278
|
));
|
|
279
|
-
|
|
280
|
-
const
|
|
279
|
+
oe.displayName = N.Separator.displayName;
|
|
280
|
+
const _e = I(
|
|
281
281
|
"bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
|
|
282
|
-
),
|
|
283
|
-
|
|
282
|
+
), P = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
283
|
+
H.Root,
|
|
284
284
|
{
|
|
285
285
|
ref: e,
|
|
286
|
-
className:
|
|
286
|
+
className: d(_e(), n),
|
|
287
287
|
...t
|
|
288
288
|
}
|
|
289
289
|
));
|
|
290
|
-
|
|
291
|
-
const
|
|
290
|
+
P.displayName = H.Root.displayName;
|
|
291
|
+
const Je = Re, Qe = c.createContext(
|
|
292
292
|
{}
|
|
293
293
|
), D = () => {
|
|
294
|
-
const n =
|
|
294
|
+
const n = c.useContext(Qe), t = c.useContext(ae), { getFieldState: e, formState: o } = Be(), 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;
|
|
@@ -303,30 +303,30 @@ const _e = De, Je = b.createContext(
|
|
|
303
303
|
formMessageId: `${s}-form-item-message`,
|
|
304
304
|
...r
|
|
305
305
|
};
|
|
306
|
-
},
|
|
306
|
+
}, ae = c.createContext(
|
|
307
307
|
{}
|
|
308
|
-
),
|
|
309
|
-
const o =
|
|
310
|
-
return /* @__PURE__ */ a(
|
|
308
|
+
), Xe = c.forwardRef(({ className: n, ...t }, e) => {
|
|
309
|
+
const o = c.useId();
|
|
310
|
+
return /* @__PURE__ */ a(ae.Provider, { value: { id: o }, children: /* @__PURE__ */ a("div", { ref: e, className: d("bn-space-y-2", n), ...t }) });
|
|
311
311
|
});
|
|
312
|
-
|
|
313
|
-
const
|
|
312
|
+
Xe.displayName = "FormItem";
|
|
313
|
+
const Ye = c.forwardRef(({ className: n, ...t }, e) => {
|
|
314
314
|
const { error: o, formItemId: r } = D();
|
|
315
315
|
return /* @__PURE__ */ a(
|
|
316
|
-
|
|
316
|
+
P,
|
|
317
317
|
{
|
|
318
318
|
ref: e,
|
|
319
|
-
className:
|
|
319
|
+
className: d(o && "bn-text-destructive", n),
|
|
320
320
|
htmlFor: r,
|
|
321
321
|
...t
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
324
|
});
|
|
325
|
-
|
|
326
|
-
const
|
|
325
|
+
Ye.displayName = "FormLabel";
|
|
326
|
+
const Ze = c.forwardRef(({ ...n }, t) => {
|
|
327
327
|
const { error: e, formItemId: o, formDescriptionId: r, formMessageId: s } = D();
|
|
328
328
|
return /* @__PURE__ */ a(
|
|
329
|
-
|
|
329
|
+
$,
|
|
330
330
|
{
|
|
331
331
|
ref: t,
|
|
332
332
|
id: o,
|
|
@@ -336,40 +336,40 @@ const Ye = b.forwardRef(({ ...n }, t) => {
|
|
|
336
336
|
}
|
|
337
337
|
);
|
|
338
338
|
});
|
|
339
|
-
|
|
340
|
-
const
|
|
339
|
+
Ze.displayName = "FormControl";
|
|
340
|
+
const en = c.forwardRef(({ className: n, ...t }, e) => {
|
|
341
341
|
const { formDescriptionId: o } = D();
|
|
342
342
|
return /* @__PURE__ */ a(
|
|
343
343
|
"p",
|
|
344
344
|
{
|
|
345
345
|
ref: e,
|
|
346
346
|
id: o,
|
|
347
|
-
className:
|
|
347
|
+
className: d("bn-text-sm bn-text-muted-foreground", n),
|
|
348
348
|
...t
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
});
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
const { error: r, formMessageId: s } = D(),
|
|
355
|
-
return
|
|
352
|
+
en.displayName = "FormDescription";
|
|
353
|
+
const nn = c.forwardRef(({ className: n, children: t, ...e }, o) => {
|
|
354
|
+
const { error: r, formMessageId: s } = D(), i = r ? String(r == null ? void 0 : r.message) : t;
|
|
355
|
+
return i ? /* @__PURE__ */ a(
|
|
356
356
|
"p",
|
|
357
357
|
{
|
|
358
358
|
ref: o,
|
|
359
359
|
id: s,
|
|
360
|
-
className:
|
|
360
|
+
className: d("bn-text-sm bn-font-medium bn-text-destructive", n),
|
|
361
361
|
...e,
|
|
362
|
-
children:
|
|
362
|
+
children: i
|
|
363
363
|
}
|
|
364
364
|
) : null;
|
|
365
365
|
});
|
|
366
|
-
|
|
367
|
-
const
|
|
366
|
+
nn.displayName = "FormMessage";
|
|
367
|
+
const re = c.forwardRef(
|
|
368
368
|
({ className: n, type: t, ...e }, o) => /* @__PURE__ */ a(
|
|
369
369
|
"input",
|
|
370
370
|
{
|
|
371
371
|
type: t,
|
|
372
|
-
className:
|
|
372
|
+
className: d(
|
|
373
373
|
"bn-flex bn-h-10 bn-w-full bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background file:bn-border-0 file:bn-bg-transparent file:bn-text-sm file:bn-font-medium placeholder:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50",
|
|
374
374
|
n
|
|
375
375
|
),
|
|
@@ -378,8 +378,8 @@ const oe = b.forwardRef(
|
|
|
378
378
|
}
|
|
379
379
|
)
|
|
380
380
|
);
|
|
381
|
-
|
|
382
|
-
const
|
|
381
|
+
re.displayName = "Input";
|
|
382
|
+
const tn = M.Root, on = M.Trigger, se = c.forwardRef(({ className: n, align: t = "center", sideOffset: e = 4, ...o }, r) => (
|
|
383
383
|
// <PopoverPrimitive.Portal>
|
|
384
384
|
/* @__PURE__ */ a(
|
|
385
385
|
M.Content,
|
|
@@ -387,7 +387,7 @@ const nn = M.Root, tn = M.Trigger, ae = b.forwardRef(({ className: n, align: t =
|
|
|
387
387
|
ref: r,
|
|
388
388
|
align: t,
|
|
389
389
|
sideOffset: e,
|
|
390
|
-
className:
|
|
390
|
+
className: d(
|
|
391
391
|
"bn-z-50 bn-w-72 bn-rounded-md bn-border bn-bg-popover bn-p-4 bn-text-popover-foreground bn-shadow-md bn-outline-none data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
392
392
|
n
|
|
393
393
|
),
|
|
@@ -395,56 +395,56 @@ const nn = M.Root, tn = M.Trigger, ae = b.forwardRef(({ className: n, align: t =
|
|
|
395
395
|
}
|
|
396
396
|
)
|
|
397
397
|
));
|
|
398
|
-
|
|
399
|
-
const
|
|
398
|
+
se.displayName = M.Content.displayName;
|
|
399
|
+
const an = x.Root, rn = x.Value, ie = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
400
400
|
x.Trigger,
|
|
401
401
|
{
|
|
402
402
|
ref: o,
|
|
403
|
-
className:
|
|
403
|
+
className: d(
|
|
404
404
|
"bn-flex bn-h-10 bn-w-full bn-items-center bn-justify-between bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background placeholder:bn-text-muted-foreground focus:bn-outline-none focus:bn-ring-2 focus:bn-ring-ring focus:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50 [&>span]:bn-line-clamp-1",
|
|
405
405
|
n
|
|
406
406
|
),
|
|
407
407
|
...e,
|
|
408
408
|
children: [
|
|
409
409
|
t,
|
|
410
|
-
/* @__PURE__ */ a(x.Icon, { asChild: !0, children: /* @__PURE__ */ a(
|
|
410
|
+
/* @__PURE__ */ a(x.Icon, { asChild: !0, children: /* @__PURE__ */ a(U, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
|
|
411
411
|
]
|
|
412
412
|
}
|
|
413
413
|
));
|
|
414
|
-
|
|
415
|
-
const
|
|
414
|
+
ie.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,
|
|
419
|
-
className:
|
|
419
|
+
className: d(
|
|
420
420
|
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
421
421
|
n
|
|
422
422
|
),
|
|
423
423
|
...t,
|
|
424
|
-
children: /* @__PURE__ */ a(
|
|
424
|
+
children: /* @__PURE__ */ a(ze, { className: "bn-h-4 bn-w-4" })
|
|
425
425
|
}
|
|
426
426
|
));
|
|
427
|
-
|
|
428
|
-
const
|
|
427
|
+
de.displayName = x.ScrollUpButton.displayName;
|
|
428
|
+
const le = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
429
429
|
x.ScrollDownButton,
|
|
430
430
|
{
|
|
431
431
|
ref: e,
|
|
432
|
-
className:
|
|
432
|
+
className: d(
|
|
433
433
|
"bn-flex bn-cursor-default bn-items-center bn-justify-center bn-py-1",
|
|
434
434
|
n
|
|
435
435
|
),
|
|
436
436
|
...t,
|
|
437
|
-
children: /* @__PURE__ */ a(
|
|
437
|
+
children: /* @__PURE__ */ a(U, { className: "bn-h-4 bn-w-4" })
|
|
438
438
|
}
|
|
439
439
|
));
|
|
440
|
-
|
|
441
|
-
const
|
|
440
|
+
le.displayName = x.ScrollDownButton.displayName;
|
|
441
|
+
const be = c.forwardRef(({ className: n, children: t, position: e = "popper", ...o }, r) => (
|
|
442
442
|
// <SelectPrimitive.Portal>
|
|
443
443
|
/* @__PURE__ */ g(
|
|
444
444
|
x.Content,
|
|
445
445
|
{
|
|
446
446
|
ref: r,
|
|
447
|
-
className:
|
|
447
|
+
className: d(
|
|
448
448
|
"bn-relative bn-z-50 bn-max-h-96 bn-min-w-[8rem] bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-text-popover-foreground bn-shadow-md data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
449
449
|
e === "popper" && "data-[side=bottom]:bn-translate-y-1 data-[side=left]:bn--translate-x-1 data-[side=right]:bn-translate-x-1 data-[side=top]:bn--translate-y-1",
|
|
450
450
|
n
|
|
@@ -452,109 +452,109 @@ const de = b.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
|
{
|
|
459
|
-
className:
|
|
459
|
+
className: d(
|
|
460
460
|
"bn-p-1",
|
|
461
461
|
e === "popper" && "bn-h-[var(--radix-select-trigger-height)] bn-w-full bn-min-w-[var(--radix-select-trigger-width)]"
|
|
462
462
|
),
|
|
463
463
|
children: t
|
|
464
464
|
}
|
|
465
465
|
),
|
|
466
|
-
/* @__PURE__ */ a(
|
|
466
|
+
/* @__PURE__ */ a(le, {})
|
|
467
467
|
]
|
|
468
468
|
}
|
|
469
469
|
)
|
|
470
470
|
));
|
|
471
|
-
|
|
472
|
-
const
|
|
471
|
+
be.displayName = x.Content.displayName;
|
|
472
|
+
const sn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
473
473
|
x.Label,
|
|
474
474
|
{
|
|
475
475
|
ref: e,
|
|
476
|
-
className:
|
|
476
|
+
className: d(
|
|
477
477
|
"bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-font-semibold",
|
|
478
478
|
n
|
|
479
479
|
),
|
|
480
480
|
...t
|
|
481
481
|
}
|
|
482
482
|
));
|
|
483
|
-
|
|
484
|
-
const
|
|
483
|
+
sn.displayName = x.Label.displayName;
|
|
484
|
+
const ce = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
|
|
485
485
|
x.Item,
|
|
486
486
|
{
|
|
487
487
|
ref: o,
|
|
488
|
-
className:
|
|
488
|
+
className: d(
|
|
489
489
|
"bn-relative bn-flex bn-w-full bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
490
490
|
n
|
|
491
491
|
),
|
|
492
492
|
...e,
|
|
493
493
|
children: [
|
|
494
|
-
/* @__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(x.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
494
|
+
/* @__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(x.ItemIndicator, { children: /* @__PURE__ */ a(G, { className: "bn-h-4 bn-w-4" }) }) }),
|
|
495
495
|
/* @__PURE__ */ a(x.ItemText, { children: t })
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
));
|
|
499
|
-
|
|
500
|
-
const
|
|
499
|
+
ce.displayName = x.Item.displayName;
|
|
500
|
+
const dn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
501
501
|
x.Separator,
|
|
502
502
|
{
|
|
503
503
|
ref: e,
|
|
504
|
-
className:
|
|
504
|
+
className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
|
|
505
505
|
...t
|
|
506
506
|
}
|
|
507
507
|
));
|
|
508
|
-
|
|
509
|
-
function
|
|
508
|
+
dn.displayName = x.Separator.displayName;
|
|
509
|
+
function ln({
|
|
510
510
|
className: n,
|
|
511
511
|
...t
|
|
512
512
|
}) {
|
|
513
513
|
return /* @__PURE__ */ a(
|
|
514
514
|
"div",
|
|
515
515
|
{
|
|
516
|
-
className:
|
|
516
|
+
className: d("animate-pulse rounded-md bg-primary/10", n),
|
|
517
517
|
...t
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
|
-
const
|
|
521
|
+
const bn = y.Root, me = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
522
522
|
y.List,
|
|
523
523
|
{
|
|
524
524
|
ref: e,
|
|
525
|
-
className:
|
|
525
|
+
className: d(
|
|
526
526
|
"bn-inline-flex bn-h-10 bn-items-center bn-justify-center bn-rounded-md bn-bg-muted bn-p-1 bn-text-muted-foreground",
|
|
527
527
|
n
|
|
528
528
|
),
|
|
529
529
|
...t
|
|
530
530
|
}
|
|
531
531
|
));
|
|
532
|
-
|
|
533
|
-
const
|
|
532
|
+
me.displayName = y.List.displayName;
|
|
533
|
+
const ue = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
534
534
|
y.Trigger,
|
|
535
535
|
{
|
|
536
536
|
ref: e,
|
|
537
|
-
className:
|
|
537
|
+
className: d(
|
|
538
538
|
"bn-inline-flex bn-items-center bn-justify-center bn-whitespace-nowrap bn-rounded-sm bn-px-3 bn-py-1.5 bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-all focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50 data-[state=active]:bn-bg-background data-[state=active]:bn-text-foreground data-[state=active]:bn-shadow-sm",
|
|
539
539
|
n
|
|
540
540
|
),
|
|
541
541
|
...t
|
|
542
542
|
}
|
|
543
543
|
));
|
|
544
|
-
|
|
545
|
-
const
|
|
544
|
+
ue.displayName = y.Trigger.displayName;
|
|
545
|
+
const pe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
|
|
546
546
|
y.Content,
|
|
547
547
|
{
|
|
548
548
|
ref: e,
|
|
549
|
-
className:
|
|
549
|
+
className: d(
|
|
550
550
|
"bn-mt-2 bn-ring-offset-background focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2",
|
|
551
551
|
n
|
|
552
552
|
),
|
|
553
553
|
...t
|
|
554
554
|
}
|
|
555
555
|
));
|
|
556
|
-
|
|
557
|
-
const
|
|
556
|
+
pe.displayName = y.Content.displayName;
|
|
557
|
+
const cn = 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: {
|
|
@@ -573,120 +573,120 @@ const bn = I(
|
|
|
573
573
|
size: "default"
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
),
|
|
577
|
-
|
|
576
|
+
), fe = c.forwardRef(({ className: n, variant: t, size: e, ...o }, r) => /* @__PURE__ */ a(
|
|
577
|
+
O.Root,
|
|
578
578
|
{
|
|
579
579
|
ref: r,
|
|
580
|
-
className:
|
|
580
|
+
className: d(cn({ variant: t, size: e, className: n })),
|
|
581
581
|
...o
|
|
582
582
|
}
|
|
583
583
|
));
|
|
584
|
-
|
|
585
|
-
const
|
|
584
|
+
fe.displayName = O.Root.displayName;
|
|
585
|
+
const mn = T.Provider, un = T.Root, pn = T.Trigger, ge = c.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => /* @__PURE__ */ a(
|
|
586
586
|
T.Content,
|
|
587
587
|
{
|
|
588
588
|
ref: o,
|
|
589
589
|
sideOffset: t,
|
|
590
|
-
className:
|
|
590
|
+
className: d(
|
|
591
591
|
"bn-z-50 bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-px-3 bn-py-1.5 bn-text-sm bn-text-popover-foreground bn-shadow-md bn-animate-in bn-fade-in-0 bn-zoom-in-95 data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=closed]:bn-zoom-out-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
592
592
|
n
|
|
593
593
|
),
|
|
594
594
|
...e
|
|
595
595
|
}
|
|
596
596
|
));
|
|
597
|
-
|
|
598
|
-
const
|
|
597
|
+
ge.displayName = T.Content.displayName;
|
|
598
|
+
const fn = {
|
|
599
599
|
Avatar: {
|
|
600
|
-
Avatar:
|
|
601
|
-
AvatarFallback:
|
|
602
|
-
AvatarImage:
|
|
600
|
+
Avatar: q,
|
|
601
|
+
AvatarFallback: W,
|
|
602
|
+
AvatarImage: K
|
|
603
603
|
},
|
|
604
604
|
Badge: {
|
|
605
|
-
Badge:
|
|
605
|
+
Badge: Ae
|
|
606
606
|
},
|
|
607
607
|
Button: {
|
|
608
|
-
Button:
|
|
608
|
+
Button: _
|
|
609
609
|
},
|
|
610
610
|
Card: {
|
|
611
|
-
Card:
|
|
612
|
-
CardContent:
|
|
611
|
+
Card: J,
|
|
612
|
+
CardContent: Q
|
|
613
613
|
},
|
|
614
614
|
DropdownMenu: {
|
|
615
|
-
DropdownMenu:
|
|
616
|
-
DropdownMenuCheckboxItem:
|
|
617
|
-
DropdownMenuContent:
|
|
618
|
-
DropdownMenuItem:
|
|
619
|
-
DropdownMenuLabel:
|
|
620
|
-
DropdownMenuSeparator:
|
|
621
|
-
DropdownMenuSub:
|
|
622
|
-
DropdownMenuSubContent:
|
|
623
|
-
DropdownMenuSubTrigger:
|
|
624
|
-
DropdownMenuTrigger:
|
|
615
|
+
DropdownMenu: Oe,
|
|
616
|
+
DropdownMenuCheckboxItem: ne,
|
|
617
|
+
DropdownMenuContent: Z,
|
|
618
|
+
DropdownMenuItem: ee,
|
|
619
|
+
DropdownMenuLabel: te,
|
|
620
|
+
DropdownMenuSeparator: oe,
|
|
621
|
+
DropdownMenuSub: Ke,
|
|
622
|
+
DropdownMenuSubContent: Y,
|
|
623
|
+
DropdownMenuSubTrigger: X,
|
|
624
|
+
DropdownMenuTrigger: qe
|
|
625
625
|
},
|
|
626
626
|
Form: {
|
|
627
|
-
Form:
|
|
627
|
+
Form: Je
|
|
628
628
|
},
|
|
629
629
|
Input: {
|
|
630
|
-
Input:
|
|
630
|
+
Input: re
|
|
631
631
|
},
|
|
632
632
|
Label: {
|
|
633
|
-
Label:
|
|
633
|
+
Label: P
|
|
634
634
|
},
|
|
635
635
|
Popover: {
|
|
636
|
-
Popover:
|
|
637
|
-
PopoverContent:
|
|
638
|
-
PopoverTrigger:
|
|
636
|
+
Popover: tn,
|
|
637
|
+
PopoverContent: se,
|
|
638
|
+
PopoverTrigger: on
|
|
639
639
|
},
|
|
640
640
|
Select: {
|
|
641
|
-
Select:
|
|
642
|
-
SelectContent:
|
|
643
|
-
SelectItem:
|
|
644
|
-
SelectTrigger:
|
|
645
|
-
SelectValue:
|
|
641
|
+
Select: an,
|
|
642
|
+
SelectContent: be,
|
|
643
|
+
SelectItem: ce,
|
|
644
|
+
SelectTrigger: ie,
|
|
645
|
+
SelectValue: rn
|
|
646
646
|
},
|
|
647
647
|
Skeleton: {
|
|
648
|
-
Skeleton:
|
|
648
|
+
Skeleton: ln
|
|
649
649
|
},
|
|
650
650
|
Tabs: {
|
|
651
|
-
Tabs:
|
|
652
|
-
TabsContent:
|
|
653
|
-
TabsList:
|
|
654
|
-
TabsTrigger:
|
|
651
|
+
Tabs: bn,
|
|
652
|
+
TabsContent: pe,
|
|
653
|
+
TabsList: me,
|
|
654
|
+
TabsTrigger: ue
|
|
655
655
|
},
|
|
656
656
|
Toggle: {
|
|
657
|
-
Toggle:
|
|
657
|
+
Toggle: fe
|
|
658
658
|
},
|
|
659
659
|
Tooltip: {
|
|
660
|
-
Tooltip:
|
|
661
|
-
TooltipContent:
|
|
662
|
-
TooltipProvider:
|
|
663
|
-
TooltipTrigger:
|
|
660
|
+
Tooltip: un,
|
|
661
|
+
TooltipContent: ge,
|
|
662
|
+
TooltipProvider: mn,
|
|
663
|
+
TooltipTrigger: pn
|
|
664
664
|
}
|
|
665
|
-
},
|
|
665
|
+
}, he = Ie(void 0);
|
|
666
666
|
function h() {
|
|
667
|
-
return
|
|
667
|
+
return Me(he);
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const gn = (n) => {
|
|
670
670
|
const { children: t, ...e } = n;
|
|
671
|
-
|
|
672
|
-
const o = h(), r =
|
|
671
|
+
m(e);
|
|
672
|
+
const o = h(), r = Fe();
|
|
673
673
|
return /* @__PURE__ */ a(o.Form.Form, { ...r, children: t });
|
|
674
|
-
},
|
|
674
|
+
}, hn = p((n, t) => {
|
|
675
675
|
const {
|
|
676
676
|
className: e,
|
|
677
677
|
name: o,
|
|
678
678
|
label: r,
|
|
679
679
|
icon: s,
|
|
680
680
|
// TODO: implement
|
|
681
|
-
value:
|
|
682
|
-
autoFocus:
|
|
683
|
-
placeholder:
|
|
681
|
+
value: i,
|
|
682
|
+
autoFocus: u,
|
|
683
|
+
placeholder: b,
|
|
684
684
|
onKeyDown: l,
|
|
685
685
|
onChange: f,
|
|
686
686
|
onSubmit: v,
|
|
687
687
|
...w
|
|
688
688
|
} = n;
|
|
689
|
-
|
|
689
|
+
m(w);
|
|
690
690
|
const C = h();
|
|
691
691
|
return r ? /* @__PURE__ */ g("div", { children: [
|
|
692
692
|
/* @__PURE__ */ a(C.Label.Label, { htmlFor: r, children: r }),
|
|
@@ -696,9 +696,9 @@ const fn = (n) => {
|
|
|
696
696
|
className: e,
|
|
697
697
|
id: r,
|
|
698
698
|
name: o,
|
|
699
|
-
autoFocus:
|
|
700
|
-
placeholder:
|
|
701
|
-
value:
|
|
699
|
+
autoFocus: u,
|
|
700
|
+
placeholder: b,
|
|
701
|
+
value: i,
|
|
702
702
|
onKeyDown: l,
|
|
703
703
|
onChange: f,
|
|
704
704
|
onSubmit: v
|
|
@@ -709,16 +709,16 @@ const fn = (n) => {
|
|
|
709
709
|
{
|
|
710
710
|
"aria-label": o,
|
|
711
711
|
name: o,
|
|
712
|
-
autoFocus:
|
|
713
|
-
placeholder:
|
|
714
|
-
value:
|
|
712
|
+
autoFocus: u,
|
|
713
|
+
placeholder: b,
|
|
714
|
+
value: i,
|
|
715
715
|
onKeyDown: l,
|
|
716
716
|
onChange: f,
|
|
717
717
|
onSubmit: v,
|
|
718
718
|
ref: t
|
|
719
719
|
}
|
|
720
720
|
);
|
|
721
|
-
}),
|
|
721
|
+
}), vn = (n) => p(
|
|
722
722
|
(t, e) => /* @__PURE__ */ a(
|
|
723
723
|
n,
|
|
724
724
|
{
|
|
@@ -733,7 +733,7 @@ const fn = (n) => {
|
|
|
733
733
|
ref: e
|
|
734
734
|
}
|
|
735
735
|
)
|
|
736
|
-
),
|
|
736
|
+
), Nn = (n) => {
|
|
737
737
|
const {
|
|
738
738
|
children: t,
|
|
739
739
|
onOpenChange: e,
|
|
@@ -742,66 +742,66 @@ const fn = (n) => {
|
|
|
742
742
|
sub: r,
|
|
743
743
|
...s
|
|
744
744
|
} = n;
|
|
745
|
-
|
|
746
|
-
const
|
|
745
|
+
m(s);
|
|
746
|
+
const i = h();
|
|
747
747
|
return r ? /* @__PURE__ */ a(
|
|
748
|
-
|
|
748
|
+
i.DropdownMenu.DropdownMenuSub,
|
|
749
749
|
{
|
|
750
750
|
onOpenChange: e,
|
|
751
751
|
children: t
|
|
752
752
|
}
|
|
753
753
|
) : /* @__PURE__ */ a(
|
|
754
|
-
|
|
754
|
+
i.DropdownMenu.DropdownMenu,
|
|
755
755
|
{
|
|
756
756
|
modal: !1,
|
|
757
757
|
onOpenChange: e,
|
|
758
758
|
children: t
|
|
759
759
|
}
|
|
760
760
|
);
|
|
761
|
-
},
|
|
761
|
+
}, xn = (n) => {
|
|
762
762
|
const { children: t, sub: e, ...o } = n;
|
|
763
|
-
|
|
764
|
-
const r = h(), s =
|
|
765
|
-
() =>
|
|
763
|
+
m(o);
|
|
764
|
+
const r = h(), s = E(
|
|
765
|
+
() => vn(
|
|
766
766
|
r.DropdownMenu.DropdownMenuTrigger
|
|
767
767
|
),
|
|
768
768
|
[r.DropdownMenu.DropdownMenuTrigger]
|
|
769
769
|
);
|
|
770
770
|
return e ? /* @__PURE__ */ a(r.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a(s, { asChild: !0, ...o, children: t });
|
|
771
|
-
},
|
|
771
|
+
}, wn = p((n, t) => {
|
|
772
772
|
const { className: e, children: o, sub: r, ...s } = n;
|
|
773
|
-
|
|
774
|
-
const
|
|
773
|
+
m(s);
|
|
774
|
+
const i = h();
|
|
775
775
|
return r ? /* @__PURE__ */ a(
|
|
776
|
-
|
|
776
|
+
i.DropdownMenu.DropdownMenuSubContent,
|
|
777
777
|
{
|
|
778
778
|
className: e,
|
|
779
779
|
ref: t,
|
|
780
780
|
children: o
|
|
781
781
|
}
|
|
782
782
|
) : /* @__PURE__ */ a(
|
|
783
|
-
|
|
783
|
+
i.DropdownMenu.DropdownMenuContent,
|
|
784
784
|
{
|
|
785
785
|
className: e,
|
|
786
786
|
ref: t,
|
|
787
787
|
children: o
|
|
788
788
|
}
|
|
789
789
|
);
|
|
790
|
-
}),
|
|
791
|
-
const { className: e, children: o, icon: r, checked: s, subTrigger:
|
|
792
|
-
|
|
790
|
+
}), Cn = p((n, t) => {
|
|
791
|
+
const { className: e, children: o, icon: r, checked: s, subTrigger: i, onClick: u, ...b } = n;
|
|
792
|
+
m(b);
|
|
793
793
|
const l = h();
|
|
794
|
-
return
|
|
794
|
+
return i ? /* @__PURE__ */ g(ve, { children: [
|
|
795
795
|
r,
|
|
796
796
|
o
|
|
797
797
|
] }) : s !== void 0 ? /* @__PURE__ */ g(
|
|
798
798
|
l.DropdownMenu.DropdownMenuCheckboxItem,
|
|
799
799
|
{
|
|
800
|
-
className:
|
|
800
|
+
className: d(e, "bn-gap-1", s ? "" : "bn-px-2"),
|
|
801
801
|
ref: t,
|
|
802
802
|
checked: s,
|
|
803
|
-
onClick:
|
|
804
|
-
...
|
|
803
|
+
onClick: u,
|
|
804
|
+
...b,
|
|
805
805
|
children: [
|
|
806
806
|
r,
|
|
807
807
|
o
|
|
@@ -812,18 +812,18 @@ const fn = (n) => {
|
|
|
812
812
|
{
|
|
813
813
|
className: e,
|
|
814
814
|
ref: t,
|
|
815
|
-
onClick:
|
|
816
|
-
...
|
|
815
|
+
onClick: u,
|
|
816
|
+
...b,
|
|
817
817
|
children: [
|
|
818
818
|
r,
|
|
819
819
|
o,
|
|
820
|
-
|
|
820
|
+
i && /* @__PURE__ */ a(j, { className: "bn-ml-auto bn-h-4 bn-w-4" })
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
823
|
);
|
|
824
|
-
}),
|
|
824
|
+
}), yn = p((n, t) => {
|
|
825
825
|
const { className: e, ...o } = n;
|
|
826
|
-
|
|
826
|
+
m(o);
|
|
827
827
|
const r = h();
|
|
828
828
|
return /* @__PURE__ */ a(
|
|
829
829
|
r.DropdownMenu.DropdownMenuSeparator,
|
|
@@ -832,9 +832,9 @@ const fn = (n) => {
|
|
|
832
832
|
ref: t
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
|
-
}),
|
|
835
|
+
}), Sn = p((n, t) => {
|
|
836
836
|
const { className: e, children: o, ...r } = n;
|
|
837
|
-
|
|
837
|
+
m(r);
|
|
838
838
|
const s = h();
|
|
839
839
|
return /* @__PURE__ */ a(
|
|
840
840
|
s.DropdownMenu.DropdownMenuLabel,
|
|
@@ -844,31 +844,31 @@ const fn = (n) => {
|
|
|
844
844
|
children: o
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
|
-
}),
|
|
847
|
+
}), Tn = p((n, t) => {
|
|
848
848
|
const {
|
|
849
849
|
className: e,
|
|
850
850
|
children: o,
|
|
851
851
|
icon: r,
|
|
852
852
|
onClick: s,
|
|
853
|
-
onDragEnd:
|
|
854
|
-
onDragStart:
|
|
855
|
-
draggable:
|
|
853
|
+
onDragEnd: i,
|
|
854
|
+
onDragStart: u,
|
|
855
|
+
draggable: b,
|
|
856
856
|
label: l,
|
|
857
857
|
...f
|
|
858
858
|
} = n;
|
|
859
|
-
|
|
859
|
+
m(f, !1);
|
|
860
860
|
const v = h();
|
|
861
861
|
return /* @__PURE__ */ g(
|
|
862
862
|
v.Button.Button,
|
|
863
863
|
{
|
|
864
864
|
variant: "ghost",
|
|
865
|
-
className:
|
|
865
|
+
className: d(e, "bn-text-gray-400"),
|
|
866
866
|
ref: t,
|
|
867
867
|
"aria-label": l,
|
|
868
868
|
onClick: s,
|
|
869
|
-
onDragStart:
|
|
870
|
-
onDragEnd:
|
|
871
|
-
draggable:
|
|
869
|
+
onDragStart: u,
|
|
870
|
+
onDragEnd: i,
|
|
871
|
+
draggable: b,
|
|
872
872
|
...f,
|
|
873
873
|
children: [
|
|
874
874
|
r,
|
|
@@ -876,39 +876,39 @@ const fn = (n) => {
|
|
|
876
876
|
]
|
|
877
877
|
}
|
|
878
878
|
);
|
|
879
|
-
}),
|
|
879
|
+
}), In = p((n, t) => {
|
|
880
880
|
const {
|
|
881
881
|
className: e,
|
|
882
882
|
tabs: o,
|
|
883
883
|
defaultOpenTab: r,
|
|
884
884
|
openTab: s,
|
|
885
|
-
setOpenTab:
|
|
886
|
-
loading:
|
|
885
|
+
setOpenTab: i,
|
|
886
|
+
loading: u,
|
|
887
887
|
// TODO: implement loader
|
|
888
|
-
...
|
|
888
|
+
...b
|
|
889
889
|
} = n;
|
|
890
|
-
|
|
890
|
+
m(b);
|
|
891
891
|
const l = h();
|
|
892
892
|
return /* @__PURE__ */ g(
|
|
893
893
|
l.Tabs.Tabs,
|
|
894
894
|
{
|
|
895
|
-
className:
|
|
895
|
+
className: d(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
|
|
896
896
|
ref: t,
|
|
897
897
|
value: s,
|
|
898
898
|
defaultValue: r,
|
|
899
|
-
onValueChange:
|
|
899
|
+
onValueChange: i,
|
|
900
900
|
children: [
|
|
901
901
|
/* @__PURE__ */ a(l.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(l.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
|
|
902
902
|
o.map((f) => /* @__PURE__ */ a(l.Tabs.TabsContent, { value: f.name, children: /* @__PURE__ */ a(l.Card.Card, { children: /* @__PURE__ */ a(l.Card.CardContent, { className: "bn-p-4", children: f.tabPanel }) }) }, f.name))
|
|
903
903
|
]
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
|
-
}),
|
|
906
|
+
}), Mn = p((n, t) => {
|
|
907
907
|
const { className: e, children: o, ...r } = n;
|
|
908
|
-
return
|
|
908
|
+
return m(r), /* @__PURE__ */ a(
|
|
909
909
|
"div",
|
|
910
910
|
{
|
|
911
|
-
className:
|
|
911
|
+
className: d(
|
|
912
912
|
e,
|
|
913
913
|
"bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
|
|
914
914
|
),
|
|
@@ -916,23 +916,23 @@ const fn = (n) => {
|
|
|
916
916
|
children: o
|
|
917
917
|
}
|
|
918
918
|
);
|
|
919
|
-
}),
|
|
920
|
-
const { className: e, value: o, placeholder: r, onKeyDown: s, onChange:
|
|
921
|
-
|
|
922
|
-
const
|
|
919
|
+
}), Dn = p((n, t) => {
|
|
920
|
+
const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: i, ...u } = n;
|
|
921
|
+
m(u);
|
|
922
|
+
const b = h();
|
|
923
923
|
return /* @__PURE__ */ a(
|
|
924
|
-
|
|
924
|
+
b.Input.Input,
|
|
925
925
|
{
|
|
926
926
|
"data-test": "embed-input",
|
|
927
|
-
className:
|
|
927
|
+
className: d(e, "bn-w-80"),
|
|
928
928
|
ref: t,
|
|
929
929
|
value: o,
|
|
930
930
|
placeholder: r,
|
|
931
931
|
onKeyDown: s,
|
|
932
|
-
onChange:
|
|
932
|
+
onChange: i
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
}),
|
|
935
|
+
}), Rn = (n) => {
|
|
936
936
|
const {
|
|
937
937
|
children: t,
|
|
938
938
|
opened: e,
|
|
@@ -940,25 +940,25 @@ const fn = (n) => {
|
|
|
940
940
|
// unused
|
|
941
941
|
...r
|
|
942
942
|
} = n;
|
|
943
|
-
|
|
943
|
+
m(r);
|
|
944
944
|
const s = h();
|
|
945
945
|
return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: t });
|
|
946
|
-
},
|
|
946
|
+
}, Bn = p(
|
|
947
947
|
(n, t) => {
|
|
948
948
|
const { children: e, ...o } = n;
|
|
949
|
-
|
|
949
|
+
m(o);
|
|
950
950
|
const r = h();
|
|
951
951
|
return /* @__PURE__ */ a(r.Popover.PopoverTrigger, { ref: t, asChild: !0, children: e });
|
|
952
952
|
}
|
|
953
|
-
),
|
|
953
|
+
), Fn = p((n, t) => {
|
|
954
954
|
const { className: e, variant: o, children: r, ...s } = n;
|
|
955
|
-
|
|
956
|
-
const
|
|
955
|
+
m(s);
|
|
956
|
+
const i = h();
|
|
957
957
|
return /* @__PURE__ */ a(
|
|
958
|
-
|
|
958
|
+
i.Popover.PopoverContent,
|
|
959
959
|
{
|
|
960
960
|
sideOffset: 8,
|
|
961
|
-
className:
|
|
961
|
+
className: d(
|
|
962
962
|
e,
|
|
963
963
|
"bn-flex bn-flex-col bn-gap-2",
|
|
964
964
|
o === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
|
|
@@ -967,34 +967,34 @@ const fn = (n) => {
|
|
|
967
967
|
children: r
|
|
968
968
|
}
|
|
969
969
|
);
|
|
970
|
-
}),
|
|
970
|
+
}), kn = p((n, t) => {
|
|
971
971
|
const { className: e, children: o, ...r } = n;
|
|
972
|
-
return
|
|
973
|
-
}),
|
|
972
|
+
return m(r, !1), /* @__PURE__ */ a("div", { className: e, ref: t, ...r, children: o });
|
|
973
|
+
}), Pn = p((n, t) => {
|
|
974
974
|
const {
|
|
975
975
|
className: e,
|
|
976
976
|
children: o,
|
|
977
977
|
icon: r,
|
|
978
978
|
onClick: s,
|
|
979
|
-
onDragEnd:
|
|
980
|
-
onDragStart:
|
|
981
|
-
draggable:
|
|
979
|
+
onDragEnd: i,
|
|
980
|
+
onDragStart: u,
|
|
981
|
+
draggable: b,
|
|
982
982
|
label: l,
|
|
983
983
|
...f
|
|
984
984
|
} = n;
|
|
985
|
-
|
|
985
|
+
m(f, !1);
|
|
986
986
|
const v = h();
|
|
987
987
|
return /* @__PURE__ */ g(
|
|
988
988
|
v.Button.Button,
|
|
989
989
|
{
|
|
990
990
|
variant: "ghost",
|
|
991
|
-
className:
|
|
991
|
+
className: d(e, "bn-text-gray-400"),
|
|
992
992
|
ref: t,
|
|
993
993
|
"aria-label": l,
|
|
994
994
|
onClick: s,
|
|
995
|
-
onDragStart:
|
|
996
|
-
onDragEnd:
|
|
997
|
-
draggable:
|
|
995
|
+
onDragStart: u,
|
|
996
|
+
onDragEnd: i,
|
|
997
|
+
draggable: b,
|
|
998
998
|
...f,
|
|
999
999
|
children: [
|
|
1000
1000
|
r,
|
|
@@ -1002,9 +1002,9 @@ const fn = (n) => {
|
|
|
1002
1002
|
]
|
|
1003
1003
|
}
|
|
1004
1004
|
);
|
|
1005
|
-
}),
|
|
1006
|
-
const { className: e, children: o, id: r, columns: s, ...
|
|
1007
|
-
return
|
|
1005
|
+
}), Ln = p((n, t) => {
|
|
1006
|
+
const { className: e, children: o, id: r, columns: s, ...i } = n;
|
|
1007
|
+
return m(i), /* @__PURE__ */ a(
|
|
1008
1008
|
"div",
|
|
1009
1009
|
{
|
|
1010
1010
|
className: e,
|
|
@@ -1015,9 +1015,9 @@ const fn = (n) => {
|
|
|
1015
1015
|
children: o
|
|
1016
1016
|
}
|
|
1017
1017
|
);
|
|
1018
|
-
}),
|
|
1018
|
+
}), zn = p((n, t) => {
|
|
1019
1019
|
const { className: e, children: o, columns: r, ...s } = n;
|
|
1020
|
-
return
|
|
1020
|
+
return m(s), /* @__PURE__ */ a(
|
|
1021
1021
|
"div",
|
|
1022
1022
|
{
|
|
1023
1023
|
className: e,
|
|
@@ -1026,14 +1026,14 @@ const fn = (n) => {
|
|
|
1026
1026
|
children: o
|
|
1027
1027
|
}
|
|
1028
1028
|
);
|
|
1029
|
-
}),
|
|
1029
|
+
}), En = p((n, t) => {
|
|
1030
1030
|
const { className: e, children: o, id: r, ...s } = n;
|
|
1031
|
-
return
|
|
1031
|
+
return m(s), /* @__PURE__ */ a(
|
|
1032
1032
|
"div",
|
|
1033
1033
|
{
|
|
1034
1034
|
id: r,
|
|
1035
1035
|
role: "listbox",
|
|
1036
|
-
className:
|
|
1036
|
+
className: d(
|
|
1037
1037
|
"bn-z-50 bn-min-w-[8rem] bn-overflow-auto bn-rounded-md bn-border bn-bg-popover bn-p-1 bn-text-popover-foreground bn-shadow-md data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
|
|
1038
1038
|
e
|
|
1039
1039
|
),
|
|
@@ -1043,10 +1043,10 @@ const fn = (n) => {
|
|
|
1043
1043
|
);
|
|
1044
1044
|
}), Vn = p((n, t) => {
|
|
1045
1045
|
const { className: e, children: o, ...r } = n;
|
|
1046
|
-
return
|
|
1046
|
+
return m(r), /* @__PURE__ */ a(
|
|
1047
1047
|
"div",
|
|
1048
1048
|
{
|
|
1049
|
-
className:
|
|
1049
|
+
className: d(
|
|
1050
1050
|
"bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
1051
1051
|
e
|
|
1052
1052
|
),
|
|
@@ -1054,14 +1054,14 @@ const fn = (n) => {
|
|
|
1054
1054
|
children: /* @__PURE__ */ a("div", { children: o })
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
|
-
}),
|
|
1058
|
-
const e = h(), { className: o, item: r, isSelected: s, onClick:
|
|
1059
|
-
|
|
1060
|
-
const l =
|
|
1061
|
-
return
|
|
1057
|
+
}), An = p((n, t) => {
|
|
1058
|
+
const e = h(), { className: o, item: r, isSelected: s, onClick: i, id: u, ...b } = n;
|
|
1059
|
+
m(b);
|
|
1060
|
+
const l = V(null);
|
|
1061
|
+
return A(() => {
|
|
1062
1062
|
if (!l.current || !s)
|
|
1063
1063
|
return;
|
|
1064
|
-
const f =
|
|
1064
|
+
const f = L(
|
|
1065
1065
|
l.current,
|
|
1066
1066
|
document.querySelector(".bn-suggestion-menu")
|
|
1067
1067
|
);
|
|
@@ -1069,13 +1069,13 @@ const fn = (n) => {
|
|
|
1069
1069
|
}, [s]), /* @__PURE__ */ g(
|
|
1070
1070
|
"div",
|
|
1071
1071
|
{
|
|
1072
|
-
className:
|
|
1072
|
+
className: d(
|
|
1073
1073
|
"bn-relative bn-flex bn-cursor-pointer bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
|
|
1074
1074
|
o
|
|
1075
1075
|
),
|
|
1076
|
-
ref:
|
|
1077
|
-
id:
|
|
1078
|
-
onClick:
|
|
1076
|
+
ref: z([t, l]),
|
|
1077
|
+
id: u,
|
|
1078
|
+
onClick: i,
|
|
1079
1079
|
role: "option",
|
|
1080
1080
|
"aria-selected": s || void 0,
|
|
1081
1081
|
children: [
|
|
@@ -1088,28 +1088,28 @@ const fn = (n) => {
|
|
|
1088
1088
|
]
|
|
1089
1089
|
}
|
|
1090
1090
|
);
|
|
1091
|
-
}),
|
|
1091
|
+
}), $n = p((n, t) => {
|
|
1092
1092
|
const { className: e, children: o, ...r } = n;
|
|
1093
|
-
return
|
|
1093
|
+
return m(r), /* @__PURE__ */ a(
|
|
1094
1094
|
"div",
|
|
1095
1095
|
{
|
|
1096
|
-
className:
|
|
1096
|
+
className: d("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
|
|
1097
1097
|
ref: t,
|
|
1098
1098
|
children: o
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
|
-
}), $n = p((n, t) => {
|
|
1102
|
-
const { className: e, children: o, ...r } = n;
|
|
1103
|
-
return c(r), /* @__PURE__ */ a("div", { className: e, ref: t, children: o });
|
|
1104
1101
|
}), jn = p((n, t) => {
|
|
1105
|
-
const { className: e, children: o,
|
|
1106
|
-
|
|
1107
|
-
|
|
1102
|
+
const { className: e, children: o, ...r } = n;
|
|
1103
|
+
return m(r), /* @__PURE__ */ a("div", { className: e, ref: t, children: o });
|
|
1104
|
+
}), Gn = p((n, t) => {
|
|
1105
|
+
const { className: e, children: o, onMouseDown: r, onClick: s, ...i } = n;
|
|
1106
|
+
m(i, !1);
|
|
1107
|
+
const u = h();
|
|
1108
1108
|
return /* @__PURE__ */ a(
|
|
1109
|
-
|
|
1109
|
+
u.Button.Button,
|
|
1110
1110
|
{
|
|
1111
1111
|
variant: "ghost",
|
|
1112
|
-
className:
|
|
1112
|
+
className: d(
|
|
1113
1113
|
e,
|
|
1114
1114
|
"bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
|
|
1115
1115
|
e != null && e.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
|
|
@@ -1118,57 +1118,57 @@ const fn = (n) => {
|
|
|
1118
1118
|
ref: t,
|
|
1119
1119
|
onClick: s,
|
|
1120
1120
|
onMouseDown: r,
|
|
1121
|
-
...
|
|
1121
|
+
...i,
|
|
1122
1122
|
children: o
|
|
1123
1123
|
}
|
|
1124
1124
|
);
|
|
1125
|
-
}),
|
|
1125
|
+
}), Un = p((n, t) => {
|
|
1126
1126
|
const {
|
|
1127
1127
|
className: e,
|
|
1128
1128
|
children: o,
|
|
1129
1129
|
draggable: r,
|
|
1130
1130
|
onDragStart: s,
|
|
1131
|
-
onDragEnd:
|
|
1132
|
-
style:
|
|
1133
|
-
label:
|
|
1131
|
+
onDragEnd: i,
|
|
1132
|
+
style: u,
|
|
1133
|
+
label: b,
|
|
1134
1134
|
...l
|
|
1135
1135
|
} = n;
|
|
1136
|
-
|
|
1136
|
+
m(l, !1);
|
|
1137
1137
|
const f = h();
|
|
1138
1138
|
return /* @__PURE__ */ a(
|
|
1139
1139
|
f.Button.Button,
|
|
1140
1140
|
{
|
|
1141
1141
|
variant: "ghost",
|
|
1142
|
-
className:
|
|
1142
|
+
className: d(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
|
|
1143
1143
|
ref: t,
|
|
1144
|
-
"aria-label":
|
|
1144
|
+
"aria-label": b,
|
|
1145
1145
|
draggable: r,
|
|
1146
1146
|
onDragStart: s,
|
|
1147
|
-
onDragEnd:
|
|
1148
|
-
style:
|
|
1147
|
+
onDragEnd: i,
|
|
1148
|
+
style: u,
|
|
1149
1149
|
...l,
|
|
1150
1150
|
children: o
|
|
1151
1151
|
}
|
|
1152
1152
|
);
|
|
1153
|
-
}),
|
|
1153
|
+
}), B = p(
|
|
1154
1154
|
(n, t) => {
|
|
1155
1155
|
const {
|
|
1156
1156
|
className: e,
|
|
1157
1157
|
children: o,
|
|
1158
1158
|
onMouseEnter: r,
|
|
1159
1159
|
onMouseLeave: s,
|
|
1160
|
-
variant:
|
|
1161
|
-
...
|
|
1160
|
+
variant: i,
|
|
1161
|
+
...u
|
|
1162
1162
|
} = n;
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
return /* @__PURE__ */ a(
|
|
1163
|
+
m(u);
|
|
1164
|
+
const b = h();
|
|
1165
|
+
return /* @__PURE__ */ a(b.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
1166
1166
|
"div",
|
|
1167
1167
|
{
|
|
1168
|
-
className:
|
|
1168
|
+
className: d(
|
|
1169
1169
|
e,
|
|
1170
1170
|
"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",
|
|
1171
|
-
|
|
1171
|
+
i === "action-toolbar" ? "bn-w-fit" : ""
|
|
1172
1172
|
),
|
|
1173
1173
|
ref: t,
|
|
1174
1174
|
onMouseEnter: r,
|
|
@@ -1177,45 +1177,45 @@ const fn = (n) => {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
) });
|
|
1179
1179
|
}
|
|
1180
|
-
),
|
|
1180
|
+
), F = p(
|
|
1181
1181
|
(n, t) => {
|
|
1182
1182
|
const {
|
|
1183
1183
|
className: e,
|
|
1184
1184
|
children: o,
|
|
1185
1185
|
mainTooltip: r,
|
|
1186
1186
|
secondaryTooltip: s,
|
|
1187
|
-
icon:
|
|
1188
|
-
isSelected:
|
|
1189
|
-
isDisabled:
|
|
1187
|
+
icon: i,
|
|
1188
|
+
isSelected: u,
|
|
1189
|
+
isDisabled: b,
|
|
1190
1190
|
onClick: l,
|
|
1191
1191
|
label: f,
|
|
1192
1192
|
variant: v,
|
|
1193
1193
|
...w
|
|
1194
1194
|
} = n;
|
|
1195
|
-
|
|
1196
|
-
const C = h(),
|
|
1195
|
+
m(w, !1);
|
|
1196
|
+
const C = h(), R = u === void 0 ? /* @__PURE__ */ g(
|
|
1197
1197
|
C.Button.Button,
|
|
1198
1198
|
{
|
|
1199
|
-
className:
|
|
1199
|
+
className: d(
|
|
1200
1200
|
e,
|
|
1201
1201
|
v === "compact" ? "bn-h-6 bn-min-w-6 bn-p-0" : ""
|
|
1202
1202
|
),
|
|
1203
1203
|
variant: "ghost",
|
|
1204
1204
|
size: v === "compact" ? "sm" : "default",
|
|
1205
|
-
disabled:
|
|
1205
|
+
disabled: b,
|
|
1206
1206
|
onClick: l,
|
|
1207
1207
|
ref: t,
|
|
1208
1208
|
"aria-label": f,
|
|
1209
1209
|
...w,
|
|
1210
1210
|
children: [
|
|
1211
|
-
|
|
1211
|
+
i,
|
|
1212
1212
|
o
|
|
1213
1213
|
]
|
|
1214
1214
|
}
|
|
1215
1215
|
) : /* @__PURE__ */ g(
|
|
1216
1216
|
C.Toggle.Toggle,
|
|
1217
1217
|
{
|
|
1218
|
-
className:
|
|
1218
|
+
className: d(
|
|
1219
1219
|
e,
|
|
1220
1220
|
"data-[state=open]:bg-accent data-[state=closed]:text-accent-foreground",
|
|
1221
1221
|
v === "compact" ? "bn-h-6 bn-min-w-6 bn-p-0" : ""
|
|
@@ -1223,20 +1223,20 @@ const fn = (n) => {
|
|
|
1223
1223
|
size: v === "compact" ? "sm" : "default",
|
|
1224
1224
|
"aria-label": f,
|
|
1225
1225
|
onClick: l,
|
|
1226
|
-
pressed:
|
|
1227
|
-
disabled:
|
|
1228
|
-
"data-state":
|
|
1229
|
-
"data-disabled":
|
|
1226
|
+
pressed: u,
|
|
1227
|
+
disabled: b,
|
|
1228
|
+
"data-state": u ? "on" : "off",
|
|
1229
|
+
"data-disabled": b,
|
|
1230
1230
|
ref: t,
|
|
1231
1231
|
...w,
|
|
1232
1232
|
children: [
|
|
1233
|
-
|
|
1233
|
+
i,
|
|
1234
1234
|
o
|
|
1235
1235
|
]
|
|
1236
1236
|
}
|
|
1237
1237
|
);
|
|
1238
1238
|
return /* @__PURE__ */ g(C.Tooltip.Tooltip, { children: [
|
|
1239
|
-
/* @__PURE__ */ a(C.Tooltip.TooltipTrigger, { asChild: !0, children:
|
|
1239
|
+
/* @__PURE__ */ a(C.Tooltip.TooltipTrigger, { asChild: !0, children: R }),
|
|
1240
1240
|
/* @__PURE__ */ g(
|
|
1241
1241
|
C.Tooltip.TooltipContent,
|
|
1242
1242
|
{
|
|
@@ -1249,30 +1249,30 @@ const fn = (n) => {
|
|
|
1249
1249
|
)
|
|
1250
1250
|
] });
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), k = p((n, t) => {
|
|
1253
1253
|
const { className: e, items: o, isDisabled: r, ...s } = n;
|
|
1254
|
-
|
|
1255
|
-
const
|
|
1254
|
+
m(s);
|
|
1255
|
+
const i = h(), u = (l) => /* @__PURE__ */ g("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
|
|
1256
1256
|
l.icon,
|
|
1257
1257
|
l.text
|
|
1258
|
-
] }),
|
|
1259
|
-
return
|
|
1260
|
-
|
|
1258
|
+
] }), b = o.filter((l) => l.isSelected)[0];
|
|
1259
|
+
return b ? /* @__PURE__ */ g(
|
|
1260
|
+
i.Select.Select,
|
|
1261
1261
|
{
|
|
1262
|
-
value:
|
|
1262
|
+
value: b.text,
|
|
1263
1263
|
onValueChange: (l) => {
|
|
1264
1264
|
var f, v;
|
|
1265
1265
|
return (v = (f = o.find((w) => w.text === l)).onClick) == null ? void 0 : v.call(f);
|
|
1266
1266
|
},
|
|
1267
1267
|
disabled: r,
|
|
1268
1268
|
children: [
|
|
1269
|
-
/* @__PURE__ */ a(
|
|
1270
|
-
/* @__PURE__ */ a(
|
|
1271
|
-
|
|
1269
|
+
/* @__PURE__ */ a(i.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(i.Select.SelectValue, {}) }),
|
|
1270
|
+
/* @__PURE__ */ a(i.Select.SelectContent, { className: e, ref: t, children: o.map((l) => /* @__PURE__ */ a(
|
|
1271
|
+
i.Select.SelectItem,
|
|
1272
1272
|
{
|
|
1273
1273
|
disabled: l.isDisabled,
|
|
1274
1274
|
value: l.text,
|
|
1275
|
-
children: /* @__PURE__ */ a(
|
|
1275
|
+
children: /* @__PURE__ */ a(u, { ...l })
|
|
1276
1276
|
},
|
|
1277
1277
|
l.text
|
|
1278
1278
|
)) })
|
|
@@ -1280,23 +1280,42 @@ const fn = (n) => {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
) : null;
|
|
1282
1282
|
}), Hn = p((n, t) => {
|
|
1283
|
-
const {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
s
|
|
1283
|
+
const {
|
|
1284
|
+
className: e,
|
|
1285
|
+
children: o,
|
|
1286
|
+
selected: r,
|
|
1287
|
+
headerText: s,
|
|
1288
|
+
onFocus: i,
|
|
1289
|
+
onBlur: u,
|
|
1290
|
+
tabIndex: b,
|
|
1291
|
+
...l
|
|
1292
|
+
} = n;
|
|
1293
|
+
m(l);
|
|
1294
|
+
const f = h();
|
|
1295
|
+
return /* @__PURE__ */ g(
|
|
1296
|
+
f.Card.Card,
|
|
1288
1297
|
{
|
|
1289
|
-
className:
|
|
1298
|
+
className: d(
|
|
1299
|
+
e,
|
|
1300
|
+
"bn-w-[300px]",
|
|
1301
|
+
r ? "bn-bg-accent bn-text-accent-foreground" : ""
|
|
1302
|
+
),
|
|
1303
|
+
onFocus: i,
|
|
1304
|
+
onBlur: u,
|
|
1305
|
+
tabIndex: b,
|
|
1290
1306
|
ref: t,
|
|
1291
|
-
children:
|
|
1307
|
+
children: [
|
|
1308
|
+
s && /* @__PURE__ */ a("div", { className: "bn-px-4 bn-pt-4 bn-italic bn-text-sm", children: s }),
|
|
1309
|
+
o
|
|
1310
|
+
]
|
|
1292
1311
|
}
|
|
1293
1312
|
);
|
|
1294
1313
|
}), On = p((n, t) => {
|
|
1295
1314
|
const { className: e, children: o, ...r } = n;
|
|
1296
|
-
return
|
|
1315
|
+
return m(r), /* @__PURE__ */ a(
|
|
1297
1316
|
"div",
|
|
1298
1317
|
{
|
|
1299
|
-
className:
|
|
1318
|
+
className: d(
|
|
1300
1319
|
e,
|
|
1301
1320
|
"bn-p-4",
|
|
1302
1321
|
e != null && e.includes("bn-thread-comments") ? "bn-flex bn-flex-col bn-gap-6 bn-border-b" : ""
|
|
@@ -1306,22 +1325,37 @@ const fn = (n) => {
|
|
|
1306
1325
|
}
|
|
1307
1326
|
);
|
|
1308
1327
|
}), qn = p((n, t) => {
|
|
1309
|
-
const {
|
|
1310
|
-
|
|
1328
|
+
const { className: e, children: o, ...r } = n;
|
|
1329
|
+
m(r, !1);
|
|
1311
1330
|
const s = h();
|
|
1331
|
+
return /* @__PURE__ */ a(
|
|
1332
|
+
s.Button.Button,
|
|
1333
|
+
{
|
|
1334
|
+
className: d(
|
|
1335
|
+
e,
|
|
1336
|
+
"bn-p-0 bn-w-fit bn-text-foreground bn-bg-transparent hover:bn-bg-transparent"
|
|
1337
|
+
),
|
|
1338
|
+
ref: t,
|
|
1339
|
+
children: o
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
}), Kn = p((n, t) => {
|
|
1343
|
+
const { authorInfo: e, timeString: o, edited: r, ...s } = n;
|
|
1344
|
+
m(s, !1);
|
|
1345
|
+
const i = h();
|
|
1312
1346
|
return e === "loading" ? /* @__PURE__ */ g(
|
|
1313
1347
|
"div",
|
|
1314
1348
|
{
|
|
1315
1349
|
className: "bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4",
|
|
1316
1350
|
children: [
|
|
1317
1351
|
/* @__PURE__ */ a(
|
|
1318
|
-
|
|
1352
|
+
i.Skeleton.Skeleton,
|
|
1319
1353
|
{
|
|
1320
1354
|
className: "bn-size-7 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
|
|
1321
1355
|
}
|
|
1322
1356
|
),
|
|
1323
1357
|
/* @__PURE__ */ a(
|
|
1324
|
-
|
|
1358
|
+
i.Skeleton.Skeleton,
|
|
1325
1359
|
{
|
|
1326
1360
|
className: "bn-h-3 bn-w-32 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
|
|
1327
1361
|
}
|
|
@@ -1333,16 +1367,16 @@ const fn = (n) => {
|
|
|
1333
1367
|
{
|
|
1334
1368
|
className: "bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4",
|
|
1335
1369
|
children: [
|
|
1336
|
-
/* @__PURE__ */ g(
|
|
1370
|
+
/* @__PURE__ */ g(i.Avatar.Avatar, { children: [
|
|
1337
1371
|
/* @__PURE__ */ a(
|
|
1338
|
-
|
|
1372
|
+
i.Avatar.AvatarImage,
|
|
1339
1373
|
{
|
|
1340
1374
|
src: e.avatarUrl,
|
|
1341
1375
|
alt: e.username,
|
|
1342
1376
|
className: "bn-h-7 bn-rounded-full"
|
|
1343
1377
|
}
|
|
1344
1378
|
),
|
|
1345
|
-
/* @__PURE__ */ a(
|
|
1379
|
+
/* @__PURE__ */ a(i.Avatar.AvatarFallback, { children: e.username[0] })
|
|
1346
1380
|
] }),
|
|
1347
1381
|
/* @__PURE__ */ g(
|
|
1348
1382
|
"div",
|
|
@@ -1350,100 +1384,103 @@ const fn = (n) => {
|
|
|
1350
1384
|
className: "bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-2",
|
|
1351
1385
|
children: [
|
|
1352
1386
|
/* @__PURE__ */ a("span", { className: "bn-text-sm bn-font-bold", children: e.username }),
|
|
1353
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ g("span", { className: "bn-text-xs", children: [
|
|
1388
|
+
o,
|
|
1389
|
+
" ",
|
|
1390
|
+
r && "(edited)"
|
|
1391
|
+
] })
|
|
1354
1392
|
]
|
|
1355
1393
|
}
|
|
1356
1394
|
)
|
|
1357
1395
|
]
|
|
1358
1396
|
}
|
|
1359
1397
|
);
|
|
1360
|
-
}),
|
|
1398
|
+
}), Wn = p((n, t) => {
|
|
1361
1399
|
const {
|
|
1362
1400
|
className: e,
|
|
1363
1401
|
showActions: o,
|
|
1364
1402
|
authorInfo: r,
|
|
1365
1403
|
timeString: s,
|
|
1366
|
-
actions:
|
|
1367
|
-
|
|
1368
|
-
|
|
1404
|
+
actions: i,
|
|
1405
|
+
edited: u,
|
|
1406
|
+
children: b,
|
|
1407
|
+
...l
|
|
1369
1408
|
} = n;
|
|
1370
|
-
|
|
1371
|
-
const [
|
|
1409
|
+
m(l);
|
|
1410
|
+
const [f, v] = De(!1), { focused: w, ref: C } = xe(), R = i && (o === !0 || o === void 0 || o === "hover" && f || w);
|
|
1372
1411
|
return /* @__PURE__ */ g(
|
|
1373
1412
|
"div",
|
|
1374
1413
|
{
|
|
1375
1414
|
ref: t,
|
|
1376
|
-
className:
|
|
1377
|
-
onMouseEnter: () =>
|
|
1378
|
-
onMouseLeave: () =>
|
|
1379
|
-
f(!1);
|
|
1380
|
-
},
|
|
1415
|
+
className: d(e, "bn-relative bn-flex bn-flex-col bn-gap-2"),
|
|
1416
|
+
onMouseEnter: () => v(!0),
|
|
1417
|
+
onMouseLeave: () => v(!1),
|
|
1381
1418
|
children: [
|
|
1382
|
-
|
|
1419
|
+
R ? /* @__PURE__ */ a(
|
|
1383
1420
|
"div",
|
|
1384
1421
|
{
|
|
1385
1422
|
className: "bn-absolute bn-right-0 bn-top-0 bn-z-10",
|
|
1386
|
-
ref:
|
|
1387
|
-
children:
|
|
1423
|
+
ref: C,
|
|
1424
|
+
children: i
|
|
1388
1425
|
}
|
|
1389
1426
|
) : null,
|
|
1390
|
-
/* @__PURE__ */ a(
|
|
1391
|
-
|
|
1427
|
+
/* @__PURE__ */ a(Kn, { ...n }),
|
|
1428
|
+
b
|
|
1392
1429
|
]
|
|
1393
1430
|
}
|
|
1394
1431
|
);
|
|
1395
|
-
}),
|
|
1396
|
-
const { className: e, onFocus: o, onBlur: r,
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1432
|
+
}), _n = p((n, t) => {
|
|
1433
|
+
const { className: e, onFocus: o, onBlur: r, autoFocus: s, editor: i, editable: u, ...b } = n;
|
|
1434
|
+
return m(b), /* @__PURE__ */ a(
|
|
1435
|
+
ot,
|
|
1399
1436
|
{
|
|
1400
|
-
autoFocus:
|
|
1401
|
-
className:
|
|
1437
|
+
autoFocus: s,
|
|
1438
|
+
className: d(e, ""),
|
|
1402
1439
|
editor: n.editor,
|
|
1403
1440
|
sideMenu: !1,
|
|
1404
1441
|
slashMenu: !1,
|
|
1405
1442
|
tableHandles: !1,
|
|
1406
1443
|
filePanel: !1,
|
|
1407
1444
|
formattingToolbar: !1,
|
|
1408
|
-
editable:
|
|
1445
|
+
editable: u,
|
|
1409
1446
|
ref: t,
|
|
1410
1447
|
onFocus: o,
|
|
1411
1448
|
onBlur: r,
|
|
1412
1449
|
children: /* @__PURE__ */ a(
|
|
1413
|
-
|
|
1450
|
+
we,
|
|
1414
1451
|
{
|
|
1415
|
-
formattingToolbar:
|
|
1452
|
+
formattingToolbar: Jn
|
|
1416
1453
|
}
|
|
1417
1454
|
)
|
|
1418
1455
|
}
|
|
1419
1456
|
);
|
|
1420
|
-
}),
|
|
1421
|
-
const n =
|
|
1457
|
+
}), Jn = () => {
|
|
1458
|
+
const n = Ce([]).filter(
|
|
1422
1459
|
(t) => t.key !== "nestBlockButton" && t.key !== "unnestBlockButton"
|
|
1423
1460
|
);
|
|
1424
|
-
return /* @__PURE__ */ a(
|
|
1425
|
-
},
|
|
1461
|
+
return /* @__PURE__ */ a(ye, { blockTypeSelectItems: [], children: n });
|
|
1462
|
+
}, Qn = p((n, t) => {
|
|
1426
1463
|
const {
|
|
1427
1464
|
className: e,
|
|
1428
1465
|
text: o,
|
|
1429
1466
|
icon: r,
|
|
1430
1467
|
isSelected: s,
|
|
1431
|
-
mainTooltip:
|
|
1432
|
-
secondaryTooltip:
|
|
1433
|
-
onClick:
|
|
1468
|
+
mainTooltip: i,
|
|
1469
|
+
secondaryTooltip: u,
|
|
1470
|
+
onClick: b,
|
|
1434
1471
|
onMouseEnter: l,
|
|
1435
1472
|
...f
|
|
1436
1473
|
} = n;
|
|
1437
|
-
|
|
1474
|
+
m(f, !1);
|
|
1438
1475
|
const v = h(), w = /* @__PURE__ */ g(
|
|
1439
1476
|
v.Button.Button,
|
|
1440
1477
|
{
|
|
1441
1478
|
variant: s ? "secondary" : "outline",
|
|
1442
|
-
className:
|
|
1479
|
+
className: d(
|
|
1443
1480
|
e,
|
|
1444
1481
|
"bn-flex bn-items-center bn-gap-1 bn-rounded-full bn-h-7 bn-px-2.5"
|
|
1445
1482
|
),
|
|
1446
|
-
onClick:
|
|
1483
|
+
onClick: b,
|
|
1447
1484
|
onMouseEnter: l,
|
|
1448
1485
|
ref: t,
|
|
1449
1486
|
children: [
|
|
@@ -1452,27 +1489,27 @@ const fn = (n) => {
|
|
|
1452
1489
|
]
|
|
1453
1490
|
}
|
|
1454
1491
|
);
|
|
1455
|
-
return
|
|
1492
|
+
return i ? /* @__PURE__ */ g(v.Tooltip.Tooltip, { children: [
|
|
1456
1493
|
/* @__PURE__ */ a(v.Tooltip.TooltipTrigger, { asChild: !0, children: w }),
|
|
1457
1494
|
/* @__PURE__ */ g(
|
|
1458
1495
|
v.Tooltip.TooltipContent,
|
|
1459
1496
|
{
|
|
1460
1497
|
className: "bn-flex bn-flex-col bn-items-center bn-whitespace-pre-wrap",
|
|
1461
1498
|
children: [
|
|
1462
|
-
/* @__PURE__ */ a("span", { children:
|
|
1463
|
-
|
|
1499
|
+
/* @__PURE__ */ a("span", { children: i }),
|
|
1500
|
+
u && /* @__PURE__ */ a("span", { children: u })
|
|
1464
1501
|
]
|
|
1465
1502
|
}
|
|
1466
1503
|
)
|
|
1467
1504
|
] }) : w;
|
|
1468
|
-
}),
|
|
1505
|
+
}), Xn = p((n, t) => {
|
|
1469
1506
|
const { className: e, children: o, ...r } = n;
|
|
1470
|
-
|
|
1507
|
+
m(r);
|
|
1471
1508
|
const s = h();
|
|
1472
1509
|
return /* @__PURE__ */ a(s.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
1473
1510
|
"div",
|
|
1474
1511
|
{
|
|
1475
|
-
className:
|
|
1512
|
+
className: d(
|
|
1476
1513
|
e,
|
|
1477
1514
|
"bn-flex bn-flex-row bn-flex-wrap bn-gap-1 bn-w-full"
|
|
1478
1515
|
),
|
|
@@ -1480,12 +1517,12 @@ const fn = (n) => {
|
|
|
1480
1517
|
children: o
|
|
1481
1518
|
}
|
|
1482
1519
|
) });
|
|
1483
|
-
}),
|
|
1484
|
-
const { className: e, children: o, onClick: r, label: s, ...
|
|
1485
|
-
|
|
1486
|
-
const
|
|
1520
|
+
}), Yn = p((n, t) => {
|
|
1521
|
+
const { className: e, children: o, onClick: r, label: s, ...i } = n;
|
|
1522
|
+
m(i);
|
|
1523
|
+
const u = h();
|
|
1487
1524
|
return /* @__PURE__ */ a(
|
|
1488
|
-
|
|
1525
|
+
u.Button.Button,
|
|
1489
1526
|
{
|
|
1490
1527
|
type: "submit",
|
|
1491
1528
|
className: e,
|
|
@@ -1495,47 +1532,47 @@ const fn = (n) => {
|
|
|
1495
1532
|
children: o
|
|
1496
1533
|
}
|
|
1497
1534
|
);
|
|
1498
|
-
}),
|
|
1499
|
-
const { className: e, accept: o, value: r, placeholder: s, onChange:
|
|
1500
|
-
|
|
1501
|
-
const
|
|
1535
|
+
}), Zn = p((n, t) => {
|
|
1536
|
+
const { className: e, accept: o, value: r, placeholder: s, onChange: i, ...u } = n;
|
|
1537
|
+
m(u);
|
|
1538
|
+
const b = h();
|
|
1502
1539
|
return /* @__PURE__ */ a(
|
|
1503
|
-
|
|
1540
|
+
b.Input.Input,
|
|
1504
1541
|
{
|
|
1505
1542
|
type: "file",
|
|
1506
1543
|
className: e,
|
|
1507
1544
|
ref: t,
|
|
1508
1545
|
accept: o,
|
|
1509
1546
|
value: r ? r.name : void 0,
|
|
1510
|
-
onChange: async (l) =>
|
|
1547
|
+
onChange: async (l) => i == null ? void 0 : i(l.target.files[0]),
|
|
1511
1548
|
placeholder: s
|
|
1512
1549
|
}
|
|
1513
1550
|
);
|
|
1514
|
-
}),
|
|
1515
|
-
const { className: e, isSelected: o, onClick: r, item: s, id:
|
|
1516
|
-
|
|
1517
|
-
const
|
|
1518
|
-
return
|
|
1519
|
-
if (!
|
|
1551
|
+
}), et = p((n, t) => {
|
|
1552
|
+
const { className: e, isSelected: o, onClick: r, item: s, id: i, ...u } = n;
|
|
1553
|
+
m(u);
|
|
1554
|
+
const b = V(null);
|
|
1555
|
+
return A(() => {
|
|
1556
|
+
if (!b.current || !o)
|
|
1520
1557
|
return;
|
|
1521
|
-
const l =
|
|
1522
|
-
|
|
1558
|
+
const l = L(
|
|
1559
|
+
b.current,
|
|
1523
1560
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
1524
1561
|
);
|
|
1525
|
-
l === "top" ?
|
|
1562
|
+
l === "top" ? b.current.scrollIntoView(!0) : l === "bottom" && b.current.scrollIntoView(!1);
|
|
1526
1563
|
}, [o]), /* @__PURE__ */ a(
|
|
1527
1564
|
"div",
|
|
1528
1565
|
{
|
|
1529
1566
|
className: e,
|
|
1530
|
-
ref:
|
|
1531
|
-
id:
|
|
1567
|
+
ref: z([t, b]),
|
|
1568
|
+
id: i,
|
|
1532
1569
|
role: "option",
|
|
1533
1570
|
onClick: r,
|
|
1534
1571
|
"aria-selected": o || void 0,
|
|
1535
1572
|
children: s.icon
|
|
1536
1573
|
}
|
|
1537
1574
|
);
|
|
1538
|
-
}),
|
|
1575
|
+
}), nt = p((n, t) => {
|
|
1539
1576
|
const {
|
|
1540
1577
|
className: e,
|
|
1541
1578
|
children: o,
|
|
@@ -1543,7 +1580,7 @@ const fn = (n) => {
|
|
|
1543
1580
|
columns: r,
|
|
1544
1581
|
...s
|
|
1545
1582
|
} = n;
|
|
1546
|
-
return
|
|
1583
|
+
return m(s), /* @__PURE__ */ a(
|
|
1547
1584
|
"div",
|
|
1548
1585
|
{
|
|
1549
1586
|
className: e,
|
|
@@ -1552,93 +1589,96 @@ const fn = (n) => {
|
|
|
1552
1589
|
children: o
|
|
1553
1590
|
}
|
|
1554
1591
|
);
|
|
1555
|
-
}),
|
|
1592
|
+
}), tt = {
|
|
1556
1593
|
FormattingToolbar: {
|
|
1557
|
-
Root:
|
|
1558
|
-
Button:
|
|
1559
|
-
Select:
|
|
1594
|
+
Root: B,
|
|
1595
|
+
Button: F,
|
|
1596
|
+
Select: k
|
|
1560
1597
|
},
|
|
1561
1598
|
FilePanel: {
|
|
1562
|
-
Root:
|
|
1563
|
-
Button:
|
|
1564
|
-
FileInput:
|
|
1565
|
-
TabPanel:
|
|
1566
|
-
TextInput:
|
|
1599
|
+
Root: In,
|
|
1600
|
+
Button: Yn,
|
|
1601
|
+
FileInput: Zn,
|
|
1602
|
+
TabPanel: Mn,
|
|
1603
|
+
TextInput: Dn
|
|
1567
1604
|
},
|
|
1568
1605
|
LinkToolbar: {
|
|
1569
|
-
Root:
|
|
1570
|
-
Button:
|
|
1606
|
+
Root: B,
|
|
1607
|
+
Button: F,
|
|
1608
|
+
Select: k
|
|
1571
1609
|
},
|
|
1572
1610
|
SideMenu: {
|
|
1573
|
-
Root:
|
|
1574
|
-
Button:
|
|
1611
|
+
Root: kn,
|
|
1612
|
+
Button: Pn
|
|
1575
1613
|
},
|
|
1576
1614
|
SuggestionMenu: {
|
|
1577
|
-
Root:
|
|
1578
|
-
Item:
|
|
1615
|
+
Root: En,
|
|
1616
|
+
Item: An,
|
|
1579
1617
|
EmptyItem: Vn,
|
|
1580
|
-
Label:
|
|
1581
|
-
Loader:
|
|
1618
|
+
Label: $n,
|
|
1619
|
+
Loader: jn
|
|
1582
1620
|
},
|
|
1583
1621
|
GridSuggestionMenu: {
|
|
1584
|
-
Root:
|
|
1585
|
-
Item:
|
|
1586
|
-
EmptyItem:
|
|
1587
|
-
Loader:
|
|
1622
|
+
Root: Ln,
|
|
1623
|
+
Item: et,
|
|
1624
|
+
EmptyItem: zn,
|
|
1625
|
+
Loader: nt
|
|
1588
1626
|
},
|
|
1589
1627
|
TableHandle: {
|
|
1590
|
-
Root:
|
|
1591
|
-
ExtendButton:
|
|
1628
|
+
Root: Un,
|
|
1629
|
+
ExtendButton: Gn
|
|
1592
1630
|
},
|
|
1593
1631
|
Comments: {
|
|
1594
|
-
Comment:
|
|
1595
|
-
Editor:
|
|
1632
|
+
Comment: Wn,
|
|
1633
|
+
Editor: _n,
|
|
1596
1634
|
Card: Hn,
|
|
1597
|
-
CardSection: On
|
|
1635
|
+
CardSection: On,
|
|
1636
|
+
ExpandSectionsPrompt: qn
|
|
1598
1637
|
},
|
|
1599
1638
|
Generic: {
|
|
1600
1639
|
Badge: {
|
|
1601
|
-
Root:
|
|
1602
|
-
Group:
|
|
1640
|
+
Root: Qn,
|
|
1641
|
+
Group: Xn
|
|
1603
1642
|
},
|
|
1604
1643
|
Toolbar: {
|
|
1605
|
-
Root:
|
|
1606
|
-
Button:
|
|
1644
|
+
Root: B,
|
|
1645
|
+
Button: F,
|
|
1646
|
+
Select: k
|
|
1607
1647
|
},
|
|
1608
1648
|
Form: {
|
|
1609
|
-
Root:
|
|
1610
|
-
TextInput:
|
|
1649
|
+
Root: gn,
|
|
1650
|
+
TextInput: hn
|
|
1611
1651
|
},
|
|
1612
1652
|
Menu: {
|
|
1613
|
-
Root:
|
|
1614
|
-
Trigger:
|
|
1615
|
-
Dropdown:
|
|
1616
|
-
Divider:
|
|
1617
|
-
Label:
|
|
1618
|
-
Item:
|
|
1619
|
-
Button:
|
|
1653
|
+
Root: Nn,
|
|
1654
|
+
Trigger: xn,
|
|
1655
|
+
Dropdown: wn,
|
|
1656
|
+
Divider: yn,
|
|
1657
|
+
Label: Sn,
|
|
1658
|
+
Item: Cn,
|
|
1659
|
+
Button: Tn
|
|
1620
1660
|
},
|
|
1621
1661
|
Popover: {
|
|
1622
|
-
Root:
|
|
1623
|
-
Trigger:
|
|
1624
|
-
Content:
|
|
1662
|
+
Root: Rn,
|
|
1663
|
+
Trigger: Bn,
|
|
1664
|
+
Content: Fn
|
|
1625
1665
|
}
|
|
1626
1666
|
}
|
|
1627
|
-
},
|
|
1628
|
-
const { className: t, shadCNComponents: e, ...o } = n, r =
|
|
1629
|
-
...
|
|
1667
|
+
}, ot = (n) => {
|
|
1668
|
+
const { className: t, shadCNComponents: e, ...o } = n, r = E(() => ({
|
|
1669
|
+
...fn,
|
|
1630
1670
|
...e
|
|
1631
1671
|
}), [e]);
|
|
1632
|
-
return /* @__PURE__ */ a(
|
|
1633
|
-
|
|
1672
|
+
return /* @__PURE__ */ a(he.Provider, { value: r, children: /* @__PURE__ */ a(Se.Provider, { value: tt, children: /* @__PURE__ */ a(
|
|
1673
|
+
Te,
|
|
1634
1674
|
{
|
|
1635
|
-
className:
|
|
1675
|
+
className: Ne("bn-shadcn", t || ""),
|
|
1636
1676
|
...o
|
|
1637
1677
|
}
|
|
1638
1678
|
) }) });
|
|
1639
1679
|
};
|
|
1640
1680
|
export {
|
|
1641
|
-
|
|
1642
|
-
|
|
1681
|
+
ot as BlockNoteView,
|
|
1682
|
+
tt as components
|
|
1643
1683
|
};
|
|
1644
1684
|
//# sourceMappingURL=blocknote-shadcn.js.map
|