import type { Ref } from "react"; import type { StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from "react-native"; import type { IFieldColors } from "../../types/fieldColors"; export type IInputAreaColors = Pick; export type IInputArea = Omit & { /** * React 19 ref-as-prop. */ ref?: Ref; label?: string; error?: string; colors?: Readonly; /** * Fully disabled semantic state. * * @default false */ disabled?: boolean; /** * Whether the field is currently active in the interaction flow. * * active=false prevents editing and uses ARCUI's inactive presentation * without representing the field as fully disabled. * * @default true */ active?: boolean; /** * Whether the character count is rendered below the field. * * When enabled, the counter is always present, including at zero characters. * * @default true */ showCharCount?: boolean; /** * Minimum height of the complete textarea field surface. * * Defaults to tokens.sizings.inputArea.minHeight. */ minHeight?: number; /** * Maximum height of the complete textarea field surface before native * scrolling takes over. * * Defaults to tokens.sizings.inputArea.maxHeight. */ maxHeight?: number; /** * Root field style. * * Use inputStyle for the native TextInput itself. */ style?: StyleProp; inputStyle?: StyleProp; /** * Applied to the ARCUI field root. * * Internal elements receive stable suffixes. */ testID?: string; };