Upgrade EUI to 14.4.0 (#46949)

* eui to 14.4.0

* euicard ts updates

* snaps
This commit is contained in:
Greg Thompson 2019-10-02 11:58:22 -05:00 committed by GitHub
parent 3f7c3e0d55
commit 6f09ecc0d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 20 additions and 54 deletions

View file

@ -107,7 +107,7 @@
"@babel/register": "^7.5.5",
"@elastic/charts": "^12.0.2",
"@elastic/datemath": "5.0.2",
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.3",

View file

@ -13,7 +13,6 @@ exports[`after fetch hideWriteControls 1`] = `
noItemsFragment={
<div>
<EuiEmptyPrompt
iconColor="subdued"
iconType="visualizeApp"
title={
<h2>
@ -106,7 +105,6 @@ exports[`after fetch initialFilter 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="dashboardApp"
title={
<h2>
@ -199,7 +197,6 @@ exports[`after fetch renders call to action when no dashboards exist 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="dashboardApp"
title={
<h2>
@ -292,7 +289,6 @@ exports[`after fetch renders table rows 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="dashboardApp"
title={
<h2>
@ -385,7 +381,6 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="dashboardApp"
title={
<h2>
@ -478,7 +473,6 @@ exports[`renders empty page in before initial fetch to avoid flickering 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="dashboardApp"
title={
<h2>

View file

@ -17,13 +17,7 @@
* under the License.
*/
import React from 'react';
import {
// @ts-ignore
EuiCard,
EuiFlexItem,
EuiFlexGroup,
EuiFormRow,
} from '@elastic/eui';
import { EuiCard, EuiFlexItem, EuiFlexGroup, EuiFormRow } from '@elastic/eui';
import { Subscription } from 'rxjs';
import { EuiButton } from '@elastic/eui';
@ -96,7 +90,12 @@ export class ContactCardEmbeddableComponent extends React.Component<Props, State
render() {
return (
<EuiCard textAlign="left" title={this.state.fullName} footer={this.getCardFooterContent()} />
<EuiCard
textAlign="left"
title={this.state.fullName}
footer={this.getCardFooterContent()}
description=""
/>
);
}
}

View file

@ -250,7 +250,6 @@ exports[`Inspector Data View component should render empty state 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
title={
<h2>
<FormattedMessage

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"react": "^16.8.0",
"react-dom": "^16.8.0"
}

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"react": "^16.8.0"
}
}

View file

@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"react": "^16.8.0"
},
"scripts": {

View file

@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"react": "^16.8.0"
},
"scripts": {

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"react": "^16.8.0",
"react-dom": "^16.8.0"
}

View file

@ -25,7 +25,6 @@ declare module '@elastic/eui' {
export const EuiDescribedFormGroup: React.SFC<any>;
export const EuiCodeEditor: React.SFC<any>;
export const Query: any;
export const EuiCard: any;
export interface EuiTableCriteria {
page: { index: number; size: number };

View file

@ -33,7 +33,6 @@ exports[`NoServicesMessage status: pending and historicalDataFound: false 1`] =
</p>
</React.Fragment>
}
iconColor="subdued"
title={
<div>
Looks like you don't have any APM services installed. Let's add some!
@ -45,7 +44,6 @@ exports[`NoServicesMessage status: pending and historicalDataFound: false 1`] =
exports[`NoServicesMessage status: pending and historicalDataFound: true 1`] = `
<EuiEmptyPrompt
iconColor="subdued"
title={
<div>
No services found
@ -80,7 +78,6 @@ exports[`NoServicesMessage status: success and historicalDataFound: false 1`] =
</p>
</React.Fragment>
}
iconColor="subdued"
title={
<div>
Looks like you don't have any APM services installed. Let's add some!
@ -92,7 +89,6 @@ exports[`NoServicesMessage status: success and historicalDataFound: false 1`] =
exports[`NoServicesMessage status: success and historicalDataFound: true 1`] = `
<EuiEmptyPrompt
iconColor="subdued"
title={
<div>
No services found

View file

@ -5,11 +5,7 @@
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
// @ts-ignore unconverted EUI component
EuiCard,
EuiIcon,
} from '@elastic/eui';
import { EuiCard, EuiIcon } from '@elastic/eui';
import { TagList } from '../tag_list/';
export interface Props {
@ -45,7 +41,7 @@ export const ElementCard = ({ title, description, image, tags = [], onClick, ...
description={description}
footer={<TagList tags={tags} tagType={tagType} />}
image={image}
icon={image ? null : <EuiIcon type="canvasApp" size="xxl" />}
icon={image ? undefined : <EuiIcon type="canvasApp" size="xxl" />}
onClick={onClick}
{...rest}
/>

View file

@ -146,7 +146,6 @@ exports[`UpgradeFailure component passes expected text for new pipeline 1`] = `
Before you can add a pipeline, we need to upgrade your configuration.
</p>
}
iconColor="subdued"
title={
<UpgradeFailureTitle
titleText="Upgrade failed"
@ -487,7 +486,6 @@ exports[`UpgradeFailure component passes expected text for not manual upgrade 1`
Before you can add a pipeline, we need to upgrade your configuration.
</p>
}
iconColor="subdued"
title={
<UpgradeFailureTitle
titleText="Time for an upgrade!"
@ -828,7 +826,6 @@ exports[`UpgradeFailure component passes expected text for not new pipeline 1`]
Before you can edit this pipeline, we need to upgrade your configuration.
</p>
}
iconColor="subdued"
title={
<UpgradeFailureTitle
titleText="Upgrade failed"
@ -1054,7 +1051,6 @@ exports[`UpgradeFailure component renders component as expected 1`] = `
Before you can add a pipeline, we need to upgrade your configuration.
</p>
}
iconColor="subdued"
title={
<UpgradeFailureTitle
titleText="Upgrade failed"

View file

@ -17,7 +17,6 @@ exports[`Data Frame: Transform List <DataFrameTransformList /> Minimal initializ
]
}
data-test-subj="mlNoDataFrameTransformsFound"
iconColor="subdued"
title={
<h2>
No data frame transforms found

View file

@ -2,7 +2,6 @@
exports[`ExplorerNoInfluencersFound snapshot 1`] = `
<EuiEmptyPrompt
iconColor="subdued"
title={
<h2>
<FormattedMessage

View file

@ -16,7 +16,6 @@ exports[`ExplorerNoInfluencersFound snapshot 1`] = `
</EuiButton>
}
data-test-subj="mlNoJobsFound"
iconColor="subdued"
iconType="alert"
title={
<h2>

View file

@ -13,7 +13,6 @@ exports[`ExplorerNoInfluencersFound snapshot 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="iInCircle"
title={
<h2>

View file

@ -31,7 +31,6 @@ exports[`<RolesGridPage /> renders permission denied if required 1`] = `
/>
</p>
}
iconColor="subdued"
iconType="securityApp"
title={
<h2>

View file

@ -56,7 +56,6 @@ exports[`IndexPatternsMissingPrompt renders correctly against snapshot 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="gisApp"
title={
<h2>

View file

@ -457,7 +457,6 @@ exports[`CheckupTab render without deprecations 1`] = `
</p>
</React.Fragment>
}
iconColor="subdued"
iconType="faceHappy"
title={
<h2>

View file

@ -36,7 +36,6 @@ exports[`DataMissing component renders basePath and headingMessage 1`] = `
/>
</p>
}
iconColor="subdued"
iconType="uptimeApp"
title={
<EuiTitle

View file

@ -169,7 +169,6 @@ exports[`EmptyState component does not render empty state with appropriate base
/>
</p>
}
iconColor="subdued"
iconType="uptimeApp"
title={
<EuiTitle
@ -426,7 +425,6 @@ exports[`EmptyState component doesn't render child components when count is fals
</EuiTitle>
</React.Fragment>
}
iconColor="subdued"
>
<div
className="euiEmptyPrompt"
@ -641,7 +639,6 @@ exports[`EmptyState component notifies when index does not exist 1`] = `
/>
</p>
}
iconColor="subdued"
iconType="uptimeApp"
title={
<EuiTitle
@ -1168,7 +1165,6 @@ exports[`EmptyState component renders loading state if no errors or doc count 1`
</EuiTitle>
</React.Fragment>
}
iconColor="subdued"
>
<div
className="euiEmptyPrompt"

View file

@ -185,7 +185,7 @@
"@babel/runtime": "^7.5.5",
"@elastic/ctags-langserver": "^0.1.10",
"@elastic/datemath": "5.0.2",
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"@elastic/javascript-typescript-langserver": "^0.3.3",
"@elastic/lsp-extension": "^0.1.2",
"@elastic/maki": "6.1.0",

View file

@ -10,7 +10,6 @@ declare module '@elastic/eui' {
export const EuiDescribedFormGroup: React.SFC<any>;
export const EuiCodeEditor: React.SFC<any>;
export const Query: any;
export const EuiCard: any;
}
declare module '@elastic/eui/lib/services' {

View file

@ -1145,10 +1145,10 @@
tabbable "^1.1.0"
uuid "^3.1.0"
"@elastic/eui@14.3.0":
version "14.3.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.3.0.tgz#256e1af8f6b15717904f8959742a23b3495ff0bb"
integrity sha512-gAbPNezBmndInYqqw6EvRYLn2VMYQgYuPQYA5UZ7TyHzwvoBiMpUw5nFzYhS2A/Xcmq/ON5Mu8RY3LGRAVBOvQ==
"@elastic/eui@14.4.0":
version "14.4.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.4.0.tgz#ac09a476798dcdb1005616cccc149eda23ea2a90"
integrity sha512-dR7lYwUaIRXZjlUrJBq8GcGLPh6QfM3waQxUFI8lOnMVayJe3OOMNADCn8Oty6wNYIOrBWzZbW6w4bzInWF6oA==
dependencies:
"@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25"