From 23896eade0639b8313e6a47019b59dcd2d2a3e4d Mon Sep 17 00:00:00 2001 From: Jason Rhodes Date: Tue, 26 Feb 2019 09:41:56 -0500 Subject: [PATCH] Adds the rest of the available props for the EUI filter button --- src/components/filter_group/index.d.ts | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/filter_group/index.d.ts b/src/components/filter_group/index.d.ts index b9de2f21dfa8..03512757b4dc 100644 --- a/src/components/filter_group/index.d.ts +++ b/src/components/filter_group/index.d.ts @@ -1,5 +1,5 @@ import { CommonProps } from '../common'; -import { IconType, IconSize } from '../icon' +import { IconType, IconSize } from '../icon'; /// import { SFC, ButtonHTMLAttributes, HTMLAttributes } from 'react'; @@ -11,7 +11,15 @@ declare module '@elastic/eui' { * @see './filter_button.js' */ - export const EuiFilterButton: SFC; + interface EuiFilterButtonProps { + isSelected?: boolean; + hasActiveFilters?: boolean; + numFilters?: number; + grow?: boolean; + noDivider?: boolean; + } + + export const EuiFilterButton: SFC; /** * Filter group type defs @@ -19,7 +27,9 @@ declare module '@elastic/eui' { * @see './filter_group.js' */ - export const EuiFilterGroup: SFC>; + export const EuiFilterGroup: SFC< + CommonProps & HTMLAttributes + >; /** * Filter select item type defs @@ -29,10 +39,12 @@ declare module '@elastic/eui' { export type FilterChecked = 'on' | 'off'; export interface EuiFilterSelectItemProps { - checked?: FilterChecked + checked?: FilterChecked; } - export const EuiFilterSelectItem: SFC & EuiFilterSelectItemProps + export const EuiFilterSelectItem: SFC< + CommonProps & + ButtonHTMLAttributes & + EuiFilterSelectItemProps >; }