Update EUI to 14.3.0 (#46824) (#46867)

* Update EUI to 14.3.0

and update snaps

* TS Colors fix
This commit is contained in:
dave.snider@gmail.com 2019-09-27 17:48:49 -07:00 committed by Caroline Horn
parent 8bcd0b19cf
commit 9eeeb24dc3
36 changed files with 17 additions and 90 deletions

View file

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

View file

@ -69,7 +69,6 @@ exports[`rendering render matches snapshot 1`] = `
color="danger"
iconType="alert"
key="0"
size="m"
title="foo"
>
<EuiCodeBlock
@ -86,7 +85,6 @@ Error: foo
color="danger"
iconType="alert"
key="1"
size="m"
title="bar"
>
<EuiCodeBlock

View file

@ -294,7 +294,6 @@ exports[`statusCheckState failed status check - error 1`] = `
/>
<EuiCallOut
color="warning"
size="m"
title="custom error msg"
/>
</React.Fragment>,
@ -410,7 +409,6 @@ exports[`statusCheckState failed status check - no data 1`] = `
/>
<EuiCallOut
color="warning"
size="m"
title="custom error msg"
/>
</React.Fragment>,
@ -637,7 +635,6 @@ exports[`statusCheckState successful status check 1`] = `
/>
<EuiCallOut
color="success"
size="m"
title="custom success msg"
/>
</React.Fragment>,

View file

@ -149,7 +149,6 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1
<EuiCallOut
color="warning"
data-test-subj="loadSavedObjects_failed"
size="m"
title="Request failed, Error: simulated bulkRequest error"
/>
</React.Fragment>,
@ -276,7 +275,6 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1
<EuiCallOut
color="warning"
data-test-subj="loadSavedObjects_failed"
size="m"
title="Request failed, Error: simulated bulkRequest error"
>
<div
@ -451,7 +449,6 @@ exports[`bulkCreate should display success message when bulkCreate is successful
<EuiCallOut
color="success"
data-test-subj="loadSavedObjects_success"
size="m"
title="1 saved objects successfully added"
/>
</React.Fragment>,
@ -612,7 +609,6 @@ exports[`bulkCreate should display success message when bulkCreate is successful
<EuiCallOut
color="success"
data-test-subj="loadSavedObjects_success"
size="m"
title="1 saved objects successfully added"
>
<div

View file

@ -4,7 +4,6 @@ exports[`EmptyState should render normally 1`] = `
<div>
<EuiCallOut
color="warning"
size="m"
title={
<FormattedMessage
defaultMessage="Couldn't find any Elasticsearch data"

View file

@ -56,7 +56,6 @@ exports[`StepTimeField should render "Custom index pattern ID already exists" wh
<EuiCallOut
color="danger"
iconType="cross"
size="m"
title={
<FormattedMessage
defaultMessage="Error"
@ -295,7 +294,6 @@ exports[`StepTimeField should render any error message 1`] = `
<EuiCallOut
color="danger"
iconType="cross"
size="m"
title={
<FormattedMessage
defaultMessage="Error"

View file

@ -5,7 +5,6 @@ exports[`CallOuts should render normally 1`] = `
<EuiCallOut
color="danger"
iconType="cross"
size="m"
title={
<FormattedMessage
defaultMessage="Deprecation languages in use"

View file

@ -32,7 +32,6 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Index Pattern Conflicts"
@ -242,7 +241,6 @@ exports[`Flyout conflicts should handle errors 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Import failed"
@ -271,7 +269,6 @@ exports[`Flyout errors should display unsupported type errors properly 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Import failed"
@ -330,7 +327,6 @@ exports[`Flyout legacy conflicts should allow conflict resolution 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Support for JSON files is going away"
@ -355,7 +351,6 @@ exports[`Flyout legacy conflicts should allow conflict resolution 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Index Pattern Conflicts"
@ -500,7 +495,6 @@ Array [
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Support for JSON files is going away"
@ -520,7 +514,6 @@ Array [
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Index Pattern Conflicts"
@ -553,7 +546,6 @@ Array [
</EuiCallOut>,
<EuiCallOut
color="danger"
size="m"
title={
<FormattedMessage
defaultMessage="Sorry, there was an error"

View file

@ -34,10 +34,7 @@ exports[`Relationships should render dashboards normally 1`] = `
</EuiFlyoutHeader>
<EuiFlyoutBody>
<div>
<EuiCallOut
color="primary"
size="m"
>
<EuiCallOut>
<p>
Here are the saved objects related to MyDashboard. Deleting this dashboard affects its parent objects, but not its children.
</p>
@ -200,7 +197,6 @@ exports[`Relationships should render errors 1`] = `
<EuiFlyoutBody>
<EuiCallOut
color="danger"
size="m"
title={
<FormattedMessage
defaultMessage="Error"
@ -249,10 +245,7 @@ exports[`Relationships should render index patterns normally 1`] = `
</EuiFlyoutHeader>
<EuiFlyoutBody>
<div>
<EuiCallOut
color="primary"
size="m"
>
<EuiCallOut>
<p>
Here are the saved objects related to MyIndexPattern*. Deleting this index-pattern affects its parent objects, but not its children.
</p>
@ -419,10 +412,7 @@ exports[`Relationships should render searches normally 1`] = `
</EuiFlyoutHeader>
<EuiFlyoutBody>
<div>
<EuiCallOut
color="primary"
size="m"
>
<EuiCallOut>
<p>
Here are the saved objects related to MySearch. Deleting this search affects its parent objects, but not its children.
</p>
@ -589,10 +579,7 @@ exports[`Relationships should render visualizations normally 1`] = `
</EuiFlyoutHeader>
<EuiFlyoutBody>
<div>
<EuiCallOut
color="primary"
size="m"
>
<EuiCallOut>
<p>
Here are the saved objects related to MyViz. Deleting this visualization affects its parent objects, but not its children.
</p>

View file

@ -5,7 +5,6 @@ exports[`CallOuts should render normally 1`] = `
<EuiCallOut
color="warning"
iconType="bolt"
size="m"
title={
<FormattedMessage
defaultMessage="Caution: You can break stuff here"

View file

@ -5,7 +5,6 @@ exports[`ScriptingDisabledCallOut should render normally 1`] = `
<EuiCallOut
color="danger"
iconType="alert"
size="m"
title={
<FormattedMessage
defaultMessage="Scripting disabled"

View file

@ -5,7 +5,6 @@ exports[`ScriptingWarningCallOut should render normally 1`] = `
<EuiCallOut
color="warning"
iconType="alert"
size="m"
title={
<FormattedMessage
defaultMessage="Proceed with caution"

View file

@ -22,9 +22,9 @@ import {
EuiAccordion,
EuiToolTip,
EuiButtonIcon,
EuiButtonIconProps,
EuiSpacer,
EuiIconTip,
Color,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
@ -206,7 +206,7 @@ function DefaultEditorAgg({
<EuiToolTip key={icon.id} position="bottom" content={icon.tooltip}>
<EuiButtonIcon
iconType={icon.type}
color={icon.color as Color}
color={icon.color as EuiButtonIconProps['color']}
onClick={icon.onClick}
aria-label={icon.tooltip}
data-test-subj={icon.dataTestSubj}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -242,7 +242,6 @@ exports[`ilm summary extension should return extension when index has lifecycle
<EuiCallOut
color="danger"
iconType="cross"
size="m"
title={
<FormattedMessage
defaultMessage="Index lifecycle error"

View file

@ -1254,7 +1254,6 @@ exports[`UploadLicense should display an error when ES says license is expired 1
<EuiCallOut
className="euiForm__errors"
color="danger"
size="m"
title="Please address the errors in your form."
>
<div
@ -1706,7 +1705,6 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
<EuiCallOut
className="euiForm__errors"
color="danger"
size="m"
title="Please address the errors in your form."
>
<div
@ -2158,7 +2156,6 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
<EuiCallOut
className="euiForm__errors"
color="danger"
size="m"
title="Please address the errors in your form."
>
<div
@ -2606,7 +2603,6 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
<EuiCallOut
className="euiForm__errors"
color="danger"
size="m"
title="Please address the errors in your form."
>
<div

View file

@ -4,7 +4,6 @@ exports[`AlertCallOut component renders expected component 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="Only pipelines created in Kibana Management appear here"
>
<p>

View file

@ -4,7 +4,6 @@ exports[`Should render errors when layer has errors 1`] = `
<Fragment>
<EuiCallOut
color="warning"
size="m"
title="Unable to load layer"
>
<p

View file

@ -110,10 +110,8 @@ exports[`AnnotationsTable Initialization with job config prop. 1`] = `
exports[`AnnotationsTable Minimal initialization without props. 1`] = `
<EuiCallOut
color="primary"
iconType="iInCircle"
role="alert"
size="m"
title={
<FormattedMessage
defaultMessage="No annotations created for this job"

View file

@ -192,7 +192,6 @@ exports[`RuleEditorFlyout renders the flyout after adding a condition to a rule
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Rerun job"
@ -459,7 +458,6 @@ exports[`RuleEditorFlyout renders the flyout after setting the rule to edit 1`]
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Rerun job"
@ -704,7 +702,6 @@ exports[`RuleEditorFlyout renders the flyout for creating a rule with conditions
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Rerun job"

View file

@ -211,10 +211,8 @@ exports[`Overview that overview page shows a message if there is no beats data 1
stats={Array []}
/>
<EuiCallOut
color="primary"
data-test-subj="noRecentActivityMessage"
iconType="gear"
size="m"
title="Hi there! This area is where your latest Beats activity would show up, but you don't seem to have any activity within the last day."
/>
<EuiSpacer

View file

@ -2,7 +2,6 @@
exports[`Logs should render a link to filter by cluster uuid 1`] = `
<EuiCallOut
color="primary"
iconType="loggingApp"
size="m"
title="Want to see more log entries?"
@ -29,7 +28,6 @@ exports[`Logs should render a link to filter by cluster uuid 1`] = `
exports[`Logs should render a link to filter by cluster uuid and index uuid 1`] = `
<EuiCallOut
color="primary"
iconType="loggingApp"
size="m"
title="Want to see more log entries?"
@ -56,7 +54,6 @@ exports[`Logs should render a link to filter by cluster uuid and index uuid 1`]
exports[`Logs should render a link to filter by cluster uuid and node uuid 1`] = `
<EuiCallOut
color="primary"
iconType="loggingApp"
size="m"
title="Want to see more log entries?"
@ -284,7 +281,6 @@ exports[`Logs should render normally 1`] = `
size="m"
/>
<EuiCallOut
color="primary"
iconType="loggingApp"
size="m"
title="Want to see more log entries?"

View file

@ -4,7 +4,6 @@ exports[`Logs should render a default message 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No log data found"
>
<p>
@ -35,7 +34,6 @@ exports[`Logs should render with a no cluster found reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for this cluster"
>
<p>
@ -62,7 +60,6 @@ exports[`Logs should render with a no index found reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for this index"
>
<p>
@ -89,7 +86,6 @@ exports[`Logs should render with a no index pattern found reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No log data found"
>
<p>
@ -116,7 +112,6 @@ exports[`Logs should render with a no node found reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for this Elasticsearch node"
>
<p>
@ -143,7 +138,6 @@ exports[`Logs should render with a no type found reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for Elasticsearch"
>
<p>
@ -170,7 +164,6 @@ exports[`Logs should render with a time period reason 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for the selected time"
>
<p>
@ -187,7 +180,6 @@ exports[`Logs should render with a time period reason for both scenarios 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title="No logs for the selected time"
>
<p>

View file

@ -5,7 +5,6 @@ exports[`<SpaceAwarePrivilegeSection> with user profile disabling "manageSpaces"
color="danger"
data-test-subj="userCannotManageSpacesCallout"
iconType="alert"
size="m"
title={
<p>
<FormattedMessage

View file

@ -67,7 +67,6 @@ exports[`ConfirmDeleteModal renders as expected 1`] = `
<EuiSpacer />
<EuiCallOut
color="warning"
size="m"
>
<EuiText>
<FormattedMessage

View file

@ -8,7 +8,6 @@ exports[`AdvancedSettingsSubtitle renders as expected 1`] = `
<EuiCallOut
color="primary"
iconType="spacesApp"
size="m"
title={
<p>
<FormattedMessage

View file

@ -25,7 +25,6 @@ exports[`CheckupTab render with deprecations 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Back up your indices now"
@ -312,7 +311,6 @@ exports[`CheckupTab render with error 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Back up your indices now"
@ -382,7 +380,6 @@ exports[`CheckupTab render without deprecations 1`] = `
<EuiCallOut
color="warning"
iconType="help"
size="m"
title={
<FormattedMessage
defaultMessage="Back up your indices now"

View file

@ -6,7 +6,6 @@ exports[`ChecklistFlyout renders 1`] = `
<EuiCallOut
color="warning"
iconType="alert"
size="m"
title={
<FormattedMessage
defaultMessage="Index is unable to ingest, update, or delete documents while reindexing"

View file

@ -6,7 +6,6 @@ exports[`WarningsFlyoutStep renders 1`] = `
<EuiCallOut
color="danger"
iconType="alert"
size="m"
title={
<FormattedMessage
defaultMessage="This index requires destructive changes that can't be undone"

View file

@ -4,7 +4,6 @@ exports[`OverviewPageParsingErrorCallout renders without errors when a valid err
<EuiCallOut
color="danger"
iconType="alert"
size="m"
title="Parsing error"
>
<p>
@ -27,7 +26,6 @@ exports[`OverviewPageParsingErrorCallout renders without errors when an error wi
<EuiCallOut
color="danger"
iconType="alert"
size="m"
title="Parsing error"
>
<p>

View file

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

View file

@ -1019,10 +1019,10 @@
tabbable "^1.1.0"
uuid "^3.1.0"
"@elastic/eui@14.2.0":
version "14.2.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.2.0.tgz#d6368250e7261c63c06443d3cf3f7cf800916ff2"
integrity sha512-6nCV/Q2Ek3zTUj549+cFFx5rpx4ZZ2pjmspPsBhUwsn685qzAPsCv4WB40u4mWBZtMRZagBN2q2M2YxZHSPBLw==
"@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==
dependencies:
"@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25"