import { default as React } from 'react'; import { CardBackgroundProps } from '../CardBackground/CardBackground'; import { ComponentVariant } from '../Shared/types'; export type ActionInputShellProps = { className?: string; variant?: ComponentVariant; supportingText?: React.ReactNode | (() => React.ReactNode); showSupportingText?: boolean; cardBackground?: CardBackgroundProps; disabled?: boolean; children?: React.ReactNode | (() => React.ReactNode); }; export type ActionInputInternalTextareaProps = Omit, "onChange" | "children" | "defaultValue"> & { autoResize?: boolean; userResize?: boolean; minRows?: number; maxRows?: number; onChange?: (e: React.ChangeEvent) => void; value?: string; defaultValue?: string; }; type ActionInputWithInternal = ActionInputShellProps & ActionInputInternalTextareaProps & { textArea?: never; }; type ActionInputWithOverride = ActionInputShellProps & { textArea: React.ReactNode; }; export type ActionInputProps = ActionInputWithInternal | ActionInputWithOverride; export interface ActionInputFooterProps { secondaryActionsSlot?: React.ReactNode; primaryActionsSlot?: React.ReactNode; className?: string; } export interface ActionInputAttachFieldsProps { children: React.ReactNode; className?: string; } export {};