From 2a008bbea1fae5598ffffe01ca9f5a4208c503ee Mon Sep 17 00:00:00 2001 From: "dave.snider@gmail.com" Date: Mon, 15 Jul 2019 11:11:37 -0700 Subject: [PATCH] EUI 12.3.1 (#41061) * eui 12.3.1 * add data logos * Fix TS uses, one SCSS use of euiOverflowShadow * fix overflow shadow mixin in sass * homepage logos * refix typo on homepage * hp snaps --- package.json | 2 +- .../language_switcher.test.tsx.snap | 2 ++ .../query_bar_input.test.tsx.snap | 6 ++++ .../__snapshots__/add_data.test.js.snap | 28 +++++++++---------- .../sample_data_view_data_button.test.js.snap | 1 + .../kibana/public/home/components/add_data.js | 8 +++--- .../__snapshots__/indices_list.test.js.snap | 5 ++++ .../__jest__/__snapshots__/table.test.js.snap | 2 ++ .../inspector_panel.test.js.snap | 1 + .../plugins/kbn_tp_run_pipeline/package.json | 2 +- .../kbn_tp_custom_visualizations/package.json | 2 +- .../kbn_tp_embeddable_explorer/package.json | 2 +- .../kbn_tp_sample_panel_action/package.json | 2 +- .../kbn_tp_visualize_embedding/package.json | 2 +- .../font_picker.examples.storyshot | 8 +++--- .../__snapshots__/query_bar.test.tsx.snap | 12 ++++---- .../extend_index_management.test.js.snap | 1 + x-pack/legacy/plugins/infra/types/eui.d.ts | 11 -------- .../telemetry_opt_in.test.js.snap | 3 ++ .../layer_panel/_layer_panel.scss | 2 +- .../metrics_expression.test.js.snap | 2 ++ .../layer_toc/toc_entry/_toc_entry.scss | 10 +++++-- .../layer_toc_actions.test.js.snap | 3 ++ .../condition_expression.test.js.snap | 4 +++ .../scope_expression.test.js.snap | 3 ++ .../agg_label_form.test.tsx.snap | 1 + .../group_by_label_form.test.tsx.snap | 3 ++ .../add_item_popover.test.js.snap | 3 ++ .../edit_description_popover.test.js.snap | 3 ++ .../filter_list_usage_popover.test.js.snap | 3 ++ .../roles_grid_page.test.tsx.snap | 4 +-- .../components/edit_data_provider/index.tsx | 14 +++------- .../__snapshots__/anomaly_score.test.tsx.snap | 1 + .../nav_control_popover.test.tsx.snap | 1 + .../functional/__tests__/ping_list.test.tsx | 4 +-- x-pack/package.json | 2 +- yarn.lock | 8 +++--- 37 files changed, 103 insertions(+), 68 deletions(-) diff --git a/package.json b/package.json index ad5d39913ccb3..f71e61ea548a8 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "@babel/register": "7.4.4", "@elastic/charts": "^7.0.1", "@elastic/datemath": "5.0.2", - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "@elastic/filesaver": "1.1.2", "@elastic/good": "8.1.1-kibana2", "@elastic/numeral": "2.3.3", diff --git a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap index 74ae8842c2528..c3624e3ba6714 100644 --- a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap +++ b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/language_switcher.test.tsx.snap @@ -20,6 +20,7 @@ exports[`LanguageSwitcher should toggle off if language is lucene 1`] = ` } className="eui-displayBlock" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="popover" isOpen={false} @@ -122,6 +123,7 @@ exports[`LanguageSwitcher should toggle on if language is kuery 1`] = ` } className="eui-displayBlock" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="popover" isOpen={false} diff --git a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/query_bar_input.test.tsx.snap b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/query_bar_input.test.tsx.snap index 130e303fda58a..00576d05bdcac 100644 --- a/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/query_bar_input.test.tsx.snap +++ b/src/legacy/core_plugins/data/public/query/query_bar/components/__snapshots__/query_bar_input.test.tsx.snap @@ -250,6 +250,7 @@ exports[`QueryBarInput Should disable autoFocus on EuiFieldText when disableAuto @@ -272,6 +273,7 @@ exports[`QueryBarInput Should disable autoFocus on EuiFieldText when disableAuto } className="eui-displayBlock" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="popover" isOpen={false} @@ -596,6 +598,7 @@ exports[`QueryBarInput Should pass the query language to the language switcher 1 @@ -618,6 +621,7 @@ exports[`QueryBarInput Should pass the query language to the language switcher 1 } className="eui-displayBlock" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="popover" isOpen={false} @@ -942,6 +946,7 @@ exports[`QueryBarInput Should render the given query 1`] = ` @@ -964,6 +969,7 @@ exports[`QueryBarInput Should render the given query 1`] = ` } className="eui-displayBlock" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="popover" isOpen={false} diff --git a/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap b/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap index e6c2fc2124457..2ef87889cb6c8 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/add_data.test.js.snap @@ -71,7 +71,7 @@ exports[`apmUiEnabled 1`] = ` icon={ } layout="vertical" @@ -113,7 +113,7 @@ exports[`apmUiEnabled 1`] = ` icon={ } layout="vertical" @@ -155,7 +155,7 @@ exports[`apmUiEnabled 1`] = ` icon={ } layout="vertical" @@ -197,7 +197,7 @@ exports[`apmUiEnabled 1`] = ` icon={ } layout="vertical" @@ -362,7 +362,7 @@ exports[`isNewKibanaInstance 1`] = ` icon={ } layout="vertical" @@ -404,7 +404,7 @@ exports[`isNewKibanaInstance 1`] = ` icon={ } layout="vertical" @@ -446,7 +446,7 @@ exports[`isNewKibanaInstance 1`] = ` icon={ } layout="vertical" @@ -611,7 +611,7 @@ exports[`mlEnabled 1`] = ` icon={ } layout="vertical" @@ -653,7 +653,7 @@ exports[`mlEnabled 1`] = ` icon={ } layout="vertical" @@ -695,7 +695,7 @@ exports[`mlEnabled 1`] = ` icon={ } layout="vertical" @@ -737,7 +737,7 @@ exports[`mlEnabled 1`] = ` icon={ } layout="vertical" @@ -940,7 +940,7 @@ exports[`render 1`] = ` icon={ } layout="vertical" @@ -982,7 +982,7 @@ exports[`render 1`] = ` icon={ } layout="vertical" @@ -1024,7 +1024,7 @@ exports[`render 1`] = ` icon={ } layout="vertical" diff --git a/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/sample_data_view_data_button.test.js.snap b/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/sample_data_view_data_button.test.js.snap index cde987e821c87..ddc87874ec787 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/sample_data_view_data_button.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/home/components/__snapshots__/sample_data_view_data_button.test.js.snap @@ -18,6 +18,7 @@ exports[`should render popover when appLinks is not empty 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="sampleDataLinksecommerce" isOpen={false} diff --git a/src/legacy/core_plugins/kibana/public/home/components/add_data.js b/src/legacy/core_plugins/kibana/public/home/components/add_data.js index 1c0ee947e5c80..cef2cd8d23ee7 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/add_data.js +++ b/src/legacy/core_plugins/kibana/public/home/components/add_data.js @@ -96,7 +96,7 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl, mlEnabled }) => { } + icon={} title={apmData.title} description={{apmData.description}} footer={ @@ -128,7 +128,7 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl, mlEnabled }) => { } + icon={} title={loggingData.title} description={{loggingData.description}} footer={ @@ -149,7 +149,7 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl, mlEnabled }) => { } + icon={} title={metricsData.title} description={{metricsData.description}} footer={ @@ -170,7 +170,7 @@ const AddDataUi = ({ apmUiEnabled, isNewKibanaInstance, intl, mlEnabled }) => { } + icon={} title={siemData.title} description={{siemData.description}} footer={ diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/__snapshots__/indices_list.test.js.snap b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/__snapshots__/indices_list.test.js.snap index 68ee0517ef465..6a26681e2f5e4 100644 --- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/__snapshots__/indices_list.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/indices_list/__jest__/__snapshots__/indices_list.test.js.snap @@ -89,6 +89,7 @@ exports[`IndicesList should change pages 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="customizablePagination" isOpen={false} @@ -206,6 +207,7 @@ exports[`IndicesList should change per page 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="customizablePagination" isOpen={false} @@ -361,6 +363,7 @@ exports[`IndicesList should highlight the query in the matches 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="customizablePagination" isOpen={false} @@ -502,6 +505,7 @@ exports[`IndicesList should render normally 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="customizablePagination" isOpen={false} @@ -835,6 +839,7 @@ exports[`IndicesList updating props should render all new indices 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="customizablePagination" isOpen={false} diff --git a/src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap b/src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap index 7ec3b7c55afae..5f889cac4e94a 100644 --- a/src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/__jest__/__snapshots__/table.test.js.snap @@ -65,6 +65,7 @@ exports[`Table prevents saved objects from being deleted 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} isOpen={false} ownFocus={false} @@ -279,6 +280,7 @@ exports[`Table should render normally 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} isOpen={false} ownFocus={false} diff --git a/src/legacy/ui/public/inspector/ui/__snapshots__/inspector_panel.test.js.snap b/src/legacy/ui/public/inspector/ui/__snapshots__/inspector_panel.test.js.snap index 27911b2e86fd5..6506774cca887 100644 --- a/src/legacy/ui/public/inspector/ui/__snapshots__/inspector_panel.test.js.snap +++ b/src/legacy/ui/public/inspector/ui/__snapshots__/inspector_panel.test.js.snap @@ -227,6 +227,7 @@ exports[`InspectorPanel should render as expected 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="inspectorViewChooser" isOpen={false} diff --git a/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json b/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json index 96b39d5fb32cb..98ea93d5b984e 100644 --- a/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json +++ b/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "react": "^16.8.0", "react-dom": "^16.8.0" } diff --git a/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json b/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json index 52de10f986ed3..5f394962dc478 100644 --- a/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json +++ b/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "react": "^16.8.0" } } diff --git a/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json b/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json index cdb38e49cf9c2..093d9cd3df803 100644 --- a/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json +++ b/test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "react": "^16.8.0" }, "scripts": { diff --git a/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json b/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json index 5da4ed4b45048..a52d76a406932 100644 --- a/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json +++ b/test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "react": "^16.8.0" }, "scripts": { diff --git a/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json b/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json index 598d42db77194..2478bbb90609d 100644 --- a/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json +++ b/test/plugin_functional/plugins/kbn_tp_visualize_embedding/package.json @@ -7,7 +7,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "react": "^16.8.0", "react-dom": "^16.8.0" } diff --git a/x-pack/legacy/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot b/x-pack/legacy/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot index 4acb2644f607a..20996df68747c 100644 --- a/x-pack/legacy/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot @@ -2,7 +2,7 @@ exports[`Storyshots components/FontPicker default 1`] = `
} closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="phaseExecutionPopover" isOpen={false} diff --git a/x-pack/legacy/plugins/infra/types/eui.d.ts b/x-pack/legacy/plugins/infra/types/eui.d.ts index b4b415ab8a379..8cd569efa2958 100644 --- a/x-pack/legacy/plugins/infra/types/eui.d.ts +++ b/x-pack/legacy/plugins/infra/types/eui.d.ts @@ -62,17 +62,6 @@ declare module '@elastic/eui' { onClick?: React.MouseEventHandler; } - type EuiFormControlLayoutProps = CommonProps & { - icon?: string | EuiFormControlLayoutIconProps; - clear?: EuiFormControlLayoutClearIconProps; - fullWidth?: boolean; - isLoading?: boolean; - compressed?: boolean; - prepend?: React.ReactNode; - append?: React.ReactNode; - }; - export const EuiFormControlLayout: React.SFC; - type EuiSideNavProps = CommonProps & { style?: any; items: Array<{ diff --git a/x-pack/legacy/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap b/x-pack/legacy/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap index 0429b854ee1fb..e07d9144c01c5 100644 --- a/x-pack/legacy/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap +++ b/x-pack/legacy/plugins/license_management/__jest__/__snapshots__/telemetry_opt_in.test.js.snap @@ -164,6 +164,7 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` } className="eui-AlignBaseline" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="readMorePopover" isOpen={false} @@ -256,6 +257,7 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` } className="eui-AlignBaseline" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="readMorePopover" isOpen={false} @@ -321,6 +323,7 @@ exports[`TelemetryOptIn should display when telemetry not opted in 1`] = ` } className="eui-AlignBaseline" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="readMorePopover" isOpen={false} diff --git a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/_layer_panel.scss b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/_layer_panel.scss index b7c426bc90bc7..9c8af22319918 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/_layer_panel.scss +++ b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/_layer_panel.scss @@ -10,7 +10,7 @@ } .mapLayerPanel__body { - @include euiOverflowShadow($euiPageBackgroundColor); + @include euiOverflowShadow; padding-bottom: 0; /* 1 */ flex-grow: 1; flex-basis: 1px; /* Fixes scrolling for Firefox */ diff --git a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/join_editor/resources/__snapshots__/metrics_expression.test.js.snap b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/join_editor/resources/__snapshots__/metrics_expression.test.js.snap index 6a438fa8f38cc..326dac08fa1e0 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/join_editor/resources/__snapshots__/metrics_expression.test.js.snap +++ b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/join_editor/resources/__snapshots__/metrics_expression.test.js.snap @@ -12,6 +12,7 @@ exports[`Should render default props 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="metricsPopover" initialFocus="body" @@ -66,6 +67,7 @@ exports[`Should render metrics expression for metrics 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="metricsPopover" initialFocus="body" diff --git a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/layer_control/layer_toc/toc_entry/_toc_entry.scss b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/layer_control/layer_toc/toc_entry/_toc_entry.scss index 316ba65f2c2cf..7128b502942fe 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/layer_control/layer_toc/toc_entry/_toc_entry.scss +++ b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/layer_control/layer_toc/toc_entry/_toc_entry.scss @@ -109,13 +109,17 @@ } .mapTocEntry__layerDetails { - @include euiOverflowShadow(transparentize($euiShadowColor, .7)); + @include euiOverflowShadow; background-color: $euiPageBackgroundColor; padding: $euiSize $euiSizeS $euiSizeS; margin: $euiSizeS (-$euiSizeS) (-$euiSizeS); } @keyframes mapTocEntryBecomeVisible { - 0% { opacity: 0; } - 100% { opacity: 1; } + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } } diff --git a/x-pack/legacy/plugins/maps/public/shared/components/__snapshots__/layer_toc_actions.test.js.snap b/x-pack/legacy/plugins/maps/public/shared/components/__snapshots__/layer_toc_actions.test.js.snap index f14fef8c0db3a..6b9740f5939e8 100644 --- a/x-pack/legacy/plugins/maps/public/shared/components/__snapshots__/layer_toc_actions.test.js.snap +++ b/x-pack/legacy/plugins/maps/public/shared/components/__snapshots__/layer_toc_actions.test.js.snap @@ -34,6 +34,7 @@ exports[`LayerTocActions is rendered 1`] = ` } className="mapLayTocActions" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="contextMenu" isOpen={false} @@ -130,6 +131,7 @@ exports[`LayerTocActions should disable fit to data when supportsFitToBounds is } className="mapLayTocActions" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="contextMenu" isOpen={false} @@ -226,6 +228,7 @@ exports[`LayerTocActions should not show edit actions in read only mode 1`] = ` } className="mapLayTocActions" closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="contextMenu" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/condition_expression.test.js.snap b/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/condition_expression.test.js.snap index 578615837c4f3..359ac25c58374 100644 --- a/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/condition_expression.test.js.snap +++ b/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/condition_expression.test.js.snap @@ -24,6 +24,7 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="appliesToPopover" isOpen={false} @@ -105,6 +106,7 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="operatorValuePopover" isOpen={false} @@ -234,6 +236,7 @@ exports[`ConditionExpression renders with only value supplied 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="appliesToPopover" isOpen={false} @@ -314,6 +317,7 @@ exports[`ConditionExpression renders with only value supplied 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="operatorValuePopover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/scope_expression.test.js.snap b/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/scope_expression.test.js.snap index 806fe3a324856..e1991c4a4f98d 100644 --- a/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/scope_expression.test.js.snap +++ b/x-pack/legacy/plugins/ml/public/components/rule_editor/__snapshots__/scope_expression.test.js.snap @@ -95,6 +95,7 @@ exports[`ScopeExpression renders when enabled set to false 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="operatorValuePopover" isOpen={false} @@ -254,6 +255,7 @@ exports[`ScopeExpression renders when filter ID and type supplied 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="operatorValuePopover" isOpen={false} @@ -413,6 +415,7 @@ exports[`ScopeExpression renders when no filter ID or type supplied 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="operatorValuePopover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/data_frame/components/aggregation_list/__snapshots__/agg_label_form.test.tsx.snap b/x-pack/legacy/plugins/ml/public/data_frame/components/aggregation_list/__snapshots__/agg_label_form.test.tsx.snap index 699ea54a22534..386f6ea47c50b 100644 --- a/x-pack/legacy/plugins/ml/public/data_frame/components/aggregation_list/__snapshots__/agg_label_form.test.tsx.snap +++ b/x-pack/legacy/plugins/ml/public/data_frame/components/aggregation_list/__snapshots__/agg_label_form.test.tsx.snap @@ -33,6 +33,7 @@ exports[`Data Frame: Date histogram aggregation 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="mlFormPopover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/data_frame/components/group_by_list/__snapshots__/group_by_label_form.test.tsx.snap b/x-pack/legacy/plugins/ml/public/data_frame/components/group_by_list/__snapshots__/group_by_label_form.test.tsx.snap index 04a1cf96f8517..92e36de054e69 100644 --- a/x-pack/legacy/plugins/ml/public/data_frame/components/group_by_list/__snapshots__/group_by_label_form.test.tsx.snap +++ b/x-pack/legacy/plugins/ml/public/data_frame/components/group_by_list/__snapshots__/group_by_label_form.test.tsx.snap @@ -44,6 +44,7 @@ exports[`Data Frame: Date histogram aggregation 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="mlIntervalFormPopover" isOpen={false} @@ -127,6 +128,7 @@ exports[`Data Frame: Histogram aggregation 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="mlIntervalFormPopover" isOpen={false} @@ -199,6 +201,7 @@ exports[`Data Frame: Terms aggregation 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="mlIntervalFormPopover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/add_item_popover/__snapshots__/add_item_popover.test.js.snap b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/add_item_popover/__snapshots__/add_item_popover.test.js.snap index eaae7ccaaab92..2dcc56d747520 100644 --- a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/add_item_popover/__snapshots__/add_item_popover.test.js.snap +++ b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/add_item_popover/__snapshots__/add_item_popover.test.js.snap @@ -23,6 +23,7 @@ exports[`AddItemPopover calls addItems with multiple items on clicking Add butto } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="add_item_popover" isOpen={false} @@ -114,6 +115,7 @@ exports[`AddItemPopover opens the popover onButtonClick 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="add_item_popover" isOpen={true} @@ -205,6 +207,7 @@ exports[`AddItemPopover renders the popover 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="add_item_popover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/edit_description_popover/__snapshots__/edit_description_popover.test.js.snap b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/edit_description_popover/__snapshots__/edit_description_popover.test.js.snap index 3e1025530cc1a..4c5ea7d2d5000 100644 --- a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/edit_description_popover/__snapshots__/edit_description_popover.test.js.snap +++ b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/edit_description_popover/__snapshots__/edit_description_popover.test.js.snap @@ -17,6 +17,7 @@ exports[`FilterListUsagePopover opens the popover onButtonClick 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="filter_list_description_popover" isOpen={true} @@ -76,6 +77,7 @@ exports[`FilterListUsagePopover renders the popover with a description 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="filter_list_description_popover" isOpen={false} @@ -135,6 +137,7 @@ exports[`FilterListUsagePopover renders the popover with no description 1`] = ` /> } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="filter_list_description_popover" isOpen={false} diff --git a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/filter_list_usage_popover/__snapshots__/filter_list_usage_popover.test.js.snap b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/filter_list_usage_popover/__snapshots__/filter_list_usage_popover.test.js.snap index a954fc65a4039..79bcb74d37098 100644 --- a/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/filter_list_usage_popover/__snapshots__/filter_list_usage_popover.test.js.snap +++ b/x-pack/legacy/plugins/ml/public/settings/filter_lists/components/filter_list_usage_popover/__snapshots__/filter_list_usage_popover.test.js.snap @@ -16,6 +16,7 @@ exports[`FilterListUsagePopover opens the popover onButtonClick 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="detector_filter_list_usage" isOpen={true} @@ -60,6 +61,7 @@ exports[`FilterListUsagePopover renders the popover for 1 job 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="job_filter_list_usage" isOpen={false} @@ -94,6 +96,7 @@ exports[`FilterListUsagePopover renders the popover for 2 detectors 1`] = ` } closePopover={[Function]} + display="inlineBlock" hasArrow={true} id="detector_filter_list_usage" isOpen={false} diff --git a/x-pack/legacy/plugins/security/public/views/management/roles_grid/components/__snapshots__/roles_grid_page.test.tsx.snap b/x-pack/legacy/plugins/security/public/views/management/roles_grid/components/__snapshots__/roles_grid_page.test.tsx.snap index f200c406cbfa6..1c8eb5834e634 100644 --- a/x-pack/legacy/plugins/security/public/views/management/roles_grid/components/__snapshots__/roles_grid_page.test.tsx.snap +++ b/x-pack/legacy/plugins/security/public/views/management/roles_grid/components/__snapshots__/roles_grid_page.test.tsx.snap @@ -68,11 +68,11 @@ exports[` renders permission denied if required 1`] = ` xmlns="http://www.w3.org/2000/svg" > diff --git a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx b/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx index 34b03b25f60ee..a4e4ccb8edf61 100644 --- a/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx +++ b/x-pack/legacy/plugins/siem/public/components/edit_data_provider/index.tsx @@ -54,14 +54,6 @@ injectGlobal` } `; -export const FieldComboBox = styled(EuiComboBox)` - width: ${FIELD_COMBO_BOX_WIDTH}px; -`; - -export const OperatorComboBox = styled(EuiComboBox)` - width: ${OPERATOR_COMBO_BOX_WIDTH}px; -`; - interface Props { andProviderId?: string; browserFields: BrowserFields; @@ -138,13 +130,14 @@ export class StatefulEditDataProvider extends React.PureComponent this.state.updatedField.length > 0 ? this.state.updatedField[0].label : null } > - @@ -152,13 +145,14 @@ export class StatefulEditDataProvider extends React.PureComponent - diff --git a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap b/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap index ac3932030f332..e9e9933193035 100644 --- a/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap +++ b/x-pack/legacy/plugins/siem/public/components/ml/score/__snapshots__/anomaly_score.test.tsx.snap @@ -88,6 +88,7 @@ exports[`anomaly_scores renders correctly against snapshot 1`] = ` } closePopover={[Function]} data-test-subj="anomaly-score-popover" + display="inlineBlock" hasArrow={true} id="anomaly-score-popover" isOpen={false} diff --git a/x-pack/legacy/plugins/spaces/public/views/nav_control/__snapshots__/nav_control_popover.test.tsx.snap b/x-pack/legacy/plugins/spaces/public/views/nav_control/__snapshots__/nav_control_popover.test.tsx.snap index fdebc42496002..4e829bd481152 100644 --- a/x-pack/legacy/plugins/spaces/public/views/nav_control/__snapshots__/nav_control_popover.test.tsx.snap +++ b/x-pack/legacy/plugins/spaces/public/views/nav_control/__snapshots__/nav_control_popover.test.tsx.snap @@ -26,6 +26,7 @@ exports[`NavControlPopover renders without crashing 1`] = ` } closePopover={[Function]} data-test-subj="spacesNavSelector" + display="inlineBlock" hasArrow={true} id="spcMenuPopover" isOpen={false} diff --git a/x-pack/legacy/plugins/uptime/public/components/functional/__tests__/ping_list.test.tsx b/x-pack/legacy/plugins/uptime/public/components/functional/__tests__/ping_list.test.tsx index bbcf79812c073..1be848462af9a 100644 --- a/x-pack/legacy/plugins/uptime/public/components/functional/__tests__/ping_list.test.tsx +++ b/x-pack/legacy/plugins/uptime/public/components/functional/__tests__/ping_list.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import { PingResults } from '../../../../common/graphql/types'; import { PingListComponent, BaseLocationOptions } from '../ping_list'; -import { EuiComboBoxProps } from '@elastic/eui'; +import { EuiComboBoxOptionProps } from '@elastic/eui'; describe('PingList component', () => { let pingList: { allPings: PingResults }; @@ -194,7 +194,7 @@ describe('PingList component', () => { loading={false} data={{ allPings }} onPageCountChange={jest.fn()} - onSelectedLocationChange={(loc: EuiComboBoxProps[]) => {}} + onSelectedLocationChange={(loc: EuiComboBoxOptionProps[]) => {}} onSelectedStatusChange={jest.fn()} onUpdateApp={jest.fn()} pageSize={30} diff --git a/x-pack/package.json b/x-pack/package.json index e1f5943456714..adba1a14d5cbf 100644 --- a/x-pack/package.json +++ b/x-pack/package.json @@ -171,7 +171,7 @@ "@babel/runtime": "7.4.5", "@elastic/ctags-langserver": "^0.0.8", "@elastic/datemath": "5.0.2", - "@elastic/eui": "12.2.0", + "@elastic/eui": "12.3.1", "@elastic/javascript-typescript-langserver": "^0.2.1", "@elastic/lsp-extension": "^0.1.2", "@elastic/node-crypto": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index 4db0cbe819a40..84425a5b055bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1644,10 +1644,10 @@ tabbable "^1.1.0" uuid "^3.1.0" -"@elastic/eui@12.2.0": - version "12.2.0" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-12.2.0.tgz#9307c4416e03d28cff88fca886a2c76e261c884a" - integrity sha512-0AFbXRpe1NpYbpOnHzjrkiS221wYtcKBRHSl75rtXs70A/aV/QKB3n5rARin6qUdUSjpIghaCumJNMbmvfX7uw== +"@elastic/eui@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-12.3.1.tgz#89ced2cf43d5363f0cbc9cca76f6fcdfb3466276" + integrity sha512-7XQSSsyJTPyJQR+tmo14z/ek7/9PDz7jI/t1sPa14hG8CLYKhOgtYjVFeLM4hHz4F4MLwfwK1t3gMHqFxnvGeQ== dependencies: "@types/lodash" "^4.14.116" "@types/numeral" "^0.0.25"