import React from 'react'; import { Theme } from '../theme'; export type DeepPartial = { [P in keyof T]?: DeepPartial; }; export type SizeValue = 'auto' | '100%' | 'fit-content' | `${number}px` | number; export type BaseComponentProps = { theme?: DeepPartial; }; export type ComponentProps> = BaseComponentProps & React.ComponentProps; export type Trigger = 'click' | 'hover' | 'contextmenu' | Array<'click' | 'hover' | 'contextmenu'>; export type Placement = 'top-start' | 'top-left' | 'top-center' | 'top-right' | 'top-end' | 'right-start' | 'right-top' | 'right-center' | 'right-bottom' | 'right-end' | 'bottom-start' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'bottom-end' | 'left-start' | 'left-top' | 'left-center' | 'left-bottom' | 'left-end';