@vllnt/ui 0.4.0-canary.sha7e70be6 → 0.4.0-canary.sha84d8a21
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/CHANGELOG.md +117 -19
- package/README.md +35 -8
- package/dist/components/atoms/accordion/accordion.js +2 -2
- package/dist/components/atoms/agent-activity/agent-activity.js +1 -1
- package/dist/components/atoms/ai-source-citation/ai-source-citation.js +1 -1
- package/dist/components/atoms/alert/alert.js +1 -1
- package/dist/components/atoms/alert-pulse/alert-pulse.js +7 -4
- package/dist/components/atoms/badge/badge.js +84 -5
- package/dist/components/atoms/bottom-activity-strip/bottom-activity-strip.js +3 -2
- package/dist/components/atoms/checklist/checklist.js +2 -2
- package/dist/components/atoms/curriculum/curriculum.js +4 -4
- package/dist/components/atoms/dialog/dialog.js +4 -2
- package/dist/components/atoms/drawer/drawer.js +1 -1
- package/dist/components/atoms/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/components/atoms/floating-toolbar/floating-toolbar.js +23 -2
- package/dist/components/atoms/gauge-chart/gauge-chart.js +1 -1
- package/dist/components/atoms/glass-progress/glass-progress.js +1 -1
- package/dist/components/atoms/heat-overlay/heat-overlay.js +3 -2
- package/dist/components/atoms/jarvis-dock/jarvis-dock.js +2 -2
- package/dist/components/atoms/keyboard-shortcuts-help/keyboard-shortcuts-help.js +1 -1
- package/dist/components/atoms/menubar/menubar.js +1 -1
- package/dist/components/atoms/meter/meter.js +2 -2
- package/dist/components/atoms/metric-cluster/metric-cluster.js +2 -1
- package/dist/components/atoms/policy-delivery-panel/policy-delivery-panel.js +19 -10
- package/dist/components/atoms/presence-stack/presence-stack.js +1 -1
- package/dist/components/atoms/progress-bar/progress-bar.js +44 -16
- package/dist/components/atoms/quiz/quiz.js +2 -2
- package/dist/components/atoms/relationship-inspector/relationship-inspector.js +1 -1
- package/dist/components/atoms/routing-assignment-panel/routing-assignment-panel.js +20 -11
- package/dist/components/atoms/runtime-overview-panel/runtime-overview-panel.js +2 -1
- package/dist/components/atoms/segmented-control/segmented-control.js +2 -2
- package/dist/components/atoms/select/select.js +3 -3
- package/dist/components/atoms/skeleton/skeleton.js +1 -1
- package/dist/components/atoms/state-badge-overlay/state-badge-overlay.js +14 -16
- package/dist/components/atoms/stepper/stepper.js +1 -1
- package/dist/components/atoms/sticky-metric/sticky-metric.js +2 -1
- package/dist/components/atoms/table/table.js +1 -1
- package/dist/components/atoms/table-of-contents-panel/table-of-contents-panel.js +4 -4
- package/dist/components/atoms/tabs/tabs.js +1 -1
- package/dist/components/atoms/thread-bubble/thread-bubble.js +1 -1
- package/dist/components/atoms/threshold-ring/threshold-ring.js +3 -2
- package/dist/components/atoms/timeline-scrubber/timeline-scrubber.js +3 -2
- package/dist/components/atoms/tldr-section/tldr-section.js +5 -5
- package/dist/components/atoms/toggle/toggle.js +1 -1
- package/dist/components/atoms/view-switcher/view-switcher.js +1 -1
- package/dist/components/atoms/viewport-bookmarks/viewport-bookmarks.js +1 -1
- package/dist/components/atoms/watchlist/watchlist.js +1 -1
- package/dist/components/atoms/workspace-switcher/workspace-switcher.js +1 -1
- package/dist/components/molecules/ai-artifact/ai-artifact.js +2 -12
- package/dist/components/molecules/civilization-card/civilization-card.js +1 -1
- package/dist/components/molecules/completion-dialog/completion-dialog.js +1 -1
- package/dist/components/molecules/content-intro/content-intro.js +2 -2
- package/dist/components/molecules/conversation-thread/conversation-thread.js +5 -5
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +10 -12
- package/dist/components/molecules/countdown-timer/countdown-timer.js +1 -1
- package/dist/components/molecules/credit-badge/credit-badge.js +13 -16
- package/dist/components/molecules/filter-bar/filter-bar.js +2 -2
- package/dist/components/molecules/historical-figure-card/historical-figure-card.js +1 -1
- package/dist/components/molecules/plan-badge/plan-badge.js +12 -13
- package/dist/components/molecules/pricing-table/pricing-table.js +1 -1
- package/dist/components/molecules/progress-tracker/progress-tracker.js +1 -1
- package/dist/components/molecules/tour/tour.js +1 -1
- package/dist/components/molecules/transaction-list/transaction-list.js +7 -9
- package/dist/components/molecules/tutorial-filters/tutorial-filters.js +2 -2
- package/dist/components/molecules/usage-breakdown/usage-breakdown.js +1 -1
- package/dist/components/organisms/activity-heatmap/activity-heatmap.js +1 -1
- package/dist/components/organisms/flow-diagram/flow-controls.js +1 -1
- package/dist/components/organisms/flow-diagram/flow-fullscreen.js +1 -1
- package/dist/components/organisms/gantt-chart/gantt-chart.js +1 -1
- package/dist/components/organisms/historic-timeline/historic-timeline.js +1 -1
- package/dist/components/organisms/slideshow/slideshow.js +6 -6
- package/dist/components/organisms/subscription-card/subscription-card.js +10 -10
- package/dist/components/organisms/tutorial-complete/tutorial-complete.js +2 -2
- package/dist/components/organisms/tutorial-mdx/tutorial-mdx.js +1 -1
- package/dist/index.d.ts +222 -24
- package/dist/index.js +10 -0
- package/dist/lib/copy-text.js +64 -0
- package/dist/lib/status-dot.js +33 -0
- package/package.json +14 -3
- package/styles.css +27 -5
- package/themes/default.css +27 -5
- package/themes/presets.css +24 -24
- package/themes/products.css +11 -11
|
@@ -20,7 +20,7 @@ const ActionButton = (props) => {
|
|
|
20
20
|
return /* @__PURE__ */ jsxs(
|
|
21
21
|
"button",
|
|
22
22
|
{
|
|
23
|
-
className: "group relative flex size-12 flex-col items-center justify-center gap-0.5 rounded-md border border-transparent text-[10px] uppercase tracking-wide text-muted-foreground transition-colors hover:border-border hover:bg-
|
|
23
|
+
className: "group relative flex size-12 flex-col items-center justify-center gap-0.5 rounded-md border border-transparent text-[10px] uppercase tracking-wide text-muted-foreground transition-colors hover:border-border hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
24
24
|
"data-jarvis-action": action.id,
|
|
25
25
|
"data-jarvis-tone": tone,
|
|
26
26
|
onClick: handleActivateAction,
|
|
@@ -78,7 +78,7 @@ const JarvisDock = ({
|
|
|
78
78
|
"button",
|
|
79
79
|
{
|
|
80
80
|
"aria-label": resolvedLabels.paletteTrigger,
|
|
81
|
-
className: "flex size-12 items-center justify-center rounded-md border border-transparent text-base text-muted-foreground transition-colors hover:border-border hover:bg-
|
|
81
|
+
className: "flex size-12 items-center justify-center rounded-md border border-transparent text-base text-muted-foreground transition-colors hover:border-border hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
82
82
|
"data-jarvis-palette-trigger": true,
|
|
83
83
|
onClick: handlePalette,
|
|
84
84
|
type: "button",
|
|
@@ -100,7 +100,7 @@ function KeyboardShortcutsHelpImpl({
|
|
|
100
100
|
"button",
|
|
101
101
|
{
|
|
102
102
|
"aria-label": "Close shortcuts help",
|
|
103
|
-
className: "flex size-8 items-center justify-center rounded-md hover:bg-
|
|
103
|
+
className: "flex size-8 items-center justify-center rounded-md hover:bg-secondary",
|
|
104
104
|
onClick: onClose,
|
|
105
105
|
ref: closeButtonRef,
|
|
106
106
|
type: "button",
|
|
@@ -43,7 +43,7 @@ const Meter = ({
|
|
|
43
43
|
"aria-valuenow": current,
|
|
44
44
|
"aria-valuetext": valueText,
|
|
45
45
|
className: cn(
|
|
46
|
-
"h-2 w-full overflow-hidden rounded-full bg-
|
|
46
|
+
"h-2 w-full overflow-hidden rounded-full bg-secondary",
|
|
47
47
|
segmentCount > 0 && "flex gap-0.5 bg-transparent",
|
|
48
48
|
className
|
|
49
49
|
),
|
|
@@ -55,7 +55,7 @@ const Meter = ({
|
|
|
55
55
|
{
|
|
56
56
|
className: cn(
|
|
57
57
|
"h-full flex-1 rounded-full",
|
|
58
|
-
index < filledSegments ? meterFillVariants({ variant }) : "bg-
|
|
58
|
+
index < filledSegments ? meterFillVariants({ variant }) : "bg-secondary"
|
|
59
59
|
)
|
|
60
60
|
},
|
|
61
61
|
`meter-segment-${index}`
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { statusDotVariants } from "../../../lib/status-dot.js";
|
|
3
4
|
import { cn } from "../../../lib/utils.js";
|
|
4
5
|
const STATUS_LABEL = {
|
|
5
6
|
advisory: "Advisory",
|
|
@@ -7,9 +8,9 @@ const STATUS_LABEL = {
|
|
|
7
8
|
enforced: "Enforced"
|
|
8
9
|
};
|
|
9
10
|
const STATUS_TONE = {
|
|
10
|
-
advisory: "
|
|
11
|
-
disabled: "
|
|
12
|
-
enforced: "
|
|
11
|
+
advisory: "warning",
|
|
12
|
+
disabled: "neutral",
|
|
13
|
+
enforced: "success"
|
|
13
14
|
};
|
|
14
15
|
const DEFAULT_LABELS = {
|
|
15
16
|
empty: "No policies",
|
|
@@ -20,14 +21,22 @@ const RowBody = (props) => {
|
|
|
20
21
|
return /* @__PURE__ */ jsxs("span", { className: "flex flex-1 flex-col gap-0.5 text-left", children: [
|
|
21
22
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between gap-2", children: [
|
|
22
23
|
/* @__PURE__ */ jsx("span", { className: "truncate text-xs font-medium text-foreground", children: policy.name }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ jsxs(
|
|
24
25
|
"span",
|
|
25
26
|
{
|
|
26
|
-
className:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-secondary px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-foreground",
|
|
28
|
+
"data-policy-status-chip": true,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
"span",
|
|
32
|
+
{
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
className: statusDotVariants({ tone: STATUS_TONE[policy.status] }),
|
|
35
|
+
"data-policy-status-dot": true
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
STATUS_LABEL[policy.status]
|
|
39
|
+
]
|
|
31
40
|
}
|
|
32
41
|
)
|
|
33
42
|
] }),
|
|
@@ -43,7 +52,7 @@ const Row = (props) => {
|
|
|
43
52
|
return /* @__PURE__ */ jsx(
|
|
44
53
|
"button",
|
|
45
54
|
{
|
|
46
|
-
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-
|
|
55
|
+
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-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
47
56
|
"data-policy-row": policy.id,
|
|
48
57
|
"data-policy-status": policy.status,
|
|
49
58
|
onClick: handleTogglePolicy,
|
|
@@ -95,7 +95,7 @@ const renderOverflow = (input) => {
|
|
|
95
95
|
"aria-label": aria,
|
|
96
96
|
className: cn(
|
|
97
97
|
className,
|
|
98
|
-
"transition-colors hover:bg-
|
|
98
|
+
"transition-colors hover:bg-secondary/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
99
99
|
),
|
|
100
100
|
"data-presence-stack-overflow": true,
|
|
101
101
|
onClick: input.handleClick,
|
|
@@ -3,18 +3,21 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { cn } from "../../../lib/utils.js";
|
|
6
|
-
const progressBarTrackVariants = cva(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
const progressBarTrackVariants = cva(
|
|
7
|
+
"overflow-hidden rounded-full bg-secondary",
|
|
8
|
+
{
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
size: "md"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
lg: "h-3",
|
|
15
|
+
md: "h-2",
|
|
16
|
+
sm: "h-1"
|
|
17
|
+
}
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
);
|
|
18
21
|
const progressBarFillVariants = cva("h-full", {
|
|
19
22
|
defaultVariants: {
|
|
20
23
|
tone: "primary"
|
|
@@ -45,6 +48,14 @@ const progressBarCompleteVariants = cva("", {
|
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
});
|
|
51
|
+
const BLOCKS = Array.from({ length: 10 }, (_, index) => index + 1);
|
|
52
|
+
function countFilledBlocks(value, max) {
|
|
53
|
+
if (max <= 0) {
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
const filled = Math.floor(value * BLOCKS.length / max);
|
|
57
|
+
return Math.min(Math.max(filled, 0), BLOCKS.length);
|
|
58
|
+
}
|
|
48
59
|
function renderValueText({
|
|
49
60
|
completedLabel,
|
|
50
61
|
isIndeterminate,
|
|
@@ -73,8 +84,8 @@ function renderValueText({
|
|
|
73
84
|
}
|
|
74
85
|
function ProgressBarHeader(props) {
|
|
75
86
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between mb-2 h-5", children: props.isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
76
|
-
/* @__PURE__ */ jsx("span", { className: "h-5 w-16 bg-
|
|
77
|
-
/* @__PURE__ */ jsx("span", { className: "h-5 w-24 bg-
|
|
87
|
+
/* @__PURE__ */ jsx("span", { className: "h-5 w-16 bg-secondary rounded animate-pulse motion-reduce:animate-none" }),
|
|
88
|
+
/* @__PURE__ */ jsx("span", { className: "h-5 w-24 bg-secondary rounded animate-pulse motion-reduce:animate-none" })
|
|
78
89
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
90
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium leading-5", id: props.labelId, children: props.label }),
|
|
80
91
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-5", children: renderValueText(props) })
|
|
@@ -82,6 +93,7 @@ function ProgressBarHeader(props) {
|
|
|
82
93
|
}
|
|
83
94
|
function ProgressBarTrack({
|
|
84
95
|
ariaLabel,
|
|
96
|
+
blocks,
|
|
85
97
|
isIndeterminate,
|
|
86
98
|
isLoading,
|
|
87
99
|
labelledBy,
|
|
@@ -92,6 +104,8 @@ function ProgressBarTrack({
|
|
|
92
104
|
value
|
|
93
105
|
}) {
|
|
94
106
|
const isValueKnown = !isLoading && !isIndeterminate;
|
|
107
|
+
const showBlocks = blocks === true && !isIndeterminate;
|
|
108
|
+
const filledBlocks = isValueKnown ? countFilledBlocks(value, max) : 0;
|
|
95
109
|
return /* @__PURE__ */ jsx(
|
|
96
110
|
"div",
|
|
97
111
|
{
|
|
@@ -100,14 +114,26 @@ function ProgressBarTrack({
|
|
|
100
114
|
"aria-valuemax": max,
|
|
101
115
|
"aria-valuemin": 0,
|
|
102
116
|
"aria-valuenow": isValueKnown ? value : void 0,
|
|
103
|
-
className:
|
|
117
|
+
className: cn(
|
|
118
|
+
progressBarTrackVariants({ size }),
|
|
119
|
+
showBlocks && "flex gap-0.5 bg-transparent"
|
|
120
|
+
),
|
|
104
121
|
role: "progressbar",
|
|
105
|
-
children: /* @__PURE__ */ jsx(
|
|
122
|
+
children: showBlocks ? BLOCKS.map((block) => /* @__PURE__ */ jsx(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: cn(
|
|
126
|
+
"h-full flex-1 transition-colors duration-300 motion-reduce:transition-none",
|
|
127
|
+
block <= filledBlocks ? progressBarFillVariants({ tone }) : "bg-muted"
|
|
128
|
+
)
|
|
129
|
+
},
|
|
130
|
+
block
|
|
131
|
+
)) : /* @__PURE__ */ jsx(
|
|
106
132
|
"div",
|
|
107
133
|
{
|
|
108
134
|
className: cn(
|
|
109
135
|
progressBarFillVariants({ tone }),
|
|
110
|
-
isIndeterminate ? "w-full animate-shimmer motion-reduce:w-1/3 motion-reduce:animate-none" : "transition-all duration-300",
|
|
136
|
+
isIndeterminate ? "w-full animate-shimmer motion-reduce:w-1/3 motion-reduce:animate-none" : "transition-all duration-300 motion-reduce:transition-none",
|
|
111
137
|
isLoading && "w-0"
|
|
112
138
|
),
|
|
113
139
|
style: isValueKnown ? { width: `${percent}%` } : void 0
|
|
@@ -118,6 +144,7 @@ function ProgressBarTrack({
|
|
|
118
144
|
}
|
|
119
145
|
const ProgressBar = ({
|
|
120
146
|
"aria-label": ariaLabel,
|
|
147
|
+
blocks,
|
|
121
148
|
className,
|
|
122
149
|
completedLabel,
|
|
123
150
|
currentLabel,
|
|
@@ -143,7 +170,7 @@ const ProgressBar = ({
|
|
|
143
170
|
"div",
|
|
144
171
|
{
|
|
145
172
|
className: cn(
|
|
146
|
-
"border rounded-lg p-4 transition-colors",
|
|
173
|
+
"border rounded-lg p-4 transition-colors motion-reduce:transition-none",
|
|
147
174
|
!isLoading && isComplete ? progressBarCompleteVariants({ tone: resolvedTone }) : "border-border bg-muted/30",
|
|
148
175
|
className
|
|
149
176
|
),
|
|
@@ -168,6 +195,7 @@ const ProgressBar = ({
|
|
|
168
195
|
ProgressBarTrack,
|
|
169
196
|
{
|
|
170
197
|
ariaLabel,
|
|
198
|
+
blocks,
|
|
171
199
|
isIndeterminate,
|
|
172
200
|
isLoading,
|
|
173
201
|
labelledBy,
|
|
@@ -39,7 +39,7 @@ function QuizOptionButton({
|
|
|
39
39
|
"button",
|
|
40
40
|
{
|
|
41
41
|
className: cn(
|
|
42
|
-
"w-full text-left p-3 rounded-md border transition-colors hover:bg-
|
|
42
|
+
"w-full text-left p-3 rounded-md border transition-colors hover:bg-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary",
|
|
43
43
|
isSelected && !submitted && "border-primary bg-primary/10",
|
|
44
44
|
showResult && option.correct && "border-green-500 bg-green-500/10",
|
|
45
45
|
showResult && !option.correct && "border-red-500 bg-red-500/10",
|
|
@@ -141,7 +141,7 @@ function QuizActions({
|
|
|
141
141
|
return /* @__PURE__ */ jsx("div", { className: "flex gap-2", children: submitted ? /* @__PURE__ */ jsx(
|
|
142
142
|
"button",
|
|
143
143
|
{
|
|
144
|
-
className: "px-3 py-1.5 text-sm rounded-md border border-border hover:bg-
|
|
144
|
+
className: "px-3 py-1.5 text-sm rounded-md border border-border hover:bg-secondary transition-colors",
|
|
145
145
|
onClick: onReset,
|
|
146
146
|
type: "button",
|
|
147
147
|
children: "Try Again"
|
|
@@ -31,7 +31,7 @@ const Row = (props) => {
|
|
|
31
31
|
return /* @__PURE__ */ jsx(
|
|
32
32
|
"button",
|
|
33
33
|
{
|
|
34
|
-
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-
|
|
34
|
+
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-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
35
35
|
"data-relationship-direction": edge.direction,
|
|
36
36
|
"data-relationship-row": true,
|
|
37
37
|
onClick: handleActivateRelationship,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { statusDotVariants } from "../../../lib/status-dot.js";
|
|
3
4
|
import { cn } from "../../../lib/utils.js";
|
|
4
5
|
const ROLE_LABEL = {
|
|
5
6
|
fallback: "Fallback",
|
|
@@ -7,9 +8,9 @@ const ROLE_LABEL = {
|
|
|
7
8
|
shadow: "Shadow"
|
|
8
9
|
};
|
|
9
10
|
const ROLE_TONE = {
|
|
10
|
-
fallback: "
|
|
11
|
-
primary: "
|
|
12
|
-
shadow: "
|
|
11
|
+
fallback: "warning",
|
|
12
|
+
primary: "success",
|
|
13
|
+
shadow: "neutral"
|
|
13
14
|
};
|
|
14
15
|
const DEFAULT_LABELS = {
|
|
15
16
|
empty: "No assignments",
|
|
@@ -30,14 +31,22 @@ const RowBody = (props) => {
|
|
|
30
31
|
return /* @__PURE__ */ jsxs("span", { className: "flex flex-1 flex-col gap-1", children: [
|
|
31
32
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between gap-2", children: [
|
|
32
33
|
/* @__PURE__ */ jsx("span", { className: "truncate text-xs text-foreground", children: assignment.agent }),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ jsxs(
|
|
34
35
|
"span",
|
|
35
36
|
{
|
|
36
|
-
className:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-secondary px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-foreground",
|
|
38
|
+
"data-routing-role-chip": true,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
className: statusDotVariants({ tone: ROLE_TONE[assignment.role] }),
|
|
45
|
+
"data-routing-role-dot": true
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
ROLE_LABEL[assignment.role]
|
|
49
|
+
]
|
|
41
50
|
}
|
|
42
51
|
)
|
|
43
52
|
] }),
|
|
@@ -45,7 +54,7 @@ const RowBody = (props) => {
|
|
|
45
54
|
"span",
|
|
46
55
|
{
|
|
47
56
|
"aria-hidden": "true",
|
|
48
|
-
className: "h-1 w-full overflow-hidden rounded-full bg-
|
|
57
|
+
className: "h-1 w-full overflow-hidden rounded-full bg-secondary/40",
|
|
49
58
|
children: /* @__PURE__ */ jsx(
|
|
50
59
|
"span",
|
|
51
60
|
{
|
|
@@ -66,7 +75,7 @@ const Row = (props) => {
|
|
|
66
75
|
return /* @__PURE__ */ jsx(
|
|
67
76
|
"button",
|
|
68
77
|
{
|
|
69
|
-
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-
|
|
78
|
+
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-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
70
79
|
"data-routing-assignment": assignment.id,
|
|
71
80
|
"data-routing-role": assignment.role,
|
|
72
81
|
onClick: handleActivateAssignment,
|
|
@@ -4,7 +4,7 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const segmentedControlVariants = cva(
|
|
7
|
-
"inline-flex w-full items-center rounded-lg bg-
|
|
7
|
+
"inline-flex w-full items-center rounded-lg bg-secondary p-1 text-muted-foreground",
|
|
8
8
|
{
|
|
9
9
|
defaultVariants: {
|
|
10
10
|
size: "default"
|
|
@@ -19,7 +19,7 @@ const segmentedControlVariants = cva(
|
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
const segmentedControlItemVariants = cva(
|
|
22
|
-
"inline-flex flex-1 items-center justify-center rounded-md px-3 text-sm font-medium whitespace-nowrap transition-all outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",
|
|
22
|
+
"inline-flex flex-1 items-center justify-center rounded-md px-3 text-sm font-medium whitespace-nowrap transition-all motion-reduce:transition-none outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",
|
|
23
23
|
{
|
|
24
24
|
defaultVariants: {
|
|
25
25
|
size: "default"
|
|
@@ -15,7 +15,7 @@ const SelectTrigger = ({
|
|
|
15
15
|
SelectPrimitive.Trigger,
|
|
16
16
|
{
|
|
17
17
|
className: cn(
|
|
18
|
-
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
18
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 aria-[invalid=true]:border-destructive disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
19
19
|
className
|
|
20
20
|
),
|
|
21
21
|
ref,
|
|
@@ -71,7 +71,7 @@ const SelectContent = ({
|
|
|
71
71
|
SelectPrimitive.Content,
|
|
72
72
|
{
|
|
73
73
|
className: cn(
|
|
74
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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",
|
|
74
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out 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",
|
|
75
75
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
76
76
|
className
|
|
77
77
|
),
|
|
@@ -136,7 +136,7 @@ const SelectSeparator = ({
|
|
|
136
136
|
}) => /* @__PURE__ */ jsx(
|
|
137
137
|
SelectPrimitive.Separator,
|
|
138
138
|
{
|
|
139
|
-
className: cn("-m-1 h-px bg-
|
|
139
|
+
className: cn("-m-1 h-px bg-border", className),
|
|
140
140
|
ref,
|
|
141
141
|
...props
|
|
142
142
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { statusDotVariants } from "../../../lib/status-dot.js";
|
|
3
4
|
import { cn } from "../../../lib/utils.js";
|
|
4
5
|
const STATE_LABEL = {
|
|
5
6
|
complete: "Complete",
|
|
@@ -10,20 +11,15 @@ const STATE_LABEL = {
|
|
|
10
11
|
stopped: "Stopped"
|
|
11
12
|
};
|
|
12
13
|
const STATE_TONE = {
|
|
13
|
-
complete: "
|
|
14
|
-
failed: "
|
|
15
|
-
idle: "
|
|
16
|
-
queued: "
|
|
17
|
-
running: "
|
|
18
|
-
stopped: "
|
|
14
|
+
complete: "success",
|
|
15
|
+
failed: "danger",
|
|
16
|
+
idle: "neutral",
|
|
17
|
+
queued: "warning",
|
|
18
|
+
running: "info",
|
|
19
|
+
stopped: "neutral"
|
|
19
20
|
};
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
failed: "bg-red-500",
|
|
23
|
-
idle: "bg-muted-foreground",
|
|
24
|
-
queued: "bg-amber-500",
|
|
25
|
-
running: "bg-blue-500 animate-pulse motion-reduce:animate-none",
|
|
26
|
-
stopped: "bg-muted-foreground"
|
|
21
|
+
const STATE_DOT_MOTION = {
|
|
22
|
+
running: "animate-pulse motion-reduce:animate-none"
|
|
27
23
|
};
|
|
28
24
|
const ANCHOR_TRANSFORM = {
|
|
29
25
|
"bottom-left": "translate(-100%, 100%)",
|
|
@@ -55,8 +51,7 @@ const StateBadgeOverlay = ({
|
|
|
55
51
|
{
|
|
56
52
|
"aria-label": `${resolvedLabels.region}: ${STATE_LABEL[state]}`,
|
|
57
53
|
className: cn(
|
|
58
|
-
"pointer-events-none absolute z-20 inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide shadow-sm backdrop-blur",
|
|
59
|
-
STATE_TONE[state],
|
|
54
|
+
"pointer-events-none absolute z-20 inline-flex items-center gap-1 rounded-full border border-border bg-secondary px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-foreground shadow-sm backdrop-blur",
|
|
60
55
|
className
|
|
61
56
|
),
|
|
62
57
|
"data-state-anchor": anchor,
|
|
@@ -75,7 +70,10 @@ const StateBadgeOverlay = ({
|
|
|
75
70
|
"span",
|
|
76
71
|
{
|
|
77
72
|
"aria-hidden": "true",
|
|
78
|
-
className: cn(
|
|
73
|
+
className: cn(
|
|
74
|
+
statusDotVariants({ tone: STATE_TONE[state] }),
|
|
75
|
+
STATE_DOT_MOTION[state]
|
|
76
|
+
),
|
|
79
77
|
"data-state-badge-dot": true
|
|
80
78
|
}
|
|
81
79
|
),
|
|
@@ -39,7 +39,7 @@ function StepperItem({
|
|
|
39
39
|
{
|
|
40
40
|
className: cn(
|
|
41
41
|
"flex w-full items-start gap-3 rounded-lg text-left transition-colors",
|
|
42
|
-
clickable ? "hover:bg-
|
|
42
|
+
clickable ? "hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" : "cursor-default",
|
|
43
43
|
isVertical ? "p-2" : "flex-col items-start p-2 md:p-0"
|
|
44
44
|
),
|
|
45
45
|
disabled: !clickable,
|
|
@@ -5,7 +5,8 @@ const TONE_DOT = {
|
|
|
5
5
|
danger: "bg-red-500",
|
|
6
6
|
neutral: "bg-muted-foreground",
|
|
7
7
|
success: "bg-emerald-500",
|
|
8
|
-
warn: "bg-amber-500"
|
|
8
|
+
warn: "bg-amber-500",
|
|
9
|
+
warning: "bg-amber-500"
|
|
9
10
|
};
|
|
10
11
|
const ANCHOR_OFFSET = {
|
|
11
12
|
"bottom-left": { transform: "translate(-100%, 100%)" },
|
|
@@ -42,7 +42,7 @@ function TocHeader({
|
|
|
42
42
|
"button",
|
|
43
43
|
{
|
|
44
44
|
"aria-label": "Close table of contents",
|
|
45
|
-
className: "flex size-8 items-center justify-center rounded-md hover:bg-
|
|
45
|
+
className: "flex size-8 items-center justify-center rounded-md hover:bg-secondary",
|
|
46
46
|
onClick: onClose,
|
|
47
47
|
ref: closeButtonRef,
|
|
48
48
|
type: "button",
|
|
@@ -73,7 +73,7 @@ function TocFooter({ onReset, resetLabel }) {
|
|
|
73
73
|
return /* @__PURE__ */ jsx("div", { className: "border-t border-border px-4 py-3", children: /* @__PURE__ */ jsx(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
className: "w-full rounded-md border border-border px-3 py-2 text-sm text-muted-foreground hover:bg-
|
|
76
|
+
className: "w-full rounded-md border border-border px-3 py-2 text-sm text-muted-foreground hover:bg-secondary hover:text-foreground transition-colors",
|
|
77
77
|
onClick: onReset,
|
|
78
78
|
type: "button",
|
|
79
79
|
children: resetLabel
|
|
@@ -98,7 +98,7 @@ function TocProgress({
|
|
|
98
98
|
"%)"
|
|
99
99
|
] })
|
|
100
100
|
] }),
|
|
101
|
-
/* @__PURE__ */ jsx("div", { className: "mt-2 h-2 rounded-full bg-
|
|
101
|
+
/* @__PURE__ */ jsx("div", { className: "mt-2 h-2 rounded-full bg-secondary", children: /* @__PURE__ */ jsx(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
104
104
|
className: "h-full rounded-full bg-primary transition-all duration-300",
|
|
@@ -122,7 +122,7 @@ function TocSectionList({
|
|
|
122
122
|
{
|
|
123
123
|
className: cn(
|
|
124
124
|
"flex w-full items-center gap-3 rounded-md px-3 py-2 text-left text-sm transition-colors",
|
|
125
|
-
isCurrent ? "bg-primary/10 text-primary font-medium" : "hover:bg-
|
|
125
|
+
isCurrent ? "bg-primary/10 text-primary font-medium" : "hover:bg-secondary text-foreground"
|
|
126
126
|
),
|
|
127
127
|
onClick: () => {
|
|
128
128
|
onSelectSection(index);
|
|
@@ -29,7 +29,7 @@ const tabsTriggerVariants = cva(
|
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
31
|
link: "underline-offset-4 data-[state=active]:text-foreground data-[state=active]:underline data-[state=inactive]:text-muted-foreground data-[state=inactive]:hover:text-foreground data-[state=inactive]:hover:underline",
|
|
32
|
-
pill: "rounded-full data-[state=active]:bg-
|
|
32
|
+
pill: "rounded-full data-[state=active]:bg-secondary data-[state=active]:text-foreground data-[state=inactive]:text-muted-foreground data-[state=inactive]:hover:bg-secondary/50 data-[state=inactive]:hover:text-foreground",
|
|
33
33
|
underline: "-mb-px border-b-2 data-[state=active]:border-primary data-[state=active]:text-primary data-[state=inactive]:border-transparent data-[state=inactive]:text-muted-foreground data-[state=inactive]:hover:border-muted-foreground/50 data-[state=inactive]:hover:text-foreground"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -51,7 +51,7 @@ const ThreadBubble = ({
|
|
|
51
51
|
onResolve ? /* @__PURE__ */ jsx(
|
|
52
52
|
"button",
|
|
53
53
|
{
|
|
54
|
-
className: "rounded-full border border-border px-2 py-0.5 text-[10px] font-medium text-muted-foreground transition-colors hover:bg-
|
|
54
|
+
className: "rounded-full border border-border px-2 py-0.5 text-[10px] font-medium text-muted-foreground transition-colors hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
55
55
|
"data-thread-bubble-resolve": true,
|
|
56
56
|
onClick: handleResolve,
|
|
57
57
|
type: "button",
|
|
@@ -5,7 +5,8 @@ const TONE_STROKE = {
|
|
|
5
5
|
danger: "stroke-red-500",
|
|
6
6
|
neutral: "stroke-foreground",
|
|
7
7
|
success: "stroke-emerald-500",
|
|
8
|
-
warn: "stroke-amber-500"
|
|
8
|
+
warn: "stroke-amber-500",
|
|
9
|
+
warning: "stroke-amber-500"
|
|
9
10
|
};
|
|
10
11
|
const DEFAULT_LABELS = {
|
|
11
12
|
region: "Threshold ring"
|
|
@@ -112,7 +113,7 @@ const ThresholdRing = ({
|
|
|
112
113
|
/* @__PURE__ */ jsx(
|
|
113
114
|
"circle",
|
|
114
115
|
{
|
|
115
|
-
className: "stroke-
|
|
116
|
+
className: "stroke-secondary",
|
|
116
117
|
cx: geom.cx,
|
|
117
118
|
cy: geom.cy,
|
|
118
119
|
fill: "none",
|
|
@@ -9,7 +9,8 @@ const TONE_FILL = {
|
|
|
9
9
|
neutral: "bg-foreground",
|
|
10
10
|
primary: "bg-blue-500",
|
|
11
11
|
success: "bg-emerald-500",
|
|
12
|
-
warn: "bg-amber-500"
|
|
12
|
+
warn: "bg-amber-500",
|
|
13
|
+
warning: "bg-amber-500"
|
|
13
14
|
};
|
|
14
15
|
const DEFAULT_LABELS = {
|
|
15
16
|
region: "Timeline scrubber"
|
|
@@ -43,7 +44,7 @@ const Track = (props) => /* @__PURE__ */ jsxs("div", { className: "relative h-6"
|
|
|
43
44
|
"span",
|
|
44
45
|
{
|
|
45
46
|
"aria-hidden": "true",
|
|
46
|
-
className: "absolute left-0 right-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-
|
|
47
|
+
className: "absolute left-0 right-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-secondary"
|
|
47
48
|
}
|
|
48
49
|
),
|
|
49
50
|
/* @__PURE__ */ jsx(
|