@arcadeai/design-system 0.7.2 → 0.7.3

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.
Files changed (69) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/{check-CxcShTlQ.js → check-B5h1DvDs.js} +2 -2
  3. package/dist/{chevron-down-D_a-ccxi.js → chevron-down-DmZMdOiC.js} +2 -2
  4. package/dist/{chevron-right-DriXIqe5.js → chevron-right-BYYHEJjK.js} +2 -2
  5. package/dist/components/ui/atoms/accordion.js +70 -74
  6. package/dist/components/ui/atoms/alert.js +2 -2
  7. package/dist/components/ui/atoms/avatar.js +5 -5
  8. package/dist/components/ui/atoms/badge.js +3 -3
  9. package/dist/components/ui/atoms/breadcrumb.js +5 -5
  10. package/dist/components/ui/atoms/button.js +3 -3
  11. package/dist/components/ui/atoms/card.js +1 -1
  12. package/dist/components/ui/atoms/chart.js +2153 -2154
  13. package/dist/components/ui/atoms/collapsible.js +1 -1
  14. package/dist/components/ui/atoms/command.js +15 -15
  15. package/dist/components/ui/atoms/dialog.js +2 -2
  16. package/dist/components/ui/atoms/dropdown-menu.js +367 -384
  17. package/dist/components/ui/atoms/form.d.ts +1 -1
  18. package/dist/components/ui/atoms/form.js +182 -199
  19. package/dist/components/ui/atoms/hover-card.js +40 -41
  20. package/dist/components/ui/atoms/input.js +1 -1
  21. package/dist/components/ui/atoms/label.js +18 -19
  22. package/dist/components/ui/atoms/popover.js +107 -110
  23. package/dist/components/ui/atoms/progress.js +3 -3
  24. package/dist/components/ui/atoms/resizable.js +8 -8
  25. package/dist/components/ui/atoms/scroll-area.js +82 -84
  26. package/dist/components/ui/atoms/select.js +393 -407
  27. package/dist/components/ui/atoms/separator.js +2 -2
  28. package/dist/components/ui/atoms/sheet.js +2 -2
  29. package/dist/components/ui/atoms/sidebar.js +17 -17
  30. package/dist/components/ui/atoms/skeleton.js +1 -1
  31. package/dist/components/ui/atoms/slider.js +213 -214
  32. package/dist/components/ui/atoms/sonner.js +28 -28
  33. package/dist/components/ui/atoms/switch.js +7 -7
  34. package/dist/components/ui/atoms/table.js +1 -1
  35. package/dist/components/ui/atoms/tabs.js +8 -8
  36. package/dist/components/ui/atoms/textarea.js +1 -1
  37. package/dist/components/ui/atoms/toggle.js +5 -5
  38. package/dist/components/ui/atoms/tooltip.js +103 -104
  39. package/dist/{createLucideIcon-B6fy1GTR.js → createLucideIcon-XRdN60yz.js} +4 -4
  40. package/dist/index-0ioNhtNM.js +10 -0
  41. package/dist/index-437EL2iq.js +52 -0
  42. package/dist/{index-CB1Wkg0G.js → index-5Bhkapwi.js} +2 -3
  43. package/dist/index-B695uy69.js +9 -0
  44. package/dist/{index-CHDs-SiB.js → index-BGQepRFJ.js} +1 -1
  45. package/dist/{index-BAhNQL1u.js → index-BvWMjxZ5.js} +22 -23
  46. package/dist/index-C8_QusYl.js +70 -0
  47. package/dist/index-CCKe-Mpx.js +6 -0
  48. package/dist/{index-DdnpnyX2.js → index-CQhYMnjT.js} +4 -4
  49. package/dist/{index-C9KW2H79.js → index-CpDnqHCm.js} +1 -1
  50. package/dist/{index-CxK6rt_N.js → index-CtSXVDca.js} +8 -8
  51. package/dist/{index-umR1UobZ.js → index-Cv867SGx.js} +1 -1
  52. package/dist/{index-CuMpq4Un.js → index-CxO14pcK.js} +2 -2
  53. package/dist/index-DFZozV_h.js +68 -0
  54. package/dist/index-DLfXSskr.js +255 -0
  55. package/dist/{index-D2uXV4lz.js → index-DMCYNwtg.js} +8 -8
  56. package/dist/index-DYHsXnnS.js +144 -0
  57. package/dist/{index-nluJZSbA.js → index-DfNPZZ8M.js} +1 -1
  58. package/dist/{index-Dy7YuPrV.js → index-f0YS5Ufh.js} +319 -321
  59. package/dist/lib/utils.js +1 -1
  60. package/dist/{utils-Dy2WjYNJ.js → utils-CRiPKpXj.js} +41 -42
  61. package/package.json +32 -26
  62. package/dist/index-CL4N9wMT.js +0 -259
  63. package/dist/index-DLeNytVF.js +0 -9
  64. package/dist/index-DYfkNB0n.js +0 -54
  65. package/dist/index-DuekHEmj.js +0 -6
  66. package/dist/index-DwYXX2sM.js +0 -13
  67. package/dist/index-QMp1pYFl.js +0 -145
  68. package/dist/index-UFb2E87s.js +0 -70
  69. package/dist/index-p7nYL7BU.js +0 -71
@@ -1,17 +1,17 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { c as l } from "../../../index-DLeNytVF.js";
4
- import { c as k } from "../../../index-UFb2E87s.js";
5
- import { u as F } from "../../../index-DYfkNB0n.js";
6
- import { u as I } from "../../../index-CB1Wkg0G.js";
7
- import { c as T, R as U, A as $, C as W, a as z } from "../../../index-Dy7YuPrV.js";
8
- import { P as B, D as G } from "../../../index-QMp1pYFl.js";
9
- import { P as O } from "../../../index-p7nYL7BU.js";
10
- import { P as K } from "../../../index-C9KW2H79.js";
11
- import { c as j } from "../../../utils-Dy2WjYNJ.js";
12
- var E, b = "HoverCard", [_, ve] = k(b, [
13
- T
14
- ]), w = T(), [V, x] = _(b), y = (e) => {
3
+ import { c as l } from "../../../index-B695uy69.js";
4
+ import { c as k } from "../../../index-DFZozV_h.js";
5
+ import { u as F } from "../../../index-437EL2iq.js";
6
+ import { u as I } from "../../../index-5Bhkapwi.js";
7
+ import { c as H, R as U, A as $, C as W, a as z } from "../../../index-f0YS5Ufh.js";
8
+ import { P as B, D as G } from "../../../index-DYHsXnnS.js";
9
+ import { P as T } from "../../../index-C8_QusYl.js";
10
+ import { P as K } from "../../../index-CpDnqHCm.js";
11
+ import { c as j } from "../../../utils-CRiPKpXj.js";
12
+ var x, S = "HoverCard", [O, ve] = k(S, [
13
+ H
14
+ ]), b = H(), [V, w] = O(S), _ = (e) => {
15
15
  const {
16
16
  __scopeHoverCard: o,
17
17
  children: t,
@@ -20,14 +20,14 @@ var E, b = "HoverCard", [_, ve] = k(b, [
20
20
  onOpenChange: c,
21
21
  openDelay: f = 700,
22
22
  closeDelay: v = 300
23
- } = e, d = w(o), m = n.useRef(0), u = n.useRef(0), C = n.useRef(!1), p = n.useRef(!1), [h, r] = F({
23
+ } = e, d = b(o), m = n.useRef(0), u = n.useRef(0), C = n.useRef(!1), p = n.useRef(!1), [h, r] = F({
24
24
  prop: s,
25
25
  defaultProp: i ?? !1,
26
26
  onChange: c,
27
- caller: b
27
+ caller: S
28
28
  }), P = n.useCallback(() => {
29
29
  clearTimeout(u.current), m.current = window.setTimeout(() => r(!0), f);
30
- }, [f, r]), g = n.useCallback(() => {
30
+ }, [f, r]), L = n.useCallback(() => {
31
31
  clearTimeout(m.current), !C.current && !p.current && (u.current = window.setTimeout(() => r(!1), v));
32
32
  }, [v, r]), M = n.useCallback(() => r(!1), [r]);
33
33
  return n.useEffect(() => () => {
@@ -39,7 +39,7 @@ var E, b = "HoverCard", [_, ve] = k(b, [
39
39
  open: h,
40
40
  onOpenChange: r,
41
41
  onOpen: P,
42
- onClose: g,
42
+ onClose: L,
43
43
  onDismiss: M,
44
44
  hasSelectionRef: C,
45
45
  isPointerDownOnContentRef: p,
@@ -47,18 +47,18 @@ var E, b = "HoverCard", [_, ve] = k(b, [
47
47
  }
48
48
  );
49
49
  };
50
- y.displayName = b;
51
- var N = "HoverCardTrigger", D = n.forwardRef(
50
+ _.displayName = S;
51
+ var y = "HoverCardTrigger", N = n.forwardRef(
52
52
  (e, o) => {
53
- const { __scopeHoverCard: t, ...s } = e, i = x(N, t), c = w(t);
53
+ const { __scopeHoverCard: t, ...s } = e, i = w(y, t), c = b(t);
54
54
  return /* @__PURE__ */ a($, { asChild: !0, ...c, children: /* @__PURE__ */ a(
55
55
  K.a,
56
56
  {
57
57
  "data-state": i.open ? "open" : "closed",
58
58
  ...s,
59
59
  ref: o,
60
- onPointerEnter: l(e.onPointerEnter, S(i.onOpen)),
61
- onPointerLeave: l(e.onPointerLeave, S(i.onClose)),
60
+ onPointerEnter: l(e.onPointerEnter, R(i.onOpen)),
61
+ onPointerLeave: l(e.onPointerLeave, R(i.onClose)),
62
62
  onFocus: l(e.onFocus, i.onOpen),
63
63
  onBlur: l(e.onBlur, i.onClose),
64
64
  onTouchStart: l(e.onTouchStart, (f) => f.preventDefault())
@@ -66,30 +66,30 @@ var N = "HoverCardTrigger", D = n.forwardRef(
66
66
  ) });
67
67
  }
68
68
  );
69
- D.displayName = N;
70
- var H = "HoverCardPortal", [q, J] = _(H, {
69
+ N.displayName = y;
70
+ var E = "HoverCardPortal", [q, J] = O(E, {
71
71
  forceMount: void 0
72
- }), A = (e) => {
73
- const { __scopeHoverCard: o, forceMount: t, children: s, container: i } = e, c = x(H, o);
74
- return /* @__PURE__ */ a(q, { scope: o, forceMount: t, children: /* @__PURE__ */ a(O, { present: t || c.open, children: /* @__PURE__ */ a(B, { asChild: !0, container: i, children: s }) }) });
72
+ }), D = (e) => {
73
+ const { __scopeHoverCard: o, forceMount: t, children: s, container: i } = e, c = w(E, o);
74
+ return /* @__PURE__ */ a(q, { scope: o, forceMount: t, children: /* @__PURE__ */ a(T, { present: t || c.open, children: /* @__PURE__ */ a(B, { asChild: !0, container: i, children: s }) }) });
75
75
  };
76
- A.displayName = H;
77
- var R = "HoverCardContent", L = n.forwardRef(
76
+ D.displayName = E;
77
+ var g = "HoverCardContent", A = n.forwardRef(
78
78
  (e, o) => {
79
- const t = J(R, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...i } = e, c = x(R, e.__scopeHoverCard);
80
- return /* @__PURE__ */ a(O, { present: s || c.open, children: /* @__PURE__ */ a(
79
+ const t = J(g, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...i } = e, c = w(g, e.__scopeHoverCard);
80
+ return /* @__PURE__ */ a(T, { present: s || c.open, children: /* @__PURE__ */ a(
81
81
  Q,
82
82
  {
83
83
  "data-state": c.open ? "open" : "closed",
84
84
  ...i,
85
- onPointerEnter: l(e.onPointerEnter, S(c.onOpen)),
86
- onPointerLeave: l(e.onPointerLeave, S(c.onClose)),
85
+ onPointerEnter: l(e.onPointerEnter, R(c.onOpen)),
86
+ onPointerLeave: l(e.onPointerLeave, R(c.onClose)),
87
87
  ref: o
88
88
  }
89
89
  ) });
90
90
  }
91
91
  );
92
- L.displayName = R;
92
+ A.displayName = g;
93
93
  var Q = n.forwardRef((e, o) => {
94
94
  const {
95
95
  __scopeHoverCard: t,
@@ -98,20 +98,19 @@ var Q = n.forwardRef((e, o) => {
98
98
  onFocusOutside: c,
99
99
  onInteractOutside: f,
100
100
  ...v
101
- } = e, d = x(R, t), m = w(t), u = n.useRef(null), C = I(o, u), [p, h] = n.useState(!1);
101
+ } = e, d = w(g, t), m = b(t), u = n.useRef(null), C = I(o, u), [p, h] = n.useState(!1);
102
102
  return n.useEffect(() => {
103
103
  if (p) {
104
104
  const r = document.body;
105
- return E = r.style.userSelect || r.style.webkitUserSelect, r.style.userSelect = "none", r.style.webkitUserSelect = "none", () => {
106
- r.style.userSelect = E, r.style.webkitUserSelect = E;
105
+ return x = r.style.userSelect || r.style.webkitUserSelect, r.style.userSelect = "none", r.style.webkitUserSelect = "none", () => {
106
+ r.style.userSelect = x, r.style.webkitUserSelect = x;
107
107
  };
108
108
  }
109
109
  }, [p]), n.useEffect(() => {
110
110
  if (u.current) {
111
111
  const r = () => {
112
112
  h(!1), d.isPointerDownOnContentRef.current = !1, setTimeout(() => {
113
- var g;
114
- ((g = document.getSelection()) == null ? void 0 : g.toString()) !== "" && (d.hasSelectionRef.current = !0);
113
+ document.getSelection()?.toString() !== "" && (d.hasSelectionRef.current = !0);
115
114
  });
116
115
  };
117
116
  return document.addEventListener("pointerup", r), () => {
@@ -158,12 +157,12 @@ var Q = n.forwardRef((e, o) => {
158
157
  );
159
158
  }), X = "HoverCardArrow", Y = n.forwardRef(
160
159
  (e, o) => {
161
- const { __scopeHoverCard: t, ...s } = e, i = w(t);
160
+ const { __scopeHoverCard: t, ...s } = e, i = b(t);
162
161
  return /* @__PURE__ */ a(z, { ...i, ...s, ref: o });
163
162
  }
164
163
  );
165
164
  Y.displayName = X;
166
- function S(e) {
165
+ function R(e) {
167
166
  return (o) => o.pointerType === "touch" ? void 0 : e();
168
167
  }
169
168
  function Z(e) {
@@ -173,7 +172,7 @@ function Z(e) {
173
172
  for (; t.nextNode(); ) o.push(t.currentNode);
174
173
  return o;
175
174
  }
176
- var ee = y, re = D, oe = A, te = L;
175
+ var ee = _, re = N, oe = D, te = A;
177
176
  function me({
178
177
  ...e
179
178
  }) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { c as n } from "../../../utils-Dy2WjYNJ.js";
2
+ import { c as n } from "../../../utils-CRiPKpXj.js";
3
3
  function a({ className: e, type: i, ...r }) {
4
4
  return /* @__PURE__ */ t(
5
5
  "input",
@@ -1,30 +1,29 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { P as n } from "../../../index-C9KW2H79.js";
4
- import { c as d } from "../../../utils-Dy2WjYNJ.js";
5
- var s = "Label", l = i.forwardRef((e, a) => /* @__PURE__ */ o(
6
- n.label,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { P as i } from "../../../index-CpDnqHCm.js";
4
+ import { c as n } from "../../../utils-CRiPKpXj.js";
5
+ var s = "Label", o = l.forwardRef((t, a) => /* @__PURE__ */ r(
6
+ i.label,
7
7
  {
8
- ...e,
8
+ ...t,
9
9
  ref: a,
10
- onMouseDown: (t) => {
11
- var r;
12
- t.target.closest("button, input, select, textarea") || ((r = e.onMouseDown) == null || r.call(e, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
10
+ onMouseDown: (e) => {
11
+ e.target.closest("button, input, select, textarea") || (t.onMouseDown?.(e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
13
12
  }
14
13
  }
15
14
  ));
16
- l.displayName = s;
17
- var u = l;
18
- function g({
19
- className: e,
15
+ o.displayName = s;
16
+ var d = o;
17
+ function c({
18
+ className: t,
20
19
  ...a
21
20
  }) {
22
- return /* @__PURE__ */ o(
23
- u,
21
+ return /* @__PURE__ */ r(
22
+ d,
24
23
  {
25
- className: d(
24
+ className: n(
26
25
  "flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",
27
- e
26
+ t
28
27
  ),
29
28
  "data-slot": "label",
30
29
  ...a
@@ -32,5 +31,5 @@ function g({
32
31
  );
33
32
  }
34
33
  export {
35
- g as Label
34
+ c as Label
36
35
  };
@@ -1,60 +1,60 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import { c as P } from "../../../index-DLeNytVF.js";
4
- import { u as O, c as L } from "../../../index-CB1Wkg0G.js";
5
- import { c as z } from "../../../index-UFb2E87s.js";
6
- import { P as G, D as H } from "../../../index-QMp1pYFl.js";
7
- import { h as K, R as j, u as U, F as V } from "../../../index-BAhNQL1u.js";
8
- import { u as W } from "../../../index-umR1UobZ.js";
9
- import { c as _, R as Z, A as x, C as q, a as B } from "../../../index-Dy7YuPrV.js";
10
- import { P as w } from "../../../index-p7nYL7BU.js";
11
- import { P as b } from "../../../index-C9KW2H79.js";
12
- import { u as J } from "../../../index-DYfkNB0n.js";
13
- import { c as Q } from "../../../utils-Dy2WjYNJ.js";
14
- var C = "Popover", [E, xe] = z(C, [
2
+ import * as i from "react";
3
+ import { c as P } from "../../../index-B695uy69.js";
4
+ import { u as O, c as L } from "../../../index-5Bhkapwi.js";
5
+ import { c as z } from "../../../index-DFZozV_h.js";
6
+ import { P as G, D as H } from "../../../index-DYHsXnnS.js";
7
+ import { h as K, R as j, u as U, F as V } from "../../../index-BvWMjxZ5.js";
8
+ import { u as W } from "../../../index-Cv867SGx.js";
9
+ import { c as _, R as Z, A as x, C as q, a as B } from "../../../index-f0YS5Ufh.js";
10
+ import { P as w } from "../../../index-C8_QusYl.js";
11
+ import { P as b } from "../../../index-CpDnqHCm.js";
12
+ import { u as J } from "../../../index-437EL2iq.js";
13
+ import { c as Q } from "../../../utils-CRiPKpXj.js";
14
+ var C = "Popover", [E, wo] = z(C, [
15
15
  _
16
- ]), m = _(), [X, d] = E(C), F = (e) => {
16
+ ]), m = _(), [X, u] = E(C), F = (o) => {
17
17
  const {
18
18
  __scopePopover: n,
19
- children: o,
19
+ children: e,
20
20
  open: a,
21
21
  defaultOpen: t,
22
22
  onOpenChange: r,
23
23
  modal: c = !1
24
- } = e, i = m(n), u = p.useRef(null), [l, g] = p.useState(!1), [h, f] = J({
24
+ } = o, p = m(n), f = i.useRef(null), [v, g] = i.useState(!1), [h, l] = J({
25
25
  prop: a,
26
26
  defaultProp: t ?? !1,
27
27
  onChange: r,
28
28
  caller: C
29
29
  });
30
- return /* @__PURE__ */ s(Z, { ...i, children: /* @__PURE__ */ s(
30
+ return /* @__PURE__ */ s(Z, { ...p, children: /* @__PURE__ */ s(
31
31
  X,
32
32
  {
33
33
  scope: n,
34
34
  contentId: W(),
35
- triggerRef: u,
35
+ triggerRef: f,
36
36
  open: h,
37
- onOpenChange: f,
38
- onOpenToggle: p.useCallback(() => f((R) => !R), [f]),
39
- hasCustomAnchor: l,
40
- onCustomAnchorAdd: p.useCallback(() => g(!0), []),
41
- onCustomAnchorRemove: p.useCallback(() => g(!1), []),
37
+ onOpenChange: l,
38
+ onOpenToggle: i.useCallback(() => l((R) => !R), [l]),
39
+ hasCustomAnchor: v,
40
+ onCustomAnchorAdd: i.useCallback(() => g(!0), []),
41
+ onCustomAnchorRemove: i.useCallback(() => g(!1), []),
42
42
  modal: c,
43
- children: o
43
+ children: e
44
44
  }
45
45
  ) });
46
46
  };
47
47
  F.displayName = C;
48
- var N = "PopoverAnchor", S = p.forwardRef(
49
- (e, n) => {
50
- const { __scopePopover: o, ...a } = e, t = d(N, o), r = m(o), { onCustomAnchorAdd: c, onCustomAnchorRemove: i } = t;
51
- return p.useEffect(() => (c(), () => i()), [c, i]), /* @__PURE__ */ s(x, { ...r, ...a, ref: n });
48
+ var N = "PopoverAnchor", S = i.forwardRef(
49
+ (o, n) => {
50
+ const { __scopePopover: e, ...a } = o, t = u(N, e), r = m(e), { onCustomAnchorAdd: c, onCustomAnchorRemove: p } = t;
51
+ return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s(x, { ...r, ...a, ref: n });
52
52
  }
53
53
  );
54
54
  S.displayName = N;
55
- var y = "PopoverTrigger", D = p.forwardRef(
56
- (e, n) => {
57
- const { __scopePopover: o, ...a } = e, t = d(y, o), r = m(o), c = O(n, t.triggerRef), i = /* @__PURE__ */ s(
55
+ var y = "PopoverTrigger", D = i.forwardRef(
56
+ (o, n) => {
57
+ const { __scopePopover: e, ...a } = o, t = u(y, e), r = m(e), c = O(n, t.triggerRef), p = /* @__PURE__ */ s(
58
58
  b.button,
59
59
  {
60
60
  type: "button",
@@ -64,97 +64,94 @@ var y = "PopoverTrigger", D = p.forwardRef(
64
64
  "data-state": $(t.open),
65
65
  ...a,
66
66
  ref: c,
67
- onClick: P(e.onClick, t.onOpenToggle)
67
+ onClick: P(o.onClick, t.onOpenToggle)
68
68
  }
69
69
  );
70
- return t.hasCustomAnchor ? i : /* @__PURE__ */ s(x, { asChild: !0, ...r, children: i });
70
+ return t.hasCustomAnchor ? p : /* @__PURE__ */ s(x, { asChild: !0, ...r, children: p });
71
71
  }
72
72
  );
73
73
  D.displayName = y;
74
- var A = "PopoverPortal", [Y, ee] = E(A, {
74
+ var A = "PopoverPortal", [Y, oo] = E(A, {
75
75
  forceMount: void 0
76
- }), M = (e) => {
77
- const { __scopePopover: n, forceMount: o, children: a, container: t } = e, r = d(A, n);
78
- return /* @__PURE__ */ s(Y, { scope: n, forceMount: o, children: /* @__PURE__ */ s(w, { present: o || r.open, children: /* @__PURE__ */ s(G, { asChild: !0, container: t, children: a }) }) });
76
+ }), M = (o) => {
77
+ const { __scopePopover: n, forceMount: e, children: a, container: t } = o, r = u(A, n);
78
+ return /* @__PURE__ */ s(Y, { scope: n, forceMount: e, children: /* @__PURE__ */ s(w, { present: e || r.open, children: /* @__PURE__ */ s(G, { asChild: !0, container: t, children: a }) }) });
79
79
  };
80
80
  M.displayName = A;
81
- var v = "PopoverContent", T = p.forwardRef(
82
- (e, n) => {
83
- const o = ee(v, e.__scopePopover), { forceMount: a = o.forceMount, ...t } = e, r = d(v, e.__scopePopover);
84
- return /* @__PURE__ */ s(w, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s(te, { ...t, ref: n }) : /* @__PURE__ */ s(re, { ...t, ref: n }) });
81
+ var d = "PopoverContent", T = i.forwardRef(
82
+ (o, n) => {
83
+ const e = oo(d, o.__scopePopover), { forceMount: a = e.forceMount, ...t } = o, r = u(d, o.__scopePopover);
84
+ return /* @__PURE__ */ s(w, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s(to, { ...t, ref: n }) : /* @__PURE__ */ s(ro, { ...t, ref: n }) });
85
85
  }
86
86
  );
87
- T.displayName = v;
88
- var oe = L("PopoverContent.RemoveScroll"), te = p.forwardRef(
89
- (e, n) => {
90
- const o = d(v, e.__scopePopover), a = p.useRef(null), t = O(n, a), r = p.useRef(!1);
91
- return p.useEffect(() => {
87
+ T.displayName = d;
88
+ var eo = L("PopoverContent.RemoveScroll"), to = i.forwardRef(
89
+ (o, n) => {
90
+ const e = u(d, o.__scopePopover), a = i.useRef(null), t = O(n, a), r = i.useRef(!1);
91
+ return i.useEffect(() => {
92
92
  const c = a.current;
93
93
  if (c) return K(c);
94
- }, []), /* @__PURE__ */ s(j, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
94
+ }, []), /* @__PURE__ */ s(j, { as: eo, allowPinchZoom: !0, children: /* @__PURE__ */ s(
95
95
  k,
96
96
  {
97
- ...e,
97
+ ...o,
98
98
  ref: t,
99
- trapFocus: o.open,
99
+ trapFocus: e.open,
100
100
  disableOutsidePointerEvents: !0,
101
- onCloseAutoFocus: P(e.onCloseAutoFocus, (c) => {
102
- var i;
103
- c.preventDefault(), r.current || (i = o.triggerRef.current) == null || i.focus();
101
+ onCloseAutoFocus: P(o.onCloseAutoFocus, (c) => {
102
+ c.preventDefault(), r.current || e.triggerRef.current?.focus();
104
103
  }),
105
104
  onPointerDownOutside: P(
106
- e.onPointerDownOutside,
105
+ o.onPointerDownOutside,
107
106
  (c) => {
108
- const i = c.detail.originalEvent, u = i.button === 0 && i.ctrlKey === !0, l = i.button === 2 || u;
109
- r.current = l;
107
+ const p = c.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, v = p.button === 2 || f;
108
+ r.current = v;
110
109
  },
111
110
  { checkForDefaultPrevented: !1 }
112
111
  ),
113
112
  onFocusOutside: P(
114
- e.onFocusOutside,
113
+ o.onFocusOutside,
115
114
  (c) => c.preventDefault(),
116
115
  { checkForDefaultPrevented: !1 }
117
116
  )
118
117
  }
119
118
  ) });
120
119
  }
121
- ), re = p.forwardRef(
122
- (e, n) => {
123
- const o = d(v, e.__scopePopover), a = p.useRef(!1), t = p.useRef(!1);
120
+ ), ro = i.forwardRef(
121
+ (o, n) => {
122
+ const e = u(d, o.__scopePopover), a = i.useRef(!1), t = i.useRef(!1);
124
123
  return /* @__PURE__ */ s(
125
124
  k,
126
125
  {
127
- ...e,
126
+ ...o,
128
127
  ref: n,
129
128
  trapFocus: !1,
130
129
  disableOutsidePointerEvents: !1,
131
130
  onCloseAutoFocus: (r) => {
132
- var c, i;
133
- (c = e.onCloseAutoFocus) == null || c.call(e, r), r.defaultPrevented || (a.current || (i = o.triggerRef.current) == null || i.focus(), r.preventDefault()), a.current = !1, t.current = !1;
131
+ o.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || e.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, t.current = !1;
134
132
  },
135
133
  onInteractOutside: (r) => {
136
- var u, l;
137
- (u = e.onInteractOutside) == null || u.call(e, r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (t.current = !0));
134
+ o.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (t.current = !0));
138
135
  const c = r.target;
139
- ((l = o.triggerRef.current) == null ? void 0 : l.contains(c)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && t.current && r.preventDefault();
136
+ e.triggerRef.current?.contains(c) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && t.current && r.preventDefault();
140
137
  }
141
138
  }
142
139
  );
143
140
  }
144
- ), k = p.forwardRef(
145
- (e, n) => {
141
+ ), k = i.forwardRef(
142
+ (o, n) => {
146
143
  const {
147
- __scopePopover: o,
144
+ __scopePopover: e,
148
145
  trapFocus: a,
149
146
  onOpenAutoFocus: t,
150
147
  onCloseAutoFocus: r,
151
148
  disableOutsidePointerEvents: c,
152
- onEscapeKeyDown: i,
153
- onPointerDownOutside: u,
154
- onFocusOutside: l,
149
+ onEscapeKeyDown: p,
150
+ onPointerDownOutside: f,
151
+ onFocusOutside: v,
155
152
  onInteractOutside: g,
156
153
  ...h
157
- } = e, f = d(v, o), R = m(o);
154
+ } = o, l = u(d, e), R = m(e);
158
155
  return U(), /* @__PURE__ */ s(
159
156
  V,
160
157
  {
@@ -169,16 +166,16 @@ var oe = L("PopoverContent.RemoveScroll"), te = p.forwardRef(
169
166
  asChild: !0,
170
167
  disableOutsidePointerEvents: c,
171
168
  onInteractOutside: g,
172
- onEscapeKeyDown: i,
173
- onPointerDownOutside: u,
174
- onFocusOutside: l,
175
- onDismiss: () => f.onOpenChange(!1),
169
+ onEscapeKeyDown: p,
170
+ onPointerDownOutside: f,
171
+ onFocusOutside: v,
172
+ onDismiss: () => l.onOpenChange(!1),
176
173
  children: /* @__PURE__ */ s(
177
174
  q,
178
175
  {
179
- "data-state": $(f.open),
176
+ "data-state": $(l.open),
180
177
  role: "dialog",
181
- id: f.contentId,
178
+ id: l.contentId,
182
179
  ...R,
183
180
  ...h,
184
181
  ref: n,
@@ -197,70 +194,70 @@ var oe = L("PopoverContent.RemoveScroll"), te = p.forwardRef(
197
194
  }
198
195
  );
199
196
  }
200
- ), I = "PopoverClose", ne = p.forwardRef(
201
- (e, n) => {
202
- const { __scopePopover: o, ...a } = e, t = d(I, o);
197
+ ), I = "PopoverClose", no = i.forwardRef(
198
+ (o, n) => {
199
+ const { __scopePopover: e, ...a } = o, t = u(I, e);
203
200
  return /* @__PURE__ */ s(
204
201
  b.button,
205
202
  {
206
203
  type: "button",
207
204
  ...a,
208
205
  ref: n,
209
- onClick: P(e.onClick, () => t.onOpenChange(!1))
206
+ onClick: P(o.onClick, () => t.onOpenChange(!1))
210
207
  }
211
208
  );
212
209
  }
213
210
  );
214
- ne.displayName = I;
215
- var ae = "PopoverArrow", se = p.forwardRef(
216
- (e, n) => {
217
- const { __scopePopover: o, ...a } = e, t = m(o);
211
+ no.displayName = I;
212
+ var ao = "PopoverArrow", so = i.forwardRef(
213
+ (o, n) => {
214
+ const { __scopePopover: e, ...a } = o, t = m(e);
218
215
  return /* @__PURE__ */ s(B, { ...t, ...a, ref: n });
219
216
  }
220
217
  );
221
- se.displayName = ae;
222
- function $(e) {
223
- return e ? "open" : "closed";
218
+ so.displayName = ao;
219
+ function $(o) {
220
+ return o ? "open" : "closed";
224
221
  }
225
- var ce = F, ie = S, pe = D, ue = M, le = T;
226
- function we({
227
- ...e
222
+ var co = F, io = S, po = D, uo = M, lo = T;
223
+ function bo({
224
+ ...o
228
225
  }) {
229
- return /* @__PURE__ */ s(ce, { "data-slot": "popover", ...e });
226
+ return /* @__PURE__ */ s(co, { "data-slot": "popover", ...o });
230
227
  }
231
- function be({
232
- ...e
228
+ function Eo({
229
+ ...o
233
230
  }) {
234
- return /* @__PURE__ */ s(pe, { "data-slot": "popover-trigger", ...e });
231
+ return /* @__PURE__ */ s(po, { "data-slot": "popover-trigger", ...o });
235
232
  }
236
- function Ee({
237
- className: e,
233
+ function Fo({
234
+ className: o,
238
235
  align: n = "center",
239
- sideOffset: o = 4,
236
+ sideOffset: e = 4,
240
237
  ...a
241
238
  }) {
242
- return /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(
243
- le,
239
+ return /* @__PURE__ */ s(uo, { children: /* @__PURE__ */ s(
240
+ lo,
244
241
  {
245
242
  align: n,
246
243
  className: Q(
247
244
  "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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",
248
- e
245
+ o
249
246
  ),
250
247
  "data-slot": "popover-content",
251
- sideOffset: o,
248
+ sideOffset: e,
252
249
  ...a
253
250
  }
254
251
  ) });
255
252
  }
256
- function Fe({
257
- ...e
253
+ function No({
254
+ ...o
258
255
  }) {
259
- return /* @__PURE__ */ s(ie, { "data-slot": "popover-anchor", ...e });
256
+ return /* @__PURE__ */ s(io, { "data-slot": "popover-anchor", ...o });
260
257
  }
261
258
  export {
262
- we as Popover,
263
- Fe as PopoverAnchor,
264
- Ee as PopoverContent,
265
- be as PopoverTrigger
259
+ bo as Popover,
260
+ No as PopoverAnchor,
261
+ Fo as PopoverContent,
262
+ Eo as PopoverTrigger
266
263
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
- import { c as $ } from "../../../index-UFb2E87s.js";
4
- import { P as v } from "../../../index-C9KW2H79.js";
5
- import { c as I } from "../../../utils-Dy2WjYNJ.js";
3
+ import { c as $ } from "../../../index-DFZozV_h.js";
4
+ import { P as v } from "../../../index-CpDnqHCm.js";
5
+ import { c as I } from "../../../utils-CRiPKpXj.js";
6
6
  var u = "Progress", d = 100, [y, O] = $(u), [R, _] = y(u), f = m.forwardRef(
7
7
  (r, e) => {
8
8
  const {
@@ -1,10 +1,10 @@
1
1
  import { jsx as ve } from "react/jsx-runtime";
2
2
  import * as Rn from "react";
3
3
  import { createContext as Ln, forwardRef as en, createElement as de, useContext as nn, useRef as F, useLayoutEffect as An, useImperativeHandle as tn, useState as ce, useEffect as te, useCallback as B, useMemo as kn } from "react";
4
- import { c as rn } from "../../../utils-Dy2WjYNJ.js";
5
- import { c as Mn } from "../../../createLucideIcon-B6fy1GTR.js";
4
+ import { c as rn } from "../../../utils-CRiPKpXj.js";
5
+ import { c as Mn } from "../../../createLucideIcon-XRdN60yz.js";
6
6
  /**
7
- * @license lucide-react v0.522.0 - ISC
7
+ * @license lucide-react v0.525.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
@@ -1437,7 +1437,7 @@ function In({
1437
1437
  G(() => ie);
1438
1438
  }
1439
1439
  }, [t, V, C]);
1440
- const pe = (I = r == null ? void 0 : r.coarse) !== null && I !== void 0 ? I : 15, ge = (w = r == null ? void 0 : r.fine) !== null && w !== void 0 ? w : 5;
1440
+ const pe = (I = r?.coarse) !== null && I !== void 0 ? I : 15, ge = (w = r?.fine) !== null && w !== void 0 ? w : 5;
1441
1441
  return te(() => {
1442
1442
  if (t || H == null)
1443
1443
  return;
@@ -1459,7 +1459,7 @@ function In({
1459
1459
  onDragging: d,
1460
1460
  onPointerDown: h
1461
1461
  } = R.current;
1462
- d == null || d(!0), h == null || h();
1462
+ d?.(!0), h?.();
1463
1463
  break;
1464
1464
  }
1465
1465
  case "move": {
@@ -1476,7 +1476,7 @@ function In({
1476
1476
  onDragging: h,
1477
1477
  onPointerUp: E
1478
1478
  } = R.current;
1479
- h == null || h(!1), E == null || E(), me || d == null || d();
1479
+ h?.(!1), E?.(), me || d?.();
1480
1480
  break;
1481
1481
  }
1482
1482
  }
@@ -1492,10 +1492,10 @@ function In({
1492
1492
  className: n,
1493
1493
  id: i,
1494
1494
  onBlur: () => {
1495
- $(!1), o == null || o();
1495
+ $(!1), o?.();
1496
1496
  },
1497
1497
  onFocus: () => {
1498
- $(!0), s == null || s();
1498
+ $(!0), s?.();
1499
1499
  },
1500
1500
  ref: S,
1501
1501
  role: "separator",