@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
16 lines (15 loc) • 1.21 kB
TypeScript
import { OptionSchema as Option } from "./option";
export declare const getSearchedOptions: (options: any, searchTerm: string) => any;
export declare const _isEqual: (firstList: Option[], secondList: Option[]) => boolean;
export declare const _isControlled: (selected?: Option[] | undefined) => boolean;
export declare const _isOpenControlled: (open?: boolean | undefined) => boolean;
export declare const _showSelectedItems: (bulk: boolean, searchTerm: string, withCheckbox?: boolean | undefined) => boolean | undefined;
export declare const _isSelectAllPresent: (searchTerm: string, bulkOptions: number, withSelectAll: boolean, withCheckbox?: boolean | undefined) => boolean | undefined;
export declare const scrollTo: (element: Element, top: number) => void;
export declare const scrollIntoView: (menuElement: HTMLDivElement | null, focusedElement: HTMLElement) => void;
export declare const getSelectAll: (selected: Option[], optionsLength: number, disabledOptionsLength: number) => {
indeterminate: boolean;
checked: boolean;
};
export declare const scrollToOptionIndex: (scrollIndex: number, listOptions: any) => void;
export declare const groupListOptions: (listOptions: Option[]) => Option[];