Skip to content

Commit

Permalink
Adds the rest of the available props for the EUI filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhodes committed Feb 26, 2019
1 parent 8499cf9 commit 23896ea
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/components/filter_group/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonProps } from '../common';
import { IconType, IconSize } from '../icon'
import { IconType, IconSize } from '../icon';
/// <reference path="../button/index.d.ts" />

import { SFC, ButtonHTMLAttributes, HTMLAttributes } from 'react';
Expand All @@ -11,15 +11,25 @@ declare module '@elastic/eui' {
* @see './filter_button.js'
*/

export const EuiFilterButton: SFC<EuiButtonEmptyProps>;
interface EuiFilterButtonProps {
isSelected?: boolean;
hasActiveFilters?: boolean;
numFilters?: number;
grow?: boolean;
noDivider?: boolean;
}

export const EuiFilterButton: SFC<EuiButtonEmptyProps & EuiFilterButtonProps>;

/**
* Filter group type defs
*
* @see './filter_group.js'
*/

export const EuiFilterGroup: SFC<CommonProps & HTMLAttributes<HTMLDivElement>>;
export const EuiFilterGroup: SFC<
CommonProps & HTMLAttributes<HTMLDivElement>
>;

/**
* Filter select item type defs
Expand All @@ -29,10 +39,12 @@ declare module '@elastic/eui' {

export type FilterChecked = 'on' | 'off';
export interface EuiFilterSelectItemProps {
checked?: FilterChecked
checked?: FilterChecked;
}

export const EuiFilterSelectItem: SFC<CommonProps &
ButtonHTMLAttributes<HTMLButtonElement> & EuiFilterSelectItemProps
export const EuiFilterSelectItem: SFC<
CommonProps &
ButtonHTMLAttributes<HTMLButtonElement> &
EuiFilterSelectItemProps
>;
}

0 comments on commit 23896ea

Please sign in to comment.