Skip to content

Commit

Permalink
Upgrades EUI to 9.x (#32009)
Browse files Browse the repository at this point in the history
* Fixed a simple argument bug and removed infra date picker EUI types

* Fixes for EUI date picker types

* eui_8.0.0

* fix type errors in query_bar

* Small changes for EUI types

* Updates EUI to 9.0.0 and removes @types/react-datepicker as it now ships with EUI

* Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts

* ts-ignore applied to ongoing type error with styled components and EUI

* Changes EuiProgress props to avoid TS errors

* Updates EUI 9.0 snapshots

* Updates kibana root snapshots for EUI 9.0 upgrade

* Update detail_panel.test.js for EUI changes

* Updated functioanl and unit tests to properly inspect EuiTableRowCell rendered values

* Fix docs_level_security_roles.js func tests

* Update EUI to 9.0.2

* Fixed failing snapshot for EUI icon default prop
  • Loading branch information
jasonrhodes authored Mar 7, 2019
1 parent 7c2df0a commit ae754ac
Show file tree
Hide file tree
Showing 106 changed files with 4,628 additions and 2,601 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
},
"dependencies": {
"@elastic/datemath": "5.0.2",
"@elastic/eui": "7.1.0",
"@elastic/eui": "9.0.2",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ exports[`renders ControlsTab 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
id="selectControlType"
labelType="label"
>
<EuiSelect
aria-label="Select control type"
Expand Down Expand Up @@ -127,6 +128,7 @@ exports[`renders ControlsTab 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
id="addControl"
labelType="label"
>
<EuiButton
aria-label="Add control"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`renders dynamic options should display disabled dynamic options with to
}
id="multiselect-0"
key="multiselect"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -55,6 +56,7 @@ exports[`renders dynamic options should display disabled dynamic options with to
}
id="dynamicOptions-0"
key="dynamicOptions"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -90,6 +92,7 @@ exports[`renders dynamic options should display disabled dynamic options with to
values={Object {}}
/>
}
labelType="label"
>
<EuiFieldNumber
compressed={false}
Expand Down Expand Up @@ -132,6 +135,7 @@ exports[`renders dynamic options should display dynamic options for string field
}
id="multiselect-0"
key="multiselect"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -159,6 +163,7 @@ exports[`renders dynamic options should display dynamic options for string field
}
id="dynamicOptions-0"
key="dynamicOptions"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -205,6 +210,7 @@ exports[`renders dynamic options should display size field when dynamic options
}
id="multiselect-0"
key="multiselect"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -232,6 +238,7 @@ exports[`renders dynamic options should display size field when dynamic options
}
id="dynamicOptions-0"
key="dynamicOptions"
labelType="label"
>
<EuiSwitch
checked={false}
Expand Down Expand Up @@ -267,6 +274,7 @@ exports[`renders dynamic options should display size field when dynamic options
values={Object {}}
/>
}
labelType="label"
>
<EuiFieldNumber
compressed={false}
Expand Down Expand Up @@ -316,6 +324,7 @@ exports[`renders should display chaining input when parents are provided 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiSelect
compressed={false}
Expand Down Expand Up @@ -354,6 +363,7 @@ exports[`renders should display chaining input when parents are provided 1`] = `
}
id="multiselect-0"
key="multiselect"
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down Expand Up @@ -381,6 +391,7 @@ exports[`renders should display chaining input when parents are provided 1`] = `
}
id="dynamicOptions-0"
key="dynamicOptions"
labelType="label"
>
<EuiSwitch
checked={false}
Expand Down Expand Up @@ -416,6 +427,7 @@ exports[`renders should display chaining input when parents are provided 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiFieldNumber
compressed={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`renders OptionsTab 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
id="updateFiltersOnChange"
labelType="label"
>
<EuiSwitch
checked={false}
Expand All @@ -26,6 +27,7 @@ exports[`renders OptionsTab 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
id="useTimeFilter"
labelType="label"
>
<EuiSwitch
checked={false}
Expand All @@ -45,6 +47,7 @@ exports[`renders OptionsTab 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
id="pinFilters"
labelType="label"
>
<EuiSwitch
data-test-subj="inputControlEditorPinFiltersCheckbox"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`renders RangeControlEditor 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiFieldNumber
compressed={false}
Expand All @@ -49,6 +50,7 @@ exports[`renders RangeControlEditor 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiFieldNumber
compressed={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`renders disabled control with tooltip 1`] = `
hasEmptyLabelSpace={false}
id="controlId"
label="test control"
labelType="label"
>
<EuiToolTip
content="I am disabled for testing purposes"
Expand All @@ -30,6 +31,7 @@ exports[`renders enabled control 1`] = `
hasEmptyLabelSpace={false}
id="controlId"
label="test control"
labelType="label"
>
<div>
My Control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ exports[`disabled 1`] = `
fullWidth={false}
levels={Array []}
max={100}
min={1}
min={0}
showInput={false}
showLabels={false}
showRange={false}
showTicks={false}
showValue={false}
step={1}
/>
</FormRow>
`;
Expand All @@ -37,6 +38,7 @@ exports[`renders RangeControl 1`] = `
fullWidth={false}
hasEmptyLabelSpace={false}
isInvalid={false}
labelType="label"
>
<EuiFlexGroup
alignItems="center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ exports[`renders DashboardCloneModal 1`] = `
/>
</p>
</EuiText>
<EuiSpacer
size="l"
/>
<EuiSpacer />
<EuiFieldText
autoFocus={true}
compressed={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports[`renders DashboardSaveModal 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiTextArea
compressed={true}
Expand Down Expand Up @@ -46,6 +47,7 @@ exports[`renders DashboardSaveModal 1`] = `
values={Object {}}
/>
}
labelType="label"
>
<EuiSwitch
checked={true}
Expand Down
Loading

0 comments on commit ae754ac

Please sign in to comment.