Skip to content

Commit

Permalink
Upgrade EUI to v95.7.0 (#190346)
Browse files Browse the repository at this point in the history
`v95.6.0` ⏩ `v95.7.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)_

---

## [`v95.7.0`](https://github.com/elastic/eui/releases/v95.7.0)

**CSS-in-JS conversions**

- Converted `EuiSelectable` to Emotion
([#7940](elastic/eui#7940))
  - Removed `$euiSelectableListItemBorder`
  - Removed `$euiSelectableListItemPadding`
- Converted `EuiSelectableTemplateSitewide` to Emotion
([#7944](elastic/eui#7944))
  - Removed `$euiSelectableTemplateFocusBackgroundLight`
  - Removed `$euiSelectableTemplateFocusBackgroundDark`
  - Removed `$euiSelectableTemplateSitewideTypes`
- Converted `EuiComboBox` to Emotion
([#7950](elastic/eui#7950))
  • Loading branch information
cee-chen committed Aug 14, 2024
1 parent 1144c0c commit 761f5e7
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 58 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"@elastic/ecs": "^8.11.1",
"@elastic/elasticsearch": "^8.14.0",
"@elastic/ems-client": "8.5.3",
"@elastic/eui": "95.6.0",
"@elastic/eui": "95.7.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
Expand Down

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

2 changes: 1 addition & 1 deletion src/dev/license_checker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ 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.5.3': ['Elastic License 2.0'],
'@elastic/eui@95.6.0': ['SSPL-1.0 OR Elastic License 2.0'],
'@elastic/eui@95.7.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
'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
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,25 @@ const EditTagsSelectableComponent: React.FC<Props> = ({
const [searchValue, setSearchValue] = useState<string>('');
const { euiTheme } = useEuiTheme();

const renderOption = useCallback((option: ItemSelectableOption, search: string) => {
const dataTestSubj = option.newItem
? 'cases-actions-tags-edit-selectable-add-new-tag-icon'
: `cases-actions-tags-edit-selectable-tag-${option.label}-icon-${option.itemIcon}`;

return (
<>
<EuiIcon
type={option.itemIcon}
data-test-subj={dataTestSubj}
className="euiSelectableListItem__icon euiSelectableListItem__prepend"
/>
<EuiHighlight search={search}>{option.label}</EuiHighlight>
</>
);
}, []);
const renderOption = useCallback(
(option: ItemSelectableOption, search: string) => {
const dataTestSubj = option.newItem
? 'cases-actions-tags-edit-selectable-add-new-tag-icon'
: `cases-actions-tags-edit-selectable-tag-${option.label}-icon-${option.itemIcon}`;

return (
<>
<EuiIcon
type={option.itemIcon}
data-test-subj={dataTestSubj}
css={{ flexShrink: 0, marginRight: euiTheme.size.m }}
/>
<EuiHighlight search={search}>{option.label}</EuiHighlight>
</>
);
},
[euiTheme]
);

/**
* While the user searches we need to add the ability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ describe('Test pipeline', () => {
// Click the "Configuration" tab
await actions.clickProcessorConfigurationTab();
// Verify type selector has not changed
expect(find('processorTypeSelector.input').find('[role="combobox"]').props().value).toBe(
'Set'
);
expect(
find('processorTypeSelector.input').find('input[role="combobox"]').props().value
).toBe('Set');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export const ProcessEventDot = styled(UnstyledProcessEventDot)`
width: fit-content;
}
& .euiSelectableList-bordered {
& .euiSelectableList {
border-top-right-radius: 0px;
border-top-left-radius: 0px;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1767,10 +1767,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@95.6.0":
version "95.6.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-95.6.0.tgz#432845333bd0d64aa816222d192db4715cc75987"
integrity sha512-OnErgFixCcYcDpH3iu1fIG5FxoJ+mmHtKOVI/aqeC0beEeJJSZd8uqcLh4iJf9tfCEb+ApykTIuRGi6XTcpvjw==
"@elastic/eui@95.7.0":
version "95.7.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-95.7.0.tgz#50edc43d3aac1a1ea87ec56a04ec0bc91e7e32a1"
integrity sha512-T6tihdAtE3JhXaTMHagidXWB5Sv6c++5vHdPj7kyYGjT1fDPpJ/fuTZTfH2GJLc56g63zBdDNMkLnXZYb0ld4Q==
dependencies:
"@hello-pangea/dnd" "^16.6.0"
"@types/lodash" "^4.14.202"
Expand Down

0 comments on commit 761f5e7

Please sign in to comment.