@opencode-ai/ui 1.17.16 → 1.17.17
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/components/icon.d.ts +1 -0
- package/dist/v2/components/dialog-v2.d.ts +1 -0
- package/dist/v2/components/icon.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/icon.tsx +2 -1
- package/src/styles/theme.css +20 -16
- package/src/theme/v2/mapping.ts +20 -16
- package/src/v2/components/button-v2.css +1 -1
- package/src/v2/components/dialog-v2.tsx +3 -2
- package/src/v2/components/icon.tsx +4 -0
- package/src/v2/styles/theme.css +30 -24
|
@@ -4,6 +4,7 @@ export interface DialogProps extends ParentProps {
|
|
|
4
4
|
size?: "normal" | "large" | "x-large";
|
|
5
5
|
variant?: "default" | "settings";
|
|
6
6
|
class?: ComponentProps<"div">["class"];
|
|
7
|
+
containerClass?: ComponentProps<"div">["class"];
|
|
7
8
|
classList?: ComponentProps<"div">["classList"];
|
|
8
9
|
fit?: boolean;
|
|
9
10
|
}
|
package/package.json
CHANGED
package/src/components/icon.tsx
CHANGED
|
@@ -52,6 +52,7 @@ const icons = {
|
|
|
52
52
|
"magnifying-glass-menu": `<path d="M2.08325 10.0002H4.58325M2.08325 5.41683H5.41659M2.08325 14.5835H5.41659M16.4583 13.9585L18.7499 16.2502M17.9166 10.0002C17.9166 12.9917 15.4915 15.4168 12.4999 15.4168C9.50838 15.4168 7.08325 12.9917 7.08325 10.0002C7.08325 7.00862 9.50838 4.5835 12.4999 4.5835C15.4915 4.5835 17.9166 7.00862 17.9166 10.0002Z" stroke="currentColor" stroke-linecap="square"/>`,
|
|
53
53
|
"window-cursor": `<path d="M17.9166 10.4167V3.75H2.08325V17.0833H10.4166M17.9166 13.5897L11.6666 11.6667L13.5897 17.9167L15.032 15.0321L17.9166 13.5897Z" stroke="currentColor" stroke-width="1.07143" stroke-linecap="square"/><path d="M5.00024 6.125C5.29925 6.12518 5.54126 6.36795 5.54126 6.66699C5.54108 6.96589 5.29914 7.20783 5.00024 7.20801C4.7012 7.20801 4.45843 6.966 4.45825 6.66699C4.45825 6.36784 4.70109 6.125 5.00024 6.125ZM7.91626 6.125C8.21541 6.125 8.45825 6.36784 8.45825 6.66699C8.45808 6.966 8.21531 7.20801 7.91626 7.20801C7.61736 7.20783 7.37542 6.96589 7.37524 6.66699C7.37524 6.36795 7.61726 6.12518 7.91626 6.125ZM10.8333 6.125C11.1324 6.125 11.3752 6.36784 11.3752 6.66699C11.3751 6.966 11.1323 7.20801 10.8333 7.20801C10.5342 7.20801 10.2914 6.966 10.2913 6.66699C10.2913 6.36784 10.5341 6.125 10.8333 6.125Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="square"/>`,
|
|
54
54
|
task: `<path d="M9.99992 2.0835V17.9168M7.08325 3.75016H2.08325V16.2502H7.08325M12.9166 16.2502H17.9166V3.75016H12.9166" stroke="currentColor" stroke-linecap="square"/>`,
|
|
55
|
+
subagent: `<path d="M4.5 5C4.5 4.72386 4.72386 4.5 5 4.5H11C11.2761 4.5 11.5 4.72386 11.5 5V11C11.5 11.2761 11.2761 11.5 11 11.5H5C4.72386 11.5 4.5 11.2761 4.5 11V5Z" fill="currentColor"/><path d="M13.5 2C13.7761 2 14 2.22386 14 2.5V13.5C14 13.7761 13.7761 14 13.5 14H2.5C2.22386 14 2 13.7761 2 13.5V2.5C2 2.22386 2.22386 2 2.5 2H13.5ZM3 13H13V3H3V13Z" fill="currentColor"/>`,
|
|
55
56
|
stop: `<rect x="5" y="5" width="10" height="10" fill="currentColor"/>`,
|
|
56
57
|
status: `<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`,
|
|
57
58
|
"status-active": `<path d="M18 2H2V10H18V2Z" fill="currentColor" fill-opacity="0.1"/>
|
|
@@ -110,7 +111,7 @@ const symbol = (name: keyof typeof icons) => `opencode-icon-${name}`
|
|
|
110
111
|
let spriteInserted = false
|
|
111
112
|
|
|
112
113
|
function viewBox(name: keyof typeof icons) {
|
|
113
|
-
return name === "magnifying-glass" || name === "arrow-undo-down" ? "0 0 16 16" : "0 0 20 20"
|
|
114
|
+
return name === "magnifying-glass" || name === "arrow-undo-down" || name === "subagent" ? "0 0 16 16" : "0 0 20 20"
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
function ensureSprite() {
|
package/src/styles/theme.css
CHANGED
|
@@ -281,15 +281,17 @@
|
|
|
281
281
|
--icon-agent-docs-base: #fcb239;
|
|
282
282
|
--icon-agent-ask-base: #2090f5;
|
|
283
283
|
--icon-agent-build-base: #034cff;
|
|
284
|
-
--v2-agent-plan-solid: var(--v2-pink-
|
|
285
|
-
--v2-agent-plan-border: rgba(200, 61, 139, 0.
|
|
286
|
-
--v2-agent-plan-background: rgba(253, 236, 243, 0.
|
|
287
|
-
--v2-agent-build-solid: var(--v2-blue-
|
|
288
|
-
--v2-agent-build-border: rgba(
|
|
289
|
-
--v2-agent-build-background: rgba(236, 241, 254, 0.
|
|
284
|
+
--v2-agent-plan-solid: var(--v2-pink-800);
|
|
285
|
+
--v2-agent-plan-border: rgba(200, 61, 139, 0.2);
|
|
286
|
+
--v2-agent-plan-background: rgba(253, 236, 243, 0.1);
|
|
287
|
+
--v2-agent-build-solid: var(--v2-blue-800);
|
|
288
|
+
--v2-agent-build-border: rgba(44, 71, 200, 0.1);
|
|
289
|
+
--v2-agent-build-background: rgba(236, 241, 254, 0.1);
|
|
290
290
|
--v2-agent-explore-solid: var(--v2-yellow-900);
|
|
291
|
-
--v2-agent-explore-border: rgba(
|
|
292
|
-
--v2-agent-explore-background: rgba(254, 250, 236, 0.
|
|
291
|
+
--v2-agent-explore-border: rgba(203, 159, 52, 0.2);
|
|
292
|
+
--v2-agent-explore-background: rgba(254, 250, 236, 0.1);
|
|
293
|
+
--v2-agent-review-solid: var(--v2-green-800);
|
|
294
|
+
--v2-agent-writer-solid: var(--v2-purple-700);
|
|
293
295
|
--icon-on-success-base: rgba(18, 201, 5, 0.9);
|
|
294
296
|
--icon-on-success-hover: rgba(45, 186, 38, 0.9);
|
|
295
297
|
--icon-on-success-selected: rgba(7, 137, 1, 0.9);
|
|
@@ -551,14 +553,16 @@
|
|
|
551
553
|
--icon-agent-ask-base: #2090f5;
|
|
552
554
|
--icon-agent-build-base: #9dbefe;
|
|
553
555
|
--v2-agent-plan-solid: var(--v2-pink-400);
|
|
554
|
-
--v2-agent-plan-border: rgba(
|
|
555
|
-
--v2-agent-plan-background: rgba(
|
|
556
|
-
--v2-agent-build-solid: var(--v2-blue-
|
|
557
|
-
--v2-agent-build-border: rgba(
|
|
558
|
-
--v2-agent-build-background: rgba(
|
|
559
|
-
--v2-agent-explore-solid: var(--v2-yellow-
|
|
560
|
-
--v2-agent-explore-border: rgba(
|
|
561
|
-
--v2-agent-explore-background: rgba(
|
|
556
|
+
--v2-agent-plan-border: rgba(247, 153, 198, 0.2);
|
|
557
|
+
--v2-agent-plan-background: rgba(170, 53, 118, 0.05);
|
|
558
|
+
--v2-agent-build-solid: var(--v2-blue-300);
|
|
559
|
+
--v2-agent-build-border: rgba(162, 188, 255, 0.2);
|
|
560
|
+
--v2-agent-build-background: rgba(38, 63, 169, 0.05);
|
|
561
|
+
--v2-agent-explore-solid: var(--v2-yellow-300);
|
|
562
|
+
--v2-agent-explore-border: rgba(243, 218, 155, 0.2);
|
|
563
|
+
--v2-agent-explore-background: rgba(172, 136, 51, 0.05);
|
|
564
|
+
--v2-agent-review-solid: var(--v2-green-300);
|
|
565
|
+
--v2-agent-writer-solid: var(--v2-purple-400);
|
|
562
566
|
--icon-on-success-base: rgba(18, 201, 5, 0.9);
|
|
563
567
|
--icon-on-success-hover: rgba(53, 192, 45, 0.9);
|
|
564
568
|
--icon-on-success-selected: rgba(77, 225, 68, 0.9);
|
package/src/theme/v2/mapping.ts
CHANGED
|
@@ -4,27 +4,31 @@ import { V2_AVATAR_DARK, V2_AVATAR_LIGHT } from "./avatar"
|
|
|
4
4
|
const ref = (name: string): V2ColorValue => `var(--${name})`
|
|
5
5
|
|
|
6
6
|
const lightAgentTokens: Record<string, V2ColorValue> = {
|
|
7
|
-
"v2-agent-plan-solid": ref("v2-pink-
|
|
8
|
-
"v2-agent-plan-border": "rgba(200, 61, 139, 0.
|
|
9
|
-
"v2-agent-plan-background": "rgba(253, 236, 243, 0.
|
|
10
|
-
"v2-agent-build-solid": ref("v2-blue-
|
|
11
|
-
"v2-agent-build-border": "rgba(
|
|
12
|
-
"v2-agent-build-background": "rgba(236, 241, 254, 0.
|
|
7
|
+
"v2-agent-plan-solid": ref("v2-pink-800"),
|
|
8
|
+
"v2-agent-plan-border": "rgba(200, 61, 139, 0.20)",
|
|
9
|
+
"v2-agent-plan-background": "rgba(253, 236, 243, 0.10)",
|
|
10
|
+
"v2-agent-build-solid": ref("v2-blue-800"),
|
|
11
|
+
"v2-agent-build-border": "rgba(44, 71, 200, 0.20)",
|
|
12
|
+
"v2-agent-build-background": "rgba(236, 241, 254, 0.10)",
|
|
13
13
|
"v2-agent-explore-solid": ref("v2-yellow-900"),
|
|
14
|
-
"v2-agent-explore-border": "rgba(
|
|
15
|
-
"v2-agent-explore-background": "rgba(254, 250, 236, 0.
|
|
14
|
+
"v2-agent-explore-border": "rgba(203, 159, 52, 0.20)",
|
|
15
|
+
"v2-agent-explore-background": "rgba(254, 250, 236, 0.1)",
|
|
16
|
+
"v2-agent-review-solid": ref("v2-green-800"),
|
|
17
|
+
"v2-agent-writer-solid": ref("v2-purple-700"),
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
const darkAgentTokens: Record<string, V2ColorValue> = {
|
|
19
21
|
"v2-agent-plan-solid": ref("v2-pink-400"),
|
|
20
|
-
"v2-agent-plan-border": "rgba(
|
|
21
|
-
"v2-agent-plan-background": "rgba(
|
|
22
|
-
"v2-agent-build-solid": ref("v2-blue-
|
|
23
|
-
"v2-agent-build-border": "rgba(
|
|
24
|
-
"v2-agent-build-background": "rgba(
|
|
25
|
-
"v2-agent-explore-solid": ref("v2-yellow-
|
|
26
|
-
"v2-agent-explore-border": "rgba(
|
|
27
|
-
"v2-agent-explore-background": "rgba(
|
|
22
|
+
"v2-agent-plan-border": "rgba(247, 153, 198, 0.20)",
|
|
23
|
+
"v2-agent-plan-background": "rgba(170, 53, 118, 0.05)",
|
|
24
|
+
"v2-agent-build-solid": ref("v2-blue-300"),
|
|
25
|
+
"v2-agent-build-border": "rgba(162, 188, 255, 0.20)",
|
|
26
|
+
"v2-agent-build-background": "rgba(38, 63, 169, 0.05)",
|
|
27
|
+
"v2-agent-explore-solid": ref("v2-yellow-300"),
|
|
28
|
+
"v2-agent-explore-border": "rgba(243, 218, 155, 0.20)",
|
|
29
|
+
"v2-agent-explore-background": "rgba(172, 136, 51, 0.05)",
|
|
30
|
+
"v2-agent-review-solid": ref("v2-green-300"),
|
|
31
|
+
"v2-agent-writer-solid": ref("v2-purple-400"),
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
const light: Record<string, V2ColorValue> = {
|
|
@@ -6,6 +6,7 @@ export interface DialogProps extends ParentProps {
|
|
|
6
6
|
size?: "normal" | "large" | "x-large"
|
|
7
7
|
variant?: "default" | "settings"
|
|
8
8
|
class?: ComponentProps<"div">["class"]
|
|
9
|
+
containerClass?: ComponentProps<"div">["class"]
|
|
9
10
|
classList?: ComponentProps<"div">["classList"]
|
|
10
11
|
fit?: boolean
|
|
11
12
|
}
|
|
@@ -79,7 +80,7 @@ export function DialogHeader(props: DialogHeaderProps) {
|
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export function Dialog(props: DialogProps) {
|
|
82
|
-
const [local] = splitProps(props, ["size", "variant", "class", "classList", "fit", "children"])
|
|
83
|
+
const [local] = splitProps(props, ["size", "variant", "class", "containerClass", "classList", "fit", "children"])
|
|
83
84
|
|
|
84
85
|
return (
|
|
85
86
|
<div
|
|
@@ -88,7 +89,7 @@ export function Dialog(props: DialogProps) {
|
|
|
88
89
|
data-fit={local.fit ? true : undefined}
|
|
89
90
|
data-size={local.size || "normal"}
|
|
90
91
|
>
|
|
91
|
-
<div data-slot="dialog-container">
|
|
92
|
+
<div data-slot="dialog-container" class={local.containerClass}>
|
|
92
93
|
<Kobalte.Content
|
|
93
94
|
data-slot="dialog-content"
|
|
94
95
|
classList={{
|
|
@@ -133,6 +133,10 @@ const icons = {
|
|
|
133
133
|
viewBox: "0 0 20 20",
|
|
134
134
|
body: `<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`,
|
|
135
135
|
},
|
|
136
|
+
"outline-reset": {
|
|
137
|
+
viewBox: "0 0 20 20",
|
|
138
|
+
body: `<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`,
|
|
139
|
+
},
|
|
136
140
|
archive: {
|
|
137
141
|
viewBox: "0 0 16 16",
|
|
138
142
|
body: `<path d="M13.1112 13.5555V14.0555H13.6112V13.5555H13.1112ZM2.889 13.5555H2.389L2.389 14.0555H2.889V13.5555ZM3.38901 5.55546L3.38901 5.05546L2.38901 5.05546L2.38901 5.55546L2.88901 5.55546L3.38901 5.55546ZM14.4446 2.44434H14.9446V1.94434L14.4446 1.94434L14.4446 2.44434ZM14.4446 5.55545L14.4446 6.05545L14.9446 6.05545V5.55545H14.4446ZM1.55566 5.55546L1.05566 5.55545L1.05566 6.05546L1.55566 6.05546L1.55566 5.55546ZM1.5557 2.44436L1.5557 1.94436L1.05571 1.94436L1.0557 2.44435L1.5557 2.44436ZM13.1112 5.55546H12.6112V13.5555H13.1112H13.6112V5.55546H13.1112ZM2.889 13.5555H3.389L3.38901 5.55546L2.88901 5.55546L2.38901 5.55546L2.389 13.5555H2.889ZM14.4446 2.44434H13.9446V5.55545H14.4446H14.9446V2.44434H14.4446ZM1.55566 5.55546L2.05566 5.55547L2.0557 2.44436L1.5557 2.44436L1.0557 2.44435L1.05566 5.55545L1.55566 5.55546ZM6.22234 8.22213V8.72213H9.7779V8.22213V7.72213H6.22234V8.22213ZM13.1112 13.5555V13.0555H2.889V13.5555V14.0555H13.1112V13.5555ZM1.5557 2.44436L1.5557 2.94436L14.4446 2.94434L14.4446 2.44434L14.4446 1.94434L1.5557 1.94436L1.5557 2.44436ZM14.4446 5.55545L14.4446 5.05545L1.55566 5.05546L1.55566 5.55546L1.55566 6.05546L14.4446 6.05545L14.4446 5.55545Z" fill="currentColor"/>`,
|
package/src/v2/styles/theme.css
CHANGED
|
@@ -77,15 +77,17 @@
|
|
|
77
77
|
--v2-state-fg-info: var(--v2-blue-800);
|
|
78
78
|
--v2-state-border-info: var(--v2-blue-300);
|
|
79
79
|
|
|
80
|
-
--v2-agent-plan-solid: var(--v2-pink-
|
|
81
|
-
--v2-agent-plan-border: rgba(200, 61, 139, 0.
|
|
82
|
-
--v2-agent-plan-background: rgba(253, 236, 243, 0.
|
|
83
|
-
--v2-agent-build-solid: var(--v2-blue-
|
|
84
|
-
--v2-agent-build-border: rgba(
|
|
85
|
-
--v2-agent-build-background: rgba(236, 241, 254, 0.
|
|
80
|
+
--v2-agent-plan-solid: var(--v2-pink-800);
|
|
81
|
+
--v2-agent-plan-border: rgba(200, 61, 139, 0.2);
|
|
82
|
+
--v2-agent-plan-background: rgba(253, 236, 243, 0.1);
|
|
83
|
+
--v2-agent-build-solid: var(--v2-blue-800);
|
|
84
|
+
--v2-agent-build-border: rgba(44, 71, 200, 0.1);
|
|
85
|
+
--v2-agent-build-background: rgba(236, 241, 254, 0.1);
|
|
86
86
|
--v2-agent-explore-solid: var(--v2-yellow-900);
|
|
87
|
-
--v2-agent-explore-border: rgba(
|
|
88
|
-
--v2-agent-explore-background: rgba(254, 250, 236, 0.
|
|
87
|
+
--v2-agent-explore-border: rgba(203, 159, 52, 0.2);
|
|
88
|
+
--v2-agent-explore-background: rgba(254, 250, 236, 0.1);
|
|
89
|
+
--v2-agent-review-solid: var(--v2-green-800);
|
|
90
|
+
--v2-agent-writer-solid: var(--v2-purple-700);
|
|
89
91
|
|
|
90
92
|
/* ── Project avatar (fixed; theme-independent) ── */
|
|
91
93
|
--v2-avatar-fg: #ffffffff;
|
|
@@ -316,15 +318,17 @@
|
|
|
316
318
|
--v2-state-fg-info: var(--v2-blue-800);
|
|
317
319
|
--v2-state-border-info: var(--v2-blue-300);
|
|
318
320
|
|
|
319
|
-
--v2-agent-plan-solid: var(--v2-pink-
|
|
320
|
-
--v2-agent-plan-border: rgba(200, 61, 139, 0.
|
|
321
|
-
--v2-agent-plan-background: rgba(253, 236, 243, 0.
|
|
322
|
-
--v2-agent-build-solid: var(--v2-blue-
|
|
323
|
-
--v2-agent-build-border: rgba(
|
|
324
|
-
--v2-agent-build-background: rgba(236, 241, 254, 0.
|
|
321
|
+
--v2-agent-plan-solid: var(--v2-pink-800);
|
|
322
|
+
--v2-agent-plan-border: rgba(200, 61, 139, 0.2);
|
|
323
|
+
--v2-agent-plan-background: rgba(253, 236, 243, 0.1);
|
|
324
|
+
--v2-agent-build-solid: var(--v2-blue-800);
|
|
325
|
+
--v2-agent-build-border: rgba(44, 71, 200, 0.1);
|
|
326
|
+
--v2-agent-build-background: rgba(236, 241, 254, 0.1);
|
|
325
327
|
--v2-agent-explore-solid: var(--v2-yellow-900);
|
|
326
|
-
--v2-agent-explore-border: rgba(
|
|
327
|
-
--v2-agent-explore-background: rgba(254, 250, 236, 0.
|
|
328
|
+
--v2-agent-explore-border: rgba(203, 159, 52, 0.2);
|
|
329
|
+
--v2-agent-explore-background: rgba(254, 250, 236, 0.1);
|
|
330
|
+
--v2-agent-review-solid: var(--v2-green-800);
|
|
331
|
+
--v2-agent-writer-solid: var(--v2-purple-700);
|
|
328
332
|
|
|
329
333
|
--v2-elevation-raised:
|
|
330
334
|
0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8),
|
|
@@ -437,14 +441,16 @@
|
|
|
437
441
|
--v2-state-border-info: var(--v2-blue-900);
|
|
438
442
|
|
|
439
443
|
--v2-agent-plan-solid: var(--v2-pink-400);
|
|
440
|
-
--v2-agent-plan-border: rgba(
|
|
441
|
-
--v2-agent-plan-background: rgba(
|
|
442
|
-
--v2-agent-build-solid: var(--v2-blue-
|
|
443
|
-
--v2-agent-build-border: rgba(
|
|
444
|
-
--v2-agent-build-background: rgba(
|
|
445
|
-
--v2-agent-explore-solid: var(--v2-yellow-
|
|
446
|
-
--v2-agent-explore-border: rgba(
|
|
447
|
-
--v2-agent-explore-background: rgba(
|
|
444
|
+
--v2-agent-plan-border: rgba(247, 153, 198, 0.2);
|
|
445
|
+
--v2-agent-plan-background: rgba(170, 53, 118, 0.05);
|
|
446
|
+
--v2-agent-build-solid: var(--v2-blue-300);
|
|
447
|
+
--v2-agent-build-border: rgba(162, 188, 255, 0.2);
|
|
448
|
+
--v2-agent-build-background: rgba(38, 63, 169, 0.05);
|
|
449
|
+
--v2-agent-explore-solid: var(--v2-yellow-300);
|
|
450
|
+
--v2-agent-explore-border: rgba(243, 218, 155, 0.2);
|
|
451
|
+
--v2-agent-explore-background: rgba(172, 136, 51, 0.05);
|
|
452
|
+
--v2-agent-review-solid: var(--v2-green-300);
|
|
453
|
+
--v2-agent-writer-solid: var(--v2-purple-400);
|
|
448
454
|
|
|
449
455
|
--v2-avatar-fg: #ffffffff;
|
|
450
456
|
--v2-avatar-bg-orange: #723d22ff;
|