From 7ef218df083d284f053bd5e874337d2fa16fbaa9 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Wed, 11 Jul 2018 13:36:49 -0400 Subject: [PATCH] expand the typings --- src/components/flyout/index.d.ts | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/components/flyout/index.d.ts b/src/components/flyout/index.d.ts index aa33540343b1..5cd7cc47cce6 100644 --- a/src/components/flyout/index.d.ts +++ b/src/components/flyout/index.d.ts @@ -1,3 +1,28 @@ declare module '@elastic/eui' { - export const EuiFlyout: React.SFC; + export interface EuiFlyoutProps { + onClose: () => void; + size: 's' | 'm' | 'l'; + /** + * Hides the default close button. You must provide another close button somewhere within the flyout. + */ + hideCloseButton: boolean; + /** + * Locks the mouse / keyboard focus to within the flyout + */ + ownFocus: boolean; + } + + export const EuiFlyout: React.SFC< + CommonProps & + EuiFlyoutProps + >; + + export const EuiFlyoutBody: React.SFC; + + export interface EuiFlyoutHeaderProps { + hasBorder: boolean; + } + export const EuiFlyoutHeader: React.SFC; + + export const EuiFlyoutFooter: React.SFC; } \ No newline at end of file