feature: the package installs the Router Manager, which is no longer a package of its own.
Release / release (push) Failing after 4s

This commit is contained in:
slawek committed 2026-11-14 12:52:44 +01:00
1 parent 6d90441bee
commit 8efe21bfa6
129 files changed
+17381 -104

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import Search from '@mui/icons-material/Search'
import { InputAdornment, TextField } from '@mui/material'
/** A small search box for a toolbar; onChange gets the text as typed. */
export default function SearchField(props: { value: string; onChange: (value: string) => void }) {
return (
<TextField
size="small"
placeholder="Search"
value={props.value}
onChange={(event) => props.onChange(event.target.value)}
sx={{ width: 220, flexShrink: 0 }}
slotProps={{ input: { startAdornment: <InputAdornment position="start"><Search fontSize="small" /></InputAdornment> } }}
/>
)
}
/** Whether any of the texts contains the search, ignoring case; an empty search matches everything. */
export function matches(search: string, texts: (string | null | undefined)[]) {
const wanted = search.trim().toLowerCase()
return wanted === '' || texts.some((text) => text?.toLowerCase().includes(wanted))
}