diff --git a/package.json b/package.json index 4b389e6993276..5a629c46f6e1b 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@babel/register": "7.4.4", "@elastic/charts": "^4.2.6", "@elastic/datemath": "5.0.2", - "@elastic/eui": "10.4.1", + "@elastic/eui": "11.0.1", "@elastic/filesaver": "1.1.2", "@elastic/good": "8.1.1-kibana2", "@elastic/numeral": "2.3.3", @@ -258,6 +258,7 @@ }, "devDependencies": { "@babel/parser": "7.4.5", + "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/types": "7.4.4", "@elastic/eslint-config-kibana": "0.15.0", "@elastic/github-checks-reporter": "0.0.15", @@ -338,6 +339,7 @@ "archiver": "^3.0.0", "babel-eslint": "10.0.1", "babel-jest": "^24.1.0", + "babel-plugin-dynamic-import-node": "^2.2.0", "backport": "4.5.5", "chai": "3.5.0", "chance": "1.0.18", diff --git a/src/dev/jest/babel_transform.js b/src/dev/jest/babel_transform.js index 0796cf859d4ef..c318433137312 100644 --- a/src/dev/jest/babel_transform.js +++ b/src/dev/jest/babel_transform.js @@ -23,4 +23,9 @@ module.exports = babelJest.createTransformer({ presets: [ require.resolve('@kbn/babel-preset/node_preset') ], + plugins: [ + // enables jest to parse and execute dynamic import() calls + '@babel/plugin-syntax-dynamic-import', + 'dynamic-import-node' + ] }); diff --git a/src/dev/jest/config.js b/src/dev/jest/config.js index 2c71b354e5202..e1a0c4a87392d 100644 --- a/src/dev/jest/config.js +++ b/src/dev/jest/config.js @@ -88,7 +88,8 @@ export default { '^.+\\.html?$': 'jest-raw-loader', }, transformIgnorePatterns: [ - '[/\\\\]node_modules[/\\\\].+\\.js$', + // ignore all node_modules except @elastic/eui which requires babel transforms to handle dynamic import() + '[/\\\\]node_modules(?![\\/\\\\]@elastic[\\/\\\\]eui)[/\\\\].+\\.js$', 'packages/kbn-pm/dist/index.js' ], snapshotSerializers: [ diff --git a/src/legacy/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.tsx.snap b/src/legacy/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.tsx.snap index 747b92bb5a5de..107bda0aea08b 100644 --- a/src/legacy/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.tsx.snap +++ b/src/legacy/core_plugins/kibana/public/dashboard/panel/__snapshots__/dashboard_panel.test.tsx.snap @@ -33,24 +33,13 @@ exports[`DashboardPanel matches snapshot 1`] = ` > + /> diff --git a/src/legacy/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap b/src/legacy/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap index ebc27316d4675..9f400e54899af 100644 --- a/src/legacy/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/discover/directives/__snapshots__/no_results.test.js.snap @@ -20,25 +20,13 @@ Array [ > + /> @@ -223,25 +211,13 @@ Array [ > + /> @@ -274,25 +250,13 @@ Array [ > + /> @@ -393,25 +357,13 @@ Array [ > + /> diff --git a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap index 05d968c3d4e3f..82d2698b42e9c 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap @@ -522,24 +522,20 @@ exports[`bulkCreate should display success message when bulkCreate is successful title="complete" type="check" > - - + diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap index 8461271d9c148..ca04ac8fcfaab 100644 --- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap @@ -135,16 +135,11 @@ exports[`Table should render normally 1`] = ` exports[`Table should render the boolean template (false) 1`] = ``; exports[`Table should render the boolean template (true) 1`] = ` - `; diff --git a/src/legacy/core_plugins/kibana/public/visualize/wizard/__snapshots__/new_vis_modal.test.tsx.snap b/src/legacy/core_plugins/kibana/public/visualize/wizard/__snapshots__/new_vis_modal.test.tsx.snap index 12ef4a16924ba..37168803bb69d 100644 --- a/src/legacy/core_plugins/kibana/public/visualize/wizard/__snapshots__/new_vis_modal.test.tsx.snap +++ b/src/legacy/core_plugins/kibana/public/visualize/wizard/__snapshots__/new_vis_modal.test.tsx.snap @@ -174,17 +174,13 @@ exports[`NewVisModal filter for visualization types should render as expected 1` > + />
+ />
@@ -288,7 +273,7 @@ exports[`NewVisModal filter for visualization types should render as expected 1` >
+ />
@@ -571,7 +541,7 @@ exports[`NewVisModal filter for visualization types should render as expected 1` >
+ />
@@ -793,7 +748,7 @@ exports[`NewVisModal filter for visualization types should render as expected 1` >
@@ -1224,27 +1155,23 @@ exports[`NewVisModal filter for visualization types should render as expected 1` size="l" type="empty" > - + @@ -1322,27 +1249,23 @@ exports[`NewVisModal filter for visualization types should render as expected 1` size="l" type="empty" > - + @@ -1618,17 +1541,13 @@ exports[`NewVisModal should render as expected 1`] = ` > + />
+ />
@@ -1730,7 +1638,7 @@ exports[`NewVisModal should render as expected 1`] = ` >
+ />
@@ -2010,7 +1903,7 @@ exports[`NewVisModal should render as expected 1`] = ` >
+ />
@@ -2229,7 +2107,7 @@ exports[`NewVisModal should render as expected 1`] = ` >
@@ -2647,27 +2501,23 @@ exports[`NewVisModal should render as expected 1`] = ` size="l" type="empty" > - + @@ -2745,27 +2595,23 @@ exports[`NewVisModal should render as expected 1`] = ` size="l" type="empty" > - + 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 18adad0d3b1e2..27911b2e86fd5 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 @@ -274,40 +274,23 @@ exports[`InspectorPanel should render as expected 1`] = ` size="m" type="arrowDown" > - + /> + renders as expected 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero euiAccordion__iconWrapper" > - - - - - + />
renders as expected with actions 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero euiAccordion__iconWrapper" > - - - - - + />
renders as expected with actions 1`] = ` > + />
@@ -219,26 +184,13 @@ exports[` renders as expected with initial collapsed 1`] = class="euiFlexItem euiFlexItem--flexGrowZero euiAccordion__iconWrapper" > - - - - - + />
+ />
diff --git a/src/legacy/ui/public/visualize/components/__snapshots__/visualization_requesterror.test.js.snap b/src/legacy/ui/public/visualize/components/__snapshots__/visualization_requesterror.test.js.snap index 1502725f04c39..d494567e6d250 100644 --- a/src/legacy/ui/public/visualize/components/__snapshots__/visualization_requesterror.test.js.snap +++ b/src/legacy/ui/public/visualize/components/__snapshots__/visualization_requesterror.test.js.snap @@ -12,18 +12,13 @@ exports[`VisualizationRequestError should render according to snapshot 1`] = ` > + />
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 f7e602576f690..e0146b6904ff2 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": "10.4.1", + "@elastic/eui": "11.0.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 bb8712090bdf3..549e2bb48f00b 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": "10.4.1", + "@elastic/eui": "11.0.1", "react": "^16.8.0" } } 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 16953de85a0e2..8aec51d9c7086 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": "10.4.1", + "@elastic/eui": "11.0.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 49321b8fd177d..306a768b35a46 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": "10.4.1", + "@elastic/eui": "11.0.1", "react": "^16.8.0", "react-dom": "^16.8.0" } diff --git a/x-pack/dev-tools/jest/create_jest_config.js b/x-pack/dev-tools/jest/create_jest_config.js index f8b94987dbff8..b4078bfebfb08 100644 --- a/x-pack/dev-tools/jest/create_jest_config.js +++ b/x-pack/dev-tools/jest/create_jest_config.js @@ -41,7 +41,8 @@ export function createJestConfig({ '^.+\\.(js|tsx?)$': `${kibanaDirectory}/src/dev/jest/babel_transform.js`, }, transformIgnorePatterns: [ - '[/\\\\]node_modules[/\\\\].+\\.js$' + // ignore all node_modules except @elastic/eui which requires babel transforms to handle dynamic import() + '[/\\\\]node_modules(?![\\/\\\\]@elastic[\\/\\\\]eui)[/\\\\].+\\.js$' ], snapshotSerializers: [ `${kibanaDirectory}/node_modules/enzyme-to-json/serializer` diff --git a/x-pack/package.json b/x-pack/package.json index 8d051157e8fdf..c5e3516a53a17 100644 --- a/x-pack/package.json +++ b/x-pack/package.json @@ -168,7 +168,7 @@ "@babel/register": "7.4.4", "@babel/runtime": "7.4.5", "@elastic/datemath": "5.0.2", - "@elastic/eui": "10.4.1", + "@elastic/eui": "11.0.1", "@elastic/javascript-typescript-langserver": "^0.1.27", "@elastic/lsp-extension": "^0.1.1", "@elastic/node-crypto": "^1.0.0", diff --git a/x-pack/plugins/apm/public/components/app/ErrorGroupOverview/List/__test__/__snapshots__/List.test.tsx.snap b/x-pack/plugins/apm/public/components/app/ErrorGroupOverview/List/__test__/__snapshots__/List.test.tsx.snap index 7df0a14e89080..396d985d3784a 100644 --- a/x-pack/plugins/apm/public/components/app/ErrorGroupOverview/List/__test__/__snapshots__/List.test.tsx.snap +++ b/x-pack/plugins/apm/public/components/app/ErrorGroupOverview/List/__test__/__snapshots__/List.test.tsx.snap @@ -42,26 +42,14 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = ` > + /> @@ -190,18 +178,14 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = ` - - + /> @@ -266,26 +250,14 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = ` > + /> @@ -374,26 +346,14 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = ` > + /> @@ -522,18 +482,14 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = ` - - + /> @@ -1008,26 +964,14 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = ` > + /> diff --git a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap index 1998f4c810e53..ac4327adbc03c 100644 --- a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap +++ b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap @@ -106,13 +106,12 @@ NodeList [ >
`; @@ -73,26 +61,14 @@ exports[`Storyshots renderers/DropdownFilter with choices 1`] = ` - - - - - + />
`; @@ -131,26 +107,14 @@ exports[`Storyshots renderers/DropdownFilter with choices and new value 1`] = ` - - - - - + />
`; @@ -189,26 +153,14 @@ exports[`Storyshots renderers/DropdownFilter with choices and value 1`] = ` - - - - - + /> `; @@ -229,25 +181,13 @@ exports[`Storyshots renderers/DropdownFilter with new value 1`] = ` - - - - - + /> `; diff --git a/x-pack/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot b/x-pack/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot index c325331a620b6..05473f55fabe1 100644 --- a/x-pack/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot @@ -81,18 +81,14 @@ exports[`Storyshots components/Asset airplane 1`] = ` > + />
@@ -118,18 +114,14 @@ exports[`Storyshots components/Asset airplane 1`] = ` > + />
@@ -156,21 +148,14 @@ exports[`Storyshots components/Asset airplane 1`] = ` > + />
@@ -194,25 +179,14 @@ exports[`Storyshots components/Asset airplane 1`] = ` > + />
@@ -303,18 +277,14 @@ exports[`Storyshots components/Asset marker 1`] = ` > + /> @@ -340,18 +310,14 @@ exports[`Storyshots components/Asset marker 1`] = ` > + /> @@ -378,21 +344,14 @@ exports[`Storyshots components/Asset marker 1`] = ` > + /> @@ -416,25 +375,14 @@ exports[`Storyshots components/Asset marker 1`] = ` > + /> diff --git a/x-pack/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.examples.storyshot b/x-pack/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.examples.storyshot index 45f32e571f2ce..acdcf8689da7e 100644 --- a/x-pack/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.examples.storyshot @@ -82,23 +82,18 @@ Array [ } > - - + /> ,
- - + />
,
- - + />
,
- - + />
, ] diff --git a/x-pack/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.examples.storyshot b/x-pack/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.examples.storyshot index a5811a60040c9..9e6db06e5a4db 100644 --- a/x-pack/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.examples.storyshot @@ -202,19 +202,14 @@ exports[`Storyshots components/ColorManager interactive 1`] = ` > + /> @@ -415,19 +405,14 @@ Array [ > + /> , @@ -512,19 +492,14 @@ Array [ > + /> , @@ -609,19 +579,14 @@ Array [ > + /> , diff --git a/x-pack/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.examples.storyshot b/x-pack/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.examples.storyshot index ad84c2e544580..14dec33ad0737 100644 --- a/x-pack/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.examples.storyshot @@ -364,23 +364,18 @@ Array [ } > - - + /> @@ -718,23 +713,18 @@ exports[`Storyshots components/ColorPalette six colors, wrap at 4 1`] = ` } > - - + /> @@ -995,23 +985,18 @@ Array [ } > - - + /> diff --git a/x-pack/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.examples.storyshot b/x-pack/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.examples.storyshot index ccdb666dd77c1..c2f4781d49561 100644 --- a/x-pack/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.examples.storyshot @@ -221,19 +221,14 @@ exports[`Storyshots components/ColorPicker interactive 1`] = ` > + /> @@ -317,23 +307,18 @@ exports[`Storyshots components/ColorPicker six colors 1`] = ` } > - - + /> @@ -527,19 +512,14 @@ exports[`Storyshots components/ColorPicker six colors 1`] = ` > + /> @@ -793,19 +768,14 @@ exports[`Storyshots components/ColorPicker six colors, value missing 1`] = ` > + /> @@ -868,23 +833,18 @@ exports[`Storyshots components/ColorPicker three colors 1`] = ` } > - - + /> @@ -1000,19 +960,14 @@ exports[`Storyshots components/ColorPicker three colors 1`] = ` > + /> diff --git a/x-pack/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot b/x-pack/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot index 4fac77ebf47e2..42eefbb1feb37 100644 --- a/x-pack/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot @@ -56,18 +56,14 @@ Array [ > + />
+ />
@@ -244,22 +236,14 @@ Array [ className="euiCard__top" > - - - + /> + />
+ />
@@ -753,18 +729,14 @@ Array [ > + />
+ />
@@ -941,22 +909,14 @@ Array [ className="euiCard__top" > - - - + /> + />
+ />
@@ -1294,22 +1246,14 @@ Array [ className="euiCard__top" > - - - + /> - - - + /> - - - + /> - - - + /> + />
@@ -71,25 +60,14 @@ exports[`Storyshots components/ElementTypes/ElementControls has two buttons 1`] > + />
diff --git a/x-pack/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.examples.storyshot b/x-pack/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.examples.storyshot index 8748623b23772..cd66f28975445 100644 --- a/x-pack/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.examples.storyshot @@ -71,25 +71,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -112,25 +101,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -196,25 +174,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -237,25 +204,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -321,25 +277,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -362,25 +307,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls 1`] = ` > + />
@@ -461,25 +395,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls and filter > + /> @@ -502,25 +425,14 @@ exports[`Storyshots components/ElementTypes/ElementGrid with controls and filter > + /> diff --git a/x-pack/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.examples.storyshot b/x-pack/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.examples.storyshot index dba0a6bef4641..097dad3cf0894 100644 --- a/x-pack/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.examples.storyshot @@ -21,18 +21,14 @@ exports[`Storyshots components/FileUpload default 1`] = ` > + />
diff --git a/x-pack/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot b/x-pack/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot index c7a5afedda7ee..7c433bdb983dc 100644 --- a/x-pack/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/font_picker/__snapshots__/font_picker.examples.storyshot @@ -48,26 +48,14 @@ exports[`Storyshots components/FontPicker default 1`] = ` > + />
@@ -142,26 +130,14 @@ exports[`Storyshots components/FontPicker with value 1`] = ` > + /> diff --git a/x-pack/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.examples.storyshot b/x-pack/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.examples.storyshot index 965a7dd9bfb64..79b547102b089 100644 --- a/x-pack/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.examples.storyshot @@ -71,23 +71,18 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = ` } > - - + />
- - + />
- - + />
@@ -166,47 +151,32 @@ exports[`Storyshots components/ItemGrid icon grid 1`] = ` className="item-grid-row" > - - + /> - - + /> - - + /> `; diff --git a/x-pack/plugins/canvas/public/components/item_grid/__examples__/item_grid.examples.tsx b/x-pack/plugins/canvas/public/components/item_grid/__examples__/item_grid.examples.tsx index 632e238d1868b..94340888eafc8 100644 --- a/x-pack/plugins/canvas/public/components/item_grid/__examples__/item_grid.examples.tsx +++ b/x-pack/plugins/canvas/public/components/item_grid/__examples__/item_grid.examples.tsx @@ -16,8 +16,8 @@ storiesOf('components/ItemGrid', module) )) .add('icon grid', () => ( } + items={['plusInCircle', 'minusInCircle', 'check']} + children={item => } /> )) .add('color dot grid', () => ( diff --git a/x-pack/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.examples.storyshot b/x-pack/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.examples.storyshot index 3f8ae898f5cb1..939f3fd777533 100644 --- a/x-pack/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.examples.storyshot @@ -57,18 +57,14 @@ exports[`Storyshots components/KeyboardShortcutsDoc default 1`] = ` > + />
+ />
@@ -92,25 +88,14 @@ exports[`Storyshots components/SidebarHeader/ default 1`] = ` > + /> @@ -167,18 +152,14 @@ exports[`Storyshots components/SidebarHeader/ without layer controls 1`] = ` > + /> @@ -214,25 +195,14 @@ exports[`Storyshots components/SidebarHeader/ without layer controls 1`] = ` > + /> diff --git a/x-pack/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.examples.storyshot b/x-pack/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.examples.storyshot index c1a8ea30eb604..0d4fa0dcb50d1 100644 --- a/x-pack/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.examples.storyshot +++ b/x-pack/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.examples.storyshot @@ -55,31 +55,18 @@ exports[`Storyshots components/Tag as health 1`] = ` className="euiFlexItem euiFlexItem--flexGrowZero" > - - - - - + />
- - - - - + />
- - - - - + />
- - - - - + />
- - - - - + />
+ />
- - - - - + /> - - + /> @@ -148,41 +120,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -210,40 +165,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -273,41 +212,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -335,25 +257,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -385,40 +296,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -451,41 +346,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -513,41 +391,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -579,41 +440,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -641,41 +485,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -703,41 +530,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -765,41 +575,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -827,41 +620,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -889,41 +665,24 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> - - + /> @@ -951,25 +710,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1001,25 +749,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1051,25 +788,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1101,25 +827,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1151,25 +866,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1201,25 +905,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1251,25 +944,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1301,25 +983,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1351,25 +1022,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> @@ -1401,25 +1061,14 @@ exports[`render correctly 1`] = ` tabIndex={0} > - - - - - + /> diff --git a/x-pack/plugins/code/public/components/query_bar/components/__snapshots__/query_bar.test.tsx.snap b/x-pack/plugins/code/public/components/query_bar/components/__snapshots__/query_bar.test.tsx.snap index 481d0717555e9..c8e2a2317095d 100644 --- a/x-pack/plugins/code/public/components/query_bar/components/__snapshots__/query_bar.test.tsx.snap +++ b/x-pack/plugins/code/public/components/query_bar/components/__snapshots__/query_bar.test.tsx.snap @@ -349,29 +349,21 @@ exports[`render correctly with empty query string 1`] = ` - - - - + /> + Search Everything @@ -408,29 +400,21 @@ exports[`render correctly with empty query string 1`] = ` - - - - + /> + Search Everything @@ -461,40 +445,23 @@ exports[`render correctly with empty query string 1`] = ` className="euiFormControlLayoutCustomIcon__icon" type="arrowDown" > - + /> + @@ -1093,29 +1060,21 @@ exports[`render correctly with input query string changed 1`] = ` - - - - + /> + Search Everything @@ -1152,29 +1111,21 @@ exports[`render correctly with input query string changed 1`] = ` - - - - + /> + Search Everything @@ -1205,40 +1156,23 @@ exports[`render correctly with input query string changed 1`] = ` className="euiFormControlLayoutCustomIcon__icon" type="arrowDown" > - + /> + diff --git a/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap b/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap index daa1c1e2bf9f6..87b458f25fa00 100644 --- a/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap +++ b/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap @@ -149,30 +149,21 @@ exports[`render symbol item 1`] = ` - - - - + /> +
diff --git a/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestions_component.test.tsx.snap b/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestions_component.test.tsx.snap index 1488a046833e8..9d7be6b3ab4c6 100644 --- a/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestions_component.test.tsx.snap +++ b/x-pack/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestions_component.test.tsx.snap @@ -165,29 +165,21 @@ exports[`render full suggestions component 1`] = ` - - - - + /> +
@@ -254,30 +246,21 @@ exports[`render full suggestions component 1`] = ` - - - - + /> + @@ -338,29 +321,21 @@ exports[`render full suggestions component 1`] = ` - - - - + /> + @@ -464,30 +439,21 @@ exports[`render full suggestions component 1`] = ` - - - - + /> + diff --git a/x-pack/plugins/code/public/components/symbol_tree/__test__/__snapshots__/symbol_tree.test.tsx.snap b/x-pack/plugins/code/public/components/symbol_tree/__test__/__snapshots__/symbol_tree.test.tsx.snap index 454a51c2d5033..445bbb65adda8 100644 --- a/x-pack/plugins/code/public/components/symbol_tree/__test__/__snapshots__/symbol_tree.test.tsx.snap +++ b/x-pack/plugins/code/public/components/symbol_tree/__test__/__snapshots__/symbol_tree.test.tsx.snap @@ -19,25 +19,14 @@ exports[`render symbol tree correctly 1`] = ` /> + />
- - - - - + /> - - - + />
- - + />
- - + />
- - - - - + /> - - + />
- - + />
- - + />
- - + />
- - + />
- - + />
- - - - - + /> - - + />
- - + />
- + /> + - - - + />
@@ -113,18 +105,13 @@ exports[`policy table should show empty state when there are not any policies 1` > + /> diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap index 4784586c92083..1443151323bb1 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/license_status.test.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`LicenseStatus component should display display warning is expired 1`] = `"

Your Platinum license has expired

Your license expired on
"`; +exports[`LicenseStatus component should display display warning is expired 1`] = `"

Your Platinum license has expired

Your license expired on
"`; -exports[`LicenseStatus component should display normally when license is active 1`] = `"

Your Gold license is active

Your license will expire on October 12, 2099 7:00 PM EST
"`; +exports[`LicenseStatus component should display normally when license is active 1`] = `"

Your Gold license is active

Your license will expire on October 12, 2099 7:00 PM EST
"`; diff --git a/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap b/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap index 7ce269bab1891..ffe8054c912ad 100644 --- a/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap +++ b/x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.js.snap @@ -201,17 +201,13 @@ exports[`UploadLicense should display a modal when license requires acknowledgem > + />
+ />
+ />
- + /> + @@ -928,31 +908,23 @@ exports[`UploadLicense should display a modal when license requires acknowledgem size="l" type="importAction" > - + /> +
- +
- +
- + /> +
- +
- - - - + /> +
@@ -541,30 +532,21 @@ exports[`UpgradeFailure component passes expected text for not manual upgrade 1` size="xl" type="alert" > - - - - + /> +
@@ -899,30 +881,21 @@ exports[`UpgradeFailure component passes expected text for not new pipeline 1`] size="xl" type="alert" > - - - - + /> +
diff --git a/x-pack/plugins/monitoring/public/components/no_data/__tests__/__snapshots__/no_data.test.js.snap b/x-pack/plugins/monitoring/public/components/no_data/__tests__/__snapshots__/no_data.test.js.snap index a4ed9a6fa987f..b7c4d4cd03812 100644 --- a/x-pack/plugins/monitoring/public/components/no_data/__tests__/__snapshots__/no_data.test.js.snap +++ b/x-pack/plugins/monitoring/public/components/no_data/__tests__/__snapshots__/no_data.test.js.snap @@ -12,21 +12,13 @@ exports[`NoData should show a default message if reason is unknown 1`] = ` class="euiPanel euiPanel--paddingLarge euiPageContent eui-textCenter euiPageContent--verticalCenter euiPageContent--horizontalCenter" > - - - + />
@@ -84,21 +76,13 @@ exports[`NoData should show text next to the spinner while checking a setting 1` class="euiPanel euiPanel--paddingLarge euiPageContent eui-textCenter euiPageContent--verticalCenter euiPageContent--horizontalCenter" > - - - + />
diff --git a/x-pack/plugins/remote_clusters/public/sections/components/remote_cluster_form/__snapshots__/remote_cluster_form.test.js.snap b/x-pack/plugins/remote_clusters/public/sections/components/remote_cluster_form/__snapshots__/remote_cluster_form.test.js.snap index dd897ac82965e..52354124e9ec5 100644 --- a/x-pack/plugins/remote_clusters/public/sections/components/remote_cluster_form/__snapshots__/remote_cluster_form.test.js.snap +++ b/x-pack/plugins/remote_clusters/public/sections/components/remote_cluster_form/__snapshots__/remote_cluster_form.test.js.snap @@ -257,30 +257,21 @@ Array [ class="euiSwitch__track" > - - + /> - - + />