@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.
@@ -1,61 +1,61 @@
1
- import { jsx as a, jsxs as g, Fragment as he } from "react/jsx-runtime";
2
- import { assertEmpty as c, mergeCSSClasses as ve } from "@blocknote/core";
3
- import { elementOverflow as B, mergeRefs as P, useFocusWithin as Ne, FormattingToolbarController as xe, getFormattingToolbarItems as we, FormattingToolbar as Ce, ComponentsContext as ye, BlockNoteViewRaw as Se } from "@blocknote/react";
4
- import * as b from "react";
5
- import { createContext as Te, useContext as Ie, forwardRef as p, useMemo as L, useRef as z, useEffect as V, useState as Me } from "react";
6
- import { FormProvider as De, useFormContext as Re, useForm as ke } from "react-hook-form";
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 Fe } from "clsx";
9
- import { extendTailwindMerge as Be } from "tailwind-merge";
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 E } from "@radix-ui/react-slot";
11
+ import { Slot as $ } from "@radix-ui/react-slot";
12
12
  import * as N from "@radix-ui/react-dropdown-menu";
13
- import { ChevronRight as A, Check as $, Circle as Pe, ChevronDown as j, ChevronUp as Le } from "lucide-react";
14
- import * as G from "@radix-ui/react-label";
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 U from "@radix-ui/react-toggle";
18
+ import * as O from "@radix-ui/react-toggle";
19
19
  import * as T from "@radix-ui/react-tooltip";
20
- const ze = Be({
20
+ const Ee = Pe({
21
21
  prefix: "bn-"
22
22
  });
23
- function i(...n) {
24
- return ze(Fe(n));
23
+ function d(...n) {
24
+ return Ee(ke(n));
25
25
  }
26
- const H = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
26
+ const q = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
27
27
  S.Root,
28
28
  {
29
29
  ref: e,
30
- className: i(
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
- H.displayName = S.Root.displayName;
38
- const O = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("aspect-square h-full w-full", n),
42
+ className: d("aspect-square h-full w-full", n),
43
43
  ...t
44
44
  }
45
45
  ));
46
- O.displayName = S.Image.displayName;
47
- const q = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- q.displayName = S.Fallback.displayName;
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 Ee({ className: n, variant: t, ...e }) {
76
- return /* @__PURE__ */ a("div", { className: i(Ve({ variant: t }), n), ...e });
75
+ function Ae({ className: n, variant: t, ...e }) {
76
+ return /* @__PURE__ */ a("div", { className: d(Ve({ variant: t }), n), ...e });
77
77
  }
78
- const Ae = I(
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
- ), K = b.forwardRef(
102
+ ), _ = c.forwardRef(
103
103
  ({ className: n, variant: t, size: e, asChild: o = !1, ...r }, s) => /* @__PURE__ */ a(
104
- o ? E : "button",
104
+ o ? $ : "button",
105
105
  {
106
- className: i(Ae({ variant: t, size: e, className: n })),
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
- K.displayName = "Button";
114
- const W = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- W.displayName = "Card";
126
- const $e = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("bn-flex bn-flex-col bn-space-y-1.5 bn-p-6", n),
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
- $e.displayName = "CardHeader";
135
- const je = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- je.displayName = "CardTitle";
147
- const Ge = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("bn-text-sm bn-text-muted-foreground", n),
151
+ className: d("bn-text-sm bn-text-muted-foreground", n),
152
152
  ...t
153
153
  }
154
154
  ));
155
- Ge.displayName = "CardDescription";
156
- const _ = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a("div", { ref: e, className: i("bn-p-6 bn-pt-0", n), ...t }));
157
- _.displayName = "CardContent";
158
- const Ue = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("bn-flex bn-items-center bn-p-6 bn-pt-0", n),
162
+ className: d("bn-flex bn-items-center bn-p-6 bn-pt-0", n),
163
163
  ...t
164
164
  }
165
165
  ));
166
- Ue.displayName = "CardFooter";
167
- const He = N.Root, Oe = N.Trigger, qe = N.Sub, J = b.forwardRef(({ className: n, inset: t, children: e, ...o }, r) => /* @__PURE__ */ g(
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: i(
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(A, { className: "bn-ml-auto bn-h-4 bn-w-4" })
179
+ /* @__PURE__ */ a(j, { className: "bn-ml-auto bn-h-4 bn-w-4" })
180
180
  ]
181
181
  }
182
182
  ));
183
- J.displayName = N.SubTrigger.displayName;
184
- const Q = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- Q.displayName = N.SubContent.displayName;
196
- const X = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
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: i(
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
- X.displayName = N.Content.displayName;
212
- const Y = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
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: i(
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
- Y.displayName = N.Item.displayName;
225
- const Z = b.forwardRef(({ className: n, children: t, checked: e, ...o }, r) => /* @__PURE__ */ g(
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: i(
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($, { className: "bn-h-4 bn-w-4" }) }) }),
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
- Z.displayName = N.CheckboxItem.displayName;
242
- const Ke = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
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: i(
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(Pe, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
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
- Ke.displayName = N.RadioItem.displayName;
258
- const ee = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
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: i(
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
- ee.displayName = N.Label.displayName;
271
- const ne = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
275
+ className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
276
276
  ...t
277
277
  }
278
278
  ));
279
- ne.displayName = N.Separator.displayName;
280
- const We = I(
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
- ), F = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
283
- G.Root,
282
+ ), P = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
283
+ H.Root,
284
284
  {
285
285
  ref: e,
286
- className: i(We(), n),
286
+ className: d(_e(), n),
287
287
  ...t
288
288
  }
289
289
  ));
290
- F.displayName = G.Root.displayName;
291
- const _e = De, Je = b.createContext(
290
+ P.displayName = H.Root.displayName;
291
+ const Je = Re, Qe = c.createContext(
292
292
  {}
293
293
  ), D = () => {
294
- const n = b.useContext(Je), t = b.useContext(te), { getFieldState: e, formState: o } = Re(), r = e(n.name, o);
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
- }, te = b.createContext(
306
+ }, ae = c.createContext(
307
307
  {}
308
- ), Qe = b.forwardRef(({ className: n, ...t }, e) => {
309
- const o = b.useId();
310
- return /* @__PURE__ */ a(te.Provider, { value: { id: o }, children: /* @__PURE__ */ a("div", { ref: e, className: i("bn-space-y-2", n), ...t }) });
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
- Qe.displayName = "FormItem";
313
- const Xe = b.forwardRef(({ className: n, ...t }, e) => {
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
- F,
316
+ P,
317
317
  {
318
318
  ref: e,
319
- className: i(o && "bn-text-destructive", n),
319
+ className: d(o && "bn-text-destructive", n),
320
320
  htmlFor: r,
321
321
  ...t
322
322
  }
323
323
  );
324
324
  });
325
- Xe.displayName = "FormLabel";
326
- const Ye = b.forwardRef(({ ...n }, t) => {
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
- E,
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
- Ye.displayName = "FormControl";
340
- const Ze = b.forwardRef(({ className: n, ...t }, e) => {
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: i("bn-text-sm bn-text-muted-foreground", n),
347
+ className: d("bn-text-sm bn-text-muted-foreground", n),
348
348
  ...t
349
349
  }
350
350
  );
351
351
  });
352
- Ze.displayName = "FormDescription";
353
- const en = b.forwardRef(({ className: n, children: t, ...e }, o) => {
354
- const { error: r, formMessageId: s } = D(), d = r ? String(r == null ? void 0 : r.message) : t;
355
- return d ? /* @__PURE__ */ a(
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: i("bn-text-sm bn-font-medium bn-text-destructive", n),
360
+ className: d("bn-text-sm bn-font-medium bn-text-destructive", n),
361
361
  ...e,
362
- children: d
362
+ children: i
363
363
  }
364
364
  ) : null;
365
365
  });
366
- en.displayName = "FormMessage";
367
- const oe = b.forwardRef(
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: i(
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
- oe.displayName = "Input";
382
- const nn = M.Root, tn = M.Trigger, ae = b.forwardRef(({ className: n, align: t = "center", sideOffset: e = 4, ...o }, r) => (
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: i(
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
- ae.displayName = M.Content.displayName;
399
- const on = x.Root, an = x.Value, re = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
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: i(
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(j, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
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
- re.displayName = x.Trigger.displayName;
415
- const se = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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(Le, { className: "bn-h-4 bn-w-4" })
424
+ children: /* @__PURE__ */ a(ze, { className: "bn-h-4 bn-w-4" })
425
425
  }
426
426
  ));
427
- se.displayName = x.ScrollUpButton.displayName;
428
- const ie = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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(j, { className: "bn-h-4 bn-w-4" })
437
+ children: /* @__PURE__ */ a(U, { className: "bn-h-4 bn-w-4" })
438
438
  }
439
439
  ));
440
- ie.displayName = x.ScrollDownButton.displayName;
441
- const de = b.forwardRef(({ className: n, children: t, position: e = "popper", ...o }, r) => (
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: i(
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(se, {}),
455
+ /* @__PURE__ */ a(de, {}),
456
456
  /* @__PURE__ */ a(
457
457
  x.Viewport,
458
458
  {
459
- className: i(
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(ie, {})
466
+ /* @__PURE__ */ a(le, {})
467
467
  ]
468
468
  }
469
469
  )
470
470
  ));
471
- de.displayName = x.Content.displayName;
472
- const rn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- rn.displayName = x.Label.displayName;
484
- const le = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
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: i(
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($, { className: "bn-h-4 bn-w-4" }) }) }),
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
- le.displayName = x.Item.displayName;
500
- const sn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
504
+ className: d("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", n),
505
505
  ...t
506
506
  }
507
507
  ));
508
- sn.displayName = x.Separator.displayName;
509
- function dn({
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: i("animate-pulse rounded-md bg-primary/10", n),
516
+ className: d("animate-pulse rounded-md bg-primary/10", n),
517
517
  ...t
518
518
  }
519
519
  );
520
520
  }
521
- const ln = y.Root, be = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- be.displayName = y.List.displayName;
533
- const ce = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- ce.displayName = y.Trigger.displayName;
545
- const me = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
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: i(
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
- me.displayName = y.Content.displayName;
557
- const bn = I(
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
- ), ue = b.forwardRef(({ className: n, variant: t, size: e, ...o }, r) => /* @__PURE__ */ a(
577
- U.Root,
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: i(bn({ variant: t, size: e, className: n })),
580
+ className: d(cn({ variant: t, size: e, className: n })),
581
581
  ...o
582
582
  }
583
583
  ));
584
- ue.displayName = U.Root.displayName;
585
- const cn = T.Provider, mn = T.Root, un = T.Trigger, pe = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => /* @__PURE__ */ a(
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: i(
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
- pe.displayName = T.Content.displayName;
598
- const pn = {
597
+ ge.displayName = T.Content.displayName;
598
+ const fn = {
599
599
  Avatar: {
600
- Avatar: H,
601
- AvatarFallback: q,
602
- AvatarImage: O
600
+ Avatar: q,
601
+ AvatarFallback: W,
602
+ AvatarImage: K
603
603
  },
604
604
  Badge: {
605
- Badge: Ee
605
+ Badge: Ae
606
606
  },
607
607
  Button: {
608
- Button: K
608
+ Button: _
609
609
  },
610
610
  Card: {
611
- Card: W,
612
- CardContent: _
611
+ Card: J,
612
+ CardContent: Q
613
613
  },
614
614
  DropdownMenu: {
615
- DropdownMenu: He,
616
- DropdownMenuCheckboxItem: Z,
617
- DropdownMenuContent: X,
618
- DropdownMenuItem: Y,
619
- DropdownMenuLabel: ee,
620
- DropdownMenuSeparator: ne,
621
- DropdownMenuSub: qe,
622
- DropdownMenuSubContent: Q,
623
- DropdownMenuSubTrigger: J,
624
- DropdownMenuTrigger: Oe
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: _e
627
+ Form: Je
628
628
  },
629
629
  Input: {
630
- Input: oe
630
+ Input: re
631
631
  },
632
632
  Label: {
633
- Label: F
633
+ Label: P
634
634
  },
635
635
  Popover: {
636
- Popover: nn,
637
- PopoverContent: ae,
638
- PopoverTrigger: tn
636
+ Popover: tn,
637
+ PopoverContent: se,
638
+ PopoverTrigger: on
639
639
  },
640
640
  Select: {
641
- Select: on,
642
- SelectContent: de,
643
- SelectItem: le,
644
- SelectTrigger: re,
645
- SelectValue: an
641
+ Select: an,
642
+ SelectContent: be,
643
+ SelectItem: ce,
644
+ SelectTrigger: ie,
645
+ SelectValue: rn
646
646
  },
647
647
  Skeleton: {
648
- Skeleton: dn
648
+ Skeleton: ln
649
649
  },
650
650
  Tabs: {
651
- Tabs: ln,
652
- TabsContent: me,
653
- TabsList: be,
654
- TabsTrigger: ce
651
+ Tabs: bn,
652
+ TabsContent: pe,
653
+ TabsList: me,
654
+ TabsTrigger: ue
655
655
  },
656
656
  Toggle: {
657
- Toggle: ue
657
+ Toggle: fe
658
658
  },
659
659
  Tooltip: {
660
- Tooltip: mn,
661
- TooltipContent: pe,
662
- TooltipProvider: cn,
663
- TooltipTrigger: un
660
+ Tooltip: un,
661
+ TooltipContent: ge,
662
+ TooltipProvider: mn,
663
+ TooltipTrigger: pn
664
664
  }
665
- }, fe = Te(void 0);
665
+ }, he = Ie(void 0);
666
666
  function h() {
667
- return Ie(fe);
667
+ return Me(he);
668
668
  }
669
- const fn = (n) => {
669
+ const gn = (n) => {
670
670
  const { children: t, ...e } = n;
671
- c(e);
672
- const o = h(), r = ke();
671
+ m(e);
672
+ const o = h(), r = Fe();
673
673
  return /* @__PURE__ */ a(o.Form.Form, { ...r, children: t });
674
- }, gn = p((n, t) => {
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: d,
682
- autoFocus: m,
683
- placeholder: u,
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
- c(w);
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: m,
700
- placeholder: u,
701
- value: d,
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: m,
713
- placeholder: u,
714
- value: d,
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
- }), hn = (n) => p(
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
- ), vn = (n) => {
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
- c(s);
746
- const d = h();
745
+ m(s);
746
+ const i = h();
747
747
  return r ? /* @__PURE__ */ a(
748
- d.DropdownMenu.DropdownMenuSub,
748
+ i.DropdownMenu.DropdownMenuSub,
749
749
  {
750
750
  onOpenChange: e,
751
751
  children: t
752
752
  }
753
753
  ) : /* @__PURE__ */ a(
754
- d.DropdownMenu.DropdownMenu,
754
+ i.DropdownMenu.DropdownMenu,
755
755
  {
756
756
  modal: !1,
757
757
  onOpenChange: e,
758
758
  children: t
759
759
  }
760
760
  );
761
- }, Nn = (n) => {
761
+ }, xn = (n) => {
762
762
  const { children: t, sub: e, ...o } = n;
763
- c(o);
764
- const r = h(), s = L(
765
- () => hn(
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
- }, xn = p((n, t) => {
771
+ }, wn = p((n, t) => {
772
772
  const { className: e, children: o, sub: r, ...s } = n;
773
- c(s);
774
- const d = h();
773
+ m(s);
774
+ const i = h();
775
775
  return r ? /* @__PURE__ */ a(
776
- d.DropdownMenu.DropdownMenuSubContent,
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
- d.DropdownMenu.DropdownMenuContent,
783
+ i.DropdownMenu.DropdownMenuContent,
784
784
  {
785
785
  className: e,
786
786
  ref: t,
787
787
  children: o
788
788
  }
789
789
  );
790
- }), wn = p((n, t) => {
791
- const { className: e, children: o, icon: r, checked: s, subTrigger: d, onClick: m, ...u } = n;
792
- c(u);
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 d ? /* @__PURE__ */ g(he, { children: [
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: i(e, "bn-gap-1", s ? "" : "bn-px-2"),
800
+ className: d(e, "bn-gap-1", s ? "" : "bn-px-2"),
801
801
  ref: t,
802
802
  checked: s,
803
- onClick: m,
804
- ...u,
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: m,
816
- ...u,
815
+ onClick: u,
816
+ ...b,
817
817
  children: [
818
818
  r,
819
819
  o,
820
- d && /* @__PURE__ */ a(A, { className: "bn-ml-auto bn-h-4 bn-w-4" })
820
+ i && /* @__PURE__ */ a(j, { className: "bn-ml-auto bn-h-4 bn-w-4" })
821
821
  ]
822
822
  }
823
823
  );
824
- }), Cn = p((n, t) => {
824
+ }), yn = p((n, t) => {
825
825
  const { className: e, ...o } = n;
826
- c(o);
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
- }), yn = p((n, t) => {
835
+ }), Sn = p((n, t) => {
836
836
  const { className: e, children: o, ...r } = n;
837
- c(r);
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
- }), Sn = p((n, t) => {
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: d,
854
- onDragStart: m,
855
- draggable: u,
853
+ onDragEnd: i,
854
+ onDragStart: u,
855
+ draggable: b,
856
856
  label: l,
857
857
  ...f
858
858
  } = n;
859
- c(f, !1);
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: i(e, "bn-text-gray-400"),
865
+ className: d(e, "bn-text-gray-400"),
866
866
  ref: t,
867
867
  "aria-label": l,
868
868
  onClick: s,
869
- onDragStart: m,
870
- onDragEnd: d,
871
- draggable: u,
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
- }), Tn = p((n, t) => {
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: d,
886
- loading: m,
885
+ setOpenTab: i,
886
+ loading: u,
887
887
  // TODO: implement loader
888
- ...u
888
+ ...b
889
889
  } = n;
890
- c(u);
890
+ m(b);
891
891
  const l = h();
892
892
  return /* @__PURE__ */ g(
893
893
  l.Tabs.Tabs,
894
894
  {
895
- className: i(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
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: d,
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
- }), In = p((n, t) => {
906
+ }), Mn = p((n, t) => {
907
907
  const { className: e, children: o, ...r } = n;
908
- return c(r), /* @__PURE__ */ a(
908
+ return m(r), /* @__PURE__ */ a(
909
909
  "div",
910
910
  {
911
- className: i(
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
- }), Mn = p((n, t) => {
920
- const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: d, ...m } = n;
921
- c(m);
922
- const u = h();
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
- u.Input.Input,
924
+ b.Input.Input,
925
925
  {
926
926
  "data-test": "embed-input",
927
- className: i(e, "bn-w-80"),
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: d
932
+ onChange: i
933
933
  }
934
934
  );
935
- }), Dn = (n) => {
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
- c(r);
943
+ m(r);
944
944
  const s = h();
945
945
  return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: t });
946
- }, Rn = p(
946
+ }, Bn = p(
947
947
  (n, t) => {
948
948
  const { children: e, ...o } = n;
949
- c(o);
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
- ), kn = p((n, t) => {
953
+ ), Fn = p((n, t) => {
954
954
  const { className: e, variant: o, children: r, ...s } = n;
955
- c(s);
956
- const d = h();
955
+ m(s);
956
+ const i = h();
957
957
  return /* @__PURE__ */ a(
958
- d.Popover.PopoverContent,
958
+ i.Popover.PopoverContent,
959
959
  {
960
960
  sideOffset: 8,
961
- className: i(
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
- }), Fn = p((n, t) => {
970
+ }), kn = p((n, t) => {
971
971
  const { className: e, children: o, ...r } = n;
972
- return c(r, !1), /* @__PURE__ */ a("div", { className: e, ref: t, ...r, children: o });
973
- }), Bn = p((n, t) => {
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: d,
980
- onDragStart: m,
981
- draggable: u,
979
+ onDragEnd: i,
980
+ onDragStart: u,
981
+ draggable: b,
982
982
  label: l,
983
983
  ...f
984
984
  } = n;
985
- c(f, !1);
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: i(e, "bn-text-gray-400"),
991
+ className: d(e, "bn-text-gray-400"),
992
992
  ref: t,
993
993
  "aria-label": l,
994
994
  onClick: s,
995
- onDragStart: m,
996
- onDragEnd: d,
997
- draggable: u,
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
- }), Pn = p((n, t) => {
1006
- const { className: e, children: o, id: r, columns: s, ...d } = n;
1007
- return c(d), /* @__PURE__ */ a(
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
- }), Ln = p((n, t) => {
1018
+ }), zn = p((n, t) => {
1019
1019
  const { className: e, children: o, columns: r, ...s } = n;
1020
- return c(s), /* @__PURE__ */ a(
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
- }), zn = p((n, t) => {
1029
+ }), En = p((n, t) => {
1030
1030
  const { className: e, children: o, id: r, ...s } = n;
1031
- return c(s), /* @__PURE__ */ a(
1031
+ return m(s), /* @__PURE__ */ a(
1032
1032
  "div",
1033
1033
  {
1034
1034
  id: r,
1035
1035
  role: "listbox",
1036
- className: i(
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 c(r), /* @__PURE__ */ a(
1046
+ return m(r), /* @__PURE__ */ a(
1047
1047
  "div",
1048
1048
  {
1049
- className: i(
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
- }), En = p((n, t) => {
1058
- const e = h(), { className: o, item: r, isSelected: s, onClick: d, id: m, ...u } = n;
1059
- c(u);
1060
- const l = z(null);
1061
- return V(() => {
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 = B(
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: i(
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: P([t, l]),
1077
- id: m,
1078
- onClick: d,
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
- }), An = p((n, t) => {
1091
+ }), $n = p((n, t) => {
1092
1092
  const { className: e, children: o, ...r } = n;
1093
- return c(r), /* @__PURE__ */ a(
1093
+ return m(r), /* @__PURE__ */ a(
1094
1094
  "div",
1095
1095
  {
1096
- className: i("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
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, onMouseDown: r, onClick: s, ...d } = n;
1106
- c(d, !1);
1107
- const m = h();
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
- m.Button.Button,
1109
+ u.Button.Button,
1110
1110
  {
1111
1111
  variant: "ghost",
1112
- className: i(
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
- ...d,
1121
+ ...i,
1122
1122
  children: o
1123
1123
  }
1124
1124
  );
1125
- }), Gn = p((n, t) => {
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: d,
1132
- style: m,
1133
- label: u,
1131
+ onDragEnd: i,
1132
+ style: u,
1133
+ label: b,
1134
1134
  ...l
1135
1135
  } = n;
1136
- c(l, !1);
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: i(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1142
+ className: d(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1143
1143
  ref: t,
1144
- "aria-label": u,
1144
+ "aria-label": b,
1145
1145
  draggable: r,
1146
1146
  onDragStart: s,
1147
- onDragEnd: d,
1148
- style: m,
1147
+ onDragEnd: i,
1148
+ style: u,
1149
1149
  ...l,
1150
1150
  children: o
1151
1151
  }
1152
1152
  );
1153
- }), R = p(
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: d,
1161
- ...m
1160
+ variant: i,
1161
+ ...u
1162
1162
  } = n;
1163
- c(m);
1164
- const u = h();
1165
- return /* @__PURE__ */ a(u.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__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: i(
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
- d === "action-toolbar" ? "bn-w-fit" : ""
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
- ), k = p(
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: d,
1188
- isSelected: m,
1189
- isDisabled: u,
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
- c(w, !1);
1196
- const C = h(), ge = m === void 0 ? /* @__PURE__ */ g(
1195
+ m(w, !1);
1196
+ const C = h(), R = u === void 0 ? /* @__PURE__ */ g(
1197
1197
  C.Button.Button,
1198
1198
  {
1199
- className: i(
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: u,
1205
+ disabled: b,
1206
1206
  onClick: l,
1207
1207
  ref: t,
1208
1208
  "aria-label": f,
1209
1209
  ...w,
1210
1210
  children: [
1211
- d,
1211
+ i,
1212
1212
  o
1213
1213
  ]
1214
1214
  }
1215
1215
  ) : /* @__PURE__ */ g(
1216
1216
  C.Toggle.Toggle,
1217
1217
  {
1218
- className: i(
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: m,
1227
- disabled: u,
1228
- "data-state": m ? "on" : "off",
1229
- "data-disabled": u,
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
- d,
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: ge }),
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
- ), Un = p((n, t) => {
1252
+ ), k = p((n, t) => {
1253
1253
  const { className: e, items: o, isDisabled: r, ...s } = n;
1254
- c(s);
1255
- const d = h(), m = (l) => /* @__PURE__ */ g("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
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
- ] }), u = o.filter((l) => l.isSelected)[0];
1259
- return u ? /* @__PURE__ */ g(
1260
- d.Select.Select,
1258
+ ] }), b = o.filter((l) => l.isSelected)[0];
1259
+ return b ? /* @__PURE__ */ g(
1260
+ i.Select.Select,
1261
1261
  {
1262
- value: u.text,
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(d.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(d.Select.SelectValue, {}) }),
1270
- /* @__PURE__ */ a(d.Select.SelectContent, { className: e, ref: t, children: o.map((l) => /* @__PURE__ */ a(
1271
- d.Select.SelectItem,
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(m, { ...l })
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 { className: e, children: o, ...r } = n;
1284
- c(r);
1285
- const s = h();
1286
- return /* @__PURE__ */ a(
1287
- s.Card.Card,
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: i(e, "bn-w-[300px]"),
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: o
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 c(r), /* @__PURE__ */ a(
1315
+ return m(r), /* @__PURE__ */ a(
1297
1316
  "div",
1298
1317
  {
1299
- className: i(
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 { authorInfo: e, timeString: o, ...r } = n;
1310
- c(r, !1);
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
- s.Skeleton.Skeleton,
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
- s.Skeleton.Skeleton,
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(s.Avatar.Avatar, { children: [
1370
+ /* @__PURE__ */ g(i.Avatar.Avatar, { children: [
1337
1371
  /* @__PURE__ */ a(
1338
- s.Avatar.AvatarImage,
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(s.Avatar.AvatarFallback, { children: e.username[0] })
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__ */ a("span", { className: "bn-text-xs", children: o })
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
- }), Kn = p((n, t) => {
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: d,
1367
- children: m,
1368
- ...u
1404
+ actions: i,
1405
+ edited: u,
1406
+ children: b,
1407
+ ...l
1369
1408
  } = n;
1370
- c(u);
1371
- const [l, f] = Me(!1), { focused: v, ref: w } = Ne(), C = d && (o === !0 || o === void 0 || o === "hover" && l || v);
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: i(e, "bn-relative bn-flex bn-flex-col bn-gap-2"),
1377
- onMouseEnter: () => f(!0),
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
- C ? /* @__PURE__ */ a(
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: w,
1387
- children: d
1423
+ ref: C,
1424
+ children: i
1388
1425
  }
1389
1426
  ) : null,
1390
- /* @__PURE__ */ a(qn, { ...n }),
1391
- m
1427
+ /* @__PURE__ */ a(Kn, { ...n }),
1428
+ b
1392
1429
  ]
1393
1430
  }
1394
1431
  );
1395
- }), Wn = p((n, t) => {
1396
- const { className: e, onFocus: o, onBlur: r, editor: s, editable: d, ...m } = n;
1397
- return c(m), /* @__PURE__ */ a(
1398
- tt,
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: !0,
1401
- className: i(e, ""),
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: d,
1445
+ editable: u,
1409
1446
  ref: t,
1410
1447
  onFocus: o,
1411
1448
  onBlur: r,
1412
1449
  children: /* @__PURE__ */ a(
1413
- xe,
1450
+ we,
1414
1451
  {
1415
- formattingToolbar: _n
1452
+ formattingToolbar: Jn
1416
1453
  }
1417
1454
  )
1418
1455
  }
1419
1456
  );
1420
- }), _n = () => {
1421
- const n = we([]).filter(
1457
+ }), Jn = () => {
1458
+ const n = Ce([]).filter(
1422
1459
  (t) => t.key !== "nestBlockButton" && t.key !== "unnestBlockButton"
1423
1460
  );
1424
- return /* @__PURE__ */ a(Ce, { blockTypeSelectItems: [], children: n });
1425
- }, Jn = p((n, t) => {
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: d,
1432
- secondaryTooltip: m,
1433
- onClick: u,
1468
+ mainTooltip: i,
1469
+ secondaryTooltip: u,
1470
+ onClick: b,
1434
1471
  onMouseEnter: l,
1435
1472
  ...f
1436
1473
  } = n;
1437
- c(f, !1);
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: i(
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: u,
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 d ? /* @__PURE__ */ g(v.Tooltip.Tooltip, { children: [
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: d }),
1463
- m && /* @__PURE__ */ a("span", { children: m })
1499
+ /* @__PURE__ */ a("span", { children: i }),
1500
+ u && /* @__PURE__ */ a("span", { children: u })
1464
1501
  ]
1465
1502
  }
1466
1503
  )
1467
1504
  ] }) : w;
1468
- }), Qn = p((n, t) => {
1505
+ }), Xn = p((n, t) => {
1469
1506
  const { className: e, children: o, ...r } = n;
1470
- c(r);
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: i(
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
- }), Xn = p((n, t) => {
1484
- const { className: e, children: o, onClick: r, label: s, ...d } = n;
1485
- c(d);
1486
- const m = h();
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
- m.Button.Button,
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
- }), Yn = p((n, t) => {
1499
- const { className: e, accept: o, value: r, placeholder: s, onChange: d, ...m } = n;
1500
- c(m);
1501
- const u = h();
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
- u.Input.Input,
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) => d == null ? void 0 : d(l.target.files[0]),
1547
+ onChange: async (l) => i == null ? void 0 : i(l.target.files[0]),
1511
1548
  placeholder: s
1512
1549
  }
1513
1550
  );
1514
- }), Zn = p((n, t) => {
1515
- const { className: e, isSelected: o, onClick: r, item: s, id: d, ...m } = n;
1516
- c(m);
1517
- const u = z(null);
1518
- return V(() => {
1519
- if (!u.current || !o)
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 = B(
1522
- u.current,
1558
+ const l = L(
1559
+ b.current,
1523
1560
  document.querySelector(".bn-grid-suggestion-menu")
1524
1561
  );
1525
- l === "top" ? u.current.scrollIntoView(!0) : l === "bottom" && u.current.scrollIntoView(!1);
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: P([t, u]),
1531
- id: d,
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
- }), et = p((n, t) => {
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 c(s), /* @__PURE__ */ a(
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
- }), nt = {
1592
+ }), tt = {
1556
1593
  FormattingToolbar: {
1557
- Root: R,
1558
- Button: k,
1559
- Select: Un
1594
+ Root: B,
1595
+ Button: F,
1596
+ Select: k
1560
1597
  },
1561
1598
  FilePanel: {
1562
- Root: Tn,
1563
- Button: Xn,
1564
- FileInput: Yn,
1565
- TabPanel: In,
1566
- TextInput: Mn
1599
+ Root: In,
1600
+ Button: Yn,
1601
+ FileInput: Zn,
1602
+ TabPanel: Mn,
1603
+ TextInput: Dn
1567
1604
  },
1568
1605
  LinkToolbar: {
1569
- Root: R,
1570
- Button: k
1606
+ Root: B,
1607
+ Button: F,
1608
+ Select: k
1571
1609
  },
1572
1610
  SideMenu: {
1573
- Root: Fn,
1574
- Button: Bn
1611
+ Root: kn,
1612
+ Button: Pn
1575
1613
  },
1576
1614
  SuggestionMenu: {
1577
- Root: zn,
1578
- Item: En,
1615
+ Root: En,
1616
+ Item: An,
1579
1617
  EmptyItem: Vn,
1580
- Label: An,
1581
- Loader: $n
1618
+ Label: $n,
1619
+ Loader: jn
1582
1620
  },
1583
1621
  GridSuggestionMenu: {
1584
- Root: Pn,
1585
- Item: Zn,
1586
- EmptyItem: Ln,
1587
- Loader: et
1622
+ Root: Ln,
1623
+ Item: et,
1624
+ EmptyItem: zn,
1625
+ Loader: nt
1588
1626
  },
1589
1627
  TableHandle: {
1590
- Root: Gn,
1591
- ExtendButton: jn
1628
+ Root: Un,
1629
+ ExtendButton: Gn
1592
1630
  },
1593
1631
  Comments: {
1594
- Comment: Kn,
1595
- Editor: Wn,
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: Jn,
1602
- Group: Qn
1640
+ Root: Qn,
1641
+ Group: Xn
1603
1642
  },
1604
1643
  Toolbar: {
1605
- Root: R,
1606
- Button: k
1644
+ Root: B,
1645
+ Button: F,
1646
+ Select: k
1607
1647
  },
1608
1648
  Form: {
1609
- Root: fn,
1610
- TextInput: gn
1649
+ Root: gn,
1650
+ TextInput: hn
1611
1651
  },
1612
1652
  Menu: {
1613
- Root: vn,
1614
- Trigger: Nn,
1615
- Dropdown: xn,
1616
- Divider: Cn,
1617
- Label: yn,
1618
- Item: wn,
1619
- Button: Sn
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: Dn,
1623
- Trigger: Rn,
1624
- Content: kn
1662
+ Root: Rn,
1663
+ Trigger: Bn,
1664
+ Content: Fn
1625
1665
  }
1626
1666
  }
1627
- }, tt = (n) => {
1628
- const { className: t, shadCNComponents: e, ...o } = n, r = L(() => ({
1629
- ...pn,
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(fe.Provider, { value: r, children: /* @__PURE__ */ a(ye.Provider, { value: nt, children: /* @__PURE__ */ a(
1633
- Se,
1672
+ return /* @__PURE__ */ a(he.Provider, { value: r, children: /* @__PURE__ */ a(Se.Provider, { value: tt, children: /* @__PURE__ */ a(
1673
+ Te,
1634
1674
  {
1635
- className: ve("bn-shadcn", t || ""),
1675
+ className: Ne("bn-shadcn", t || ""),
1636
1676
  ...o
1637
1677
  }
1638
1678
  ) }) });
1639
1679
  };
1640
1680
  export {
1641
- tt as BlockNoteView,
1642
- nt as components
1681
+ ot as BlockNoteView,
1682
+ tt as components
1643
1683
  };
1644
1684
  //# sourceMappingURL=blocknote-shadcn.js.map