Skip to content

Commit

Permalink
Upgrade to EUI 3.4.0 (elastic#21870)
Browse files Browse the repository at this point in the history
* Upgrade to EUI 3.4.0
* Update snapshots
  • Loading branch information
jen-huang authored and cjcenizal committed Aug 21, 2018
1 parent 4975fc0 commit d90ac3f
Show file tree
Hide file tree
Showing 22 changed files with 152 additions and 90 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"url": "https://github.com/elastic/kibana.git"
},
"dependencies": {
"@elastic/eui": "3.2.1",
"@elastic/eui": "3.4.0",
"@elastic/filesaver": "1.1.2",
"@elastic/numeral": "2.3.2",
"@elastic/ui-ace": "0.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`renders ListControl 1`] = `
>
<EuiComboBox
data-test-subj="listControlSelect0"
fullWidth={false}
isClearable={true}
isLoading={false}
onChange={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`render 1`] = `
closeButtonAriaLabel="Closes this dialog"
data-test-subj="dashboardAddPanel"
hideCloseButton={false}
maxWidth={false}
onClose={[Function]}
ownFocus={true}
size="s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,20 @@ exports[`bulkCreate should display error message when bulkCreate request fails 1
<span
className="euiScreenReaderOnly"
>
Step
Incomplete
Step
</span>
</EuiScreenReaderOnly>
<div
className="euiStep__circle euiStep__circle--incomplete"
/>
<EuiStepNumber
className="euiStep__circle"
isHollow={true}
number={1}
status="incomplete"
>
<div
className="euiStepNumber euiStepNumber--incomplete euiStepNumber-isHollow euiStep__circle"
/>
</EuiStepNumber>
<EuiTitle
className="euiStep__title"
size="s"
Expand Down Expand Up @@ -308,51 +316,60 @@ exports[`bulkCreate should display success message when bulkCreate is successful
<span
className="euiScreenReaderOnly"
>
Step
Step
</span>
</EuiScreenReaderOnly>
<div
className="euiStep__circle euiStep__circle--complete"
<EuiStepNumber
className="euiStep__circle"
isHollow={false}
number={1}
status="complete"
>
<EuiIcon
className="euiStep__circleIcon"
color="ghost"
size="m"
type="check"
<div
className="euiStepNumber euiStepNumber--complete euiStep__circle"
>
<check
className="euiIcon euiIcon--medium euiIcon--ghost euiStep__circleIcon"
focusable="false"
height="16"
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
<EuiIcon
className="euiStepNumber__icon"
size="m"
title="complete"
type="check"
>
<svg
className="euiIcon euiIcon--medium euiIcon--ghost euiStep__circleIcon"
<check
className="euiIcon euiIcon--medium euiStepNumber__icon"
focusable="false"
height="16"
style={null}
style={
Object {
"fill": undefined,
}
}
title="complete"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
>
<defs>
<svg
className="euiIcon euiIcon--medium euiStepNumber__icon"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
title="complete"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6.5 12a.502.502 0 0 1-.354-.146l-4-4a.502.502 0 0 1 .708-.708L6.5 10.793l6.646-6.647a.502.502 0 0 1 .708.708l-7 7A.502.502 0 0 1 6.5 12"
id="check-a"
/>
</defs>
<use
xlinkHref="#check-a"
/>
</svg>
</check>
</EuiIcon>
</div>
</svg>
</check>
</EuiIcon>
</div>
</EuiStepNumber>
<EuiTitle
className="euiStep__title"
size="s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ exports[`Header should render normally 1`] = `
>
<h1>
<FormattedMessage
defaultMessage="Create index pattern"
defaultMessage="Create {indexPatternName}"
id="kbn.management.createIndexPatternHeader"
values={Object {}}
values={
Object {
"indexPatternName": undefined,
}
}
/>
</h1>
</EuiTitle>
Expand Down Expand Up @@ -46,23 +50,6 @@ exports[`Header should render normally 1`] = `
</p>
</EuiText>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiSwitch
checked={true}
id="checkboxShowSystemIndices"
label={
<FormattedMessage
defaultMessage="Include system indices"
id="kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer
size="m"
Expand All @@ -80,9 +67,13 @@ exports[`Header should render without including system indices 1`] = `
>
<h1>
<FormattedMessage
defaultMessage="Create index pattern"
defaultMessage="Create {indexPatternName}"
id="kbn.management.createIndexPatternHeader"
values={Object {}}
values={
Object {
"indexPatternName": undefined,
}
}
/>
</h1>
</EuiTitle>
Expand Down Expand Up @@ -116,23 +107,6 @@ exports[`Header should render without including system indices 1`] = `
</p>
</EuiText>
</EuiFlexItem>
<EuiFlexItem
component="div"
grow={false}
>
<EuiSwitch
checked={false}
id="checkboxShowSystemIndices"
label={
<FormattedMessage
defaultMessage="Include system indices"
id="kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ exports[`StatusMessage should show that system indices exist 1`] = `
>
<span>
<FormattedMessage
defaultMessage="No Elasticsearch indices match your pattern. To view the matching system indices, toggle the switch in the upper right."
id="kbn.management.createIndexPattern.step.status.noSystemIndicesWithPromptLabel"
defaultMessage="No Elasticsearch indices match your pattern."
id="kbn.management.createIndexPattern.step.status.noSystemIndicesLabel"
values={Object {}}
/>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ exports[`Header should render normally 1`] = `
grow={true}
>
<FormattedMessage
defaultMessage="You've defined {indexPattern} as your index pattern. Now you can specify some settings before we create it."
defaultMessage="You've defined {indexPattern} as your {indexPatternName}. Now you can specify some settings before we create it."
id="kbn.management.createIndexPattern.stepTimeLabel"
values={
Object {
"indexPattern": <strong>
ki*
</strong>,
"indexPatternName": undefined,
}
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`IndexedFieldsTable should filter based on the query bar 1`] = `
"excluded": false,
"format": undefined,
"indexPattern": undefined,
"info": undefined,
"name": "Elastic",
"routes": undefined,
"searchable": true,
Expand Down Expand Up @@ -45,6 +46,7 @@ exports[`IndexedFieldsTable should filter based on the type filter 1`] = `
"excluded": false,
"format": undefined,
"indexPattern": undefined,
"info": undefined,
"name": "timestamp",
"routes": undefined,
"type": "date",
Expand Down Expand Up @@ -73,6 +75,7 @@ exports[`IndexedFieldsTable should render normally 1`] = `
"excluded": false,
"format": undefined,
"indexPattern": undefined,
"info": undefined,
"name": "Elastic",
"routes": undefined,
"searchable": true,
Expand All @@ -82,6 +85,7 @@ exports[`IndexedFieldsTable should render normally 1`] = `
"excluded": false,
"format": undefined,
"indexPattern": undefined,
"info": undefined,
"name": "timestamp",
"routes": undefined,
"type": "date",
Expand All @@ -91,6 +95,7 @@ exports[`IndexedFieldsTable should render normally 1`] = `
"excluded": false,
"format": undefined,
"indexPattern": undefined,
"info": undefined,
"name": "conflictingField",
"routes": undefined,
"type": "conflict",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down Expand Up @@ -164,6 +165,7 @@ exports[`Flyout should render import step 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`Relationships should render dashboards normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down Expand Up @@ -108,6 +109,7 @@ exports[`Relationships should render errors 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down Expand Up @@ -150,6 +152,7 @@ exports[`Relationships should render index patterns normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down Expand Up @@ -310,6 +313,7 @@ exports[`Relationships should render searches normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down Expand Up @@ -468,6 +472,7 @@ exports[`Relationships should render visualizations normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[MockFunction]}
ownFocus={false}
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`LabelTemplateFlyout should render normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[Function]}
ownFocus={false}
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`UrlTemplateFlyout should render normally 1`] = `
<EuiFlyout
closeButtonAriaLabel="Closes this dialog"
hideCloseButton={false}
maxWidth={false}
onClose={[Function]}
ownFocus={false}
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`ScriptingHelpFlyout should render normally 1`] = `
closeButtonAriaLabel="Closes this dialog"
data-test-subj="scriptedFieldsHelpFlyout"
hideCloseButton={false}
maxWidth={false}
onClose={[Function]}
ownFocus={false}
size="m"
Expand Down
2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"yargs": "4.7.1"
},
"dependencies": {
"@elastic/eui": "3.2.1",
"@elastic/eui": "3.4.0",
"@elastic/node-crypto": "0.1.2",
"@elastic/node-phantom-simple": "2.2.4",
"@elastic/numeral": "2.3.2",
Expand Down
Loading

0 comments on commit d90ac3f

Please sign in to comment.