@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
25 lines (24 loc) • 859 B
TypeScript
import { OptionStateType } from '../types/state';
declare const getState: (disabled: boolean | undefined, focused: boolean | undefined, selected: boolean | undefined, multiSelected: boolean | undefined, hover: boolean, filling: boolean) => OptionStateType;
/**
* @description
* function to get the indexes of the highlighted chars
*/
export declare const getHighlightedIndexes: (label: string, labelCharsHighlighted: string | undefined) => {
firstHighlightedIndex: number;
lastHighlightedIndex: number;
};
/**
* @description
* function to get the state of the option
* @param {boolean | undefined} disabled
* @param {boolean | undefined} selected
* @param {boolean | undefined} multiSelected
* @param {boolean} hover
* @param {boolean} filling
* @returns {OptionStateType}
* @export
* @function
* @name getState
*/
export { getState };