Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to EUI v22.1.1 #62065

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"@elastic/charts": "^18.1.1",
"@elastic/datemath": "5.0.2",
"@elastic/ems-client": "7.7.1",
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ui-shared-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDependencies": {
"@elastic/charts": "^18.1.1",
"abortcontroller-polyfill": "^1.4.0",
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"@kbn/babel-preset": "1.0.0",
"@kbn/dev-utils": "1.0.0",
"@kbn/i18n": "1.0.0",
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 @@ -171,7 +171,7 @@ function DefaultEditorAggGroup({
agg={agg}
aggIndex={index}
aggIsTooLow={calcAggIsTooLow(agg, index, group, schemas)}
dragHandleProps={provided.dragHandleProps}
dragHandleProps={provided.dragHandleProps || null}
formIsTouched={aggsState[agg.id] ? aggsState[agg.id].touched : false}
groupName={groupName}
isDraggable={stats.count > 1}
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 @@ -27,6 +27,7 @@ import { SavedObjectsClientContract, SimpleSavedObject } from '../../../../../co
import { getTitle } from '../../index_patterns/lib';

export type IndexPatternSelectProps = Required<
// Omit<EuiComboBoxProps<any>, 'isLoading' | 'onSearchChange' | 'options' | 'selectedOptions' | 'append' | 'prepend' | 'sortMatchesBy'>,
Omit<EuiComboBoxProps<any>, 'isLoading' | 'onSearchChange' | 'options' | 'selectedOptions'>,
'onChange' | 'placeholder'
> & {
Expand Down

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 @@ -27,7 +27,7 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiKeyPadMenu,
EuiKeyPadMenuItemButton,
EuiKeyPadMenuItem,
EuiModalHeader,
EuiModalHeaderTitle,
EuiScreenReaderOnly,
Expand Down Expand Up @@ -262,7 +262,7 @@ class TypeSelection extends React.Component<TypeSelectionProps, TypeSelectionSta
};

return (
<EuiKeyPadMenuItemButton
<EuiKeyPadMenuItem
key={visType.name}
label={<span data-test-subj="visTypeTitle">{visType.title}</span>}
onClick={onClick}
Expand All @@ -282,7 +282,7 @@ class TypeSelection extends React.Component<TypeSelectionProps, TypeSelectionSta
icon={visType.icon}
image={!('aliasUrl' in visType) ? visType.image : undefined}
/>
</EuiKeyPadMenuItemButton>
</EuiKeyPadMenuItem>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"react": "^16.12.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"react": "^16.12.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "21.0.1",
"@elastic/eui": "22.1.1",
"react": "^16.12.0"
},
"scripts": {
Expand Down

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 @@ -48,7 +48,7 @@ const style: cytoscape.Stylesheet[] = [
? theme.euiColorPrimary
: theme.euiColorMediumShade,
'border-width': 2,
color: theme.textColors.default,
color: theme.textColors.text,
// theme.euiFontFamily doesn't work here for some reason, so we're just
// specifying a subset of the fonts for the label text.
'font-family': 'Inter UI, Segoe UI, Helvetica, Arial, sans-serif',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getSpanTypes(span: Span) {
const SpanBadge = styled(EuiBadge)`
display: inline-block;
margin-right: ${px(units.quarter)};
`;
` as any;

const HttpInfoContainer = styled('div')`
margin-right: ${px(units.quarter)};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { px, units } from '../../../../../../style/variables';
const SpanBadge = styled(EuiBadge)`
display: inline-block;
margin-right: ${px(units.quarter)};
`;
` as any;

interface SyncBadgeProps {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ interface Props {
count: number;
}

const Badge = styled(EuiBadge)`
const Badge = (styled(EuiBadge)`
margin-top: ${px(units.eighth)};
`;
` as any) as any;

export const ErrorCountSummaryItemBadge = ({ count }: Props) => (
<Badge color={euiThemeLight.euiColorDanger}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import styled from 'styled-components';
import { units, px, truncate, unit } from '../../../../style/variables';
import { HttpStatusBadge } from '../HttpStatusBadge';

const HttpInfoBadge = styled(EuiBadge)`
const HttpInfoBadge = (styled(EuiBadge)`
margin-right: ${px(units.quarter)};
`;
` as any) as any;

const Url = styled('span')`
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const TagBadge = (props: TagBadgeProps) => {
<EuiBadge
color={tag.color || 'primary'}
iconType={iconType}
onClick={onClick}
onClick={onClick as React.MouseEventHandler<HTMLButtonElement>}
onClickAriaLabel={onClickAriaLabel}
>
{idToRender}
Expand Down

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

Loading