From b754a2df75aa731b063f986f17aecd8550352cea Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Thu, 18 May 2023 18:52:40 +0200 Subject: [PATCH] Upgrade EUI to v80.0.0 (#157939) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary `@elastic/eui@79.0.1` ⏩ `@elastic/eui@80.0.0` --- ## [`80.0.0`](https://github.com/elastic/eui/tree/v80.0.0) - Improved the contrast ratio of meta labels within `EuiSelectableTemplateSitewide` to meet WCAG AA guidelines. ([#6761](https://github.com/elastic/eui/pull/6761)) - Added `vulnerabilityManagementApp` glyph to `EuiIcon` ([#6762](https://github.com/elastic/eui/pull/6762)) - Added `logoVulnerabilityManagement` icon to `EuiIcon` ([#6763](https://github.com/elastic/eui/pull/6763)) - Added `onPanelChange` callback to `EuiContextMenu` to provide consumer access to `panelId` and `direction`. ([#6767](https://github.com/elastic/eui/pull/6767)) **Bug fixes** - Fixed `EuiComboBox` so `append` and `prepend` icon buttons are full height and vertically centered. ([#6766](https://github.com/elastic/eui/pull/6766)) - Improved the uniformity of dropdown components by hiding the dropdown icon of disabled `EuiComboBox`s. ([#6768](https://github.com/elastic/eui/pull/6768)) **Breaking changes** - `EuiFieldNumber` now defaults the `step` prop to `"any"` ([#6760](https://github.com/elastic/eui/pull/6760)) - EUI now globally resets a default Chromium browser style that was decreasing the opacity of disabled `select` items. ([#6768](https://github.com/elastic/eui/pull/6768)) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- package.json | 2 +- .../__snapshots__/index.test.tsx.snap | 64 ------------------- src/dev/license_checker/config.ts | 2 +- .../set_view_control/decimal_degrees_form.tsx | 3 - .../services/ml/settings_calendar.ts | 4 +- yarn.lock | 8 +-- 6 files changed, 8 insertions(+), 75 deletions(-) diff --git a/package.json b/package.json index fd56c93863397..69502147c0881 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@elastic/datemath": "5.0.3", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.6.0-canary.3", "@elastic/ems-client": "8.4.0", - "@elastic/eui": "79.0.1", + "@elastic/eui": "80.0.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap index d70949aaf3641..daa0fc69771ef 100644 --- a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap @@ -251,24 +251,6 @@ Object { /> -
- -
@@ -316,24 +298,6 @@ Object { /> -
- -
@@ -629,20 +593,6 @@ Object { class="euiLoadingSpinner emotion-euiLoadingSpinner-m" role="progressbar" /> - @@ -699,20 +649,6 @@ Object { class="euiLoadingSpinner emotion-euiLoadingSpinner-m" role="progressbar" /> - diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index 5783cc934f8f8..fd7f3328d864f 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -85,6 +85,6 @@ 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.4.0': ['Elastic License 2.0'], - '@elastic/eui@79.0.1': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@80.0.0': ['SSPL-1.0 OR Elastic License 2.0'], 'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry }; diff --git a/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx b/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx index 16e03d4125b44..03b23e409b770 100644 --- a/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx +++ b/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx @@ -90,7 +90,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onLatChange} isInvalid={isLatInvalid} data-test-subj="latitudeInput" - step="any" // Browsers will validate decimals as invalid otherwise /> @@ -108,7 +107,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onLonChange} isInvalid={isLonInvalid} data-test-subj="longitudeInput" - step="any" // Browsers will validate decimals as invalid otherwise /> @@ -126,7 +124,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onZoomChange} isInvalid={isZoomInvalid} data-test-subj="zoomInput" - step="any" // Browsers will validate decimals as invalid otherwise /> diff --git a/x-pack/test/functional/services/ml/settings_calendar.ts b/x-pack/test/functional/services/ml/settings_calendar.ts index 617deeaa0634e..87ffcd2f41b83 100644 --- a/x-pack/test/functional/services/ml/settings_calendar.ts +++ b/x-pack/test/functional/services/ml/settings_calendar.ts @@ -147,7 +147,7 @@ export function MachineLearningSettingsCalendarProvider( async assertJobSelectionEnabled(expectedValue: boolean) { const isEnabled = await testSubjects.isEnabled( - 'mlCalendarJobSelection > comboBoxToggleListButton' + 'mlCalendarJobSelection > comboBoxSearchInput' ); expect(isEnabled).to.eql( expectedValue, @@ -159,7 +159,7 @@ export function MachineLearningSettingsCalendarProvider( async assertJobGroupSelectionEnabled(expectedValue: boolean) { const isEnabled = await testSubjects.isEnabled( - 'mlCalendarJobGroupSelection > comboBoxToggleListButton' + 'mlCalendarJobGroupSelection > comboBoxSearchInput' ); expect(isEnabled).to.eql( expectedValue, diff --git a/yarn.lock b/yarn.lock index c3343f134ff27..f56fab7e3b35f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1543,10 +1543,10 @@ resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314" integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ== -"@elastic/eui@79.0.1": - version "79.0.1" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-79.0.1.tgz#bb723c961f438df41f5b92292b59c204cd795558" - integrity sha512-xCB8a2DaiAIg1qsFgegmXT5niKhL6LKqhD0fCc1ut+BZDPq4XvqagwOdmYRvP9IpYDcS6sP+F89JVF0kaQsXXw== +"@elastic/eui@80.0.0": + version "80.0.0" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-80.0.0.tgz#33e1df8a3f193fb6a7a4f7e52a3028983856ba3a" + integrity sha512-0xWizIQ/kH9N2n9zOficqXPdRbVxCpHez2ZErnvISAEOneJ6401usI7fILGKrrvR+uyiYnNybfaP3H8HcgDa+g== dependencies: "@types/chroma-js" "^2.0.0" "@types/lodash" "^4.14.160"