Upgrade EUI to v31.0.0 (#86689)

* eui to 31.0.0

* snapshot updates

* remove obsolete snapshot
This commit is contained in:
Greg Thompson 2020-12-22 12:59:05 -06:00 committed by GitHub
parent 24db3a0070
commit c0d6bd95b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 28 deletions

View file

@ -102,7 +102,7 @@
"@elastic/datemath": "link:packages/elastic-datemath",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@^8.0.0-canary",
"@elastic/ems-client": "7.11.0",
"@elastic/eui": "30.6.0",
"@elastic/eui": "31.0.0",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "^9.0.1-kibana3",
"@elastic/node-crypto": "1.2.1",

View file

@ -597,7 +597,7 @@ exports[`DashboardEmptyScreen renders correctly with readonly mode 1`] = `
restrictWidth="500px"
>
<div
className="euiPage euiPage--restrictWidth-custom dshStartScreen"
className="euiPage euiPage--restrictWidth-custom euiPage--paddingMedium dshStartScreen"
style={
Object {
"maxWidth": "500px",
@ -942,7 +942,7 @@ exports[`DashboardEmptyScreen renders correctly with view mode 1`] = `
restrictWidth="500px"
>
<div
className="euiPage euiPage--restrictWidth-custom dshStartScreen"
className="euiPage euiPage--restrictWidth-custom euiPage--paddingMedium dshStartScreen"
style={
Object {
"maxWidth": "500px",

View file

@ -126,7 +126,7 @@ exports[`after fetch When given a title that matches multiple dashboards, filter
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>
@ -218,7 +218,7 @@ exports[`after fetch hideWriteControls 1`] = `
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>
@ -358,7 +358,7 @@ exports[`after fetch initialFilter 1`] = `
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>
@ -497,7 +497,7 @@ exports[`after fetch renders all table rows 1`] = `
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>
@ -636,7 +636,7 @@ exports[`after fetch renders call to action when no dashboards exist 1`] = `
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>
@ -775,7 +775,7 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
restrictWidth={true}
>
<div
className="euiPage euiPage--restrictWidth-default itemListing__page"
className="euiPage euiPage--restrictWidth-default euiPage--paddingMedium itemListing__page"
data-test-subj="dashboardLandingPage"
>
<EuiPageBody>

View file

@ -178,11 +178,7 @@ exports[`Storyshots components/WorkpadTemplates default 1`] = `
>
<span
className="euiTableCellContent__text"
title={
<Component
ariaSortValue="ascending"
/>
}
title="; Sorted in ascending order"
>
Template name
</span>

View file

@ -2,7 +2,7 @@
exports[`NoData should show a default message if reason is unknown 1`] = `
<div
class="euiPage"
class="euiPage euiPage--paddingMedium"
>
<h1
class="euiScreenReaderOnly"
@ -92,7 +92,7 @@ exports[`NoData should show a default message if reason is unknown 1`] = `
exports[`NoData should show text next to the spinner while checking a setting 1`] = `
<div
class="euiPage"
class="euiPage euiPage--paddingMedium"
>
<h1
class="euiScreenReaderOnly"

View file

@ -2,7 +2,7 @@
exports[`PageLoading should show a simple page loading component 1`] = `
<div
class="euiPage"
class="euiPage euiPage--paddingMedium"
style="height:calc(100vh - 50px)"
>
<main

View file

@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ResetSessionPage renders as expected 1`] = `"<html lang=\\"en\\"><head><link href=\\"/some-css-file.css\\" rel=\\"stylesheet\\"/><link href=\\"/some-other-css-file.css\\" rel=\\"stylesheet\\"/>MockedFonts<link rel=\\"apple-touch-icon\\" sizes=\\"180x180\\" href=\\"/path/to/base/ui/favicons/apple-touch-icon.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/path/to/base/ui/favicons/favicon-32x32.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/path/to/base/ui/favicons/favicon-16x16.png\\"/><link rel=\\"manifest\\" href=\\"/path/to/base/ui/favicons/manifest.json\\"/><link rel=\\"mask-icon\\" color=\\"#e8488b\\" href=\\"/path/to/base/ui/favicons/safari-pinned-tab.svg\\"/><link rel=\\"shortcut icon\\" href=\\"/path/to/base/ui/favicons/favicon.ico\\"/><script src=\\"/path/to/base/internal/security/reset_session_page.js\\"></script><meta name=\\"msapplication-config\\" content=\\"/path/to/base/ui/favicons/browserconfig.xml\\"/><meta name=\\"theme-color\\" content=\\"#ffffff\\"/></head><body><div class=\\"euiPage\\" style=\\"min-height:100vh\\"><main class=\\"euiPageBody\\"><div class=\\"euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter\\"><div class=\\"euiEmptyPrompt\\"><span data-euiicon-type=\\"alert\\" color=\\"danger\\"></span><div class=\\"euiSpacer euiSpacer--s\\"></div><span class=\\"euiTextColor euiTextColor--subdued\\"><h2 class=\\"euiTitle euiTitle--medium\\">You do not have permission to access the requested page</h2><div class=\\"euiSpacer euiSpacer--m\\"></div><div class=\\"euiText euiText--medium\\"><p>Either go back to the previous page or log in as a different user.</p></div></span><div class=\\"euiSpacer euiSpacer--l\\"></div><div class=\\"euiSpacer euiSpacer--s\\"></div><div class=\\"euiFlexGroup euiFlexGroup--gutterMedium euiFlexGroup--alignItemsCenter euiFlexGroup--justifyContentCenter euiFlexGroup--directionColumn euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><a class=\\"euiButton euiButton--primary euiButton--fill\\" href=\\"/path/to/logout\\" rel=\\"noreferrer\\" data-test-subj=\\"ResetSessionButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Log in as different user</span></span></a></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><button class=\\"euiButtonEmpty euiButtonEmpty--primary\\" type=\\"button\\" id=\\"goBackButton\\"><span class=\\"euiButtonContent euiButtonEmpty__content\\"><span class=\\"euiButtonEmpty__text\\">Go back</span></span></button></div></div></div></div></main></div></body></html>"`;
exports[`ResetSessionPage renders as expected 1`] = `"<html lang=\\"en\\"><head><link href=\\"/some-css-file.css\\" rel=\\"stylesheet\\"/><link href=\\"/some-other-css-file.css\\" rel=\\"stylesheet\\"/>MockedFonts<link rel=\\"apple-touch-icon\\" sizes=\\"180x180\\" href=\\"/path/to/base/ui/favicons/apple-touch-icon.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/path/to/base/ui/favicons/favicon-32x32.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/path/to/base/ui/favicons/favicon-16x16.png\\"/><link rel=\\"manifest\\" href=\\"/path/to/base/ui/favicons/manifest.json\\"/><link rel=\\"mask-icon\\" color=\\"#e8488b\\" href=\\"/path/to/base/ui/favicons/safari-pinned-tab.svg\\"/><link rel=\\"shortcut icon\\" href=\\"/path/to/base/ui/favicons/favicon.ico\\"/><script src=\\"/path/to/base/internal/security/reset_session_page.js\\"></script><meta name=\\"msapplication-config\\" content=\\"/path/to/base/ui/favicons/browserconfig.xml\\"/><meta name=\\"theme-color\\" content=\\"#ffffff\\"/></head><body><div class=\\"euiPage euiPage--paddingMedium\\" style=\\"min-height:100vh\\"><main class=\\"euiPageBody\\"><div class=\\"euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter\\"><div class=\\"euiEmptyPrompt\\"><span data-euiicon-type=\\"alert\\" color=\\"danger\\"></span><div class=\\"euiSpacer euiSpacer--s\\"></div><span class=\\"euiTextColor euiTextColor--subdued\\"><h2 class=\\"euiTitle euiTitle--medium\\">You do not have permission to access the requested page</h2><div class=\\"euiSpacer euiSpacer--m\\"></div><div class=\\"euiText euiText--medium\\"><p>Either go back to the previous page or log in as a different user.</p></div></span><div class=\\"euiSpacer euiSpacer--l\\"></div><div class=\\"euiSpacer euiSpacer--s\\"></div><div class=\\"euiFlexGroup euiFlexGroup--gutterMedium euiFlexGroup--alignItemsCenter euiFlexGroup--justifyContentCenter euiFlexGroup--directionColumn euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><a class=\\"euiButton euiButton--primary euiButton--fill\\" href=\\"/path/to/logout\\" rel=\\"noreferrer\\" data-test-subj=\\"ResetSessionButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Log in as different user</span></span></a></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><button class=\\"euiButtonEmpty euiButtonEmpty--primary\\" type=\\"button\\" id=\\"goBackButton\\"><span class=\\"euiButtonContent euiButtonEmpty__content\\"><span class=\\"euiButtonEmpty__text\\">Go back</span></span></button></div></div></div></div></main></div></body></html>"`;

View file

@ -460,12 +460,7 @@ exports[`Paginated Table Component rendering it renders the default load more ta
"euiRangeTrackHeight": "2px",
"euiRangeTrackRadius": "4px",
"euiRangeTrackWidth": "100%",
"euiResizableButtonSizeModifiers": Object {
"sizeExtraLarge": "40px",
"sizeLarge": "24px",
"sizeMedium": "16px",
"sizeSmall": "12px",
},
"euiResizableButtonSize": "16px",
"euiResizableButtonTransitionSpeed": "150ms",
"euiScrollBar": "16px",
"euiScrollBarCorner": "6px",

View file

@ -1439,10 +1439,10 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==
"@elastic/eui@30.6.0":
version "30.6.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-30.6.0.tgz#6653223223f52407ac05303825d9bd08382df1d5"
integrity sha512-40Jiy54MpJAx3lD3NSZZLkMkVySwKpX6RxIKnvT3somE95pwIjXrWB688m2nL2g05y7kNhjrhwfdctVzNXZENA==
"@elastic/eui@31.0.0":
version "31.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-31.0.0.tgz#7d17386c04a0ad343d70c3652902fcd3f46ed337"
integrity sha512-oj63HpQQKg/Cgwz5B0ZBQCkcgZiEdQzBT9PbmEiR/VRz5P0WqJpgZPyIF7jiFaFlGP1a9hPjkUTo+ramWNCpiw==
dependencies:
"@types/chroma-js" "^2.0.0"
"@types/lodash" "^4.14.160"