{"version":3,"file":"TextArea.types.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextAreaPropsShared } from '@metamask/design-system-shared';\nimport type { ChangeEvent, ComponentPropsWithoutRef, FocusEvent } from 'react';\n\nimport type { TextAreaResize } from './TextArea.constants';\n\n/**\n * TextArea component props (React platform-specific)\n * Extends shared props from @metamask/design-system-shared with React-specific platform concerns\n */\nexport type TextAreaProps = Omit<\n  ComponentPropsWithoutRef<'textarea'>,\n  | 'autoFocus'\n  | 'defaultValue'\n  | 'disabled'\n  | 'onBlur'\n  | 'onChange'\n  | 'onFocus'\n  | 'placeholder'\n  | 'readOnly'\n  | 'value'\n> &\n  Omit<TextAreaPropsShared, 'textVariant'> & {\n    /**\n     * Optional prop to control the resize behavior of the textarea.\n     * Possible values:\n     * - TextAreaResize.None\n     * - TextAreaResize.Both\n     * - TextAreaResize.Horizontal\n     * - TextAreaResize.Vertical\n     *\n     * @default TextAreaResize.None\n     */\n    resize?: TextAreaResize;\n    /**\n     * Called when the textarea value changes.\n     */\n    onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n    /**\n     * Called when the textarea receives focus.\n     */\n    onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;\n    /**\n     * Called when the textarea loses focus.\n     */\n    onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;\n  };\n"]}