@arcadeai/design-system 0.7.3 → 0.7.5

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.
@@ -4,38 +4,29 @@ import { c as g } from "../../../index-B695uy69.js";
4
4
  import { u as G, b as Me, c as Rn } from "../../../index-5Bhkapwi.js";
5
5
  import { c as he } from "../../../index-DFZozV_h.js";
6
6
  import { u as we } from "../../../index-437EL2iq.js";
7
- import { P as E, d as bn } from "../../../index-CpDnqHCm.js";
7
+ import { P as y, d as bn } from "../../../index-CpDnqHCm.js";
8
8
  import { c as xn } from "../../../index-CxO14pcK.js";
9
9
  import { u as Dn } from "../../../index-ByaXH_ih.js";
10
10
  import { P as Sn, D as In } from "../../../index-DYHsXnnS.js";
11
- import { h as Pn, u as yn, R as En, F as Nn } from "../../../index-BvWMjxZ5.js";
11
+ import { h as Pn, u as En, R as yn, F as Nn } from "../../../index-BvWMjxZ5.js";
12
12
  import { u as V } from "../../../index-Cv867SGx.js";
13
- import { c as Ce, R as _e, A as Tn, C as An, a as On } from "../../../index-f0YS5Ufh.js";
13
+ import { c as Ce, R as _e, A as Tn, C as An, a as On } from "../../../index-PlrlSrPo.js";
14
14
  import { P as Y } from "../../../index-C8_QusYl.js";
15
15
  import { c as Re, I as kn, R as Ln } from "../../../index-DMCYNwtg.js";
16
16
  import { u as te } from "../../../index-0ioNhtNM.js";
17
+ import { CheckIcon as Gn, CircleIcon as Fn, ChevronRightIcon as Kn } from "lucide-react";
17
18
  import { c as R } from "../../../utils-CRiPKpXj.js";
18
- import { C as Gn } from "../../../check-B5h1DvDs.js";
19
- import { c as Fn } from "../../../createLucideIcon-XRdN60yz.js";
20
- import { C as Kn } from "../../../chevron-right-BYYHEJjK.js";
21
- /**
22
- * @license lucide-react v0.525.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */
27
- const $n = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Un = Fn("circle", $n);
28
- var ee = ["Enter", " "], zn = ["ArrowDown", "PageUp", "Home"], be = ["ArrowUp", "PageDown", "End"], Bn = [...zn, ...be], Vn = {
19
+ var ee = ["Enter", " "], $n = ["ArrowDown", "PageUp", "Home"], be = ["ArrowUp", "PageDown", "End"], Un = [...$n, ...be], zn = {
29
20
  ltr: [...ee, "ArrowRight"],
30
21
  rtl: [...ee, "ArrowLeft"]
31
- }, jn = {
22
+ }, Bn = {
32
23
  ltr: ["ArrowLeft"],
33
24
  rtl: ["ArrowRight"]
34
- }, F = "Menu", [k, Xn, Yn] = xn(F), [D, xe] = he(F, [
35
- Yn,
25
+ }, F = "Menu", [k, Vn, jn] = xn(F), [D, xe] = he(F, [
26
+ jn,
36
27
  Ce,
37
28
  Re
38
- ]), K = Ce(), De = Re(), [Se, b] = D(F), [Hn, $] = D(F), Ie = (e) => {
29
+ ]), K = Ce(), De = Re(), [Se, b] = D(F), [Xn, $] = D(F), Ie = (e) => {
39
30
  const { __scopeMenu: t, open: n = !1, children: o, dir: a, onOpenChange: c, modal: i = !0 } = e, d = K(t), [f, m] = s.useState(null), p = s.useRef(!1), u = te(c), v = Dn(a);
40
31
  return s.useEffect(() => {
41
32
  const C = () => {
@@ -53,7 +44,7 @@ var ee = ["Enter", " "], zn = ["ArrowDown", "PageUp", "Home"], be = ["ArrowUp",
53
44
  content: f,
54
45
  onContentChange: m,
55
46
  children: /* @__PURE__ */ r(
56
- Hn,
47
+ Xn,
57
48
  {
58
49
  scope: t,
59
50
  onClose: s.useCallback(() => u(!1), [u]),
@@ -67,26 +58,26 @@ var ee = ["Enter", " "], zn = ["ArrowDown", "PageUp", "Home"], be = ["ArrowUp",
67
58
  ) });
68
59
  };
69
60
  Ie.displayName = F;
70
- var Wn = "MenuAnchor", oe = s.forwardRef(
61
+ var Yn = "MenuAnchor", oe = s.forwardRef(
71
62
  (e, t) => {
72
63
  const { __scopeMenu: n, ...o } = e, a = K(n);
73
64
  return /* @__PURE__ */ r(Tn, { ...a, ...o, ref: t });
74
65
  }
75
66
  );
76
- oe.displayName = Wn;
77
- var re = "MenuPortal", [Zn, Pe] = D(re, {
67
+ oe.displayName = Yn;
68
+ var re = "MenuPortal", [Hn, Pe] = D(re, {
78
69
  forceMount: void 0
79
- }), ye = (e) => {
70
+ }), Ee = (e) => {
80
71
  const { __scopeMenu: t, forceMount: n, children: o, container: a } = e, c = b(re, t);
81
- return /* @__PURE__ */ r(Zn, { scope: t, forceMount: n, children: /* @__PURE__ */ r(Y, { present: n || c.open, children: /* @__PURE__ */ r(Sn, { asChild: !0, container: a, children: o }) }) });
72
+ return /* @__PURE__ */ r(Hn, { scope: t, forceMount: n, children: /* @__PURE__ */ r(Y, { present: n || c.open, children: /* @__PURE__ */ r(Sn, { asChild: !0, container: a, children: o }) }) });
82
73
  };
83
- ye.displayName = re;
84
- var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
74
+ Ee.displayName = re;
75
+ var _ = "MenuContent", [Wn, ae] = D(_), ye = s.forwardRef(
85
76
  (e, t) => {
86
77
  const n = Pe(_, e.__scopeMenu), { forceMount: o = n.forceMount, ...a } = e, c = b(_, e.__scopeMenu), i = $(_, e.__scopeMenu);
87
- return /* @__PURE__ */ r(k.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r(Y, { present: o || c.open, children: /* @__PURE__ */ r(k.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ r(Jn, { ...a, ref: t }) : /* @__PURE__ */ r(Qn, { ...a, ref: t }) }) }) });
78
+ return /* @__PURE__ */ r(k.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r(Y, { present: o || c.open, children: /* @__PURE__ */ r(k.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ r(Zn, { ...a, ref: t }) : /* @__PURE__ */ r(qn, { ...a, ref: t }) }) }) });
88
79
  }
89
- ), Jn = s.forwardRef(
80
+ ), Zn = s.forwardRef(
90
81
  (e, t) => {
91
82
  const n = b(_, e.__scopeMenu), o = s.useRef(null), a = G(t, o);
92
83
  return s.useEffect(() => {
@@ -109,7 +100,7 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
109
100
  }
110
101
  );
111
102
  }
112
- ), Qn = s.forwardRef((e, t) => {
103
+ ), qn = s.forwardRef((e, t) => {
113
104
  const n = b(_, e.__scopeMenu);
114
105
  return /* @__PURE__ */ r(
115
106
  se,
@@ -122,7 +113,7 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
122
113
  onDismiss: () => n.onOpenChange(!1)
123
114
  }
124
115
  );
125
- }), et = Rn("MenuContent.ScrollLock"), se = s.forwardRef(
116
+ }), Jn = Rn("MenuContent.ScrollLock"), se = s.forwardRef(
126
117
  (e, t) => {
127
118
  const {
128
119
  __scopeMenu: n,
@@ -139,16 +130,16 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
139
130
  onDismiss: C,
140
131
  disableOutsideScroll: M,
141
132
  ...S
142
- } = e, N = b(_, n), I = $(_, n), mn = K(n), vn = De(n), le = Xn(n), [gn, pe] = s.useState(null), U = s.useRef(null), Mn = G(t, U, N.onContentChange), z = s.useRef(0), B = s.useRef(""), hn = s.useRef(0), Z = s.useRef(null), fe = s.useRef("right"), q = s.useRef(0), wn = M ? En : s.Fragment, Cn = M ? { as: et, allowPinchZoom: !0 } : void 0, _n = (l) => {
143
- const y = B.current + l, x = le().filter((w) => !w.disabled), T = document.activeElement, J = x.find((w) => w.ref.current === T)?.textValue, Q = x.map((w) => w.textValue), me = pt(Q, y, J), A = x.find((w) => w.textValue === me)?.ref.current;
133
+ } = e, N = b(_, n), I = $(_, n), mn = K(n), vn = De(n), le = Vn(n), [gn, pe] = s.useState(null), U = s.useRef(null), Mn = G(t, U, N.onContentChange), z = s.useRef(0), B = s.useRef(""), hn = s.useRef(0), Z = s.useRef(null), fe = s.useRef("right"), q = s.useRef(0), wn = M ? yn : s.Fragment, Cn = M ? { as: Jn, allowPinchZoom: !0 } : void 0, _n = (l) => {
134
+ const E = B.current + l, x = le().filter((w) => !w.disabled), T = document.activeElement, J = x.find((w) => w.ref.current === T)?.textValue, Q = x.map((w) => w.textValue), me = dt(Q, E, J), A = x.find((w) => w.textValue === me)?.ref.current;
144
135
  (function w(ve) {
145
136
  B.current = ve, window.clearTimeout(z.current), ve !== "" && (z.current = window.setTimeout(() => w(""), 1e3));
146
- })(y), A && setTimeout(() => A.focus());
137
+ })(E), A && setTimeout(() => A.focus());
147
138
  };
148
- s.useEffect(() => () => window.clearTimeout(z.current), []), yn();
149
- const P = s.useCallback((l) => fe.current === Z.current?.side && mt(l, Z.current?.area), []);
139
+ s.useEffect(() => () => window.clearTimeout(z.current), []), En();
140
+ const P = s.useCallback((l) => fe.current === Z.current?.side && pt(l, Z.current?.area), []);
150
141
  return /* @__PURE__ */ r(
151
- qn,
142
+ Wn,
152
143
  {
153
144
  scope: n,
154
145
  searchRef: B,
@@ -223,10 +214,10 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
223
214
  const x = l.target.closest("[data-radix-menu-content]") === l.currentTarget, T = l.ctrlKey || l.altKey || l.metaKey, J = l.key.length === 1;
224
215
  x && (l.key === "Tab" && l.preventDefault(), !T && J && _n(l.key));
225
216
  const Q = U.current;
226
- if (l.target !== Q || !Bn.includes(l.key)) return;
217
+ if (l.target !== Q || !Un.includes(l.key)) return;
227
218
  l.preventDefault();
228
219
  const A = le().filter((w) => !w.disabled).map((w) => w.ref.current);
229
- be.includes(l.key) && A.reverse(), dt(A);
220
+ be.includes(l.key) && A.reverse(), ut(A);
230
221
  }),
231
222
  onBlur: g(e.onBlur, (l) => {
232
223
  l.currentTarget.contains(l.target) || (window.clearTimeout(z.current), B.current = "");
@@ -234,8 +225,8 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
234
225
  onPointerMove: g(
235
226
  e.onPointerMove,
236
227
  L((l) => {
237
- const y = l.target, x = q.current !== l.clientX;
238
- if (l.currentTarget.contains(y) && x) {
228
+ const E = l.target, x = q.current !== l.clientX;
229
+ if (l.currentTarget.contains(E) && x) {
239
230
  const T = l.clientX > q.current ? "right" : "left";
240
231
  fe.current = T, q.current = l.clientX;
241
232
  }
@@ -253,21 +244,21 @@ var _ = "MenuContent", [qn, ae] = D(_), Ee = s.forwardRef(
253
244
  );
254
245
  }
255
246
  );
256
- Ee.displayName = _;
257
- var nt = "MenuGroup", ce = s.forwardRef(
247
+ ye.displayName = _;
248
+ var Qn = "MenuGroup", ce = s.forwardRef(
258
249
  (e, t) => {
259
250
  const { __scopeMenu: n, ...o } = e;
260
- return /* @__PURE__ */ r(E.div, { role: "group", ...o, ref: t });
251
+ return /* @__PURE__ */ r(y.div, { role: "group", ...o, ref: t });
261
252
  }
262
253
  );
263
- ce.displayName = nt;
264
- var tt = "MenuLabel", Ne = s.forwardRef(
254
+ ce.displayName = Qn;
255
+ var et = "MenuLabel", Ne = s.forwardRef(
265
256
  (e, t) => {
266
257
  const { __scopeMenu: n, ...o } = e;
267
- return /* @__PURE__ */ r(E.div, { ...o, ref: t });
258
+ return /* @__PURE__ */ r(y.div, { ...o, ref: t });
268
259
  }
269
260
  );
270
- Ne.displayName = tt;
261
+ Ne.displayName = et;
271
262
  var j = "MenuItem", ge = "menu.itemSelect", H = s.forwardRef(
272
263
  (e, t) => {
273
264
  const { disabled: n = !1, onSelect: o, ...a } = e, c = s.useRef(null), i = $(j, e.__scopeMenu), d = ae(j, e.__scopeMenu), f = G(t, c), m = s.useRef(!1), p = () => {
@@ -312,7 +303,7 @@ var Te = s.forwardRef(
312
303
  disabled: o,
313
304
  textValue: a ?? v,
314
305
  children: /* @__PURE__ */ r(kn, { asChild: !0, ...d, focusable: !o, children: /* @__PURE__ */ r(
315
- E.div,
306
+ y.div,
316
307
  {
317
308
  role: "menuitem",
318
309
  "data-highlighted": p ? "" : void 0,
@@ -337,7 +328,7 @@ var Te = s.forwardRef(
337
328
  }
338
329
  );
339
330
  }
340
- ), ot = "MenuCheckboxItem", Ae = s.forwardRef(
331
+ ), nt = "MenuCheckboxItem", Ae = s.forwardRef(
341
332
  (e, t) => {
342
333
  const { checked: n = !1, onCheckedChange: o, ...a } = e;
343
334
  return /* @__PURE__ */ r(Fe, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ r(
@@ -357,21 +348,21 @@ var Te = s.forwardRef(
357
348
  ) });
358
349
  }
359
350
  );
360
- Ae.displayName = ot;
361
- var Oe = "MenuRadioGroup", [rt, at] = D(
351
+ Ae.displayName = nt;
352
+ var Oe = "MenuRadioGroup", [tt, ot] = D(
362
353
  Oe,
363
354
  { value: void 0, onValueChange: () => {
364
355
  } }
365
356
  ), ke = s.forwardRef(
366
357
  (e, t) => {
367
358
  const { value: n, onValueChange: o, ...a } = e, c = te(o);
368
- return /* @__PURE__ */ r(rt, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ r(ce, { ...a, ref: t }) });
359
+ return /* @__PURE__ */ r(tt, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ r(ce, { ...a, ref: t }) });
369
360
  }
370
361
  );
371
362
  ke.displayName = Oe;
372
363
  var Le = "MenuRadioItem", Ge = s.forwardRef(
373
364
  (e, t) => {
374
- const { value: n, ...o } = e, a = at(Le, e.__scopeMenu), c = n === a.value;
365
+ const { value: n, ...o } = e, a = ot(Le, e.__scopeMenu), c = n === a.value;
375
366
  return /* @__PURE__ */ r(Fe, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ r(
376
367
  H,
377
368
  {
@@ -390,18 +381,18 @@ var Le = "MenuRadioItem", Ge = s.forwardRef(
390
381
  }
391
382
  );
392
383
  Ge.displayName = Le;
393
- var ue = "MenuItemIndicator", [Fe, st] = D(
384
+ var ue = "MenuItemIndicator", [Fe, rt] = D(
394
385
  ue,
395
386
  { checked: !1 }
396
387
  ), Ke = s.forwardRef(
397
388
  (e, t) => {
398
- const { __scopeMenu: n, forceMount: o, ...a } = e, c = st(ue, n);
389
+ const { __scopeMenu: n, forceMount: o, ...a } = e, c = rt(ue, n);
399
390
  return /* @__PURE__ */ r(
400
391
  Y,
401
392
  {
402
393
  present: o || X(c.checked) || c.checked === !0,
403
394
  children: /* @__PURE__ */ r(
404
- E.span,
395
+ y.span,
405
396
  {
406
397
  ...a,
407
398
  ref: t,
@@ -413,11 +404,11 @@ var ue = "MenuItemIndicator", [Fe, st] = D(
413
404
  }
414
405
  );
415
406
  Ke.displayName = ue;
416
- var ct = "MenuSeparator", $e = s.forwardRef(
407
+ var at = "MenuSeparator", $e = s.forwardRef(
417
408
  (e, t) => {
418
409
  const { __scopeMenu: n, ...o } = e;
419
410
  return /* @__PURE__ */ r(
420
- E.div,
411
+ y.div,
421
412
  {
422
413
  role: "separator",
423
414
  "aria-orientation": "horizontal",
@@ -427,15 +418,15 @@ var ct = "MenuSeparator", $e = s.forwardRef(
427
418
  );
428
419
  }
429
420
  );
430
- $e.displayName = ct;
431
- var ut = "MenuArrow", Ue = s.forwardRef(
421
+ $e.displayName = at;
422
+ var st = "MenuArrow", Ue = s.forwardRef(
432
423
  (e, t) => {
433
424
  const { __scopeMenu: n, ...o } = e, a = K(n);
434
425
  return /* @__PURE__ */ r(On, { ...a, ...o, ref: t });
435
426
  }
436
427
  );
437
- Ue.displayName = ut;
438
- var ie = "MenuSub", [it, ze] = D(ie), Be = (e) => {
428
+ Ue.displayName = st;
429
+ var ie = "MenuSub", [ct, ze] = D(ie), Be = (e) => {
439
430
  const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: a } = e, c = b(ie, t), i = K(t), [d, f] = s.useState(null), [m, p] = s.useState(null), u = te(a);
440
431
  return s.useEffect(() => (c.open === !1 && u(!1), () => u(!1)), [c.open, u]), /* @__PURE__ */ r(_e, { ...i, children: /* @__PURE__ */ r(
441
432
  Se,
@@ -446,7 +437,7 @@ var ie = "MenuSub", [it, ze] = D(ie), Be = (e) => {
446
437
  content: m,
447
438
  onContentChange: p,
448
439
  children: /* @__PURE__ */ r(
449
- it,
440
+ ct,
450
441
  {
451
442
  scope: t,
452
443
  contentId: V(),
@@ -521,7 +512,7 @@ var O = "MenuSubTrigger", Ve = s.forwardRef(
521
512
  ),
522
513
  onKeyDown: g(e.onKeyDown, (u) => {
523
514
  const v = c.searchRef.current !== "";
524
- e.disabled || v && u.key === " " || Vn[o.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
515
+ e.disabled || v && u.key === " " || zn[o.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
525
516
  })
526
517
  }
527
518
  ) });
@@ -554,7 +545,7 @@ var je = "MenuSubContent", Xe = s.forwardRef(
554
545
  i.onClose(), p.preventDefault();
555
546
  }),
556
547
  onKeyDown: g(e.onKeyDown, (p) => {
557
- const u = p.currentTarget.contains(p.target), v = jn[i.dir].includes(p.key);
548
+ const u = p.currentTarget.contains(p.target), v = Bn[i.dir].includes(p.key);
558
549
  u && v && (c.onOpenChange(!1), d.trigger?.focus(), p.preventDefault());
559
550
  })
560
551
  }
@@ -571,24 +562,24 @@ function X(e) {
571
562
  function de(e) {
572
563
  return X(e) ? "indeterminate" : e ? "checked" : "unchecked";
573
564
  }
574
- function dt(e) {
565
+ function ut(e) {
575
566
  const t = document.activeElement;
576
567
  for (const n of e)
577
568
  if (n === t || (n.focus(), document.activeElement !== t)) return;
578
569
  }
579
- function lt(e, t) {
570
+ function it(e, t) {
580
571
  return e.map((n, o) => e[(t + o) % e.length]);
581
572
  }
582
- function pt(e, t, n) {
573
+ function dt(e, t, n) {
583
574
  const a = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
584
- let i = lt(e, Math.max(c, 0));
575
+ let i = it(e, Math.max(c, 0));
585
576
  a.length === 1 && (i = i.filter((m) => m !== n));
586
577
  const f = i.find(
587
578
  (m) => m.toLowerCase().startsWith(a.toLowerCase())
588
579
  );
589
580
  return f !== n ? f : void 0;
590
581
  }
591
- function ft(e, t) {
582
+ function lt(e, t) {
592
583
  const { x: n, y: o } = e;
593
584
  let a = !1;
594
585
  for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
@@ -597,18 +588,18 @@ function ft(e, t) {
597
588
  }
598
589
  return a;
599
590
  }
600
- function mt(e, t) {
591
+ function pt(e, t) {
601
592
  if (!t) return !1;
602
593
  const n = { x: e.clientX, y: e.clientY };
603
- return ft(n, t);
594
+ return lt(n, t);
604
595
  }
605
596
  function L(e) {
606
597
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
607
598
  }
608
- var vt = Ie, gt = oe, Mt = ye, ht = Ee, wt = ce, Ct = Ne, _t = H, Rt = Ae, bt = ke, xt = Ge, Dt = Ke, St = $e, It = Ue, Pt = Be, yt = Ve, Et = Xe, W = "DropdownMenu", [Nt, So] = he(
599
+ var ft = Ie, mt = oe, vt = Ee, gt = ye, Mt = ce, ht = Ne, wt = H, Ct = Ae, _t = ke, Rt = Ge, bt = Ke, xt = $e, Dt = Ue, St = Be, It = Ve, Pt = Xe, W = "DropdownMenu", [Et, Ro] = he(
609
600
  W,
610
601
  [xe]
611
- ), h = xe(), [Tt, He] = Nt(W), We = (e) => {
602
+ ), h = xe(), [yt, He] = Et(W), We = (e) => {
612
603
  const {
613
604
  __scopeDropdownMenu: t,
614
605
  children: n,
@@ -624,7 +615,7 @@ var vt = Ie, gt = oe, Mt = ye, ht = Ee, wt = ce, Ct = Ne, _t = H, Rt = Ae, bt =
624
615
  caller: W
625
616
  });
626
617
  return /* @__PURE__ */ r(
627
- Tt,
618
+ yt,
628
619
  {
629
620
  scope: t,
630
621
  triggerId: V(),
@@ -634,7 +625,7 @@ var vt = Ie, gt = oe, Mt = ye, ht = Ee, wt = ce, Ct = Ne, _t = H, Rt = Ae, bt =
634
625
  onOpenChange: u,
635
626
  onOpenToggle: s.useCallback(() => u((v) => !v), [u]),
636
627
  modal: d,
637
- children: /* @__PURE__ */ r(vt, { ...f, open: p, onOpenChange: u, dir: o, modal: d, children: n })
628
+ children: /* @__PURE__ */ r(ft, { ...f, open: p, onOpenChange: u, dir: o, modal: d, children: n })
638
629
  }
639
630
  );
640
631
  };
@@ -642,8 +633,8 @@ We.displayName = W;
642
633
  var Ze = "DropdownMenuTrigger", qe = s.forwardRef(
643
634
  (e, t) => {
644
635
  const { __scopeDropdownMenu: n, disabled: o = !1, ...a } = e, c = He(Ze, n), i = h(n);
645
- return /* @__PURE__ */ r(gt, { asChild: !0, ...i, children: /* @__PURE__ */ r(
646
- E.button,
636
+ return /* @__PURE__ */ r(mt, { asChild: !0, ...i, children: /* @__PURE__ */ r(
637
+ y.button,
647
638
  {
648
639
  type: "button",
649
640
  id: c.triggerId,
@@ -666,16 +657,16 @@ var Ze = "DropdownMenuTrigger", qe = s.forwardRef(
666
657
  }
667
658
  );
668
659
  qe.displayName = Ze;
669
- var At = "DropdownMenuPortal", Je = (e) => {
660
+ var Nt = "DropdownMenuPortal", Je = (e) => {
670
661
  const { __scopeDropdownMenu: t, ...n } = e, o = h(t);
671
- return /* @__PURE__ */ r(Mt, { ...o, ...n });
662
+ return /* @__PURE__ */ r(vt, { ...o, ...n });
672
663
  };
673
- Je.displayName = At;
664
+ Je.displayName = Nt;
674
665
  var Qe = "DropdownMenuContent", en = s.forwardRef(
675
666
  (e, t) => {
676
667
  const { __scopeDropdownMenu: n, ...o } = e, a = He(Qe, n), c = h(n), i = s.useRef(!1);
677
668
  return /* @__PURE__ */ r(
678
- ht,
669
+ gt,
679
670
  {
680
671
  id: a.contentId,
681
672
  "aria-labelledby": a.triggerId,
@@ -702,76 +693,76 @@ var Qe = "DropdownMenuContent", en = s.forwardRef(
702
693
  }
703
694
  );
704
695
  en.displayName = Qe;
705
- var Ot = "DropdownMenuGroup", nn = s.forwardRef(
696
+ var Tt = "DropdownMenuGroup", nn = s.forwardRef(
706
697
  (e, t) => {
707
698
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
708
- return /* @__PURE__ */ r(wt, { ...a, ...o, ref: t });
699
+ return /* @__PURE__ */ r(Mt, { ...a, ...o, ref: t });
709
700
  }
710
701
  );
711
- nn.displayName = Ot;
712
- var kt = "DropdownMenuLabel", tn = s.forwardRef(
702
+ nn.displayName = Tt;
703
+ var At = "DropdownMenuLabel", tn = s.forwardRef(
713
704
  (e, t) => {
714
705
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
715
- return /* @__PURE__ */ r(Ct, { ...a, ...o, ref: t });
706
+ return /* @__PURE__ */ r(ht, { ...a, ...o, ref: t });
716
707
  }
717
708
  );
718
- tn.displayName = kt;
719
- var Lt = "DropdownMenuItem", on = s.forwardRef(
709
+ tn.displayName = At;
710
+ var Ot = "DropdownMenuItem", on = s.forwardRef(
720
711
  (e, t) => {
721
712
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
722
- return /* @__PURE__ */ r(_t, { ...a, ...o, ref: t });
713
+ return /* @__PURE__ */ r(wt, { ...a, ...o, ref: t });
723
714
  }
724
715
  );
725
- on.displayName = Lt;
726
- var Gt = "DropdownMenuCheckboxItem", rn = s.forwardRef((e, t) => {
716
+ on.displayName = Ot;
717
+ var kt = "DropdownMenuCheckboxItem", rn = s.forwardRef((e, t) => {
727
718
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
728
- return /* @__PURE__ */ r(Rt, { ...a, ...o, ref: t });
719
+ return /* @__PURE__ */ r(Ct, { ...a, ...o, ref: t });
729
720
  });
730
- rn.displayName = Gt;
731
- var Ft = "DropdownMenuRadioGroup", an = s.forwardRef((e, t) => {
721
+ rn.displayName = kt;
722
+ var Lt = "DropdownMenuRadioGroup", an = s.forwardRef((e, t) => {
732
723
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
733
- return /* @__PURE__ */ r(bt, { ...a, ...o, ref: t });
724
+ return /* @__PURE__ */ r(_t, { ...a, ...o, ref: t });
734
725
  });
735
- an.displayName = Ft;
736
- var Kt = "DropdownMenuRadioItem", sn = s.forwardRef((e, t) => {
726
+ an.displayName = Lt;
727
+ var Gt = "DropdownMenuRadioItem", sn = s.forwardRef((e, t) => {
737
728
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
738
- return /* @__PURE__ */ r(xt, { ...a, ...o, ref: t });
729
+ return /* @__PURE__ */ r(Rt, { ...a, ...o, ref: t });
739
730
  });
740
- sn.displayName = Kt;
741
- var $t = "DropdownMenuItemIndicator", cn = s.forwardRef((e, t) => {
731
+ sn.displayName = Gt;
732
+ var Ft = "DropdownMenuItemIndicator", cn = s.forwardRef((e, t) => {
742
733
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
743
- return /* @__PURE__ */ r(Dt, { ...a, ...o, ref: t });
734
+ return /* @__PURE__ */ r(bt, { ...a, ...o, ref: t });
744
735
  });
745
- cn.displayName = $t;
746
- var Ut = "DropdownMenuSeparator", un = s.forwardRef((e, t) => {
736
+ cn.displayName = Ft;
737
+ var Kt = "DropdownMenuSeparator", un = s.forwardRef((e, t) => {
747
738
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
748
- return /* @__PURE__ */ r(St, { ...a, ...o, ref: t });
739
+ return /* @__PURE__ */ r(xt, { ...a, ...o, ref: t });
749
740
  });
750
- un.displayName = Ut;
751
- var zt = "DropdownMenuArrow", Bt = s.forwardRef(
741
+ un.displayName = Kt;
742
+ var $t = "DropdownMenuArrow", Ut = s.forwardRef(
752
743
  (e, t) => {
753
744
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
754
- return /* @__PURE__ */ r(It, { ...a, ...o, ref: t });
745
+ return /* @__PURE__ */ r(Dt, { ...a, ...o, ref: t });
755
746
  }
756
747
  );
757
- Bt.displayName = zt;
758
- var Vt = (e) => {
748
+ Ut.displayName = $t;
749
+ var zt = (e) => {
759
750
  const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: a, defaultOpen: c } = e, i = h(t), [d, f] = we({
760
751
  prop: o,
761
752
  defaultProp: c ?? !1,
762
753
  onChange: a,
763
754
  caller: "DropdownMenuSub"
764
755
  });
765
- return /* @__PURE__ */ r(Pt, { ...i, open: d, onOpenChange: f, children: n });
766
- }, jt = "DropdownMenuSubTrigger", dn = s.forwardRef((e, t) => {
756
+ return /* @__PURE__ */ r(St, { ...i, open: d, onOpenChange: f, children: n });
757
+ }, Bt = "DropdownMenuSubTrigger", dn = s.forwardRef((e, t) => {
767
758
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
768
- return /* @__PURE__ */ r(yt, { ...a, ...o, ref: t });
759
+ return /* @__PURE__ */ r(It, { ...a, ...o, ref: t });
769
760
  });
770
- dn.displayName = jt;
771
- var Xt = "DropdownMenuSubContent", ln = s.forwardRef((e, t) => {
761
+ dn.displayName = Bt;
762
+ var Vt = "DropdownMenuSubContent", ln = s.forwardRef((e, t) => {
772
763
  const { __scopeDropdownMenu: n, ...o } = e, a = h(n);
773
764
  return /* @__PURE__ */ r(
774
- Et,
765
+ Pt,
775
766
  {
776
767
  ...a,
777
768
  ...o,
@@ -787,36 +778,36 @@ var Xt = "DropdownMenuSubContent", ln = s.forwardRef((e, t) => {
787
778
  }
788
779
  );
789
780
  });
790
- ln.displayName = Xt;
791
- var Yt = We, Ht = qe, pn = Je, Wt = en, Zt = nn, qt = tn, Jt = on, Qt = rn, eo = an, no = sn, fn = cn, to = un, oo = Vt, ro = dn, ao = ln;
792
- function Io({
781
+ ln.displayName = Vt;
782
+ var jt = We, Xt = qe, pn = Je, Yt = en, Ht = nn, Wt = tn, Zt = on, qt = rn, Jt = an, Qt = sn, fn = cn, eo = un, no = zt, to = dn, oo = ln;
783
+ function bo({
793
784
  ...e
794
785
  }) {
795
- return /* @__PURE__ */ r(Yt, { "data-slot": "dropdown-menu", ...e });
786
+ return /* @__PURE__ */ r(jt, { "data-slot": "dropdown-menu", ...e });
796
787
  }
797
- function Po({
788
+ function xo({
798
789
  ...e
799
790
  }) {
800
791
  return /* @__PURE__ */ r(pn, { "data-slot": "dropdown-menu-portal", ...e });
801
792
  }
802
- function yo({
793
+ function Do({
803
794
  ...e
804
795
  }) {
805
796
  return /* @__PURE__ */ r(
806
- Ht,
797
+ Xt,
807
798
  {
808
799
  "data-slot": "dropdown-menu-trigger",
809
800
  ...e
810
801
  }
811
802
  );
812
803
  }
813
- function Eo({
804
+ function So({
814
805
  className: e,
815
806
  sideOffset: t = 4,
816
807
  ...n
817
808
  }) {
818
809
  return /* @__PURE__ */ r(pn, { children: /* @__PURE__ */ r(
819
- Wt,
810
+ Yt,
820
811
  {
821
812
  className: R(
822
813
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",
@@ -828,19 +819,19 @@ function Eo({
828
819
  }
829
820
  ) });
830
821
  }
831
- function No({
822
+ function Io({
832
823
  ...e
833
824
  }) {
834
- return /* @__PURE__ */ r(Zt, { "data-slot": "dropdown-menu-group", ...e });
825
+ return /* @__PURE__ */ r(Ht, { "data-slot": "dropdown-menu-group", ...e });
835
826
  }
836
- function To({
827
+ function Po({
837
828
  className: e,
838
829
  inset: t,
839
830
  variant: n = "default",
840
831
  ...o
841
832
  }) {
842
833
  return /* @__PURE__ */ r(
843
- Jt,
834
+ Zt,
844
835
  {
845
836
  className: R(
846
837
  "data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
@@ -853,14 +844,14 @@ function To({
853
844
  }
854
845
  );
855
846
  }
856
- function Ao({
847
+ function Eo({
857
848
  className: e,
858
849
  children: t,
859
850
  checked: n,
860
851
  ...o
861
852
  }) {
862
853
  return /* @__PURE__ */ ne(
863
- Qt,
854
+ qt,
864
855
  {
865
856
  checked: n,
866
857
  className: R(
@@ -876,24 +867,24 @@ function Ao({
876
867
  }
877
868
  );
878
869
  }
879
- function Oo({
870
+ function yo({
880
871
  ...e
881
872
  }) {
882
873
  return /* @__PURE__ */ r(
883
- eo,
874
+ Jt,
884
875
  {
885
876
  "data-slot": "dropdown-menu-radio-group",
886
877
  ...e
887
878
  }
888
879
  );
889
880
  }
890
- function ko({
881
+ function No({
891
882
  className: e,
892
883
  children: t,
893
884
  ...n
894
885
  }) {
895
886
  return /* @__PURE__ */ ne(
896
- no,
887
+ Qt,
897
888
  {
898
889
  className: R(
899
890
  "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
@@ -902,19 +893,19 @@ function ko({
902
893
  "data-slot": "dropdown-menu-radio-item",
903
894
  ...n,
904
895
  children: [
905
- /* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(fn, { children: /* @__PURE__ */ r(Un, { className: "size-2 fill-current" }) }) }),
896
+ /* @__PURE__ */ r("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(fn, { children: /* @__PURE__ */ r(Fn, { className: "size-2 fill-current" }) }) }),
906
897
  t
907
898
  ]
908
899
  }
909
900
  );
910
901
  }
911
- function Lo({
902
+ function To({
912
903
  className: e,
913
904
  inset: t,
914
905
  ...n
915
906
  }) {
916
907
  return /* @__PURE__ */ r(
917
- qt,
908
+ Wt,
918
909
  {
919
910
  className: R(
920
911
  "px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",
@@ -926,12 +917,12 @@ function Lo({
926
917
  }
927
918
  );
928
919
  }
929
- function Go({
920
+ function Ao({
930
921
  className: e,
931
922
  ...t
932
923
  }) {
933
924
  return /* @__PURE__ */ r(
934
- to,
925
+ eo,
935
926
  {
936
927
  className: R("-mx-1 my-1 h-px bg-border", e),
937
928
  "data-slot": "dropdown-menu-separator",
@@ -939,7 +930,7 @@ function Go({
939
930
  }
940
931
  );
941
932
  }
942
- function Fo({
933
+ function Oo({
943
934
  className: e,
944
935
  ...t
945
936
  }) {
@@ -955,19 +946,19 @@ function Fo({
955
946
  }
956
947
  );
957
948
  }
958
- function Ko({
949
+ function ko({
959
950
  ...e
960
951
  }) {
961
- return /* @__PURE__ */ r(oo, { "data-slot": "dropdown-menu-sub", ...e });
952
+ return /* @__PURE__ */ r(no, { "data-slot": "dropdown-menu-sub", ...e });
962
953
  }
963
- function $o({
954
+ function Lo({
964
955
  className: e,
965
956
  inset: t,
966
957
  children: n,
967
958
  ...o
968
959
  }) {
969
960
  return /* @__PURE__ */ ne(
970
- ro,
961
+ to,
971
962
  {
972
963
  className: R(
973
964
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[inset]:pl-8 data-[state=open]:text-accent-foreground",
@@ -983,12 +974,12 @@ function $o({
983
974
  }
984
975
  );
985
976
  }
986
- function Uo({
977
+ function Go({
987
978
  className: e,
988
979
  ...t
989
980
  }) {
990
981
  return /* @__PURE__ */ r(
991
- ao,
982
+ oo,
992
983
  {
993
984
  className: R(
994
985
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",
@@ -1000,19 +991,19 @@ function Uo({
1000
991
  );
1001
992
  }
1002
993
  export {
1003
- Io as DropdownMenu,
1004
- Ao as DropdownMenuCheckboxItem,
1005
- Eo as DropdownMenuContent,
1006
- No as DropdownMenuGroup,
1007
- To as DropdownMenuItem,
1008
- Lo as DropdownMenuLabel,
1009
- Po as DropdownMenuPortal,
1010
- Oo as DropdownMenuRadioGroup,
1011
- ko as DropdownMenuRadioItem,
1012
- Go as DropdownMenuSeparator,
1013
- Fo as DropdownMenuShortcut,
1014
- Ko as DropdownMenuSub,
1015
- Uo as DropdownMenuSubContent,
1016
- $o as DropdownMenuSubTrigger,
1017
- yo as DropdownMenuTrigger
994
+ bo as DropdownMenu,
995
+ Eo as DropdownMenuCheckboxItem,
996
+ So as DropdownMenuContent,
997
+ Io as DropdownMenuGroup,
998
+ Po as DropdownMenuItem,
999
+ To as DropdownMenuLabel,
1000
+ xo as DropdownMenuPortal,
1001
+ yo as DropdownMenuRadioGroup,
1002
+ No as DropdownMenuRadioItem,
1003
+ Ao as DropdownMenuSeparator,
1004
+ Oo as DropdownMenuShortcut,
1005
+ ko as DropdownMenuSub,
1006
+ Go as DropdownMenuSubContent,
1007
+ Lo as DropdownMenuSubTrigger,
1008
+ Do as DropdownMenuTrigger
1018
1009
  };