[6.x] Backport EUI@4.0.1 #23009 (#23203)

This commit is contained in:
dave.snider@gmail.com 2018-09-14 14:10:43 -07:00 committed by GitHub
parent bd9e2148a5
commit 9846e026b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 145 additions and 35 deletions

View file

@ -75,7 +75,7 @@
"url": "https://github.com/elastic/kibana.git"
},
"dependencies": {
"@elastic/eui": "3.7.0",
"@elastic/eui": "4.0.1",
"@elastic/filesaver": "1.1.2",
"@elastic/numeral": "2.3.2",
"@elastic/ui-ace": "0.2.3",
@ -255,6 +255,7 @@
"@types/react": "^16.3.14",
"@types/react-dom": "^16.0.5",
"@types/react-redux": "^6.0.6",
"@types/react-virtualized": "^9.18.7",
"@types/redux-actions": "^2.2.1",
"@types/sinon": "^5.0.0",
"@types/strip-ansi": "^3.0.0",

View file

@ -11,6 +11,7 @@ exports[`renders disabled control with tooltip 1`] = `
>
<EuiToolTip
content="I am disabled for testing purposes"
delay="regular"
placement="top"
position="top"
>

View file

@ -5,6 +5,7 @@ exports[`renders DashboardCloneModal 1`] = `
<EuiModal
className="dshCloneModal"
data-test-subj="dashboardCloneModal"
maxWidth={true}
onClose={[Function]}
>
<EuiModalHeader>

View file

@ -5,6 +5,7 @@ exports[`renders DashboardSaveModal 1`] = `
<EuiModal
className="dshSaveModal"
data-test-subj="dashboardSaveModal"
maxWidth={true}
onClose={[Function]}
>
<EuiModalHeader>

View file

@ -64,6 +64,7 @@ exports[`render 1`] = `
<EuiToolTip
anchorClassName="homRecentlyAccessed__anchor"
content="label0"
delay="regular"
position="bottom"
>
<EuiLink
@ -108,6 +109,7 @@ exports[`render 1`] = `
<EuiToolTip
anchorClassName="homRecentlyAccessed__anchor"
content="label1"
delay="regular"
position="bottom"
>
<EuiLink

View file

@ -6,6 +6,7 @@ exports[`Table editing should show a save button 1`] = `
<EuiButtonIcon
aria-label="Save"
color="primary"
iconSize="m"
iconType="checkInCircleFilled"
onClick={[Function]}
size="s"
@ -14,6 +15,7 @@ exports[`Table editing should show a save button 1`] = `
<EuiButtonIcon
aria-label="Cancel"
color="primary"
iconSize="m"
iconType="cross"
onClick={[Function]}
size="s"

View file

@ -18,6 +18,7 @@ exports[`Relationships should render dashboards normally 1`] = `
<h2>
<EuiToolTip
content="dashboard"
delay="regular"
position="top"
>
<EuiIcon
@ -123,6 +124,7 @@ exports[`Relationships should render errors 1`] = `
<h2>
<EuiToolTip
content="dashboard"
delay="regular"
position="top"
>
<EuiIcon
@ -166,6 +168,7 @@ exports[`Relationships should render index patterns normally 1`] = `
<h2>
<EuiToolTip
content="index patterns"
delay="regular"
position="top"
>
<EuiIcon
@ -327,6 +330,7 @@ exports[`Relationships should render searches normally 1`] = `
<h2>
<EuiToolTip
content="search"
delay="regular"
position="top"
>
<EuiIcon
@ -486,6 +490,7 @@ exports[`Relationships should render visualizations normally 1`] = `
<h2>
<EuiToolTip
content="visualization"
delay="regular"
position="top"
>
<EuiIcon

View file

@ -79,12 +79,14 @@ exports[`Table should render normally 1`] = `
"icon": "eye",
"name": "In app",
"onClick": [Function],
"type": "icon",
},
Object {
"description": "View the relationships this saved object has to other saved objects",
"icon": "kqlSelector",
"name": "Relationships",
"onClick": [Function],
"type": "icon",
},
],
"name": "Actions",

View file

@ -145,6 +145,7 @@ export class Table extends PureComponent {
name: 'In app',
description:
'View this saved object within Kibana',
type: 'icon',
icon: 'eye',
onClick: object => goInApp(object.id, object.type),
},
@ -152,6 +153,7 @@ export class Table extends PureComponent {
name: 'Relationships',
description:
'View the relationships this saved object has to other saved objects',
type: 'icon',
icon: 'kqlSelector',
onClick: object =>
onShowRelationships(object.id, object.type, object.title),

View file

@ -210,7 +210,9 @@ exports[`InspectorPanel should render as expected 1`] = `
</svg>
</arrowDown>
</EuiIcon>
<span>
<span
className="euiButtonEmpty__text"
>
View:
View 1
</span>

View file

@ -80,7 +80,7 @@
"yargs": "4.7.1"
},
"dependencies": {
"@elastic/eui": "3.7.0",
"@elastic/eui": "4.0.1",
"@elastic/node-crypto": "0.1.2",
"@elastic/node-phantom-simple": "2.2.4",
"@elastic/numeral": "2.3.2",
@ -172,4 +172,4 @@
"engines": {
"yarn": "^1.6.0"
}
}
}

View file

@ -54,7 +54,9 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Sorting
</span>
</span>
@ -66,6 +68,16 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
<table
className="euiTable euiTable--responsive"
>
<caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly"
role="status"
>
Below is a table of
0
items.
</caption>
<thead>
<tr>
<th
@ -262,7 +274,9 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Rows per page: 25
</span>
</span>
@ -358,7 +372,9 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Sorting
</span>
</span>
@ -370,6 +386,16 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
<table
className="euiTable euiTable--responsive"
>
<caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly"
role="status"
>
Below is a table of
4
items.
</caption>
<thead>
<tr>
<th
@ -872,7 +898,9 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Rows per page: 25
</span>
</span>

View file

@ -54,7 +54,9 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Sorting
</span>
</span>
@ -66,6 +68,16 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
<table
className="euiTable euiTable--responsive"
>
<caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly"
role="status"
>
Below is a table of
0
items.
</caption>
<thead>
<tr>
<th
@ -286,7 +298,9 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Rows per page: 10
</span>
</span>
@ -366,7 +380,9 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Sorting
</span>
</span>
@ -378,6 +394,16 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
<table
className="euiTable euiTable--responsive"
>
<caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly"
role="status"
>
Below is a table of
2
items.
</caption>
<thead>
<tr>
<th
@ -708,7 +734,9 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
xlinkHref="#arrow_down-a"
/>
</svg>
<span>
<span
className="euiButtonEmpty__text"
>
Rows per page: 10
</span>
</span>

View file

@ -540,6 +540,8 @@ exports[`Timeline should render with data 1`] = `
>
<span
className="euiToolTipAnchor"
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<div
aria-describedby="timeToFirstByte"
@ -548,8 +550,6 @@ exports[`Timeline should render with data 1`] = `
fontSize="12px"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<span
className="c1"
@ -569,6 +569,8 @@ exports[`Timeline should render with data 1`] = `
>
<span
className="euiToolTipAnchor"
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<div
aria-describedby="domInteractive"
@ -577,8 +579,6 @@ exports[`Timeline should render with data 1`] = `
fontSize="12px"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<span
className="c1"
@ -598,6 +598,8 @@ exports[`Timeline should render with data 1`] = `
>
<span
className="euiToolTipAnchor"
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<div
aria-describedby="domComplete"
@ -606,8 +608,6 @@ exports[`Timeline should render with data 1`] = `
fontSize="12px"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<span
className="c1"

View file

@ -94,6 +94,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
>
<EuiModal
className="euiModal--confirmation"
maxWidth={true}
onClose={[Function]}
>
<Component
@ -105,7 +106,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
>
<div>
<div
className="euiModal euiModal--confirmation"
className="euiModal euiModal--maxWidth-default euiModal--confirmation"
onKeyDown={[Function]}
tabIndex={0}
>
@ -113,6 +114,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
aria-label="Closes this modal window"
className="euiModal__closeIcon"
color="text"
iconSize="m"
iconType="cross"
onClick={[Function]}
type="button"
@ -258,7 +260,9 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>
@ -454,7 +458,9 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>
@ -778,7 +784,9 @@ exports[`UploadLicense should display an error when ES says license is expired 1
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>
@ -1102,7 +1110,9 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>
@ -1426,7 +1436,9 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>
@ -1750,7 +1762,9 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
<span
className="euiButtonEmpty__content"
>
<span>
<span
className="euiButtonEmpty__text"
>
Cancel
</span>
</span>

View file

@ -191,6 +191,7 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied
<EuiButtonIcon
aria-label="Next"
color="danger"
iconSize="m"
iconType="trash"
onClick={[Function]}
size="s"
@ -389,6 +390,7 @@ exports[`ConditionExpression renders with only value supplied 1`] = `
<EuiButtonIcon
aria-label="Next"
color="danger"
iconSize="m"
iconType="trash"
onClick={[Function]}
size="s"

View file

@ -6,6 +6,7 @@ exports[`BucketSpanEstimator renders the button 1`] = `
>
<EuiToolTip
content="Experimental feature for estimating bucket span."
delay="regular"
position="bottom"
>
<EuiButton
@ -30,6 +31,7 @@ exports[`BucketSpanEstimator renders the loading button 1`] = `
>
<EuiToolTip
content="Experimental feature for estimating bucket span."
delay="regular"
position="bottom"
>
<EuiButton

View file

@ -8,6 +8,7 @@ exports[`FilterListUsagePopover opens the popover onButtonClick 1`] = `
<EuiButtonIcon
aria-label="Edit description"
color="primary"
iconSize="m"
iconType="pencil"
onClick={[Function]}
size="s"
@ -58,6 +59,7 @@ exports[`FilterListUsagePopover renders the popover with a description 1`] = `
<EuiButtonIcon
aria-label="Edit description"
color="primary"
iconSize="m"
iconType="pencil"
onClick={[Function]}
size="s"
@ -108,6 +110,7 @@ exports[`FilterListUsagePopover renders the popover with no description 1`] = `
<EuiButtonIcon
aria-label="Edit description"
color="primary"
iconSize="m"
iconType="pencil"
onClick={[Function]}
size="s"

View file

@ -19,6 +19,7 @@ exports[`CollapsibleStatement component renders child components 1`] = `
<EuiButtonIcon
aria-label={true}
color="text"
iconSize="m"
iconType="arrowDown"
onClick={[Function]}
size="s"

View file

@ -10,9 +10,9 @@
esutils "^2.0.2"
js-tokens "^3.0.0"
"@elastic/eui@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-3.7.0.tgz#276d2a8e724778d15192b3847247d3731c7ff738"
"@elastic/eui@4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.0.1.tgz#6543d397fb31836508fa4323564b02da11c642db"
dependencies:
classnames "^2.2.5"
core-js "^2.5.1"

View file

@ -81,9 +81,9 @@
version "0.0.0"
uid ""
"@elastic/eui@3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-3.7.0.tgz#276d2a8e724778d15192b3847247d3731c7ff738"
"@elastic/eui@4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.0.1.tgz#6543d397fb31836508fa4323564b02da11c642db"
dependencies:
classnames "^2.2.5"
core-js "^2.5.1"
@ -490,6 +490,12 @@
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/podium/-/podium-1.0.0.tgz#bfaa2151be2b1d6109cc69f7faa9dac2cba3bb20"
"@types/prop-types@*":
version "15.5.5"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.5.tgz#17038dd322c2325f5da650a94d5f9974943625e3"
dependencies:
"@types/react" "*"
"@types/prop-types@^15.5.3":
version "15.5.3"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.3.tgz#bef071852dca2a2dbb65fecdb7bfb30cedae2de2"
@ -515,6 +521,13 @@
"@types/react" "*"
redux "^4.0.0"
"@types/react-virtualized@^9.18.7":
version "9.18.7"
resolved "https://registry.yarnpkg.com/@types/react-virtualized/-/react-virtualized-9.18.7.tgz#8703d8904236819facff90b8b320f29233160c90"
dependencies:
"@types/prop-types" "*"
"@types/react" "*"
"@types/react@*", "@types/react@^16.3.14":
version "16.3.14"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.3.14.tgz#f90ac6834de172e13ecca430dcb6814744225d36"
@ -10907,10 +10920,6 @@ react-input-range@^1.3.0:
autobind-decorator "^1.3.4"
prop-types "^15.5.8"
react-is@^16.3.1:
version "16.4.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.4.1.tgz#d624c4650d2c65dbd52c72622bbf389435d9776e"
react-intl@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-2.4.0.tgz#66c14dc9df9a73b2fbbfbd6021726e80a613eb15"
@ -10920,6 +10929,10 @@ react-intl@^2.4.0:
intl-relativeformat "^2.0.0"
invariant "^2.1.1"
react-is@^16.3.1:
version "16.4.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.4.1.tgz#d624c4650d2c65dbd52c72622bbf389435d9776e"
react-is@^16.4.0:
version "16.4.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.4.0.tgz#cc9fdc855ac34d2e7d9d2eb7059bbc240d35ffcf"