33 GlobeIcon ,
44 NPMIcon ,
55 StarIcon ,
6- MagnifyingGlassIcon ,
76 RubyGemsIcon ,
87 ChevronLeftIcon ,
98} from "@/icons"
@@ -33,6 +32,7 @@ import { getComponents } from "nextra-theme-docs"
3332import { RadioGroup , Radio } from "@/components/radio"
3433import { Button } from "@/app/conf/_design-system/button"
3534import { Tag } from "@/app/conf/_design-system/tag"
35+ import SearchIcon from "@/app/conf/_design-system/pixelarticons/search.svg?svgr"
3636
3737type PackageInfo = {
3838 name : string
@@ -280,21 +280,17 @@ export function CodePage({ allTags, data }: CodePageProps) {
280280 </ p >
281281 < div className = "mt-8 md:grid md:grid-cols-[minmax(240px,300px)_1fr] md:gap-8" >
282282 < aside >
283- < div >
283+ < label className = "focus-within:gql-focus-outline flex items-center gap-1 border border-neu-300 bg-neu-0 p-2" >
284+ < SearchIcon className = "size-5 text-neu-800" />
284285 < input
285286 // TODO: This should also do a fuzzy full text search, not just search on tags.
286287 value = { search }
287288 onChange = { e => setSearch ( e . target . value ) }
288289 onKeyDown = { handleKeyDown }
289- placeholder = "Search..."
290- className = { clsx (
291- "block grow bg-transparent" ,
292- "focus-visible:ring-0 focus-visible:ring-offset-0" ,
293- "focus-visible:border-b-primary" ,
294- ) }
290+ placeholder = "Filter tags..."
291+ className = "bg-transparent focus:outline-none"
295292 />
296- < MagnifyingGlassIcon className = "shrink-0" />
297- </ div >
293+ </ label >
298294 < CheckboxTree
299295 items = { filterTreeItems }
300296 selectedValues = { selectedTags }
@@ -320,7 +316,6 @@ export function CodePage({ allTags, data }: CodePageProps) {
320316 < span > Alphabetical</ span >
321317 </ label >
322318 </ RadioGroup >
323- { /* COMENTED OUT TO MAKE DEVELOPMENT FASTER
324319 < div className = "grid gap-2 py-8 md:grid-cols-2 md:gap-4" >
325320 { ( sort === "alphabetical"
326321 ? [ ...newData ] . sort ( ( a , b ) =>
@@ -418,7 +413,7 @@ export function CodePage({ allTags, data }: CodePageProps) {
418413 )
419414 } ,
420415 ) }
421- </div> */ }
416+ </ div >
422417 </ div >
423418 </ div >
424419 </ div >
0 commit comments