/* eslint-disable no-undef */ /* Combobox.jsx — a searchable single-select. Looks like the native styled { setQ(e.target.value); setHi(0); }} onKeyDown={onKey} placeholder="Search…" style={{ width: '100%', boxSizing: 'border-box', padding: '9px 11px 9px 32px', border: `1px solid ${C.earth}40`, borderRadius: 7, background: C.cream, fontFamily: "'DM Sans',sans-serif", fontSize: 14, color: C.deep, outline: 'none', }}/>
{filtered.length === 0 ? (
No matches
) : filtered.map((o, i) => (
setHi(i)} onClick={() => pick(o)} style={{ padding: '10px 14px', cursor: 'pointer', fontFamily: "'DM Sans',sans-serif", fontSize: 14, color: o === value ? C.cream : C.deep, background: o === value ? C.deep : (i === hi ? C.cream : 'transparent'), display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8, }}> {o} {o === value && ( )}
))} {overflow > 0 && (
+{overflow.toLocaleString()} more — keep typing to narrow
)}
)} ); }; Object.assign(window, { Combobox });