Skip to content

Commit

Permalink
Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhodes committed Mar 1, 2019
1 parent 3c40896 commit 1a08a78
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
"dependencies": {
"@elastic/datemath": "5.0.2",
"@elastic/eui": "9.0.0",
"@elastic/eui": "9.0.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.2",
Expand Down
2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
},
"dependencies": {
"@elastic/datemath": "5.0.2",
"@elastic/eui": "9.0.0",
"@elastic/eui": "9.0.1",
"@elastic/node-crypto": "0.1.2",
"@elastic/numeral": "2.3.2",
"@kbn/babel-preset": "1.0.0",
Expand Down
35 changes: 0 additions & 35 deletions x-pack/plugins/infra/types/eui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { IconType, ToolTipPositions } from '@elastic/eui';
import { CommonProps } from '@elastic/eui/src/components/common';
import moment from 'moment';
import { MouseEventHandler, ReactType, Ref } from 'react';
import { ReactDatePickerProps } from 'react-datepicker';
import { JsonObject } from '../common/typed_json';

declare module '@elastic/eui' {
Expand Down Expand Up @@ -46,25 +45,6 @@ declare module '@elastic/eui' {
type EuiHeaderBreadcrumbsProps = EuiBreadcrumbsProps;
export const EuiHeaderBreadcrumbs: React.SFC<EuiHeaderBreadcrumbsProps>;

type EuiFilterGroupProps = CommonProps;
export const EuiFilterGroup: React.SFC<EuiFilterGroupProps>;

type EuiFilterButtonProps = CommonProps & {
color?: ButtonColor;
href?: string;
iconSide?: ButtonIconSide;
iconType?: IconType;
isDisabled?: boolean;
isSelected?: boolean;
onClick: MouseEventHandler<HTMLElement>;
rel?: string;
target?: string;
type?: string;
hasActiveFilters?: boolean;
numFilters?: number;
};
export const EuiFilterButton: React.SFC<EuiFilterButtonProps>;

interface EuiOutsideClickDetectorProps {
children: React.ReactNode;
isDisabled?: boolean;
Expand Down Expand Up @@ -138,19 +118,4 @@ declare module '@elastic/eui' {
message?: any;
};
export const EuiInMemoryTable: React.SFC<EuiInMemoryTableProps>;

type EuiButtonGroupProps = CommonProps & {
buttonSize?: any;
color?: any;
idToSelectedMap?: any;
options?: any;
type?: any;
onChange?: any;
isIconOnly?: any;
isDisabled?: any;
isFullWidth?: any;
legend?: any;
idSelected?: any;
};
export const EuiButtonGroup: React.SFC<EuiButtonGroupProps>;
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -820,10 +820,10 @@
tabbable "^1.1.0"
uuid "^3.1.0"

"@elastic/[email protected].0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-9.0.0.tgz#439053ae7fceb41bbbfb87ed391114b1e74b6e5a"
integrity sha512-a3qs/NO1ikLY27bS2trTIvTPKEdILdiJRFOX4mTnqKDY7vQDRPtISbbySa3habmXGqUW1Y7WwIGilcQspHM94Q==
"@elastic/[email protected].1":
version "9.0.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-9.0.1.tgz#d71380d17416b4bbec1e920285c0c2ca0453b3a1"
integrity sha512-XFKIFvW557VOz7WPr9si6gY1+Z599y3ELmQ+SYl6mKaNQkVYKJldG77kZ2xrzw+oyVne8QW6xoK67T3M6+hVzw==
dependencies:
"@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25"
Expand Down

0 comments on commit 1a08a78

Please sign in to comment.