From 7b33cf82f67a5d16622bade753556236853fbe25 Mon Sep 17 00:00:00 2001 From: Maryia Lapata Date: Wed, 7 Aug 2019 09:15:03 +0300 Subject: [PATCH] Add types for EuiTextArea (#2201) * Add types for EuiTextArea * Update CHANGELOG.md --- CHANGELOG.md | 1 + src/components/form/text_area/index.d.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5751a840cf6..ca5a7f7bc1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ No public interface changes since `13.2.0`. - Fixed `EuiBadge` truncation in IE and for the global filters pattern ([#2194](https://github.com/elastic/eui/pull/2194)) - Fixed alignment of long titles in `EuiStep` ([#2186](https://github.com/elastic/eui/pull/2186)) - Fixed the TS defs for EuiFilterSelectItem ([#2192](https://github.com/elastic/eui/pull/2192)) +- Added missing TS defs for EuiTextArea ([#2201](https://github.com/elastic/eui/pull/2201)) ## [`13.1.1`](https://github.com/elastic/eui/tree/v13.1.1) diff --git a/src/components/form/text_area/index.d.ts b/src/components/form/text_area/index.d.ts index f82bd417559..bea737a0d68 100644 --- a/src/components/form/text_area/index.d.ts +++ b/src/components/form/text_area/index.d.ts @@ -3,10 +3,13 @@ import { CommonProps } from '../../common'; import { FunctionComponent, TextareaHTMLAttributes } from 'react'; declare module '@elastic/eui' { + export type EuiTextAreaResize = 'vertical' | 'horizontal' | 'both' | 'none'; /** * @see './text_area.js' */ export interface EuiTextAreaProps { + compressed?: boolean; + resize?: EuiTextAreaResize; rows?: number; isInvalid?: boolean; fullWidth?: boolean;