import * as React from 'react'; import type { ITheme, IStyle } from '@fluentui/style-utilities'; import type { JSXElement } from '@fluentui/utilities'; export interface IFloatingSuggestionItemProps { item: T; isSelected: boolean; onClick?: (ev: React.MouseEvent, item: IFloatingSuggestionItemProps) => void; onRemoveItem?: (ev: React.MouseEvent, item: IFloatingSuggestionItemProps) => void; displayText?: string; className?: string; /** * Takes precedence over showSuggestionRemoveButton */ showRemoveButton?: boolean; ariaLabel?: string; removeButtonAriaLabel?: string; key?: string; id?: string; theme?: ITheme; onRenderSuggestion?: (renderProps: IFloatingSuggestionOnRenderItemProps) => JSXElement; } export type IFloatingSuggestionItem = Omit, 'onRenderSuggestion' | 'onClick' | 'onRemoveItem' | 'theme'>; export type IFloatingSuggestionOnClickItemProps = Pick, 'item' | 'isSelected' | 'key' | 'id'>; export type IFloatingSuggestionOnRenderItemProps = Omit, 'onRenderSuggestion'>; export interface IFloatingSuggestionItemStylesProps { isSelected?: boolean; } export interface IFloatingSuggestionItemStyles { root: IStyle; itemButton: IStyle; closeButton: IStyle; displayText: IStyle; }