saha-ui 1.22.5 → 1.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DebugOverlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DebugOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DebugOverlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACrE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAMD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyZpD,CAAC"}
|
|
@@ -1,51 +1,63 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as v, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { useState as l, useRef as w, useEffect as c } from "react";
|
|
3
|
+
import { createPortal as T } from "react-dom";
|
|
4
|
+
import { useDragDropContext as L } from "./DragDropContext.js";
|
|
5
|
+
import { cn as D } from "../../lib/utils.js";
|
|
6
|
+
import { ChevronUp as Y, ChevronDown as M } from "lucide-react";
|
|
7
|
+
const U = ({
|
|
8
|
+
enabled: x = !0,
|
|
9
|
+
position: O = "top-right",
|
|
10
|
+
showCollisionRects: q = !0,
|
|
10
11
|
showDragPath: g = !0,
|
|
11
|
-
showPerformanceMetrics:
|
|
12
|
+
showPerformanceMetrics: y = !0
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
activeId:
|
|
15
|
-
activeItem:
|
|
16
|
-
activeIndex:
|
|
17
|
-
sourceContainerId:
|
|
18
|
-
dragPosition:
|
|
19
|
-
isDragging:
|
|
20
|
-
selectionState:
|
|
21
|
-
historyState:
|
|
22
|
-
} = j;
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
const R = L(), [m, S] = l(!0), [p, N] = l([]), [b, k] = l(0), [P, A] = l(0), o = w({ frames: 0, lastTime: performance.now() }), C = w(0), {
|
|
15
|
+
activeId: F,
|
|
16
|
+
activeItem: I,
|
|
17
|
+
activeIndex: E,
|
|
18
|
+
sourceContainerId: z,
|
|
19
|
+
dragPosition: i,
|
|
20
|
+
isDragging: u,
|
|
21
|
+
selectionState: f,
|
|
22
|
+
historyState: h
|
|
23
|
+
} = R, [d, j] = l(null), r = w(null);
|
|
24
|
+
return c(() => {
|
|
25
|
+
const n = document.createElement("div");
|
|
26
|
+
return n.setAttribute("data-saha-debug-overlay-portal", ""), document.body.appendChild(n), r.current = n, () => {
|
|
27
|
+
r.current && r.current.parentNode && r.current.parentNode.removeChild(r.current), r.current = null;
|
|
28
|
+
};
|
|
29
|
+
}, []), c(() => {
|
|
30
|
+
if (!u || !g) {
|
|
31
|
+
N([]);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const n = (a) => {
|
|
35
|
+
const s = { x: a.clientX, y: a.clientY, timestamp: Date.now() };
|
|
36
|
+
j(s), N((G) => [...G.slice(-50), s]);
|
|
37
|
+
};
|
|
38
|
+
return window.addEventListener("pointermove", n), () => {
|
|
39
|
+
window.removeEventListener("pointermove", n), j(null), N([]);
|
|
40
|
+
};
|
|
41
|
+
}, [u, g]), c(() => {
|
|
42
|
+
if (!x || !y) return;
|
|
43
|
+
const n = () => {
|
|
44
|
+
const s = performance.now();
|
|
45
|
+
o.current.frames++, s >= o.current.lastTime + 1e3 && (k(
|
|
34
46
|
Math.round(
|
|
35
|
-
|
|
47
|
+
o.current.frames * 1e3 / (s - o.current.lastTime)
|
|
36
48
|
)
|
|
37
|
-
),
|
|
38
|
-
},
|
|
39
|
-
return () => cancelAnimationFrame(
|
|
40
|
-
}, [
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
}),
|
|
49
|
+
), o.current.frames = 0, o.current.lastTime = s), requestAnimationFrame(n);
|
|
50
|
+
}, a = requestAnimationFrame(n);
|
|
51
|
+
return () => cancelAnimationFrame(a);
|
|
52
|
+
}, [x, y]), c(() => {
|
|
53
|
+
C.current = performance.now();
|
|
54
|
+
}), c(() => {
|
|
55
|
+
A(performance.now() - C.current);
|
|
56
|
+
}), x ? /* @__PURE__ */ t(v, { children: [
|
|
45
57
|
/* @__PURE__ */ t(
|
|
46
58
|
"div",
|
|
47
59
|
{
|
|
48
|
-
className:
|
|
60
|
+
className: D(
|
|
49
61
|
"fixed z-[9999] bg-background border rounded-lg shadow-lg",
|
|
50
62
|
"max-w-md transition-all duration-200",
|
|
51
63
|
{
|
|
@@ -53,8 +65,8 @@ const T = ({
|
|
|
53
65
|
"top-right": "top-4 right-4",
|
|
54
66
|
"bottom-left": "bottom-4 left-4",
|
|
55
67
|
"bottom-right": "bottom-4 right-4"
|
|
56
|
-
}[
|
|
57
|
-
!
|
|
68
|
+
}[O],
|
|
69
|
+
!m && "w-auto"
|
|
58
70
|
),
|
|
59
71
|
children: [
|
|
60
72
|
/* @__PURE__ */ t("div", { className: "flex items-center justify-between px-3 py-2 border-b bg-muted/50", children: [
|
|
@@ -65,14 +77,14 @@ const T = ({
|
|
|
65
77
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ e(
|
|
66
78
|
"button",
|
|
67
79
|
{
|
|
68
|
-
onClick: () =>
|
|
80
|
+
onClick: () => S(!m),
|
|
69
81
|
className: "p-1 hover:bg-background rounded transition-colors",
|
|
70
|
-
children:
|
|
82
|
+
children: m ? /* @__PURE__ */ e(Y, { className: "w-4 h-4" }) : /* @__PURE__ */ e(M, { className: "w-4 h-4" })
|
|
71
83
|
}
|
|
72
84
|
) })
|
|
73
85
|
] }),
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
m && /* @__PURE__ */ t("div", { className: "p-3 space-y-3 text-xs max-h-[500px] overflow-auto", children: [
|
|
87
|
+
y && /* @__PURE__ */ t("div", { className: "space-y-1", children: [
|
|
76
88
|
/* @__PURE__ */ e("h4", { className: "font-semibold text-foreground mb-2", children: "Performance" }),
|
|
77
89
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
78
90
|
/* @__PURE__ */ t("div", { className: "bg-muted/50 rounded px-2 py-1", children: [
|
|
@@ -80,18 +92,18 @@ const T = ({
|
|
|
80
92
|
/* @__PURE__ */ e(
|
|
81
93
|
"span",
|
|
82
94
|
{
|
|
83
|
-
className:
|
|
95
|
+
className: D(
|
|
84
96
|
"ml-2 font-mono font-medium",
|
|
85
|
-
|
|
97
|
+
b >= 50 ? "text-green-500" : b >= 30 ? "text-yellow-500" : "text-red-500"
|
|
86
98
|
),
|
|
87
|
-
children:
|
|
99
|
+
children: b
|
|
88
100
|
}
|
|
89
101
|
)
|
|
90
102
|
] }),
|
|
91
103
|
/* @__PURE__ */ t("div", { className: "bg-muted/50 rounded px-2 py-1", children: [
|
|
92
104
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Render:" }),
|
|
93
105
|
/* @__PURE__ */ t("span", { className: "ml-2 font-mono font-medium", children: [
|
|
94
|
-
|
|
106
|
+
P.toFixed(2),
|
|
95
107
|
"ms"
|
|
96
108
|
] })
|
|
97
109
|
] })
|
|
@@ -102,185 +114,200 @@ const T = ({
|
|
|
102
114
|
/* @__PURE__ */ t("div", { className: "bg-muted/50 rounded px-2 py-1 space-y-1", children: [
|
|
103
115
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
104
116
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Is Dragging:" }),
|
|
105
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
117
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: u ? "Yes" : "No" })
|
|
106
118
|
] }),
|
|
107
119
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
108
120
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Active ID:" }),
|
|
109
|
-
/* @__PURE__ */ e("span", { className: "font-mono font-medium truncate max-w-[120px]", children:
|
|
121
|
+
/* @__PURE__ */ e("span", { className: "font-mono font-medium truncate max-w-[120px]", children: F || "—" })
|
|
110
122
|
] }),
|
|
111
123
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
112
124
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Active Index:" }),
|
|
113
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
125
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: E ?? "—" })
|
|
114
126
|
] }),
|
|
115
127
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
116
128
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Container:" }),
|
|
117
|
-
/* @__PURE__ */ e("span", { className: "font-mono font-medium truncate max-w-[120px]", children:
|
|
129
|
+
/* @__PURE__ */ e("span", { className: "font-mono font-medium truncate max-w-[120px]", children: z || "—" })
|
|
118
130
|
] }),
|
|
119
|
-
|
|
131
|
+
i && /* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
120
132
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Position:" }),
|
|
121
133
|
/* @__PURE__ */ t("span", { className: "font-mono font-medium", children: [
|
|
122
134
|
"x: ",
|
|
123
|
-
Math.round(
|
|
135
|
+
Math.round(i.x),
|
|
124
136
|
", y:",
|
|
125
137
|
" ",
|
|
126
|
-
Math.round(
|
|
138
|
+
Math.round(i.y)
|
|
127
139
|
] })
|
|
128
140
|
] })
|
|
129
141
|
] })
|
|
130
142
|
] }),
|
|
131
|
-
|
|
143
|
+
f && /* @__PURE__ */ t("div", { className: "space-y-1", children: [
|
|
132
144
|
/* @__PURE__ */ e("h4", { className: "font-semibold text-foreground mb-2", children: "Multi-Selection" }),
|
|
133
145
|
/* @__PURE__ */ t("div", { className: "bg-muted/50 rounded px-2 py-1 space-y-1", children: [
|
|
134
146
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
135
147
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Selected:" }),
|
|
136
148
|
/* @__PURE__ */ t("span", { className: "font-medium", children: [
|
|
137
|
-
|
|
149
|
+
f.selectedIds.size,
|
|
138
150
|
" items"
|
|
139
151
|
] })
|
|
140
152
|
] }),
|
|
141
|
-
|
|
153
|
+
f.selectedIds.size > 0 && /* @__PURE__ */ t("div", { className: "mt-1 pt-1 border-t border-border", children: [
|
|
142
154
|
/* @__PURE__ */ e("div", { className: "text-muted-foreground mb-1", children: "IDs:" }),
|
|
143
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: Array.from(
|
|
155
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: Array.from(f.selectedIds).map((n) => /* @__PURE__ */ e(
|
|
144
156
|
"span",
|
|
145
157
|
{
|
|
146
158
|
className: "px-1.5 py-0.5 bg-primary/20 text-primary rounded text-[10px] font-mono",
|
|
147
|
-
children:
|
|
159
|
+
children: n
|
|
148
160
|
},
|
|
149
|
-
|
|
161
|
+
n
|
|
150
162
|
)) })
|
|
151
163
|
] })
|
|
152
164
|
] })
|
|
153
165
|
] }),
|
|
154
|
-
|
|
166
|
+
h && /* @__PURE__ */ t("div", { className: "space-y-1", children: [
|
|
155
167
|
/* @__PURE__ */ e("h4", { className: "font-semibold text-foreground mb-2", children: "Undo/Redo" }),
|
|
156
168
|
/* @__PURE__ */ t("div", { className: "bg-muted/50 rounded px-2 py-1 space-y-1", children: [
|
|
157
169
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
158
170
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Can Undo:" }),
|
|
159
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
171
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: h.past.length > 0 ? "Yes" : "No" })
|
|
160
172
|
] }),
|
|
161
173
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
162
174
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Can Redo:" }),
|
|
163
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
175
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: h.future.length > 0 ? "Yes" : "No" })
|
|
164
176
|
] }),
|
|
165
177
|
/* @__PURE__ */ t("div", { className: "flex justify-between", children: [
|
|
166
178
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "History Size:" }),
|
|
167
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
179
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: h.past.length })
|
|
168
180
|
] })
|
|
169
181
|
] })
|
|
170
182
|
] }),
|
|
171
|
-
|
|
183
|
+
I && /* @__PURE__ */ t("div", { className: "space-y-1", children: [
|
|
172
184
|
/* @__PURE__ */ e("h4", { className: "font-semibold text-foreground mb-2", children: "Active Item" }),
|
|
173
|
-
/* @__PURE__ */ e("pre", { className: "bg-muted/50 rounded px-2 py-1 overflow-auto max-h-32 text-[10px] font-mono", children: JSON.stringify(
|
|
185
|
+
/* @__PURE__ */ e("pre", { className: "bg-muted/50 rounded px-2 py-1 overflow-auto max-h-32 text-[10px] font-mono", children: JSON.stringify(I, null, 2) })
|
|
174
186
|
] })
|
|
175
187
|
] })
|
|
176
188
|
]
|
|
177
189
|
}
|
|
178
190
|
),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
r.current && u && g && T(
|
|
192
|
+
/* @__PURE__ */ t(v, { children: [
|
|
193
|
+
p.length > 1 && /* @__PURE__ */ t(
|
|
194
|
+
"svg",
|
|
195
|
+
{
|
|
196
|
+
className: "fixed inset-0 pointer-events-none z-[9998]",
|
|
197
|
+
style: { width: "100vw", height: "100vh" },
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ t("defs", { children: [
|
|
200
|
+
/* @__PURE__ */ t(
|
|
201
|
+
"linearGradient",
|
|
202
|
+
{
|
|
203
|
+
id: "dragPathGrad",
|
|
204
|
+
x1: "0%",
|
|
205
|
+
y1: "0%",
|
|
206
|
+
x2: "100%",
|
|
207
|
+
y2: "0%",
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#6366f1", stopOpacity: "0.6" }),
|
|
210
|
+
/* @__PURE__ */ e("stop", { offset: "50%", stopColor: "#8b5cf6", stopOpacity: "0.9" }),
|
|
211
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#6366f1", stopOpacity: "1" })
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ t("radialGradient", { id: "dotGrad", cx: "30%", cy: "30%", r: "70%", children: [
|
|
216
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "1" }),
|
|
217
|
+
/* @__PURE__ */ e("stop", { offset: "30%", stopColor: "#6366f1", stopOpacity: "1" }),
|
|
218
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#8b5cf6", stopOpacity: "0.6" })
|
|
219
|
+
] })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ e(
|
|
222
|
+
"polyline",
|
|
223
|
+
{
|
|
224
|
+
points: p.map((n) => `${n.x},${n.y}`).join(" "),
|
|
225
|
+
fill: "none",
|
|
226
|
+
stroke: "url(#dragPathGrad)",
|
|
227
|
+
strokeWidth: 2,
|
|
228
|
+
strokeOpacity: 0.95,
|
|
229
|
+
strokeLinecap: "round",
|
|
230
|
+
strokeLinejoin: "round"
|
|
231
|
+
}
|
|
232
|
+
),
|
|
233
|
+
p.map((n, a) => {
|
|
234
|
+
const s = 0.18 + a / p.length * 0.82;
|
|
235
|
+
return /* @__PURE__ */ e(
|
|
236
|
+
"circle",
|
|
237
|
+
{
|
|
238
|
+
cx: n.x,
|
|
239
|
+
cy: n.y,
|
|
240
|
+
r: 2.25,
|
|
241
|
+
fill: "url(#dotGrad)",
|
|
242
|
+
fillOpacity: s
|
|
243
|
+
},
|
|
244
|
+
a
|
|
245
|
+
);
|
|
246
|
+
})
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
(d || i) && /* @__PURE__ */ t(v, { children: [
|
|
251
|
+
/* @__PURE__ */ e("style", { children: "@keyframes sahaPulse { 0% { transform: scale(1); opacity: 0.95 } 50% { transform: scale(1.12); opacity: 0.75 } 100% { transform: scale(1); opacity: 0.95 } }" }),
|
|
252
|
+
/* @__PURE__ */ t(
|
|
253
|
+
"div",
|
|
199
254
|
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
{
|
|
214
|
-
cx: s.x,
|
|
215
|
-
cy: s.y,
|
|
216
|
-
r: 2.25,
|
|
217
|
-
fill: "url(#dotGrad)",
|
|
218
|
-
fillOpacity: o
|
|
255
|
+
"aria-hidden": !0,
|
|
256
|
+
style: {
|
|
257
|
+
position: "fixed",
|
|
258
|
+
left: d ? d.x : i.x,
|
|
259
|
+
top: d ? d.y : i.y,
|
|
260
|
+
transform: "translate(-50%, -50%)",
|
|
261
|
+
pointerEvents: "none",
|
|
262
|
+
zIndex: 1e4,
|
|
263
|
+
width: 40,
|
|
264
|
+
height: 40,
|
|
265
|
+
display: "flex",
|
|
266
|
+
alignItems: "center",
|
|
267
|
+
justifyContent: "center"
|
|
219
268
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
-
"div",
|
|
263
|
-
{
|
|
264
|
-
style: {
|
|
265
|
-
position: "absolute",
|
|
266
|
-
left: "50%",
|
|
267
|
-
top: "50%",
|
|
268
|
-
transform: "translate(-50%, -50%)",
|
|
269
|
-
width: 10,
|
|
270
|
-
height: 10,
|
|
271
|
-
borderRadius: 9999,
|
|
272
|
-
background: "linear-gradient(135deg,#8b5cf6,#6366f1)",
|
|
273
|
-
boxShadow: "0 6px 18px rgba(139,92,246,0.24)"
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
)
|
|
280
|
-
] })
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ e(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
style: {
|
|
274
|
+
width: 40,
|
|
275
|
+
height: 40,
|
|
276
|
+
borderRadius: 9999,
|
|
277
|
+
background: "radial-gradient(circle at 35% 30%, rgba(139,92,246,0.20), rgba(99,102,241,0.06))",
|
|
278
|
+
border: "1px solid rgba(99,102,241,0.18)",
|
|
279
|
+
boxShadow: "0 8px 22px rgba(15,23,42,0.14)",
|
|
280
|
+
animation: "sahaPulse 1.6s ease-in-out infinite",
|
|
281
|
+
transformOrigin: "center"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ e(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
style: {
|
|
289
|
+
position: "absolute",
|
|
290
|
+
left: "50%",
|
|
291
|
+
top: "50%",
|
|
292
|
+
transform: "translate(-50%, -50%)",
|
|
293
|
+
width: 10,
|
|
294
|
+
height: 10,
|
|
295
|
+
borderRadius: 9999,
|
|
296
|
+
background: "linear-gradient(135deg,#8b5cf6,#6366f1)",
|
|
297
|
+
boxShadow: "0 6px 18px rgba(139,92,246,0.24)"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] })
|
|
305
|
+
] }),
|
|
306
|
+
r.current
|
|
307
|
+
)
|
|
281
308
|
] }) : null;
|
|
282
309
|
};
|
|
283
|
-
|
|
310
|
+
U.displayName = "DebugOverlay";
|
|
284
311
|
export {
|
|
285
|
-
|
|
312
|
+
U as DebugOverlay
|
|
286
313
|
};
|