@opencode/ui 0.0.0-dev-329 → 0.0.0-dev-347
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/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-347",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"@kitlangton/solid-motion": "0.2.2",
|
|
290
290
|
"@kobalte/core": "0.13.13",
|
|
291
|
-
"@opencode/util": "0.0.0-dev-
|
|
291
|
+
"@opencode/util": "0.0.0-dev-347",
|
|
292
292
|
"@pierre/diffs": "1.6.1",
|
|
293
293
|
"@pierre/highlights": "0.2.0",
|
|
294
294
|
"@solid-primitives/event-listener": "2.4.6",
|
|
@@ -152,6 +152,7 @@ export function Typeahead<T>(props: {
|
|
|
152
152
|
</button>
|
|
153
153
|
</Show>
|
|
154
154
|
</div>
|
|
155
|
+
<div aria-hidden="true" class="h-[0.5px] shrink-0 bg-v2-border-border-base" />
|
|
155
156
|
{/* Initial results and the empty state snap into place; other search resizing animates. */}
|
|
156
157
|
<div
|
|
157
158
|
class="overflow-hidden duration-[200ms] ease-[cubic-bezier(0.645,0.045,0.355,1)] motion-reduce:transition-none"
|
|
@@ -164,7 +165,13 @@ export function Typeahead<T>(props: {
|
|
|
164
165
|
)
|
|
165
166
|
}
|
|
166
167
|
>
|
|
167
|
-
|
|
168
|
+
{/* A stable gutter keeps rows from shifting when the list overflows; the end padding gives way to it. */}
|
|
169
|
+
<div
|
|
170
|
+
id={typeahead.listID}
|
|
171
|
+
role="listbox"
|
|
172
|
+
data-scrollable
|
|
173
|
+
class="max-h-56 overflow-y-auto py-1 ps-1 pe-[max(0px,calc(4px-var(--scrollbar-size,0px)))] [scrollbar-gutter:stable] empty:hidden"
|
|
174
|
+
>
|
|
168
175
|
<For each={results().items}>
|
|
169
176
|
{(item) => (
|
|
170
177
|
<div
|
|
@@ -192,7 +199,7 @@ export function Typeahead<T>(props: {
|
|
|
192
199
|
{/* Stays mounted while a retry or a newer query is pending, so the list never collapses to nothing. */}
|
|
193
200
|
<Show when={results().items.length === 0}>
|
|
194
201
|
<div
|
|
195
|
-
class="mx-1 flex h-
|
|
202
|
+
class="mx-1 flex h-9 items-center px-2 py-1 text-v2-text-text-faint"
|
|
196
203
|
classList={{ invisible: store.answered === undefined }}
|
|
197
204
|
>
|
|
198
205
|
<Show when={failed()} fallback={props.emptyLabel}>
|
package/src/icons/new-icons.ts
CHANGED
|
@@ -90,6 +90,7 @@ const replacements: Partial<Record<IconName, { name: NewIconName; rotate?: numbe
|
|
|
90
90
|
"select-element": { name: "annotate" },
|
|
91
91
|
download: { name: "download" },
|
|
92
92
|
"post-skill": { name: "skill" },
|
|
93
|
+
"graduation-cap": { name: "skill" },
|
|
93
94
|
eye: { name: "eye-open" },
|
|
94
95
|
"outline-eye": { name: "eye-open" },
|
|
95
96
|
"outline-eye-slash": { name: "eye-closed" },
|
|
@@ -131,7 +132,7 @@ const replacements: Partial<Record<IconName, { name: NewIconName; rotate?: numbe
|
|
|
131
132
|
// Status: circle-xmark (10) / circle-x (1), outline-hexagonal-warning (7) / warning (6), status / status-active (4),
|
|
132
133
|
// help (3), info (2)
|
|
133
134
|
// Features: terminal (6), mcp (5), branch (5, held back), console / outline-console (2), stop, models,
|
|
134
|
-
// link, share, brain / outline-brain, shield
|
|
135
|
+
// link, share, brain / outline-brain, shield
|
|
135
136
|
// Arrows: arrow-up-right (5) / outline-arrow-up-right (3), arrow-down-to-line (2), arrow-undo-down
|
|
136
137
|
// Layout: layout-left / layout-left-full (4), layout-right / layout-right-full (2), chevron-grabber-vertical (4),
|
|
137
138
|
// fill-triangle-down (3), menu (2), expand / collapse, split / unified, dot-grid
|