@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.
- package/dist/assets/index.css +1 -1
- package/dist/{check-CxcShTlQ.js → check-B5h1DvDs.js} +2 -2
- package/dist/{chevron-down-D_a-ccxi.js → chevron-down-DmZMdOiC.js} +2 -2
- package/dist/{chevron-right-DriXIqe5.js → chevron-right-BYYHEJjK.js} +2 -2
- package/dist/components/ui/atoms/accordion.js +70 -74
- package/dist/components/ui/atoms/alert.js +2 -2
- package/dist/components/ui/atoms/avatar.js +5 -5
- package/dist/components/ui/atoms/badge.js +3 -3
- package/dist/components/ui/atoms/breadcrumb.js +5 -5
- package/dist/components/ui/atoms/button.js +3 -3
- package/dist/components/ui/atoms/card.js +1 -1
- package/dist/components/ui/atoms/chart.js +2153 -2154
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +15 -15
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +367 -384
- package/dist/components/ui/atoms/form.d.ts +1 -1
- package/dist/components/ui/atoms/form.js +182 -199
- package/dist/components/ui/atoms/hover-card.js +40 -41
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/label.js +18 -19
- package/dist/components/ui/atoms/popover.js +107 -110
- package/dist/components/ui/atoms/progress.js +3 -3
- package/dist/components/ui/atoms/resizable.js +8 -8
- package/dist/components/ui/atoms/scroll-area.js +82 -84
- package/dist/components/ui/atoms/select.js +393 -407
- package/dist/components/ui/atoms/separator.js +2 -2
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +17 -17
- package/dist/components/ui/atoms/skeleton.js +1 -1
- package/dist/components/ui/atoms/slider.js +213 -214
- package/dist/components/ui/atoms/sonner.js +28 -28
- package/dist/components/ui/atoms/switch.js +7 -7
- package/dist/components/ui/atoms/table.js +1 -1
- package/dist/components/ui/atoms/tabs.js +8 -8
- package/dist/components/ui/atoms/textarea.js +1 -1
- package/dist/components/ui/atoms/toggle.js +5 -5
- package/dist/components/ui/atoms/tooltip.js +103 -104
- package/dist/{createLucideIcon-B6fy1GTR.js → createLucideIcon-XRdN60yz.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-437EL2iq.js +52 -0
- package/dist/{index-CB1Wkg0G.js → index-5Bhkapwi.js} +2 -3
- package/dist/index-B695uy69.js +9 -0
- package/dist/{index-CHDs-SiB.js → index-BGQepRFJ.js} +1 -1
- package/dist/{index-BAhNQL1u.js → index-BvWMjxZ5.js} +22 -23
- package/dist/index-C8_QusYl.js +70 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/{index-DdnpnyX2.js → index-CQhYMnjT.js} +4 -4
- package/dist/{index-C9KW2H79.js → index-CpDnqHCm.js} +1 -1
- package/dist/{index-CxK6rt_N.js → index-CtSXVDca.js} +8 -8
- package/dist/{index-umR1UobZ.js → index-Cv867SGx.js} +1 -1
- package/dist/{index-CuMpq4Un.js → index-CxO14pcK.js} +2 -2
- package/dist/index-DFZozV_h.js +68 -0
- package/dist/index-DLfXSskr.js +255 -0
- package/dist/{index-D2uXV4lz.js → index-DMCYNwtg.js} +8 -8
- package/dist/index-DYHsXnnS.js +144 -0
- package/dist/{index-nluJZSbA.js → index-DfNPZZ8M.js} +1 -1
- package/dist/{index-Dy7YuPrV.js → index-f0YS5Ufh.js} +319 -321
- package/dist/lib/utils.js +1 -1
- package/dist/{utils-Dy2WjYNJ.js → utils-CRiPKpXj.js} +41 -42
- package/package.json +32 -26
- package/dist/index-CL4N9wMT.js +0 -259
- package/dist/index-DLeNytVF.js +0 -9
- package/dist/index-DYfkNB0n.js +0 -54
- package/dist/index-DuekHEmj.js +0 -6
- package/dist/index-DwYXX2sM.js +0 -13
- package/dist/index-QMp1pYFl.js +0 -145
- package/dist/index-UFb2E87s.js +0 -70
- 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-
|
|
4
|
-
import { c as k } from "../../../index-
|
|
5
|
-
import { u as F } from "../../../index-
|
|
6
|
-
import { u as I } from "../../../index-
|
|
7
|
-
import { c as
|
|
8
|
-
import { P as B, D as G } from "../../../index-
|
|
9
|
-
import { P as
|
|
10
|
-
import { P as K } from "../../../index-
|
|
11
|
-
import { c as j } from "../../../utils-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
]),
|
|
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 =
|
|
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:
|
|
27
|
+
caller: S
|
|
28
28
|
}), P = n.useCallback(() => {
|
|
29
29
|
clearTimeout(u.current), m.current = window.setTimeout(() => r(!0), f);
|
|
30
|
-
}, [f, r]),
|
|
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:
|
|
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
|
-
|
|
51
|
-
var
|
|
50
|
+
_.displayName = S;
|
|
51
|
+
var y = "HoverCardTrigger", N = n.forwardRef(
|
|
52
52
|
(e, o) => {
|
|
53
|
-
const { __scopeHoverCard: t, ...s } = e, i =
|
|
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,
|
|
61
|
-
onPointerLeave: l(e.onPointerLeave,
|
|
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
|
-
|
|
70
|
-
var
|
|
69
|
+
N.displayName = y;
|
|
70
|
+
var E = "HoverCardPortal", [q, J] = O(E, {
|
|
71
71
|
forceMount: void 0
|
|
72
|
-
}),
|
|
73
|
-
const { __scopeHoverCard: o, forceMount: t, children: s, container: i } = e, c =
|
|
74
|
-
return /* @__PURE__ */ a(q, { scope: o, forceMount: t, children: /* @__PURE__ */ a(
|
|
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
|
-
|
|
77
|
-
var
|
|
76
|
+
D.displayName = E;
|
|
77
|
+
var g = "HoverCardContent", A = n.forwardRef(
|
|
78
78
|
(e, o) => {
|
|
79
|
-
const t = J(
|
|
80
|
-
return /* @__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,
|
|
86
|
-
onPointerLeave: l(e.onPointerLeave,
|
|
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
|
-
|
|
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 =
|
|
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
|
|
106
|
-
r.style.userSelect =
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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 =
|
|
175
|
+
var ee = _, re = N, oe = D, te = A;
|
|
177
176
|
function me({
|
|
178
177
|
...e
|
|
179
178
|
}) {
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { P as
|
|
4
|
-
import { c as
|
|
5
|
-
var s = "Label",
|
|
6
|
-
|
|
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
|
-
...
|
|
8
|
+
...t,
|
|
9
9
|
ref: a,
|
|
10
|
-
onMouseDown: (
|
|
11
|
-
|
|
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
|
-
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
className:
|
|
15
|
+
o.displayName = s;
|
|
16
|
+
var d = o;
|
|
17
|
+
function c({
|
|
18
|
+
className: t,
|
|
20
19
|
...a
|
|
21
20
|
}) {
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
|
|
21
|
+
return /* @__PURE__ */ r(
|
|
22
|
+
d,
|
|
24
23
|
{
|
|
25
|
-
className:
|
|
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
|
-
|
|
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
|
-
|
|
34
|
+
c as Label
|
|
36
35
|
};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as P } from "../../../index-
|
|
4
|
-
import { u as O, c as L } from "../../../index-
|
|
5
|
-
import { c as z } from "../../../index-
|
|
6
|
-
import { P as G, D as H } from "../../../index-
|
|
7
|
-
import { h as K, R as j, u as U, F as V } from "../../../index-
|
|
8
|
-
import { u as W } from "../../../index-
|
|
9
|
-
import { c as _, R as Z, A as x, C as q, a as B } from "../../../index-
|
|
10
|
-
import { P as w } from "../../../index-
|
|
11
|
-
import { P as b } from "../../../index-
|
|
12
|
-
import { u as J } from "../../../index-
|
|
13
|
-
import { c as Q } from "../../../utils-
|
|
14
|
-
var C = "Popover", [E,
|
|
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,
|
|
16
|
+
]), m = _(), [X, u] = E(C), F = (o) => {
|
|
17
17
|
const {
|
|
18
18
|
__scopePopover: n,
|
|
19
|
-
children:
|
|
19
|
+
children: e,
|
|
20
20
|
open: a,
|
|
21
21
|
defaultOpen: t,
|
|
22
22
|
onOpenChange: r,
|
|
23
23
|
modal: c = !1
|
|
24
|
-
} =
|
|
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, { ...
|
|
30
|
+
return /* @__PURE__ */ s(Z, { ...p, children: /* @__PURE__ */ s(
|
|
31
31
|
X,
|
|
32
32
|
{
|
|
33
33
|
scope: n,
|
|
34
34
|
contentId: W(),
|
|
35
|
-
triggerRef:
|
|
35
|
+
triggerRef: f,
|
|
36
36
|
open: h,
|
|
37
|
-
onOpenChange:
|
|
38
|
-
onOpenToggle:
|
|
39
|
-
hasCustomAnchor:
|
|
40
|
-
onCustomAnchorAdd:
|
|
41
|
-
onCustomAnchorRemove:
|
|
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:
|
|
43
|
+
children: e
|
|
44
44
|
}
|
|
45
45
|
) });
|
|
46
46
|
};
|
|
47
47
|
F.displayName = C;
|
|
48
|
-
var N = "PopoverAnchor", S =
|
|
49
|
-
(
|
|
50
|
-
const { __scopePopover:
|
|
51
|
-
return
|
|
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 =
|
|
56
|
-
(
|
|
57
|
-
const { __scopePopover:
|
|
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(
|
|
67
|
+
onClick: P(o.onClick, t.onOpenToggle)
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
return t.hasCustomAnchor ?
|
|
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,
|
|
74
|
+
var A = "PopoverPortal", [Y, oo] = E(A, {
|
|
75
75
|
forceMount: void 0
|
|
76
|
-
}), M = (
|
|
77
|
-
const { __scopePopover: n, forceMount:
|
|
78
|
-
return /* @__PURE__ */ s(Y, { scope: n, forceMount:
|
|
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
|
|
82
|
-
(
|
|
83
|
-
const
|
|
84
|
-
return /* @__PURE__ */ s(w, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s(
|
|
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 =
|
|
88
|
-
var
|
|
89
|
-
(
|
|
90
|
-
const
|
|
91
|
-
return
|
|
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:
|
|
94
|
+
}, []), /* @__PURE__ */ s(j, { as: eo, allowPinchZoom: !0, children: /* @__PURE__ */ s(
|
|
95
95
|
k,
|
|
96
96
|
{
|
|
97
|
-
...
|
|
97
|
+
...o,
|
|
98
98
|
ref: t,
|
|
99
|
-
trapFocus:
|
|
99
|
+
trapFocus: e.open,
|
|
100
100
|
disableOutsidePointerEvents: !0,
|
|
101
|
-
onCloseAutoFocus: P(
|
|
102
|
-
|
|
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
|
-
|
|
105
|
+
o.onPointerDownOutside,
|
|
107
106
|
(c) => {
|
|
108
|
-
const
|
|
109
|
-
r.current =
|
|
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
|
-
|
|
113
|
+
o.onFocusOutside,
|
|
115
114
|
(c) => c.preventDefault(),
|
|
116
115
|
{ checkForDefaultPrevented: !1 }
|
|
117
116
|
)
|
|
118
117
|
}
|
|
119
118
|
) });
|
|
120
119
|
}
|
|
121
|
-
),
|
|
122
|
-
(
|
|
123
|
-
const
|
|
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
|
-
...
|
|
126
|
+
...o,
|
|
128
127
|
ref: n,
|
|
129
128
|
trapFocus: !1,
|
|
130
129
|
disableOutsidePointerEvents: !1,
|
|
131
130
|
onCloseAutoFocus: (r) => {
|
|
132
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
145
|
-
(
|
|
141
|
+
), k = i.forwardRef(
|
|
142
|
+
(o, n) => {
|
|
146
143
|
const {
|
|
147
|
-
__scopePopover:
|
|
144
|
+
__scopePopover: e,
|
|
148
145
|
trapFocus: a,
|
|
149
146
|
onOpenAutoFocus: t,
|
|
150
147
|
onCloseAutoFocus: r,
|
|
151
148
|
disableOutsidePointerEvents: c,
|
|
152
|
-
onEscapeKeyDown:
|
|
153
|
-
onPointerDownOutside:
|
|
154
|
-
onFocusOutside:
|
|
149
|
+
onEscapeKeyDown: p,
|
|
150
|
+
onPointerDownOutside: f,
|
|
151
|
+
onFocusOutside: v,
|
|
155
152
|
onInteractOutside: g,
|
|
156
153
|
...h
|
|
157
|
-
} =
|
|
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:
|
|
173
|
-
onPointerDownOutside:
|
|
174
|
-
onFocusOutside:
|
|
175
|
-
onDismiss: () =>
|
|
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": $(
|
|
176
|
+
"data-state": $(l.open),
|
|
180
177
|
role: "dialog",
|
|
181
|
-
id:
|
|
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",
|
|
201
|
-
(
|
|
202
|
-
const { __scopePopover:
|
|
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(
|
|
206
|
+
onClick: P(o.onClick, () => t.onOpenChange(!1))
|
|
210
207
|
}
|
|
211
208
|
);
|
|
212
209
|
}
|
|
213
210
|
);
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
(
|
|
217
|
-
const { __scopePopover:
|
|
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
|
-
|
|
222
|
-
function $(
|
|
223
|
-
return
|
|
218
|
+
so.displayName = ao;
|
|
219
|
+
function $(o) {
|
|
220
|
+
return o ? "open" : "closed";
|
|
224
221
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
...
|
|
222
|
+
var co = F, io = S, po = D, uo = M, lo = T;
|
|
223
|
+
function bo({
|
|
224
|
+
...o
|
|
228
225
|
}) {
|
|
229
|
-
return /* @__PURE__ */ s(
|
|
226
|
+
return /* @__PURE__ */ s(co, { "data-slot": "popover", ...o });
|
|
230
227
|
}
|
|
231
|
-
function
|
|
232
|
-
...
|
|
228
|
+
function Eo({
|
|
229
|
+
...o
|
|
233
230
|
}) {
|
|
234
|
-
return /* @__PURE__ */ s(
|
|
231
|
+
return /* @__PURE__ */ s(po, { "data-slot": "popover-trigger", ...o });
|
|
235
232
|
}
|
|
236
|
-
function
|
|
237
|
-
className:
|
|
233
|
+
function Fo({
|
|
234
|
+
className: o,
|
|
238
235
|
align: n = "center",
|
|
239
|
-
sideOffset:
|
|
236
|
+
sideOffset: e = 4,
|
|
240
237
|
...a
|
|
241
238
|
}) {
|
|
242
|
-
return /* @__PURE__ */ s(
|
|
243
|
-
|
|
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
|
-
|
|
245
|
+
o
|
|
249
246
|
),
|
|
250
247
|
"data-slot": "popover-content",
|
|
251
|
-
sideOffset:
|
|
248
|
+
sideOffset: e,
|
|
252
249
|
...a
|
|
253
250
|
}
|
|
254
251
|
) });
|
|
255
252
|
}
|
|
256
|
-
function
|
|
257
|
-
...
|
|
253
|
+
function No({
|
|
254
|
+
...o
|
|
258
255
|
}) {
|
|
259
|
-
return /* @__PURE__ */ s(
|
|
256
|
+
return /* @__PURE__ */ s(io, { "data-slot": "popover-anchor", ...o });
|
|
260
257
|
}
|
|
261
258
|
export {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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-
|
|
4
|
-
import { P as v } from "../../../index-
|
|
5
|
-
import { c as I } from "../../../utils-
|
|
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-
|
|
5
|
-
import { c as Mn } from "../../../createLucideIcon-
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1495
|
+
$(!1), o?.();
|
|
1496
1496
|
},
|
|
1497
1497
|
onFocus: () => {
|
|
1498
|
-
$(!0), s
|
|
1498
|
+
$(!0), s?.();
|
|
1499
1499
|
},
|
|
1500
1500
|
ref: S,
|
|
1501
1501
|
role: "separator",
|