1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | export interface ListOptionProps<TDataItem> extends Omit<React.HTMLProps<HTMLDivElement>, 'onSelect'> {
|
4 | dataItem: TDataItem;
|
5 | focused?: boolean;
|
6 | selected: boolean;
|
7 | searchTerm?: string;
|
8 | disabled?: boolean;
|
9 | onSelect: (dataItem: TDataItem, event: React.MouseEvent) => void;
|
10 | component?: React.ElementType | null;
|
11 | children?: React.ReactNode;
|
12 | }
|
13 | declare function ListOption<TDataItem>({ className, children, dataItem, selected, disabled, onSelect, searchTerm: _, ...props }: ListOptionProps<TDataItem>): JSX.Element;
|
14 | declare namespace ListOption {
|
15 | var propTypes: {
|
16 | activeId: PropTypes.Requireable<string>;
|
17 | dataItem: PropTypes.Requireable<any>;
|
18 | selected: PropTypes.Validator<boolean>;
|
19 | onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
20 | component: PropTypes.Requireable<any>;
|
21 | };
|
22 | }
|
23 | export default ListOption;
|
24 |
|
\ | No newline at end of file |