import { default as React } from 'react'; import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js'; export type SearchInputSlots = 'root' | 'input' | 'resultCount'; /** Text SearchInput renders of its own, for translating it. */ export interface SearchInputLabels { /** The result count, given the number (default `12 results`). */ results?: (count: number) => string; } export interface SearchInputProps extends Omit { value: string; onChange: (value: string) => void; onDebounce?: (value: string) => void; placeholder?: string; label?: string; debounceMs?: number; totalAmount?: number; showAmount?: boolean; className?: string; width?: number | string; /** Classes for the inner elements. See `SearchInputSlots`. */ classNames?: SlotClassNames; /** Inline styles for the inner elements. See `SearchInputSlots`. */ styles?: SlotStyles; /** Overrides the text SearchInput renders of its own. Merged per key. */ labels?: SearchInputLabels; /** Ref to the inner ``, for focusing the field. */ ref?: React.Ref; }