import { type CSSProperties, type KeyboardEventHandler, type MutableRefObject, type ReactNode, type RefObject } from "react"; import { type IDropdownButtonAccessibilityConfig } from "../../Button/typings.js"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; import { type IconType } from "../@types/icon.js"; import { type ThemeColor } from "../@types/themeColors.js"; /** * @internal */ export interface IUiChipAccessibilityConfig extends IAccessibilityConfigBase, IDropdownButtonAccessibilityConfig { deleteAriaLabel?: string; deleteAriaDescribedBy?: string; iconBeforeAriaLabel?: string; iconAfterAriaLabel?: string; actionAriaLabel?: string; actionAriaDescribedBy?: string; } /** * @internal */ export interface IUiChipProps { label: string; tag?: string; isDeletable?: boolean; isActionable?: boolean; isActive?: boolean; isLocked?: boolean; isExpandable?: boolean; isDisabled?: boolean; maxWidth?: number; iconAction?: IconType; iconBefore?: IconType; iconAfter?: IconType; iconColor?: ThemeColor | "currentColor"; variant?: "normal" | "inactive"; onClick?: () => void; onDelete?: () => void; onKeyDown?: KeyboardEventHandler; onDeleteKeyDown?: KeyboardEventHandler; onAction?: () => void; onActionKeyDown?: KeyboardEventHandler; accessibilityConfig?: IUiChipAccessibilityConfig; dataTestId?: string; buttonRef?: MutableRefObject; renderChipContent?: (content: ReactNode) => ReactNode; renderActionButton?: (button: ReactNode) => ReactNode; actionIconTooltip?: string; tooltip?: string; } export interface IChipContentProps { label: string; tag?: string; iconBefore?: IconType; iconAfter?: IconType; iconColor?: ThemeColor | "currentColor"; onClick?: () => void; onKeyDown?: KeyboardEventHandler; isActive: boolean; isLocked: boolean; isExpandable: boolean; isDisabled: boolean; maxWidth?: number; isDeletable: boolean; isActionable: boolean; variant?: "normal" | "inactive"; accessibilityConfig?: IUiChipAccessibilityConfig; dataTestId?: string; buttonRef: MutableRefObject | RefObject; styleObj?: CSSProperties; tooltip?: string; } export interface IChipDeleteButtonProps { onDelete?: () => void; onDeleteKeyDown?: KeyboardEventHandler; deleteAriaLabel?: string; deleteAriaDescribedBy?: string; dataTestId?: string; } export interface IChipActionButtonProps { onAction?: () => void; onActionKeyDown?: KeyboardEventHandler; actionAriaLabel?: string; actionAriaDescribedBy?: string; actionIcon?: IconType; dataTestId?: string; tooltip?: string; } //# sourceMappingURL=types.d.ts.map