monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
11 lines (10 loc) • 953 B
TypeScript
import { MutableRefObject } from "react";
import { ListWrapperComponentStringType, ListWrapperComponentType } from "../ListConstants";
import { ListItemComponentType } from "../../ListItem/ListItemConstants";
export declare const generateListId: () => string;
export declare const useListId: (id: string) => string;
export declare const getListItemIdByIndex: (childrenRefs: MutableRefObject<HTMLElement[]>, index: number) => string;
export declare const getListItemIndexById: (childrenRefs: MutableRefObject<HTMLElement[]>, id: string) => number;
export declare const getListItemComponentType: (listComponent: ListWrapperComponentType | ListWrapperComponentStringType) => ListItemComponentType;
export declare const getNextListItemIndex: (currentIndex: number, childrenRefs: MutableRefObject<HTMLElement[]>) => number;
export declare const getPrevListItemIndex: (currentIndex: number, childrenRefs: MutableRefObject<HTMLElement[]>) => number;