update eui to 4.5.1 (#24218) (#24315)

* update eui to 4.5.1

* icons declared for logging / infra

* remove eui types that are now in EUI directly

* clean up duplicated EUI typescript definitions

* Fix EuiSelect usage in beats enrollment
This commit is contained in:
dave.snider@gmail.com 2018-10-19 22:43:50 -07:00 committed by GitHub
parent e33cba34b7
commit 5a12e9240e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 40 deletions

View file

@ -81,7 +81,7 @@
"**/@types/node": "8.10.21"
},
"dependencies": {
"@elastic/eui": "4.4.1",
"@elastic/eui": "4.5.1",
"@elastic/filesaver": "1.1.2",
"@elastic/numeral": "2.3.2",
"@elastic/ui-ace": "0.2.3",

View file

@ -119,7 +119,7 @@
},
"dependencies": {
"@elastic/datemath": "^4.0.2",
"@elastic/eui": "4.4.1",
"@elastic/eui": "4.5.1",
"@elastic/node-crypto": "0.1.2",
"@elastic/node-phantom-simple": "2.2.4",
"@elastic/numeral": "2.3.2",

View file

@ -124,8 +124,8 @@ export class EnrollBeat extends React.Component<BeatsProps, any> {
<EuiSelect
value={this.state.beatType}
options={[
{ value: 'filebeat', label: 'Filebeat' },
{ value: 'metricbeat', label: 'Metricbeat' },
{ value: 'filebeat', text: 'Filebeat' },
{ value: 'metricbeat', text: 'Metricbeat' },
]}
onChange={(e: any) => this.setState({ beatType: e.target.value })}
fullWidth={true}
@ -149,17 +149,17 @@ export class EnrollBeat extends React.Component<BeatsProps, any> {
options={[
{
value: `sudo ${this.state.beatType}`,
label: 'DEB / RPM',
text: 'DEB / RPM',
},
{
value: `PS C:\\Program Files\\${capitalize(this.state.beatType)}> ${
this.state.beatType
}.exe`,
label: 'Windows',
text: 'Windows',
},
{
value: `./${this.state.beatType}`,
label: 'MacOS',
text: 'MacOS',
},
]}
onChange={(e: any) => this.setState({ command: e.target.value })}

View file

@ -33,7 +33,7 @@ export function infra(kibana: any) {
icon: 'plugins/infra/images/infra_mono_white.svg',
id: 'infra:home',
order: 8000,
title: 'InfraOps',
title: 'Infra Ops',
url: `/app/${APP_ID}#/home`,
},
{

View file

@ -143,20 +143,6 @@ declare module '@elastic/eui' {
export const EuiErrorBoundary: React.SFC<EuiErrorBoundaryProps>;
type EuiSelectProps = CommonProps & {
compressed?: boolean;
disabled?: boolean;
fullWidth?: boolean;
hasNoInitialSelection?: boolean;
inputRef?: Ref<HTMLSelectElement>;
isInvalid?: boolean;
isLoading?: boolean;
onChange?: (arg: any) => void;
options?: any[];
value: any;
};
export const EuiSelect: React.SFC<EuiSelectProps>;
type EuiSizesResponsive = 'xs' | 's' | 'm' | 'l' | 'xl';
type EuiResponsiveProps = CommonProps & {
children: React.ReactNode;
@ -178,13 +164,4 @@ declare module '@elastic/eui' {
};
export const EuiDatePickerRange: React.SFC<EuiDatePickerRangeProps>;
type EuiFieldNumberProps = CommonProps & {
defaultValue: string;
value?: number;
onChange?: (arg: any) => void;
step?: number;
};
export const EuiFieldNumber: React.SFC<EuiFieldNumberProps>;
}

View file

@ -7,7 +7,6 @@
// TODO: Remove once typescript definitions are in EUI
declare module '@elastic/eui' {
export const EuiBasicTable: React.SFC<any>;
export const EuiTextColor: React.SFC<any>;
}
import moment from 'moment';

View file

@ -26,10 +26,10 @@
dependencies:
moment "^2.13.0"
"@elastic/eui@4.4.1":
version "4.4.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.4.1.tgz#a1a4ab5bb209da8ea6d48c065476e74b1f48249b"
integrity sha512-SLgJQEDEuH16GFGmRmMvPUingisoNMjpdHnNqns9lug5Zk0PS96306xpbaXb3R+mz0RVQQjWsjnFJMN91QD26A==
"@elastic/eui@4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.5.1.tgz#29ac4f07ab80b229ff4b183f7ced580b84a13df5"
integrity sha512-wUI2ALqKH2MPS7xUsfzm6QOmtnw2itSlWxIaje3y6kbnGyjdSyrewpaws6TRQL7bHss+ylKTVwJCWR6dSC3nVw==
dependencies:
classnames "^2.2.5"
core-js "^2.5.1"

View file

@ -129,10 +129,10 @@
version "0.0.0"
uid ""
"@elastic/eui@4.4.1":
version "4.4.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.4.1.tgz#a1a4ab5bb209da8ea6d48c065476e74b1f48249b"
integrity sha512-SLgJQEDEuH16GFGmRmMvPUingisoNMjpdHnNqns9lug5Zk0PS96306xpbaXb3R+mz0RVQQjWsjnFJMN91QD26A==
"@elastic/eui@4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.5.1.tgz#29ac4f07ab80b229ff4b183f7ced580b84a13df5"
integrity sha512-wUI2ALqKH2MPS7xUsfzm6QOmtnw2itSlWxIaje3y6kbnGyjdSyrewpaws6TRQL7bHss+ylKTVwJCWR6dSC3nVw==
dependencies:
classnames "^2.2.5"
core-js "^2.5.1"