diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f6e0b755d..fb1f1b4bf05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ No public interface changes since `4.6.0`. +- Added TypeScript definitions for `EuiFieldPassword`. ([#1255](https://github.com/elastic/eui/pull/1255)) + ## [`4.6.0`](https://github.com/elastic/eui/tree/v4.6.0) - Increased default font size of tabs in K6 theme ([#1244](https://github.com/elastic/eui/pull/1244)) diff --git a/src/components/form/field_password/index.d.ts b/src/components/form/field_password/index.d.ts new file mode 100644 index 00000000000..2dcaa48d07b --- /dev/null +++ b/src/components/form/field_password/index.d.ts @@ -0,0 +1,22 @@ +/// + +import { SFC, InputHTMLAttributes, Ref } from 'react'; + +declare module '@elastic/eui' { + + /** + * password field type defs + * + * @see './field_password.js' + */ + export interface EuiFieldPasswordProps { + isInvalid?: boolean; + inputRef?: Ref; + fullWidth?: boolean; + isLoading?: boolean; + } + + export const EuiFieldPassword: SFC< + CommonProps & InputHTMLAttributes & EuiFieldPasswordProps + >; +} diff --git a/src/components/form/index.d.ts b/src/components/form/index.d.ts index edfe1915516..fe57e400f94 100644 --- a/src/components/form/index.d.ts +++ b/src/components/form/index.d.ts @@ -1,6 +1,7 @@ /// /// /// +/// /// /// ///