import { type ComponentPropsWithRef, type ElementType } from 'react'; import { type PillColorsExtended } from '../components/Pill'; import type { ChildrenProps, EmotionColorNamesType, StyleProps, TransferProps } from './shared'; export type PillColorsExtendedNamesType = (typeof PillColorsExtended)[keyof typeof PillColorsExtended]; export type PillColor = EmotionColorNamesType | PillColorsExtendedNamesType | C; export interface AriaPillElementTypeProps { elementType?: T; } export interface PillProps extends ChildrenProps, StyleProps, TransferProps { } export type SpiritPillProps = AriaPillElementTypeProps & ComponentPropsWithRef & PillProps & { color?: PillColor; };