UNPKG

watercolor-ui

Version:

A modern minimalist cross-framework component library

29 lines 1.57 kB
export namespace DEFAULT_CONFIG { let dense: boolean; let disablePadding: boolean; let button: boolean; let disabled: boolean; let divider: boolean; let selected: boolean; let disableGutters: boolean; } export function getListClasses(props: Object): any[]; export function getListItemClasses(props: Object): any[]; export function getListItemIconClasses(props: Object): any[]; export function getListItemTextClasses(props: Object): any[]; export function validateListItem(item: Object): boolean; export function formatListItem(item: Object, index?: number): Object; export function generateListItemId(prefix?: string, index?: number): string; export function filterListItems(items: any[], query: string, fields?: any[]): any[]; export function sortListItems(items: any[], sortBy?: string, order?: string): any[]; export function groupListItems(items: any[], groupBy: string): Object; export function highlightSearchText(text: string, query: string): string; export function handleListSelection(selectedItems: any[], item: any, multiSelect?: boolean): any[]; export function calculateVirtualization(options: Object): Object; export function handleListKeyboard(event: KeyboardEvent, options: Object): void; export function createDragHandler(onReorder: Function): Object; export function debounce(func: Function, delay: number): Function; export function createListConfig(options?: Object): Object; export function getListStats(items: any[]): Object; export function debugListConfig(props: Object): Object; //# sourceMappingURL=utils.d.ts.map