my-you-eye 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -610,7 +610,7 @@ declare const FileDrop: react.ForwardRefExoticComponent<FileDropProps & react.Re
|
|
|
610
610
|
declare const imageVariants: (props?: ({
|
|
611
611
|
fit?: "fill" | "none" | "contain" | "cover" | "scaleDown" | null | undefined;
|
|
612
612
|
radius?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
|
|
613
|
-
aspect?: "auto" | "
|
|
613
|
+
aspect?: "auto" | "square" | "video" | "wide" | "tall" | null | undefined;
|
|
614
614
|
bordered?: boolean | null | undefined;
|
|
615
615
|
shadowed?: boolean | null | undefined;
|
|
616
616
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var Button = forwardRef2(
|
|
|
68
68
|
{
|
|
69
69
|
ref,
|
|
70
70
|
className: cn(buttonVariants({ variant, size }), className),
|
|
71
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
71
72
|
disabled: disabled || loading,
|
|
72
73
|
...props,
|
|
73
74
|
children: [
|
|
@@ -111,6 +112,7 @@ var Input = forwardRef3(
|
|
|
111
112
|
{
|
|
112
113
|
ref,
|
|
113
114
|
className: cn(inputVariants({ variant, size, invalid }), className),
|
|
115
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
114
116
|
...props
|
|
115
117
|
}
|
|
116
118
|
)
|
|
@@ -134,7 +136,7 @@ Label.displayName = "Label";
|
|
|
134
136
|
import { forwardRef as forwardRef5 } from "react";
|
|
135
137
|
import { cva as cva5 } from "class-variance-authority";
|
|
136
138
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
137
|
-
var cardVariants = cva5("rounded-ui bg-
|
|
139
|
+
var cardVariants = cva5("rounded-ui bg-surface text-fg", {
|
|
138
140
|
variants: {
|
|
139
141
|
variant: {
|
|
140
142
|
default: "border border-border",
|
|
@@ -152,7 +154,7 @@ var Card = forwardRef5(
|
|
|
152
154
|
{
|
|
153
155
|
ref,
|
|
154
156
|
className: cn(cardVariants({ variant }), className),
|
|
155
|
-
style: { borderWidth: "var(--border-width)", ...style },
|
|
157
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))", borderWidth: "var(--border-width)", ...style },
|
|
156
158
|
...props
|
|
157
159
|
}
|
|
158
160
|
)
|
|
@@ -404,6 +406,7 @@ var Textarea = forwardRef15(
|
|
|
404
406
|
{
|
|
405
407
|
ref: setRef,
|
|
406
408
|
className: cn(textareaVariants({ variant, invalid }), "min-h-[80px]", className),
|
|
409
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
407
410
|
onChange: handleChange,
|
|
408
411
|
...props
|
|
409
412
|
}
|
|
@@ -445,7 +448,7 @@ var triggerVariants = cva12(
|
|
|
445
448
|
}
|
|
446
449
|
);
|
|
447
450
|
var SelectTrigger = forwardRef16(
|
|
448
|
-
({ className, size, invalid, children, ...props }, ref) => /* @__PURE__ */ jsxs3(Trigger, { ref, className: cn(triggerVariants({ size, invalid }), className), ...props, children: [
|
|
451
|
+
({ className, size, invalid, children, ...props }, ref) => /* @__PURE__ */ jsxs3(Trigger, { ref, className: cn(triggerVariants({ size, invalid }), className), style: { backdropFilter: "blur(var(--backdrop-blur))" }, ...props, children: [
|
|
449
452
|
children,
|
|
450
453
|
/* @__PURE__ */ jsx16(Icon, { className: "ml-2 shrink-0 opacity-50", children: /* @__PURE__ */ jsx16("svg", { viewBox: "0 0 8 8", className: "size-3 fill-current", children: /* @__PURE__ */ jsx16("path", { d: "M0 2l4 4 4-4" }) }) })
|
|
451
454
|
] })
|
|
@@ -461,6 +464,7 @@ var SelectContent = forwardRef16(
|
|
|
461
464
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-ui border border-border bg-bg text-fg shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
462
465
|
className
|
|
463
466
|
),
|
|
467
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
464
468
|
...props,
|
|
465
469
|
children: /* @__PURE__ */ jsx16(Viewport, { className: "p-1", children })
|
|
466
470
|
}
|
|
@@ -513,7 +517,7 @@ import { cva as cva13 } from "class-variance-authority";
|
|
|
513
517
|
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
514
518
|
var dialogOverlay = "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out";
|
|
515
519
|
var dialogContentVariants = cva13(
|
|
516
|
-
"fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-ui bg-
|
|
520
|
+
"fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-ui bg-surface-elevated p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
517
521
|
{
|
|
518
522
|
variants: {
|
|
519
523
|
size: {
|
|
@@ -527,11 +531,11 @@ var dialogContentVariants = cva13(
|
|
|
527
531
|
}
|
|
528
532
|
}
|
|
529
533
|
);
|
|
530
|
-
var dialogOverlayWithBlur = `${dialogOverlay} [backdrop-filter:var(--backdrop-blur)]`;
|
|
534
|
+
var dialogOverlayWithBlur = `${dialogOverlay} [backdrop-filter:blur(var(--backdrop-blur))]`;
|
|
531
535
|
var DialogContent = forwardRef18(
|
|
532
536
|
({ className, size, children, ...props }, ref) => /* @__PURE__ */ jsxs5(Portal, { children: [
|
|
533
537
|
/* @__PURE__ */ jsx18(Overlay, { className: dialogOverlayWithBlur }),
|
|
534
|
-
/* @__PURE__ */ jsxs5(Content2, { ref, className: cn(dialogContentVariants({ size }), className), style: { borderWidth: "var(--border-width)" }, ...props, children: [
|
|
538
|
+
/* @__PURE__ */ jsxs5(Content2, { ref, className: cn(dialogContentVariants({ size }), className), style: { backdropFilter: "blur(var(--backdrop-blur))", borderWidth: "var(--border-width)" }, ...props, children: [
|
|
535
539
|
children,
|
|
536
540
|
/* @__PURE__ */ jsx18(Close, { className: "absolute right-panel top-panel rounded-ui-sm opacity-70 hover:opacity-100", children: /* @__PURE__ */ jsx18("svg", { viewBox: "0 0 15 15", className: "size-4 fill-current", children: /* @__PURE__ */ jsx18("path", { d: "M2 2l11 11M13 2L2 13", stroke: "currentColor", strokeWidth: "1.5", fill: "none" }) }) })
|
|
537
541
|
] })
|
|
@@ -571,6 +575,7 @@ var Tooltip = ({ content, side = "top", children }) => /* @__PURE__ */ jsxs6(Roo
|
|
|
571
575
|
"z-50 overflow-hidden rounded-ui-sm bg-bg text-fg border border-border px-2.5 py-1 text-xs shadow-lg",
|
|
572
576
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out"
|
|
573
577
|
),
|
|
578
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
574
579
|
children: content
|
|
575
580
|
}
|
|
576
581
|
) })
|
|
@@ -586,6 +591,7 @@ var TooltipContent = forwardRef19(
|
|
|
586
591
|
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
587
592
|
className
|
|
588
593
|
),
|
|
594
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
589
595
|
...props
|
|
590
596
|
}
|
|
591
597
|
)
|
|
@@ -615,6 +621,7 @@ var DropdownMenuContent = forwardRef20(
|
|
|
615
621
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
616
622
|
className
|
|
617
623
|
),
|
|
624
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
618
625
|
...props
|
|
619
626
|
}
|
|
620
627
|
) })
|
|
@@ -656,10 +663,11 @@ var PopoverContent = forwardRef21(
|
|
|
656
663
|
sideOffset: 4,
|
|
657
664
|
updatePositionStrategy: "always",
|
|
658
665
|
className: cn(
|
|
659
|
-
"z-50 w-72 rounded-ui border border-border bg-
|
|
666
|
+
"z-50 w-72 rounded-ui border border-border bg-surface-elevated p-panel shadow-lg outline-none",
|
|
660
667
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
661
668
|
className
|
|
662
669
|
),
|
|
670
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
663
671
|
...props
|
|
664
672
|
}
|
|
665
673
|
) })
|
|
@@ -683,9 +691,9 @@ var toastVariants = cva14(
|
|
|
683
691
|
{
|
|
684
692
|
variants: {
|
|
685
693
|
variant: {
|
|
686
|
-
default: "border-border bg-
|
|
687
|
-
success: "border-success bg-success text-
|
|
688
|
-
danger: "border-danger bg-danger text-
|
|
694
|
+
default: "border-border bg-surface-elevated text-fg",
|
|
695
|
+
success: "border-success bg-success text-primary-fg",
|
|
696
|
+
danger: "border-danger bg-danger text-primary-fg"
|
|
689
697
|
}
|
|
690
698
|
},
|
|
691
699
|
defaultVariants: {
|
|
@@ -705,6 +713,7 @@ var ToastItem = forwardRef22(
|
|
|
705
713
|
{
|
|
706
714
|
ref,
|
|
707
715
|
className: cn(toastVariants({ variant })),
|
|
716
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
708
717
|
...props,
|
|
709
718
|
children: [
|
|
710
719
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
@@ -1440,15 +1449,15 @@ function TreeItem({
|
|
|
1440
1449
|
"div",
|
|
1441
1450
|
{
|
|
1442
1451
|
className: cn(
|
|
1443
|
-
"flex items-center gap-1 rounded-ui-sm px-1 py-0.5 hover:bg-secondary cursor-pointer relative"
|
|
1452
|
+
"flex items-center gap-1 rounded-ui-sm px-1 py-0.5 hover:bg-secondary cursor-pointer relative min-w-0"
|
|
1444
1453
|
),
|
|
1445
1454
|
style: { paddingLeft: `${depth * indent + 4}px` },
|
|
1446
1455
|
onClick: toggle,
|
|
1447
1456
|
children: [
|
|
1448
1457
|
hasChildren ? /* @__PURE__ */ jsx45(Chevron, { expanded: actuallyExpanded }) : /* @__PURE__ */ jsx45("span", { className: "size-3 shrink-0" }),
|
|
1449
1458
|
node.icon && /* @__PURE__ */ jsx45("span", { className: "shrink-0", children: node.icon }),
|
|
1450
|
-
/* @__PURE__ */ jsx45("span", { className: "text-xs truncate flex-1", children: node.label }),
|
|
1451
|
-
node.value && /* @__PURE__ */ jsx45("span", { children: /* @__PURE__ */ jsx45(CellValue, { ...node.value, replacements }) })
|
|
1459
|
+
/* @__PURE__ */ jsx45("span", { className: "text-xs truncate flex-1 min-w-0", children: node.label }),
|
|
1460
|
+
node.value && /* @__PURE__ */ jsx45("span", { className: "truncate overflow-hidden shrink min-w-0", children: /* @__PURE__ */ jsx45(CellValue, { ...node.value, replacements }) })
|
|
1452
1461
|
]
|
|
1453
1462
|
}
|
|
1454
1463
|
),
|
|
@@ -1571,12 +1580,12 @@ function applyReplacements(str, replacements) {
|
|
|
1571
1580
|
function NumberDisplay({ value }) {
|
|
1572
1581
|
const n = Number(value);
|
|
1573
1582
|
if (isNaN(n)) return /* @__PURE__ */ jsx46("span", { className: "text-muted", children: "\u2014" });
|
|
1574
|
-
return /* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums text-right block", children: Intl.NumberFormat().format(n) });
|
|
1583
|
+
return /* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums text-right block truncate", children: Intl.NumberFormat().format(n) });
|
|
1575
1584
|
}
|
|
1576
1585
|
function PercentageDisplay({ value }) {
|
|
1577
1586
|
const n = Number(value);
|
|
1578
1587
|
if (isNaN(n)) return /* @__PURE__ */ jsx46("span", { className: "text-muted", children: "\u2014" });
|
|
1579
|
-
return /* @__PURE__ */ jsxs19("span", { className: "font-mono tabular-nums text-right block", children: [
|
|
1588
|
+
return /* @__PURE__ */ jsxs19("span", { className: "font-mono tabular-nums text-right block truncate", children: [
|
|
1580
1589
|
(n * 100).toFixed(1),
|
|
1581
1590
|
"%"
|
|
1582
1591
|
] });
|
|
@@ -1587,7 +1596,7 @@ function DateDisplay({ value, showTime }) {
|
|
|
1587
1596
|
const abs = showTime ? d.toLocaleString() : d.toLocaleDateString();
|
|
1588
1597
|
const diff = Date.now() - d.getTime();
|
|
1589
1598
|
const rel = diff < 6e4 ? "just now" : diff < 36e5 ? `${Math.round(diff / 6e4)}m ago` : diff < 864e5 ? `${Math.round(diff / 36e5)}h ago` : `${Math.round(diff / 864e5)}d ago`;
|
|
1590
|
-
return /* @__PURE__ */ jsx46("span", { title: abs, className: "cursor-help", children: rel });
|
|
1599
|
+
return /* @__PURE__ */ jsx46("span", { title: abs, className: "cursor-help truncate inline-block max-w-full align-middle", children: rel });
|
|
1591
1600
|
}
|
|
1592
1601
|
function BytesDisplay({ value }) {
|
|
1593
1602
|
const n = Number(value);
|
|
@@ -1598,7 +1607,7 @@ function BytesDisplay({ value }) {
|
|
|
1598
1607
|
s /= 1024;
|
|
1599
1608
|
i++;
|
|
1600
1609
|
}
|
|
1601
|
-
return /* @__PURE__ */ jsxs19("span", { className: "font-mono tabular-nums", children: [
|
|
1610
|
+
return /* @__PURE__ */ jsxs19("span", { className: "font-mono tabular-nums truncate inline-block max-w-full align-middle", children: [
|
|
1602
1611
|
s.toFixed(1),
|
|
1603
1612
|
" ",
|
|
1604
1613
|
units[i]
|
|
@@ -1612,7 +1621,7 @@ function DurationDisplay({ value }) {
|
|
|
1612
1621
|
if (h > 0) parts.push(`${h}h`);
|
|
1613
1622
|
if (m > 0) parts.push(`${m}m`);
|
|
1614
1623
|
if (s > 0 || parts.length === 0) parts.push(`${s}s`);
|
|
1615
|
-
return /* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums", children: parts.join(" ") });
|
|
1624
|
+
return /* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums truncate inline-block max-w-full align-middle", children: parts.join(" ") });
|
|
1616
1625
|
}
|
|
1617
1626
|
function ImageDisplay({ value }) {
|
|
1618
1627
|
const src = String(value);
|
|
@@ -1650,7 +1659,7 @@ function AudioDisplay({ value }) {
|
|
|
1650
1659
|
setT(a.currentTime);
|
|
1651
1660
|
}, []);
|
|
1652
1661
|
const fmt = (s) => `${Math.floor(s / 60)}:${Math.floor(s % 60).toString().padStart(2, "0")}`;
|
|
1653
|
-
return /* @__PURE__ */ jsxs19("span", { className: "inline-flex items-center gap-2 text-xs min-w-
|
|
1662
|
+
return /* @__PURE__ */ jsxs19("span", { className: "inline-flex items-center gap-2 text-xs min-w-48", onClick: (e) => e.stopPropagation(), children: [
|
|
1654
1663
|
/* @__PURE__ */ jsx46("audio", { ref: r, src, onTimeUpdate: () => setT(r.current?.currentTime ?? 0), onLoadedMetadata: () => setD(r.current?.duration ?? 0), onEnded: () => setP(false) }),
|
|
1655
1664
|
/* @__PURE__ */ jsx46(
|
|
1656
1665
|
"button",
|
|
@@ -1676,7 +1685,7 @@ function AudioDisplay({ value }) {
|
|
|
1676
1685
|
className: "flex-1 h-1 accent-primary cursor-pointer"
|
|
1677
1686
|
}
|
|
1678
1687
|
),
|
|
1679
|
-
/* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums text-muted shrink-0 w-
|
|
1688
|
+
/* @__PURE__ */ jsx46("span", { className: "font-mono tabular-nums text-muted shrink-0 w-24 text-right whitespace-nowrap", children: d ? `${fmt(t)} / ${fmt(d)}` : "--:-- / --:--" })
|
|
1680
1689
|
] });
|
|
1681
1690
|
}
|
|
1682
1691
|
function ArrayDisplay({ value }) {
|
|
@@ -1716,7 +1725,7 @@ function objToTreeNodes(obj, path = "") {
|
|
|
1716
1725
|
return [{ id: `${path}_val`, label: String(obj), value: { type: detectType(obj), value: obj } }];
|
|
1717
1726
|
}
|
|
1718
1727
|
function TreeDisplay({ value, replacements }) {
|
|
1719
|
-
if (typeof value !== "object" || value === null) return /* @__PURE__ */ jsx46("span", { children: String(value) });
|
|
1728
|
+
if (typeof value !== "object" || value === null) return /* @__PURE__ */ jsx46("span", { className: "truncate inline-block max-w-full align-middle", children: String(value) });
|
|
1720
1729
|
const nodes = objToTreeNodes(value);
|
|
1721
1730
|
const isArray = Array.isArray(value);
|
|
1722
1731
|
const count = isArray ? value.length : Object.keys(value).length;
|
|
@@ -1743,10 +1752,10 @@ function CellValue({
|
|
|
1743
1752
|
case "boolean":
|
|
1744
1753
|
return /* @__PURE__ */ jsx46(BooleanDisplay, { value });
|
|
1745
1754
|
case "email":
|
|
1746
|
-
return /* @__PURE__ */ jsx46("a", { href: `mailto:${String(value)}`, className: "text-primary hover:underline", children: String(value) });
|
|
1755
|
+
return /* @__PURE__ */ jsx46("a", { href: `mailto:${String(value)}`, className: "text-primary hover:underline inline-flex min-w-0", children: /* @__PURE__ */ jsx46("span", { className: "truncate", children: String(value) }) });
|
|
1747
1756
|
case "url":
|
|
1748
|
-
return /* @__PURE__ */ jsxs19("a", { href: String(value), target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-tight text-primary hover:underline", children: [
|
|
1749
|
-
applyReplacements(String(value), replacements),
|
|
1757
|
+
return /* @__PURE__ */ jsxs19("a", { href: String(value), target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-tight text-primary hover:underline min-w-0", children: [
|
|
1758
|
+
/* @__PURE__ */ jsx46("span", { className: "truncate", children: applyReplacements(String(value), replacements) }),
|
|
1750
1759
|
/* @__PURE__ */ jsx46("svg", { viewBox: "0 0 12 12", className: "size-icon-sm shrink-0 fill-current opacity-dim", children: /* @__PURE__ */ jsx46("path", { d: "M2 2h3v1H3v6h6V7h1v3H2V2zm4 0h4v4H9V4.5L6.5 7 6 6.5 8.5 4H6V2z" }) })
|
|
1751
1760
|
] });
|
|
1752
1761
|
case "json":
|
|
@@ -1754,9 +1763,9 @@ function CellValue({
|
|
|
1754
1763
|
case "badge":
|
|
1755
1764
|
return /* @__PURE__ */ jsx46(Badge, { variant: badgeVariant ?? "neutral", style: badgeStyle ?? "solid", children: String(value) });
|
|
1756
1765
|
case "status":
|
|
1757
|
-
return /* @__PURE__ */ jsxs19("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1766
|
+
return /* @__PURE__ */ jsxs19("span", { className: "inline-flex items-center gap-1.5 min-w-0", children: [
|
|
1758
1767
|
/* @__PURE__ */ jsx46(StatusDot, { variant: statusVariant ?? "neutral", size: "sm", pulse: statusPulse }),
|
|
1759
|
-
/* @__PURE__ */ jsx46("span", { children: String(value) })
|
|
1768
|
+
/* @__PURE__ */ jsx46("span", { className: "truncate", children: String(value) })
|
|
1760
1769
|
] });
|
|
1761
1770
|
case "number":
|
|
1762
1771
|
return /* @__PURE__ */ jsx46(NumberDisplay, { value });
|
|
@@ -1779,7 +1788,7 @@ function CellValue({
|
|
|
1779
1788
|
case "tree":
|
|
1780
1789
|
return /* @__PURE__ */ jsx46(TreeDisplay, { value, replacements });
|
|
1781
1790
|
default:
|
|
1782
|
-
return /* @__PURE__ */ jsx46("span", { children: String(value) });
|
|
1791
|
+
return /* @__PURE__ */ jsx46("span", { className: "truncate inline-block max-w-full align-middle", children: String(value) });
|
|
1783
1792
|
}
|
|
1784
1793
|
}
|
|
1785
1794
|
|
|
@@ -2073,7 +2082,7 @@ Port.displayName = "Port";
|
|
|
2073
2082
|
import { jsx as jsx51, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2074
2083
|
var ROW_PORT_Y_OFFSET = HEADER * GRID;
|
|
2075
2084
|
var graphNodeVariants = cva30(
|
|
2076
|
-
"absolute flex flex-col rounded-ui border bg-
|
|
2085
|
+
"absolute flex flex-col rounded-ui border bg-surface shadow-card min-w-[160px] overflow-hidden",
|
|
2077
2086
|
{
|
|
2078
2087
|
variants: {
|
|
2079
2088
|
variant: {
|
|
@@ -2096,7 +2105,7 @@ var GraphNode = forwardRef46(
|
|
|
2096
2105
|
{
|
|
2097
2106
|
ref,
|
|
2098
2107
|
className: cn(graphNodeVariants({ variant }), className),
|
|
2099
|
-
style: { left: x, top: y, height, ...style },
|
|
2108
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))", left: x, top: y, height, ...style },
|
|
2100
2109
|
...props,
|
|
2101
2110
|
children: [
|
|
2102
2111
|
header && /* @__PURE__ */ jsx51("div", { className: cn("flex flex-col shrink-0", accent && "border-t-2 border-primary"), style: { height: HEADER * GRID }, children: /* @__PURE__ */ jsx51("div", { className: "flex items-center px-3 border-b border-border flex-1 min-h-0", children: /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-inline flex-1 min-w-0", children: [
|
|
@@ -2222,6 +2231,7 @@ function Combobox({
|
|
|
2222
2231
|
!selectedLabel && "text-muted",
|
|
2223
2232
|
className
|
|
2224
2233
|
),
|
|
2234
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
2225
2235
|
onClick: () => {
|
|
2226
2236
|
setOpen(true);
|
|
2227
2237
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
@@ -2313,6 +2323,7 @@ function MultiSelect({
|
|
|
2313
2323
|
selectedLabels.length === 0 && "text-muted",
|
|
2314
2324
|
className
|
|
2315
2325
|
),
|
|
2326
|
+
style: { backdropFilter: "blur(var(--backdrop-blur))" },
|
|
2316
2327
|
children: selectedLabels.length === 0 ? placeholder : selectedLabels.length <= 3 ? selectedLabels.map((opt) => /* @__PURE__ */ jsx54(Badge, { variant: "neutral", style: "soft", children: opt.label }, opt.value)) : /* @__PURE__ */ jsxs25(Fragment3, { children: [
|
|
2317
2328
|
selectedLabels.slice(0, 2).map((opt) => /* @__PURE__ */ jsx54(Badge, { variant: "neutral", style: "soft", children: opt.label }, opt.value)),
|
|
2318
2329
|
/* @__PURE__ */ jsxs25(Badge, { variant: "neutral", style: "soft", children: [
|
|
@@ -2501,7 +2512,7 @@ import { cva as cva31 } from "class-variance-authority";
|
|
|
2501
2512
|
import { jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2502
2513
|
var drawerOverlay = "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out";
|
|
2503
2514
|
var drawerContentVariants = cva31(
|
|
2504
|
-
"fixed z-50 flex flex-col bg-
|
|
2515
|
+
"fixed z-50 flex flex-col bg-surface-elevated shadow-lg transition-transform duration-200",
|
|
2505
2516
|
{
|
|
2506
2517
|
variants: {
|
|
2507
2518
|
side: {
|
|
@@ -2523,7 +2534,7 @@ var drawerContentVariants = cva31(
|
|
|
2523
2534
|
var DrawerContent = forwardRef48(
|
|
2524
2535
|
({ className, side, size, children, ...props }, ref) => /* @__PURE__ */ jsxs27(Portal5, { children: [
|
|
2525
2536
|
/* @__PURE__ */ jsx56(Overlay2, { className: drawerOverlay }),
|
|
2526
|
-
/* @__PURE__ */ jsxs27(Content7, { ref, className: cn(drawerContentVariants({ side, size }), className), ...props, children: [
|
|
2537
|
+
/* @__PURE__ */ jsxs27(Content7, { ref, className: cn(drawerContentVariants({ side, size }), className), style: { backdropFilter: "blur(var(--backdrop-blur))" }, ...props, children: [
|
|
2527
2538
|
children,
|
|
2528
2539
|
/* @__PURE__ */ jsx56(Close4, { className: "absolute right-panel top-panel rounded-ui-sm opacity-70 hover:opacity-100", children: /* @__PURE__ */ jsx56("svg", { viewBox: "0 0 15 15", className: "size-4 fill-current", children: /* @__PURE__ */ jsx56("path", { d: "M2 2l11 11M13 2L2 13", stroke: "currentColor", strokeWidth: "1.5", fill: "none" }) }) })
|
|
2529
2540
|
] })
|
|
@@ -3018,7 +3029,7 @@ function OrchestratorNode({
|
|
|
3018
3029
|
onSelect(node.id);
|
|
3019
3030
|
onDragStart(node.id, e.clientX, e.clientY, node.x, node.y);
|
|
3020
3031
|
}, [node.id, node.x, node.y, onSelect, onDragStart]);
|
|
3021
|
-
return /* @__PURE__ */ jsxs33("div", { className: "absolute", style: { left: node.x, top: node.y }, onMouseDown: onDown, children: [
|
|
3032
|
+
return /* @__PURE__ */ jsxs33("div", { className: "absolute", style: { left: node.x, top: node.y, width: NODE_WIDTH }, onMouseDown: onDown, children: [
|
|
3022
3033
|
/* @__PURE__ */ jsx64(
|
|
3023
3034
|
GraphNode,
|
|
3024
3035
|
{
|
|
@@ -3117,7 +3128,7 @@ var Orchestrator = ({
|
|
|
3117
3128
|
onChangeRef.current = onChange;
|
|
3118
3129
|
useEffect4(() => {
|
|
3119
3130
|
onChangeRef.current?.({ nodes: state.nodes, edges: state.edges });
|
|
3120
|
-
});
|
|
3131
|
+
}, [state.nodes, state.edges]);
|
|
3121
3132
|
const screenToWorld = useCallback11((clientX, clientY) => {
|
|
3122
3133
|
const rect = containerRef.current?.getBoundingClientRect();
|
|
3123
3134
|
if (!rect) return { x: 0, y: 0 };
|