@opencode/ui 0.0.0-dev-1285 → 0.0.0-dev-1288
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/i18n/en.d.ts +8 -0
- package/dist/icons/icon/icon.d.ts +2 -0
- package/package.json +3 -3
- package/src/i18n/en.ts +8 -0
- package/src/icons/icon/icon.tsx +7 -2
package/dist/i18n/en.d.ts
CHANGED
|
@@ -168,6 +168,14 @@ declare const source: {
|
|
|
168
168
|
"ui.timeline.activity.startedShells.other": string;
|
|
169
169
|
"ui.timeline.activity.startedSubagents.one": string;
|
|
170
170
|
"ui.timeline.activity.startedSubagents.other": string;
|
|
171
|
+
"ui.timeline.activity.finishedShells.one": string;
|
|
172
|
+
"ui.timeline.activity.finishedShells.other": string;
|
|
173
|
+
"ui.timeline.activity.finishedSubagents.one": string;
|
|
174
|
+
"ui.timeline.activity.finishedSubagents.other": string;
|
|
175
|
+
"ui.timeline.activity.stoppedShells.one": string;
|
|
176
|
+
"ui.timeline.activity.stoppedShells.other": string;
|
|
177
|
+
"ui.timeline.activity.stoppedSubagents.one": string;
|
|
178
|
+
"ui.timeline.activity.stoppedSubagents.other": string;
|
|
171
179
|
"ui.timeline.event.started": string;
|
|
172
180
|
"ui.timeline.event.finished": string;
|
|
173
181
|
"ui.timeline.event.stopped": string;
|
|
@@ -7,5 +7,7 @@ export declare const newIcons: import("solid-js").Accessor<boolean>;
|
|
|
7
7
|
export interface IconProps extends ComponentProps<"svg"> {
|
|
8
8
|
name: IconName | (string & {});
|
|
9
9
|
size?: "small" | "normal" | "large";
|
|
10
|
+
/** Preview a specific artwork set. By default the icon follows the app's New icons setting. */
|
|
11
|
+
artwork?: "current" | "experimental";
|
|
10
12
|
}
|
|
11
13
|
export declare function Icon(props: IconProps): import("solid-js").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-1288",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
"generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
|
|
295
295
|
},
|
|
296
296
|
"devDependencies": {
|
|
297
|
-
"@hona/strobe": "0.
|
|
297
|
+
"@hona/strobe": "0.35.0",
|
|
298
298
|
"@solidjs/meta": "0.29.4",
|
|
299
299
|
"@tsconfig/node22": "22.0.2",
|
|
300
300
|
"@types/bun": "1.4.3",
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
"dependencies": {
|
|
310
310
|
"@kitlangton/solid-motion": "0.2.2",
|
|
311
311
|
"@kobalte/core": "0.13.13",
|
|
312
|
-
"@opencode/util": "0.0.0-dev-
|
|
312
|
+
"@opencode/util": "0.0.0-dev-1288",
|
|
313
313
|
"@pierre/diffs": "1.6.1",
|
|
314
314
|
"@pierre/highlights": "0.2.0",
|
|
315
315
|
"@solid-primitives/event-listener": "2.4.6",
|
package/src/i18n/en.ts
CHANGED
|
@@ -180,6 +180,14 @@ const source = {
|
|
|
180
180
|
"ui.timeline.activity.startedShells.other": "started {{count}} shells",
|
|
181
181
|
"ui.timeline.activity.startedSubagents.one": "started {{count}} subagent",
|
|
182
182
|
"ui.timeline.activity.startedSubagents.other": "started {{count}} subagents",
|
|
183
|
+
"ui.timeline.activity.finishedShells.one": "finished {{count}} shell",
|
|
184
|
+
"ui.timeline.activity.finishedShells.other": "finished {{count}} shells",
|
|
185
|
+
"ui.timeline.activity.finishedSubagents.one": "finished {{count}} subagent",
|
|
186
|
+
"ui.timeline.activity.finishedSubagents.other": "finished {{count}} subagents",
|
|
187
|
+
"ui.timeline.activity.stoppedShells.one": "stopped {{count}} shell",
|
|
188
|
+
"ui.timeline.activity.stoppedShells.other": "stopped {{count}} shells",
|
|
189
|
+
"ui.timeline.activity.stoppedSubagents.one": "stopped {{count}} subagent",
|
|
190
|
+
"ui.timeline.activity.stoppedSubagents.other": "stopped {{count}} subagents",
|
|
183
191
|
"ui.timeline.event.started": "Started",
|
|
184
192
|
"ui.timeline.event.finished": "Finished",
|
|
185
193
|
"ui.timeline.event.stopped": "Stopped",
|
package/src/icons/icon/icon.tsx
CHANGED
|
@@ -61,18 +61,23 @@ function ensureSprite() {
|
|
|
61
61
|
export interface IconProps extends ComponentProps<"svg"> {
|
|
62
62
|
name: IconName | (string & {})
|
|
63
63
|
size?: "small" | "normal" | "large"
|
|
64
|
+
/** Preview a specific artwork set. By default the icon follows the app's New icons setting. */
|
|
65
|
+
artwork?: "current" | "experimental"
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
export function Icon(props: IconProps) {
|
|
67
|
-
const [split, rest] = splitProps(props, ["name", "size"])
|
|
69
|
+
const [split, rest] = splitProps(props, ["name", "size", "artwork"])
|
|
68
70
|
|
|
69
71
|
const iconName = (): IconName => {
|
|
70
72
|
return isIconName(split.name) ? split.name : "plus"
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
const icon = () => getIcon(iconName())
|
|
76
|
+
|
|
74
77
|
// Names without new artwork keep today's under the experiment.
|
|
75
|
-
const next = () =>
|
|
78
|
+
const next = () =>
|
|
79
|
+
(split.artwork ? split.artwork === "experimental" : newIconsEnabled()) && getNewIcon(iconName()) !== undefined
|
|
80
|
+
|
|
76
81
|
// New artwork is drawn on a 16px grid, so it stays at 16px where today's small icons shrink to 14px.
|
|
77
82
|
const pixelSize = () => (split.size === "large" ? 20 : split.size === "small" && !next() ? 14 : 16)
|
|
78
83
|
onMount(ensureSprite)
|