@vllnt/ui 0.2.1-canary.ab2c69a → 0.2.1-canary.bb791f1

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 (57) hide show
  1. package/dist/components/alert-pulse/alert-pulse.js +93 -0
  2. package/dist/components/alert-pulse/index.js +6 -0
  3. package/dist/components/bottom-activity-strip/bottom-activity-strip.js +91 -0
  4. package/dist/components/bottom-activity-strip/index.js +6 -0
  5. package/dist/components/comment-pin/comment-pin.js +104 -0
  6. package/dist/components/comment-pin/index.js +6 -0
  7. package/dist/components/context-lens/context-lens.js +98 -0
  8. package/dist/components/context-lens/index.js +6 -0
  9. package/dist/components/floating-toolbar/floating-toolbar.js +66 -0
  10. package/dist/components/floating-toolbar/index.js +6 -0
  11. package/dist/components/follow-mode/follow-mode.js +89 -0
  12. package/dist/components/follow-mode/index.js +6 -0
  13. package/dist/components/handoff-beacon/handoff-beacon.js +78 -0
  14. package/dist/components/handoff-beacon/index.js +6 -0
  15. package/dist/components/heat-overlay/heat-overlay.js +92 -0
  16. package/dist/components/heat-overlay/index.js +6 -0
  17. package/dist/components/index.js +108 -0
  18. package/dist/components/jarvis-dock/index.js +6 -0
  19. package/dist/components/jarvis-dock/jarvis-dock.js +98 -0
  20. package/dist/components/live-cursor/index.js +6 -0
  21. package/dist/components/live-cursor/live-cursor.js +62 -0
  22. package/dist/components/metric-cluster/index.js +6 -0
  23. package/dist/components/metric-cluster/metric-cluster.js +96 -0
  24. package/dist/components/multi-select-lasso/index.js +6 -0
  25. package/dist/components/multi-select-lasso/multi-select-lasso.js +76 -0
  26. package/dist/components/object-inspector/index.js +6 -0
  27. package/dist/components/object-inspector/object-inspector.js +136 -0
  28. package/dist/components/playback-ghost/index.js +6 -0
  29. package/dist/components/playback-ghost/playback-ghost.js +83 -0
  30. package/dist/components/policy-delivery-panel/index.js +6 -0
  31. package/dist/components/policy-delivery-panel/policy-delivery-panel.js +99 -0
  32. package/dist/components/presence-sync-indicator/index.js +6 -0
  33. package/dist/components/presence-sync-indicator/presence-sync-indicator.js +73 -0
  34. package/dist/components/property-section/index.js +6 -0
  35. package/dist/components/property-section/property-section.js +101 -0
  36. package/dist/components/relationship-inspector/index.js +6 -0
  37. package/dist/components/relationship-inspector/relationship-inspector.js +102 -0
  38. package/dist/components/routing-assignment-panel/index.js +6 -0
  39. package/dist/components/routing-assignment-panel/routing-assignment-panel.js +122 -0
  40. package/dist/components/run-timeline/index.js +6 -0
  41. package/dist/components/run-timeline/run-timeline.js +221 -0
  42. package/dist/components/runtime-overview-panel/index.js +6 -0
  43. package/dist/components/runtime-overview-panel/runtime-overview-panel.js +89 -0
  44. package/dist/components/selection-halo/index.js +6 -0
  45. package/dist/components/selection-halo/selection-halo.js +72 -0
  46. package/dist/components/snap-guides/index.js +6 -0
  47. package/dist/components/snap-guides/snap-guides.js +45 -0
  48. package/dist/components/state-badge-overlay/index.js +6 -0
  49. package/dist/components/state-badge-overlay/state-badge-overlay.js +90 -0
  50. package/dist/components/sticky-metric/index.js +6 -0
  51. package/dist/components/sticky-metric/sticky-metric.js +83 -0
  52. package/dist/components/threshold-ring/index.js +6 -0
  53. package/dist/components/threshold-ring/threshold-ring.js +160 -0
  54. package/dist/components/timeline-scrubber/index.js +6 -0
  55. package/dist/components/timeline-scrubber/timeline-scrubber.js +179 -0
  56. package/dist/index.d.ts +2168 -107
  57. package/package.json +1 -1
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const DEFAULT_LABELS = {
8
+ plural: "items",
9
+ region: "Multi-select lasso",
10
+ singular: "item"
11
+ };
12
+ const normalizeRect = (rect) => {
13
+ const x = rect.width < 0 ? rect.x + rect.width : rect.x;
14
+ const y = rect.height < 0 ? rect.y + rect.height : rect.y;
15
+ const width = Math.abs(rect.width);
16
+ const height = Math.abs(rect.height);
17
+ return { height, width, x, y };
18
+ };
19
+ const MultiSelectLasso = forwardRef((props, ref) => {
20
+ const { className, count, hint, labels, rect, ...rest } = props;
21
+ if (!rect) {
22
+ return null;
23
+ }
24
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
25
+ const normalized = normalizeRect(rect);
26
+ if (normalized.width === 0 || normalized.height === 0) {
27
+ return null;
28
+ }
29
+ const noun = count === 1 ? resolvedLabels.singular : resolvedLabels.plural;
30
+ return /* @__PURE__ */ jsxs(
31
+ "div",
32
+ {
33
+ "aria-hidden": "true",
34
+ "aria-label": resolvedLabels.region,
35
+ className: cn(
36
+ "pointer-events-none absolute z-30 rounded-md border-2 border-blue-500/70 bg-blue-500/10",
37
+ className
38
+ ),
39
+ "data-multi-select-lasso": true,
40
+ ref,
41
+ style: {
42
+ height: normalized.height,
43
+ left: normalized.x,
44
+ top: normalized.y,
45
+ width: normalized.width
46
+ },
47
+ ...rest,
48
+ children: [
49
+ hint ? /* @__PURE__ */ jsx(
50
+ "span",
51
+ {
52
+ className: "absolute -top-7 left-0 rounded-md bg-foreground/90 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-background",
53
+ "data-multi-select-hint": true,
54
+ children: hint
55
+ }
56
+ ) : null,
57
+ typeof count === "number" ? /* @__PURE__ */ jsxs(
58
+ "span",
59
+ {
60
+ className: "absolute -bottom-7 right-0 rounded-full bg-foreground px-2 py-0.5 text-[10px] font-semibold text-background",
61
+ "data-multi-select-count": true,
62
+ children: [
63
+ count,
64
+ " ",
65
+ noun
66
+ ]
67
+ }
68
+ ) : null
69
+ ]
70
+ }
71
+ );
72
+ });
73
+ MultiSelectLasso.displayName = "MultiSelectLasso";
74
+ export {
75
+ MultiSelectLasso
76
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ ObjectInspector
3
+ } from "./object-inspector";
4
+ export {
5
+ ObjectInspector
6
+ };
@@ -0,0 +1,136 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const KIND_LABEL = {
8
+ agent: "Agent",
9
+ artifact: "Artifact",
10
+ input: "Input",
11
+ output: "Output",
12
+ run: "Run",
13
+ task: "Task"
14
+ };
15
+ const KIND_GLYPH = {
16
+ agent: "\u25C7",
17
+ artifact: "\u25CC",
18
+ input: "\u2198",
19
+ output: "\u2197",
20
+ run: "\u25B6",
21
+ task: "\u25A2"
22
+ };
23
+ const STATUS_DOT = {
24
+ complete: "bg-emerald-500",
25
+ failed: "bg-red-500",
26
+ idle: "bg-muted-foreground",
27
+ queued: "bg-amber-500",
28
+ running: "bg-blue-500 animate-pulse"
29
+ };
30
+ const STATUS_LABEL = {
31
+ complete: "Complete",
32
+ failed: "Failed",
33
+ idle: "Idle",
34
+ queued: "Queued",
35
+ running: "Running"
36
+ };
37
+ const DEFAULT_LABELS = {
38
+ empty: "No selection",
39
+ region: "Object inspector"
40
+ };
41
+ const KindChip = (props) => /* @__PURE__ */ jsxs(
42
+ "span",
43
+ {
44
+ "aria-label": KIND_LABEL[props.kind],
45
+ className: "inline-flex items-center gap-1 rounded-full border border-border bg-background px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",
46
+ children: [
47
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: KIND_GLYPH[props.kind] }),
48
+ KIND_LABEL[props.kind]
49
+ ]
50
+ }
51
+ );
52
+ const StatusDot = (props) => /* @__PURE__ */ jsxs(
53
+ "span",
54
+ {
55
+ "aria-label": `Status ${STATUS_LABEL[props.status]}`,
56
+ className: "inline-flex items-center gap-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",
57
+ children: [
58
+ /* @__PURE__ */ jsx(
59
+ "span",
60
+ {
61
+ "aria-hidden": "true",
62
+ className: cn("h-1.5 w-1.5 rounded-full", STATUS_DOT[props.status])
63
+ }
64
+ ),
65
+ STATUS_LABEL[props.status]
66
+ ]
67
+ }
68
+ );
69
+ const Header = (props) => /* @__PURE__ */ jsxs("header", { className: "flex flex-col gap-2", children: [
70
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
71
+ /* @__PURE__ */ jsx(KindChip, { kind: props.kind }),
72
+ /* @__PURE__ */ jsx(StatusDot, { status: props.status })
73
+ ] }),
74
+ /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
75
+ /* @__PURE__ */ jsx("h3", { className: "truncate text-sm font-semibold text-foreground", children: props.title }),
76
+ props.subtitle ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: props.subtitle }) : null
77
+ ] })
78
+ ] });
79
+ const ObjectInspector = forwardRef(
80
+ (props, ref) => {
81
+ const {
82
+ children,
83
+ className,
84
+ kind,
85
+ labels,
86
+ status = "idle",
87
+ subtitle,
88
+ title,
89
+ ...rest
90
+ } = props;
91
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
92
+ if (!kind || !title) {
93
+ return /* @__PURE__ */ jsxs(
94
+ "section",
95
+ {
96
+ "aria-label": resolvedLabels.region,
97
+ className: cn(
98
+ "flex w-full flex-col items-center justify-center gap-1 rounded-2xl border bg-background p-6 text-center text-xs text-muted-foreground",
99
+ className
100
+ ),
101
+ "data-object-inspector": true,
102
+ "data-object-state": "empty",
103
+ ref,
104
+ ...rest,
105
+ children: [
106
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "text-lg", children: "\u25C7" }),
107
+ /* @__PURE__ */ jsx("span", { children: resolvedLabels.empty })
108
+ ]
109
+ }
110
+ );
111
+ }
112
+ return /* @__PURE__ */ jsxs(
113
+ "section",
114
+ {
115
+ "aria-label": resolvedLabels.region,
116
+ className: cn(
117
+ "flex w-full flex-col gap-3 rounded-2xl border bg-background p-3 text-foreground",
118
+ className
119
+ ),
120
+ "data-object-inspector": true,
121
+ "data-object-kind": kind,
122
+ "data-object-status": status,
123
+ ref,
124
+ ...rest,
125
+ children: [
126
+ /* @__PURE__ */ jsx(Header, { kind, status, subtitle, title }),
127
+ children ? /* @__PURE__ */ jsx("div", { className: "space-y-2", children }) : null
128
+ ]
129
+ }
130
+ );
131
+ }
132
+ );
133
+ ObjectInspector.displayName = "ObjectInspector";
134
+ export {
135
+ ObjectInspector
136
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ PlaybackGhost
3
+ } from "./playback-ghost";
4
+ export {
5
+ PlaybackGhost
6
+ };
@@ -0,0 +1,83 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const KIND_GLYPH = {
8
+ agent: "\u25C7",
9
+ artifact: "\u25CC",
10
+ input: "\u2198",
11
+ output: "\u2197",
12
+ run: "\u25B6",
13
+ task: "\u25A2"
14
+ };
15
+ const KIND_LABEL = {
16
+ agent: "Agent",
17
+ artifact: "Artifact",
18
+ input: "Input",
19
+ output: "Output",
20
+ run: "Run",
21
+ task: "Task"
22
+ };
23
+ const DEFAULT_LABELS = {
24
+ region: "Playback ghost"
25
+ };
26
+ const clamp01 = (v) => {
27
+ if (v < 0) {
28
+ return 0;
29
+ }
30
+ if (v > 1) {
31
+ return 1;
32
+ }
33
+ return v;
34
+ };
35
+ const PlaybackGhost = forwardRef(
36
+ (props, ref) => {
37
+ const {
38
+ className,
39
+ kind,
40
+ label,
41
+ labels,
42
+ opacity = 0.4,
43
+ size = 40,
44
+ x,
45
+ y,
46
+ ...rest
47
+ } = props;
48
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
49
+ const safeOpacity = clamp01(opacity);
50
+ const safeSize = size < 16 ? 16 : size;
51
+ const ariaLabel = kind ? `${resolvedLabels.region}: ${KIND_LABEL[kind]}` : resolvedLabels.region;
52
+ return /* @__PURE__ */ jsxs(
53
+ "div",
54
+ {
55
+ "aria-label": ariaLabel,
56
+ className: cn(
57
+ "pointer-events-none absolute z-10 inline-flex -translate-x-1/2 -translate-y-1/2 items-center justify-center gap-1.5 rounded-md border border-dashed border-border/70 bg-background/40 px-2 py-1 text-xs text-foreground backdrop-blur-sm",
58
+ className
59
+ ),
60
+ "data-playback-ghost": true,
61
+ "data-playback-kind": kind ?? "unknown",
62
+ ref,
63
+ role: "img",
64
+ style: {
65
+ left: x,
66
+ minHeight: safeSize,
67
+ minWidth: safeSize,
68
+ opacity: safeOpacity,
69
+ top: y
70
+ },
71
+ ...rest,
72
+ children: [
73
+ kind ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "text-muted-foreground", children: KIND_GLYPH[kind] }) : null,
74
+ label ? /* @__PURE__ */ jsx("span", { className: "truncate", "data-playback-ghost-label": true, children: label }) : null
75
+ ]
76
+ }
77
+ );
78
+ }
79
+ );
80
+ PlaybackGhost.displayName = "PlaybackGhost";
81
+ export {
82
+ PlaybackGhost
83
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ PolicyDeliveryPanel
3
+ } from "./policy-delivery-panel";
4
+ export {
5
+ PolicyDeliveryPanel
6
+ };
@@ -0,0 +1,99 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const STATUS_LABEL = {
8
+ advisory: "Advisory",
9
+ disabled: "Disabled",
10
+ enforced: "Enforced"
11
+ };
12
+ const STATUS_TONE = {
13
+ advisory: "border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300",
14
+ disabled: "border-border bg-muted/40 text-muted-foreground",
15
+ enforced: "border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"
16
+ };
17
+ const DEFAULT_LABELS = {
18
+ empty: "No policies",
19
+ region: "Policy delivery"
20
+ };
21
+ const RowBody = (props) => {
22
+ const { policy } = props;
23
+ return /* @__PURE__ */ jsxs("span", { className: "flex flex-1 flex-col gap-0.5 text-left", children: [
24
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between gap-2", children: [
25
+ /* @__PURE__ */ jsx("span", { className: "truncate text-xs font-medium text-foreground", children: policy.name }),
26
+ /* @__PURE__ */ jsx(
27
+ "span",
28
+ {
29
+ className: cn(
30
+ "rounded-full border px-1.5 py-0.5 text-[10px] uppercase tracking-wide",
31
+ STATUS_TONE[policy.status]
32
+ ),
33
+ children: STATUS_LABEL[policy.status]
34
+ }
35
+ )
36
+ ] }),
37
+ policy.description ? /* @__PURE__ */ jsx("span", { className: "truncate text-[10px] text-muted-foreground", children: policy.description }) : null
38
+ ] });
39
+ };
40
+ const Row = (props) => {
41
+ const { policy } = props;
42
+ if (policy.onToggle) {
43
+ const handleClick = () => {
44
+ policy.onToggle?.();
45
+ };
46
+ return /* @__PURE__ */ jsx(
47
+ "button",
48
+ {
49
+ className: "flex w-full items-center gap-2 rounded-md border border-transparent px-2 py-1.5 text-left transition-colors hover:border-border hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
50
+ "data-policy-row": policy.id,
51
+ "data-policy-status": policy.status,
52
+ onClick: handleClick,
53
+ type: "button",
54
+ children: /* @__PURE__ */ jsx(RowBody, { policy })
55
+ }
56
+ );
57
+ }
58
+ return /* @__PURE__ */ jsx(
59
+ "div",
60
+ {
61
+ className: "flex w-full items-center gap-2 rounded-md px-2 py-1.5",
62
+ "data-policy-row": policy.id,
63
+ "data-policy-status": policy.status,
64
+ children: /* @__PURE__ */ jsx(RowBody, { policy })
65
+ }
66
+ );
67
+ };
68
+ const PolicyDeliveryPanel = forwardRef((props, ref) => {
69
+ const { className, labels, policies, title = "Policies", ...rest } = props;
70
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
71
+ return /* @__PURE__ */ jsxs(
72
+ "section",
73
+ {
74
+ "aria-label": resolvedLabels.region,
75
+ className: cn(
76
+ "flex w-full flex-col gap-2 rounded-lg border bg-background p-3 text-foreground",
77
+ className
78
+ ),
79
+ "data-policy-delivery-panel": true,
80
+ ref,
81
+ ...rest,
82
+ children: [
83
+ /* @__PURE__ */ jsx("header", { children: /* @__PURE__ */ jsx("h3", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: title }) }),
84
+ policies.length === 0 ? /* @__PURE__ */ jsx(
85
+ "p",
86
+ {
87
+ className: "px-2 py-3 text-center text-xs text-muted-foreground",
88
+ "data-policy-state": "empty",
89
+ children: resolvedLabels.empty
90
+ }
91
+ ) : /* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: policies.map((policy) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Row, { policy }) }, policy.id)) })
92
+ ]
93
+ }
94
+ );
95
+ });
96
+ PolicyDeliveryPanel.displayName = "PolicyDeliveryPanel";
97
+ export {
98
+ PolicyDeliveryPanel
99
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ PresenceSyncIndicator
3
+ } from "./presence-sync-indicator";
4
+ export {
5
+ PresenceSyncIndicator
6
+ };
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const STATE_LABEL = {
8
+ error: "Sync error",
9
+ live: "Live",
10
+ offline: "Offline",
11
+ reconnecting: "Reconnecting",
12
+ syncing: "Syncing"
13
+ };
14
+ const STATE_DOT = {
15
+ error: "bg-red-500",
16
+ live: "bg-emerald-500",
17
+ offline: "bg-muted-foreground",
18
+ reconnecting: "bg-amber-500 animate-pulse",
19
+ syncing: "bg-blue-500 animate-pulse"
20
+ };
21
+ const STATE_TEXT = {
22
+ error: "text-red-700 dark:text-red-300",
23
+ live: "text-emerald-700 dark:text-emerald-300",
24
+ offline: "text-muted-foreground",
25
+ reconnecting: "text-amber-700 dark:text-amber-300",
26
+ syncing: "text-blue-700 dark:text-blue-300"
27
+ };
28
+ const DEFAULT_LABELS = {
29
+ region: "Presence sync"
30
+ };
31
+ const PresenceSyncIndicator = forwardRef((props, ref) => {
32
+ const { className, label, labels, state, status, ...rest } = props;
33
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
34
+ const text = label ?? STATE_LABEL[state];
35
+ return /* @__PURE__ */ jsxs(
36
+ "div",
37
+ {
38
+ "aria-label": `${resolvedLabels.region}: ${STATE_LABEL[state]}`,
39
+ className: cn(
40
+ "inline-flex items-center gap-1.5 rounded-full border border-border bg-background px-2 py-1 text-[11px] shadow-sm",
41
+ className
42
+ ),
43
+ "data-presence-state": state,
44
+ "data-presence-sync": true,
45
+ ref,
46
+ role: "status",
47
+ ...rest,
48
+ children: [
49
+ /* @__PURE__ */ jsx(
50
+ "span",
51
+ {
52
+ "aria-hidden": "true",
53
+ className: cn("h-1.5 w-1.5 rounded-full", STATE_DOT[state]),
54
+ "data-presence-sync-dot": true
55
+ }
56
+ ),
57
+ /* @__PURE__ */ jsx("span", { className: cn("font-medium", STATE_TEXT[state]), children: text }),
58
+ status ? /* @__PURE__ */ jsx(
59
+ "span",
60
+ {
61
+ className: "text-[10px] text-muted-foreground",
62
+ "data-presence-sync-status": true,
63
+ children: status
64
+ }
65
+ ) : null
66
+ ]
67
+ }
68
+ );
69
+ });
70
+ PresenceSyncIndicator.displayName = "PresenceSyncIndicator";
71
+ export {
72
+ PresenceSyncIndicator
73
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ PropertySection
3
+ } from "./property-section";
4
+ export {
5
+ PropertySection
6
+ };
@@ -0,0 +1,101 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef
5
+ } from "react";
6
+ import { cn } from "../../lib/utils";
7
+ const DEFAULT_LABELS = {
8
+ region: "Properties"
9
+ };
10
+ const Grid = (props) => /* @__PURE__ */ jsx(
11
+ "dl",
12
+ {
13
+ className: "grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1.5 px-3 pb-3 pt-1 text-xs",
14
+ "data-property-grid": true,
15
+ children: props.entries.map((entry) => /* @__PURE__ */ jsxs("div", { className: "contents", children: [
16
+ /* @__PURE__ */ jsxs(
17
+ "dt",
18
+ {
19
+ className: "flex flex-col text-muted-foreground",
20
+ "data-property-id": entry.id,
21
+ children: [
22
+ /* @__PURE__ */ jsx("span", { children: entry.label }),
23
+ entry.sublabel ? /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-wide text-muted-foreground/70", children: entry.sublabel }) : null
24
+ ]
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsx("dd", { className: "text-right text-foreground", children: entry.value })
28
+ ] }, entry.id))
29
+ }
30
+ );
31
+ const Body = (props) => {
32
+ const grid = /* @__PURE__ */ jsx(Grid, { entries: props.entries });
33
+ if (!props.title) {
34
+ return grid;
35
+ }
36
+ if (props.collapsible) {
37
+ return /* @__PURE__ */ jsxs("details", { className: "group", open: true, children: [
38
+ /* @__PURE__ */ jsxs(
39
+ "summary",
40
+ {
41
+ className: "flex cursor-pointer items-center justify-between gap-2 px-3 py-2 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",
42
+ "data-property-summary": true,
43
+ children: [
44
+ /* @__PURE__ */ jsx("span", { children: props.title }),
45
+ /* @__PURE__ */ jsx(
46
+ "span",
47
+ {
48
+ "aria-hidden": "true",
49
+ className: "text-muted-foreground/70 group-open:rotate-90",
50
+ children: "\u203A"
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ ),
56
+ grid
57
+ ] });
58
+ }
59
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
60
+ /* @__PURE__ */ jsx(
61
+ "header",
62
+ {
63
+ className: "flex items-center justify-between gap-2 border-b border-border px-3 py-2 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",
64
+ "data-property-header": true,
65
+ children: props.title
66
+ }
67
+ ),
68
+ grid
69
+ ] });
70
+ };
71
+ const PropertySection = forwardRef(
72
+ (props, ref) => {
73
+ const {
74
+ className,
75
+ collapsible = false,
76
+ entries,
77
+ labels,
78
+ title,
79
+ ...rest
80
+ } = props;
81
+ const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
82
+ return /* @__PURE__ */ jsx(
83
+ "section",
84
+ {
85
+ "aria-label": resolvedLabels.region,
86
+ className: cn(
87
+ "rounded-lg border bg-background text-foreground",
88
+ className
89
+ ),
90
+ "data-property-section": true,
91
+ ref,
92
+ ...rest,
93
+ children: /* @__PURE__ */ jsx(Body, { collapsible, entries, title })
94
+ }
95
+ );
96
+ }
97
+ );
98
+ PropertySection.displayName = "PropertySection";
99
+ export {
100
+ PropertySection
101
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ RelationshipInspector
3
+ } from "./relationship-inspector";
4
+ export {
5
+ RelationshipInspector
6
+ };