import { IAddIIcon } from '../icon'; import { IThemeControl, IThemeGenreButton, IThemeSize, ITypography } from '../../styles/utils/types'; import { CSSProperties, FocusEventHandler, MouseEventHandler, PropsWithChildren, Ref } from 'react'; type IButtonDefault = PropsWithChildren & { ariaLabel?: string; className?: string; genre: IThemeGenreButton; icons?: IAddIIcon[]; id?: string; isDisabled?: boolean; isFullSize?: boolean; isHidden?: boolean; isHiddenBorder?: boolean; isMinWidthAsContent?: boolean; isOnlyIcon?: boolean; isZeroPadding?: boolean; isSizeFitContent?: boolean; isFullRadius?: boolean; isWidthAsHeight?: boolean; isZeroRadius?: boolean; name?: string; onClick?: MouseEventHandler; onFocus?: FocusEventHandler; onMouseDown?: MouseEventHandler; control?: IThemeControl; sxTypography?: ITypography; ref?: Ref; size: IThemeSize; style?: CSSProperties; tabIndex?: number; type?: HTMLButtonElement['type']; }; type IButtonStandard = IButtonDefault & { isIconGroup?: false; }; type IButtonIconGroup = IButtonDefault & { isIconGroup?: true; iconGroupOrder?: number; }; export type IButton = IButtonStandard | IButtonIconGroup; export {};