Skip to content

Commit

Permalink
[9.0] Upgrade EUI to v99.2.0-borealis.0 (#209690) (#211118)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `9.0`:
- [Upgrade EUI to v99.2.0-borealis.0
(#209690)](#209690)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Tomasz
Kajtoch","email":"tomasz.kajtoch@elastic.co"},"sourceCommit":{"committedDate":"2025-02-13T09:20:46Z","message":"Upgrade
EUI to v99.2.0-borealis.0 (#209690)\n\n`99.1.0-borealis.0` ⏩
`99.2.0-borealis.0`\n\n[Questions? Please see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n---\n\n##
[`v99.2.0`](https://github.com/elastic/eui/releases/v99.2.0)\n\n-
Changed `EuiFieldText` styles to prioritize `disabled` styling
over\n`readonly`. ([#8271](https://github.com/elastic/eui/pull/8271))\n-
Added `plugs` and `web` glyphs to
`EuiIcon`\n([#8285](https://github.com/elastic/eui/pull/8285))\n- Update
`title` on `EuiColorPalettePickerPaletteProps` to be
optional\n([#8289](https://github.com/elastic/eui/pull/8289))\n\n**Bug
fixes**\n\n- Fixed an issue with EuiDataGrid with auto row height
resulting in a\ntable of 0 height
([#8251](https://github.com/elastic/eui/pull/8251))\n- Fixed `disabled`
behavior of `EuiFieldText` to prevent input
changes.\n([#8271](https://github.com/elastic/eui/pull/8271))\n\n**Borealis
changes**\n\n- [Visual Refresh] Provide hooks for color palette
functions\n([#8284](https://github.com/elastic/eui/pull/8284))\n-
[Visual Refresh] Make Borealis default theme in
EUI\n([#8288](https://github.com/elastic/eui/pull/8288))\n\n---\n\nAs
you can probably tell, there are plenty of updated tests and\nsnapshots
this time around. They are the result of the following:\n\n1. We've
updated the default theme in `@elastic/eui` v99.2.0 to\nBorealis, which
led to kibana tests using `renderWithTheme`,\n`mountWithTheme`, and
other utility functions that wrap the tested\ncomponent in
`<EuiThemeProvider>` to switch to the correct, new color\nvalues. With
this change, all tests should now use Borealis, regardless\nof the
testing framework or its configuration.\n2. Because of the default theme
change in EUI, some class name hash\nfragments (e.g.,
`css-`**`wprskz`**`-euiButtonIcon-xs-empty-primary`)\nregenerated.\n\nMost
Borealis-related changes in this PR are test env only and have
no\nimpact on what users see when using
Kibana.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"e5958a47f302c69871310903caeebc69257f886a","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","Team:obs-ux-infra_services","Team:obs-ux-management","backport:version","v9.1.0"],"title":"Upgrade
EUI to
v99.2.0-borealis.0","number":209690,"url":"https://github.com/elastic/kibana/pull/209690","mergeCommit":{"message":"Upgrade
EUI to v99.2.0-borealis.0 (#209690)\n\n`99.1.0-borealis.0` ⏩
`99.2.0-borealis.0`\n\n[Questions? Please see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n---\n\n##
[`v99.2.0`](https://github.com/elastic/eui/releases/v99.2.0)\n\n-
Changed `EuiFieldText` styles to prioritize `disabled` styling
over\n`readonly`. ([#8271](https://github.com/elastic/eui/pull/8271))\n-
Added `plugs` and `web` glyphs to
`EuiIcon`\n([#8285](https://github.com/elastic/eui/pull/8285))\n- Update
`title` on `EuiColorPalettePickerPaletteProps` to be
optional\n([#8289](https://github.com/elastic/eui/pull/8289))\n\n**Bug
fixes**\n\n- Fixed an issue with EuiDataGrid with auto row height
resulting in a\ntable of 0 height
([#8251](https://github.com/elastic/eui/pull/8251))\n- Fixed `disabled`
behavior of `EuiFieldText` to prevent input
changes.\n([#8271](https://github.com/elastic/eui/pull/8271))\n\n**Borealis
changes**\n\n- [Visual Refresh] Provide hooks for color palette
functions\n([#8284](https://github.com/elastic/eui/pull/8284))\n-
[Visual Refresh] Make Borealis default theme in
EUI\n([#8288](https://github.com/elastic/eui/pull/8288))\n\n---\n\nAs
you can probably tell, there are plenty of updated tests and\nsnapshots
this time around. They are the result of the following:\n\n1. We've
updated the default theme in `@elastic/eui` v99.2.0 to\nBorealis, which
led to kibana tests using `renderWithTheme`,\n`mountWithTheme`, and
other utility functions that wrap the tested\ncomponent in
`<EuiThemeProvider>` to switch to the correct, new color\nvalues. With
this change, all tests should now use Borealis, regardless\nof the
testing framework or its configuration.\n2. Because of the default theme
change in EUI, some class name hash\nfragments (e.g.,
`css-`**`wprskz`**`-euiButtonIcon-xs-empty-primary`)\nregenerated.\n\nMost
Borealis-related changes in this PR are test env only and have
no\nimpact on what users see when using
Kibana.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"e5958a47f302c69871310903caeebc69257f886a"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209690","number":209690,"mergeCommit":{"message":"Upgrade
EUI to v99.2.0-borealis.0 (#209690)\n\n`99.1.0-borealis.0` ⏩
`99.2.0-borealis.0`\n\n[Questions? Please see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n---\n\n##
[`v99.2.0`](https://github.com/elastic/eui/releases/v99.2.0)\n\n-
Changed `EuiFieldText` styles to prioritize `disabled` styling
over\n`readonly`. ([#8271](https://github.com/elastic/eui/pull/8271))\n-
Added `plugs` and `web` glyphs to
`EuiIcon`\n([#8285](https://github.com/elastic/eui/pull/8285))\n- Update
`title` on `EuiColorPalettePickerPaletteProps` to be
optional\n([#8289](https://github.com/elastic/eui/pull/8289))\n\n**Bug
fixes**\n\n- Fixed an issue with EuiDataGrid with auto row height
resulting in a\ntable of 0 height
([#8251](https://github.com/elastic/eui/pull/8251))\n- Fixed `disabled`
behavior of `EuiFieldText` to prevent input
changes.\n([#8271](https://github.com/elastic/eui/pull/8271))\n\n**Borealis
changes**\n\n- [Visual Refresh] Provide hooks for color palette
functions\n([#8284](https://github.com/elastic/eui/pull/8284))\n-
[Visual Refresh] Make Borealis default theme in
EUI\n([#8288](https://github.com/elastic/eui/pull/8288))\n\n---\n\nAs
you can probably tell, there are plenty of updated tests and\nsnapshots
this time around. They are the result of the following:\n\n1. We've
updated the default theme in `@elastic/eui` v99.2.0 to\nBorealis, which
led to kibana tests using `renderWithTheme`,\n`mountWithTheme`, and
other utility functions that wrap the tested\ncomponent in
`<EuiThemeProvider>` to switch to the correct, new color\nvalues. With
this change, all tests should now use Borealis, regardless\nof the
testing framework or its configuration.\n2. Because of the default theme
change in EUI, some class name hash\nfragments (e.g.,
`css-`**`wprskz`**`-euiButtonIcon-xs-empty-primary`)\nregenerated.\n\nMost
Borealis-related changes in this PR are test env only and have
no\nimpact on what users see when using
Kibana.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"e5958a47f302c69871310903caeebc69257f886a"}}]}]
BACKPORT-->
  • Loading branch information
tkajtoch authored Feb 14, 2025
1 parent b6d9b01 commit 1cf6b2e
Show file tree
Hide file tree
Showing 84 changed files with 685 additions and 687 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
"@elastic/ecs": "^8.11.5",
"@elastic/elasticsearch": "^8.17.0",
"@elastic/ems-client": "8.6.3",
"@elastic/eui": "99.1.0-borealis.0",
"@elastic/eui-theme-borealis": "0.0.9",
"@elastic/eui": "99.2.0-borealis.0",
"@elastic/eui-theme-borealis": "0.0.10",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "^1.2.3",
"@elastic/numeral": "^2.5.1",
Expand Down
4 changes: 2 additions & 2 deletions src/dev/license_checker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.6.3': ['Elastic License 2.0'],
'@elastic/eui@99.1.0-borealis.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'@elastic/eui-theme-borealis@0.0.9': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'@elastic/eui@99.2.0-borealis.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'@elastic/eui-theme-borealis@0.0.10': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
'buffers@0.1.1': ['MIT'], // license in importing module https://www.npmjs.com/package/binary
'@bufbuild/protobuf@1.2.1': ['Apache-2.0'], // license (Apache-2.0 AND BSD-3-Clause)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ describe('useDataGridInTableSearch', () => {
} as RenderCellValuePropsWithInTableSearch)
).toMatchInlineSnapshot(`
<InTableSearchHighlightsWrapper
highlightBackgroundColor="#e5ffc0"
highlightColor="#000000"
highlightBackgroundColor="#FDDDE9"
highlightColor="#A11262"
inTableSearchTerm="test"
>
<OriginalRenderCellValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('LogLevelBadge', () => {
expect(badge).toBeInTheDocument();
expect(badge).toHaveTextContent('info');
expect(getComputedStyle(badge).getPropertyValue('--euiBadgeBackgroundColor')).toEqual(
'#90b0d1'
'#90bdff'
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ const euiTheme = {
describe('getLogLevelColor', () => {
test('should work correctly', () => {
expect(getLogLevelColor(LogLevelCoalescedValue.debug, euiTheme as EuiThemeComputed)).toBe(
'#becfe3'
'#bdd7ff'
);
expect(getLogLevelColor(LogLevelCoalescedValue.info, euiTheme as EuiThemeComputed)).toBe(
'#90b0d1'
'#90bdff'
);
expect(getLogLevelColor(LogLevelCoalescedValue.notice, euiTheme as EuiThemeComputed)).toBe(
'#6092c0'
'#61a2ff'
);
expect(getLogLevelColor(LogLevelCoalescedValue.warning, euiTheme as EuiThemeComputed)).toBe(
'#d6bf57'
'#fcd883'
);
expect(getLogLevelColor(LogLevelCoalescedValue.error, euiTheme as EuiThemeComputed)).toBe(
'#e18774'
'#fc9a92'
);
expect(getLogLevelColor(LogLevelCoalescedValue.critical, euiTheme as EuiThemeComputed)).toBe(
'#dd7b67'
'#fb9188'
);
expect(getLogLevelColor(LogLevelCoalescedValue.alert, euiTheme as EuiThemeComputed)).toBe(
'#d76f5b'
'#fa877e'
);
expect(getLogLevelColor(LogLevelCoalescedValue.emergency, euiTheme as EuiThemeComputed)).toBe(
'#d2634e'
'#f87c74'
);
// other
expect(getLogLevelColor(LogLevelCoalescedValue.trace, euiTheme as EuiThemeComputed)).toBe(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1cf6b2e

Please sign in to comment.