goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
36 lines • 1.36 kB
TypeScript
import { default as React } from 'react';
import { FieldStyleOverrides } from '../../Shell';
export type NavigationItem = {
id: string;
label: string;
route?: string;
category?: string;
description?: string;
icon?: React.ReactNode;
type?: 'navigation' | 'data' | 'action';
metadata?: Record<string, any>;
};
export type SearchableHistoryProps = {
label?: string;
items: NavigationItem[];
onSelect?: (item: NavigationItem) => void;
placeholder?: string;
helperText?: string;
styles?: FieldStyleOverrides;
maxHistoryItems?: number;
/** Stable test selector — emitted as `data-field` on the container. */
dataField?: string;
/** Stable test selector — emitted as `data-field-name` on the container. */
dataFieldName?: string;
/**
* Entity field key. Emitted as `data-field-name` (unless `dataFieldName`
* is set explicitly). NOTE: this is a navigation/search widget — selecting
* an item fires `onSelect` to navigate, it does NOT hold a persisted form
* value. There is therefore intentionally NO Tier-1 `useFieldBinding` value
* wiring here; `name` only supplies the stable test anchor.
*/
name?: string;
};
declare const SearchableHistory: React.FC<SearchableHistoryProps>;
export default SearchableHistory;
//# sourceMappingURL=index.d.ts.map