import { TabListProps, TabProps } from '@ariakit/react'; import { HTMLAttributes, PropsWithChildren } from 'react'; import { UseTab } from '../Tabs'; import { MergeProps, PropsWithAs } from '../../utils'; import { IconName } from '../Icon/types'; export interface ActionButtonOptions { icon: IconName; isActive?: boolean; } export type ActionButtonProps = MergeProps, ActionButtonOptions>; export interface BodyOptions { size?: 'lg' | 'md' | 'sm' | 'xl' | 'xs'; } export type BodyProps = MergeProps>, BodyOptions>; export type BoxTextProps = PropsWithChildren>; export interface HeaderLeftActionsOptions { isExpandable?: boolean; onExpandChange?: (expanded: boolean) => void; } export type HeaderLeftActionsProps = MergeProps>, HeaderLeftActionsOptions>; export type HeaderProps = PropsWithChildren>; export interface HeaderRightActionsOptions { isClosable?: boolean; onClose?: VoidFunction; } export type HeaderRightActionsProps = MergeProps>, HeaderRightActionsOptions>; export type HeaderTabItem = TabProps & { badge?: number | React.ReactElement | string; icon?: IconName; id: string; }; export interface HeaderTabsOptions { children: React.ReactNode; } export type HeaderTabsProps = MergeProps, HeaderTabsOptions>; export interface HeaderTitleOptions { title: JSX.Element | string; } export type HeaderTitleProps = PropsWithAs<'p', HeaderTitleOptions>; export type MediaProps = PropsWithChildren>; export interface TabPanelOptions { store: UseTab; tabId?: string; } export type TabPanelProps = MergeProps>>; export interface WindowOptions { role?: 'alertdialog' | 'dialog' | 'region'; } export type WindowProps = MergeProps>>;