From e714cfa718e68100b4612a3a237a55bf899aca9e Mon Sep 17 00:00:00 2001
From: Tomasz Kajtoch
Date: Fri, 10 May 2024 20:01:58 +0200
Subject: [PATCH] Upgrade EUI to v94.3.0 (#182822)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
`v94.2.1-backport.0` ⏩ `v94.3.0`
_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_
---
## [`v94.3.0`](https://github.com/elastic/eui/releases/v94.3.0)
- Updated `launch` glyph for `EuiIcon`
([#7670](https://github.com/elastic/eui/pull/7670))
- Updated `EuiComboBox`'s `options` to support including tooltip details
for selectable options. Use `toolTipContent` to render tooltip
information, and `toolTipProps` to optionally customize the tooltip
rendering behavior ([#7700](https://github.com/elastic/eui/pull/7700))
- Updated the following existing glyphs in `EuiIcon`:
([#7727](https://github.com/elastic/eui/pull/7727))
- `error` (now an outlined version instead of filled)
- `tokenMetricCounter`
- `tokenMetricGauge`
- Added the following new glyphs to `EuiIcon`:
([#7727](https://github.com/elastic/eui/pull/7727))
- `tokenDimension`
- `clickLeft`
- `clickRight`
- `clockCounter`
- `errorFilled` (the previous `error` glyph design)
- `warningFilled`
**Bug fixes**
- Fixed a visual layout bug for `EuiComboBox` with `isLoading` in mobile
views ([#7700](https://github.com/elastic/eui/pull/7700))
- Fixed missing styles on header cells of `EuiDataGrid` that prevented
content text alignment styles to apply
([#7720](https://github.com/elastic/eui/pull/7720))
- Fixed `EuiFlexGroup` and `EuiFlexItem` `ref` prop typing to support
refs of the same type as the passed `component` type and allow
`displayName` to be defined for easy component naming when using
component wrappers like `styled()`
([#7724](https://github.com/elastic/eui/pull/7724))
---
Most of the code changes you'll see in this PR are caused by the recent
EuiFlex* changes making it generic. This, unfortunately, is something
that `styled()` doesn't always like. I replaced the failing usages of
`styled(EuiFlexGroup)` and `styled(EuiFlexItem)` to use `component` and
other native EuiFlex* props, resulting in the same output but being
better typed.
We plan to add more props to EuiFlex* components giving developers
control over properties like `flex-grow` and `flex-shring`, and reducing
the need for writing any custom CSS when using these components. This
should reduce the number of `styled()` wrappers needed even further
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
---
package.json | 2 +-
.../__snapshots__/entry_content.test.tsx.snap | 4 +-
...erate_linked_rules_menu_item.test.tsx.snap | 16 ++--
.../__snapshots__/list_header.test.tsx.snap | 80 +++++++++----------
.../__snapshots__/menu_items.test.tsx.snap | 20 ++---
.../text_with_edit.test.tsx.snap | 16 ++--
.../src/utils/get_render_cell_value.test.tsx | 4 +-
src/dev/license_checker/config.ts | 2 +-
.../summary_actions/index.tsx | 9 +--
.../ilm_phase_counts/index.tsx | 3 +-
.../pattern_summary/stats_rollup/index.tsx | 10 +--
.../__snapshots__/app.test.tsx.snap | 2 +-
.../extend_index_management.test.tsx.snap | 16 ++--
.../__snapshots__/index.test.tsx.snap | 16 ++--
.../components/expression_row.tsx | 32 ++++----
.../sub_components/selector_footer.tsx | 6 +-
.../components/expression_row.tsx | 9 ---
.../public/components/async_component.tsx | 11 ++-
.../waterfall_legend_item.tsx | 9 ++-
.../components/paginated_table/index.tsx | 2 +-
.../cypress/fixtures/artifacts_page.ts | 5 +-
.../body/renderers/alert_renderer/index.tsx | 14 +---
.../timeline/search_or_filter/index.tsx | 7 +-
.../components/timeline/tabs/notes/index.tsx | 10 ++-
yarn.lock | 8 +-
25 files changed, 145 insertions(+), 168 deletions(-)
diff --git a/package.json b/package.json
index d5e4ad418c0f4..e6d2b684c3615 100644
--- a/package.json
+++ b/package.json
@@ -108,7 +108,7 @@
"@elastic/ecs": "^8.11.1",
"@elastic/elasticsearch": "^8.13.0",
"@elastic/ems-client": "8.5.1",
- "@elastic/eui": "94.2.1-backport.0",
+ "@elastic/eui": "94.3.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
diff --git a/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/conditions/entry_content/__snapshots__/entry_content.test.tsx.snap b/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/conditions/entry_content/__snapshots__/entry_content.test.tsx.snap
index bd4792360e0c9..9927750e4f84e 100644
--- a/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/conditions/entry_content/__snapshots__/entry_content.test.tsx.snap
+++ b/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/conditions/entry_content/__snapshots__/entry_content.test.tsx.snap
@@ -12,7 +12,7 @@ Object {
css="You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."
>