|
1 | 1 | import { InputRenderable, RGBA, ScrollBoxRenderable, TextAttributes } from "@opentui/core" |
2 | 2 | import { useTheme, selectedForeground } from "@tui/context/theme" |
3 | 3 | import { entries, filter, flatMap, groupBy, pipe, take } from "remeda" |
4 | | -import { batch, createEffect, createMemo, createSignal, For, Show, type JSX, on } from "solid-js" |
| 4 | +import { batch, createEffect, createMemo, For, Show, type JSX, on } from "solid-js" |
5 | 5 | import { createStore } from "solid-js/store" |
6 | 6 | import { useKeyboard, useTerminalDimensions } from "@opentui/solid" |
7 | 7 | import * as fuzzysort from "fuzzysort" |
@@ -49,7 +49,6 @@ export type DialogSelectRef<T> = { |
49 | 49 | export function DialogSelect<T>(props: DialogSelectProps<T>) { |
50 | 50 | const dialog = useDialog() |
51 | 51 | const { theme } = useTheme() |
52 | | - const [hover, setHover] = createSignal(false) |
53 | 52 | const [store, setStore] = createStore({ |
54 | 53 | selected: 0, |
55 | 54 | filter: "", |
@@ -227,16 +226,9 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) { |
227 | 226 | <text fg={theme.text} attributes={TextAttributes.BOLD}> |
228 | 227 | {props.title} |
229 | 228 | </text> |
230 | | - <box |
231 | | - paddingLeft={1} |
232 | | - paddingRight={1} |
233 | | - backgroundColor={hover() ? theme.primary : undefined} |
234 | | - onMouseOver={() => setHover(true)} |
235 | | - onMouseOut={() => setHover(false)} |
236 | | - onMouseUp={() => dialog.clear()} |
237 | | - > |
238 | | - <text fg={hover() ? theme.selectedListItemText : theme.textMuted}>esc</text> |
239 | | - </box> |
| 229 | + <text fg={theme.textMuted} onMouseUp={() => dialog.clear()}> |
| 230 | + esc |
| 231 | + </text> |
240 | 232 | </box> |
241 | 233 | <box paddingTop={1}> |
242 | 234 | <input |
|
0 commit comments