Skip to content

Commit 1c42ee9

Browse files
tkajtochcee-chenkibanamachine
authored
Upgrade @elastic/eui to 85.0.1 (#162209)
## Summary `[email protected]` ⏩ `[email protected]` ## [`85.0.1`](https://github.com/elastic/eui/tree/v85.0.1) **Bug fixes** - Fixed `EuiFilterGroup`'s responsive styles ([#6983](elastic/eui#6983)) ## [`85.0.0`](https://github.com/elastic/eui/tree/v85.0.0) - Updated `EuiThemeProvider` to set an Emotion theme context that returns the values of `useEuiTheme()` ([#6913](elastic/eui#6913)) - Added `size` prop to `EuiStepsHorizontal`, defaulting to the previous size of `m` ([#6928](elastic/eui#6928)) - Added new `s` sizing to `EuiStepsHorizontal` ([#6928](elastic/eui#6928)) - Added `at` and `key` icon glyphs. ([#6934](elastic/eui#6934)) - Added a new `cloneElementWithCss` Emotion utility ([#6939](elastic/eui#6939)) - Updated `EuiPopover` to allow consumer control of all `focusTrapProps` ([#6955](elastic/eui#6955)) **Bug fixes** - Fixed `EuiDataGrid` height calculation bug when browser zoom levels are not 100% ([#6895](elastic/eui#6895)) - Fixed `EuiTab` not correctly passing selection color state to `prepend` and `append` children ([#6938](elastic/eui#6938)) - Fixed `EuiInputPopover` to allow consumer control of its focus trap via `focusTrapProps` ([#6955](elastic/eui#6955)) **Breaking changes** - `EuiProvider` will no longer render multiple or duplicate nested instances of itself. If a nested `EuiProvider` is detected, that instance will return early without further processing, and will warn if configured to do so via `setEuiDevProviderWarning`. For nested theming, use `EuiThemeProvider` instead. ([#6949](elastic/eui#6949)) - Removed `onTrapDeactivation` prop from `EuiPopover`. Use `focusTrapProps.onDeactivation` instead ([#6955](elastic/eui#6955)) **CSS-in-JS conversions** - Converted `EuiFilterGroup` and `EuiFilterButton` to Emotion; Removed styles attached to `.euiFilterGroup__popoverPanel` ([#6957](elastic/eui#6957)) --------- Co-authored-by: Cee Chen <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
1 parent 5f91306 commit 1c42ee9

File tree

21 files changed

+74
-48
lines changed

21 files changed

+74
-48
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"@elastic/datemath": "5.0.3",
9999
"@elastic/elasticsearch": "npm:@elastic/[email protected]",
100100
"@elastic/ems-client": "8.4.0",
101-
"@elastic/eui": "84.0.0",
101+
"@elastic/eui": "85.0.1",
102102
"@elastic/filesaver": "1.1.2",
103103
"@elastic/node-crypto": "1.2.1",
104104
"@elastic/numeral": "^2.5.1",

packages/content-management/table_list_view_table/src/components/table_sort_select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function TableSortSelect({ tableSort, hasUpdatedAtMetadata, onChange }: P
160160
closePopover={closePopover}
161161
panelPaddingSize="none"
162162
anchorPosition="downCenter"
163-
panelClassName="euiFilterGroup__popoverPanel"
163+
panelProps={{ css: { width: euiTheme.base * 18 } }}
164164
>
165165
<>
166166
<EuiText css={panelHeaderCSS}>{i18nText.headerSort}</EuiText>

packages/content-management/table_list_view_table/src/components/tag_filter_panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const TagFilterPanel: FC<Props> = ({
116116
closePopover={closePopover}
117117
panelPaddingSize="none"
118118
anchorPosition="downCenter"
119-
panelClassName="euiFilterGroup__popoverPanel"
119+
panelProps={{ css: { width: euiTheme.base * 18 } }}
120120
panelStyle={isInUse ? { transition: 'none' } : undefined}
121121
>
122122
<EuiPopoverTitle paddingSize="m" css={popoverTitleCSS}>

packages/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const popoverTitleStyle = css`
4747
padding: ${EQUAL_HEIGHT_OFFSET}px 0;
4848
`;
4949
const filterButtonStyle = css`
50-
.euiFilterButton__textShift {
50+
&,
51+
& .euiFilterButton__textShift {
5152
min-width: 0;
5253
line-height: 1;
5354
}
@@ -105,7 +106,12 @@ export function FieldTypeFilter<T extends FieldListItem = DataViewField>({
105106
const itemStyle = useMemo(
106107
() => css`
107108
font-size: ${euiTheme.size.m};
108-
padding: ${euiTheme.size.s} ${euiTheme.size.m};
109+
110+
// Specificity needed to override Sass styles
111+
// EUI TODO: Remove this selector once EuiContextMenu has been converted to Emotion
112+
&.euiContextMenuItem {
113+
padding: ${euiTheme.size.s} ${euiTheme.size.m};
114+
}
109115
110116
& + & {
111117
border-top: 1px solid ${euiTheme.colors.lightestShade};
@@ -149,7 +155,7 @@ export function FieldTypeFilter<T extends FieldListItem = DataViewField>({
149155
return (
150156
<EuiPopover
151157
id="unifiedFieldTypeFilter"
152-
panelClassName="euiFilterGroup__popoverPanel"
158+
panelProps={{ css: { width: euiTheme.base * 18 } }}
153159
panelPaddingSize="none"
154160
anchorPosition="rightUp"
155161
display="block"

src/dev/license_checker/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const LICENSE_OVERRIDES = {
8585
'[email protected]': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
8686
'@mapbox/[email protected]': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
8787
'@elastic/[email protected]': ['Elastic License 2.0'],
88-
'@elastic/eui@84.0.0': ['SSPL-1.0 OR Elastic License 2.0'],
88+
'@elastic/eui@85.0.1': ['SSPL-1.0 OR Elastic License 2.0'],
8989
'[email protected]': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
9090
'[email protected]': ['MIT'], // license in importing module https://www.npmjs.com/package/binary
9191
};

src/plugins/presentation_util/public/components/field_picker/field_type_filter.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.presFilterByType__panel {
2+
width: $euiSize * 18;
23
min-width: $euiSizeXXL * 8;
34
@include euiBreakpoint('l', 'xl') {
45
width: $euiFormMaxWidth;

src/plugins/presentation_util/public/components/field_picker/field_type_filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function FieldTypeFilter({
6666
<EuiOutsideClickDetector onOutsideClick={() => {}} isDisabled={!isPopoverOpen}>
6767
<EuiFilterGroup fullWidth>
6868
<EuiPopover
69-
panelClassName="euiFilterGroup__popoverPanel presFilterByType__panel"
69+
panelClassName="presFilterByType__panel"
7070
panelPaddingSize="none"
7171
display="block"
7272
isOpen={isPopoverOpen}

src/plugins/saved_objects_finder/public/finder/saved_object_finder.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ describe('SavedObjectsFinder', () => {
679679
wrapper.instance().componentDidMount!();
680680
await nextTick();
681681
expect(wrapper.find('button.euiFilterButton')).toHaveLength(2);
682-
expect(wrapper.find('button.euiFilterButton [data-text="Types"]')).toHaveLength(1);
683-
expect(wrapper.find('button.euiFilterButton [data-text="Tags"]')).toHaveLength(1);
682+
expect(wrapper.find('button.euiFilterButton span[data-text="Types"]')).toHaveLength(1);
683+
expect(wrapper.find('button.euiFilterButton span[data-text="Tags"]')).toHaveLength(1);
684684
});
685685

686686
it('should not render filter buttons if disabled', async () => {

x-pack/plugins/cases/public/components/user_actions_activity_bar/filter_activity.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const MyEuiFilterGroup = styled(EuiFilterGroup)`
2727
`;
2828

2929
const FilterAllButton = styled(EuiFilterButton)`
30+
&,
3031
& .euiFilterButton__textShift {
3132
min-width: 28px;
3233
}

x-pack/plugins/security_solution/public/common/components/ml_popover/jobs_table/filters/groups_filter_popover.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('GroupsFilterPopover', () => {
3838
/>
3939
);
4040

41-
wrapper.find('[data-test-subj="groups-filter-popover-button"]').first().simulate('click');
41+
wrapper.find('button[data-test-subj="groups-filter-popover-button"]').first().simulate('click');
4242
wrapper.update();
4343

4444
wrapper.find('EuiFilterSelectItem').first().simulate('click');

0 commit comments

Comments
 (0)