[Security Solution] [EUI Refresh] [Explore page] Migrate styled-components (#207318)

## Summary
Addresses [#206437](https://github.com/elastic/kibana/issues/206437)
This PR migrates `explore page` from `styled-components` to
`@emotion/styled`.
In the process I also convert the kbn/ui-theme json tokens to euiTheme
counterparts.



https://github.com/user-attachments/assets/f1702c0d-78f7-4e17-a8d6-c7c9ae19d3b7



### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Agustina Nahir Ruidiaz 2025-01-30 13:24:05 +01:00 committed by GitHub
parent ce1904533d
commit 1e63b5ae99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 1221 additions and 274 deletions

View file

@ -357,26 +357,6 @@ module.exports = {
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]exceptions[\/\\]pages[\/\\]shared_lists[\/\\]index.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]components[\/\\]paginated_table[\/\\]index.test.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]components[\/\\]paginated_table[\/\\]index.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]components[\/\\]stat_items[\/\\]utils.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]hosts[\/\\]pages[\/\\]display.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]hosts[\/\\]pages[\/\\]hosts.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]arrows[\/\\]index.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]embeddables[\/\\]embeddable.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]embeddables[\/\\]embedded_map.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]embeddables[\/\\]map_tool_tip[\/\\]line_tool_tip_content.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]embeddables[\/\\]map_tool_tip[\/\\]tooltip_footer.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]flow_target_select_connected[\/\\]index.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]country_flag.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]geo_fields.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]index.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]ip_with_port.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]label.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]network.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]components[\/\\]source_destination[\/\\]source_destination_arrows.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]pages[\/\\]navigation[\/\\]conditional_flex_group.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]pages[\/\\]navigation[\/\\]network_routes_loading.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]network[\/\\]pages[\/\\]network.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]explore[\/\\]users[\/\\]pages[\/\\]users.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]flyout[\/\\]document_details[\/\\]left[\/\\]components[\/\\]investigation_guide_view.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]flyout[\/\\]document_details[\/\\]left[\/\\]components[\/\\]response_details.tsx/,
/x-pack[\/\\]solutions[\/\\]security[\/\\]plugins[\/\\]security_solution[\/\\]public[\/\\]flyout[\/\\]document_details[\/\\]left[\/\\]components[\/\\]threat_details_view_enrichment_button_content.tsx/,

View file

@ -0,0 +1,14 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import '@emotion/react';
import type { UseEuiTheme } from '@elastic/eui';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends UseEuiTheme {}
}

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import styled from 'styled-components';
import styled from '@emotion/styled';
import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui';

View file

@ -5,10 +5,10 @@
* 2.0.
*/
import styled from 'styled-components';
import styled from '@emotion/styled';
export const Display = styled.div<{ show: boolean }>`
${({ show }) => (show ? '' : 'display: none;')};
`;
export const Display = styled.div<{ show: boolean }>(({ show }) => ({
display: show ? undefined : 'none',
}));
Display.displayName = 'Display';

View file

@ -6,7 +6,7 @@
*/
import { EuiSpacer, EuiWindowEvent } from '@elastic/eui';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { noop } from 'lodash/fp';
import React, { useCallback, useMemo, useRef } from 'react';
import { useParams } from 'react-router-dom';

View file

@ -7,11 +7,11 @@
import { EuiIcon } from '@elastic/eui';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
/** Renders the body (non-pointy part) of an arrow */
export const ArrowBody = styled.span<{ height: number }>`
background-color: ${(props) => props.theme.eui.euiColorLightShade};
background-color: ${(props) => props.theme.euiTheme.colors.lightShade};
height: ${({ height }) => `${height}px`};
width: 25px;
`;

View file

@ -8,7 +8,7 @@
import { EuiPanel } from '@elastic/eui';
import type { PropsWithChildren } from 'react';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
const Panel = styled(EuiPanel)`
overflow: hidden;

View file

@ -11,7 +11,8 @@ import { EuiAccordion, EuiLink, EuiText } from '@elastic/eui';
import React, { useCallback, useEffect, useState, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { createHtmlPortalNode, InPortal, OutPortal } from 'react-reverse-portal';
import styled, { css } from 'styled-components';
import styled from '@emotion/styled';
import { css } from '@emotion/react';
import type { Filter, Query } from '@kbn/es-query';
import { isEqual } from 'lodash/fp';
import type { MapApi, RenderTooltipContentParams } from '@kbn/maps-plugin/public';
@ -37,23 +38,19 @@ interface EmbeddableMapProps {
maintainRatio?: boolean;
}
const EmbeddableMapRatioHolder = styled.div.attrs(() => ({
className: 'siemEmbeddable__map',
}))<EmbeddableMapProps>`
const EmbeddableMapRatioHolder = styled.div<EmbeddableMapProps>`
.mapToolbarOverlay__button {
display: none;
}
${({ maintainRatio }) =>
${({ maintainRatio, theme: { euiTheme } }) =>
maintainRatio &&
css`
padding-top: calc(3 / 4 * 100%); /* 4:3 (standard) ratio */
position: relative;
@media only screen and (min-width: ${({ theme }) => theme.eui.euiBreakpoints.m}) {
@media only screen and (min-width: ${euiTheme.breakpoint.m}) {
padding-top: calc(9 / 32 * 100%); /* 32:9 (ultra widescreen) ratio */
}
@media only screen and (min-width: 1441px) and (min-height: 901px) {
padding-top: calc(9 / 21 * 100%); /* 21:9 (ultrawide) ratio */
}
@ -188,7 +185,7 @@ export const EmbeddedMapComponent = ({
<MapToolTip />
</InPortal>
<EmbeddableMapWrapper>
<EmbeddableMapRatioHolder maintainRatio={!isIndexError} />
<EmbeddableMapRatioHolder className="siemEmbeddable__map" maintainRatio={!isIndexError} />
{isIndexError ? (
<IndexPatternsMissingPrompt data-test-subj="missing-prompt" />
) : (

View file

@ -7,7 +7,7 @@
import React from 'react';
import { EuiBadge, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import styled from 'styled-components';
import styled from '@emotion/styled';
import type { ITooltipProperty } from '@kbn/maps-plugin/public/classes/tooltips/tooltip_property';
import { SourceDestinationArrows } from '../../source_destination/source_destination_arrows';
import {

View file

@ -15,7 +15,7 @@ import {
EuiText,
} from '@elastic/eui';
import { euiLightVars as theme } from '@kbn/ui-theme';
import styled from 'styled-components';
import styled from '@emotion/styled';
import * as i18n from '../translations';
export const Icon = styled(EuiIcon)`

View file

@ -9,7 +9,7 @@ import type { Location } from 'history';
import { EuiFlexItem } from '@elastic/eui';
import React, { useCallback } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import styled from 'styled-components';
import styled from '@emotion/styled';
import * as i18nIp from '../details/translations';

View file

@ -10,7 +10,7 @@ import { isEmpty } from 'lodash/fp';
import { EuiToolTip } from '@elastic/eui';
import countries from 'i18n-iso-countries';
import countryJson from 'i18n-iso-countries/langs/en.json';
import styled from 'styled-components';
import styled from '@emotion/styled';
// Fixes vertical alignment of the flag
const FlagWrapper = styled.span`

View file

@ -8,7 +8,7 @@
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { get, uniq } from 'lodash/fp';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { DefaultDraggable } from '../../../../common/components/draggables';

View file

@ -7,7 +7,7 @@
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { Network } from './network';
import { SourceDestinationWithArrows } from './source_destination_with_arrows';

View file

@ -7,7 +7,7 @@
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { Ip } from '../ip';
import { Port } from '../port';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import styled from 'styled-components';
import styled from '@emotion/styled';
export const Label = styled.div`
font-weight: bold;

View file

@ -8,7 +8,7 @@
import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import { uniq } from 'lodash/fp';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { DirectionBadge } from '../direction';
import { DefaultDraggable, DraggableBadge } from '../../../../common/components/draggables';

View file

@ -8,7 +8,7 @@
import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import numeral from '@elastic/numeral';
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { ArrowBody, ArrowHead } from '../arrows';
import {

View file

@ -6,7 +6,7 @@
*/
import { EuiFlexGroup } from '@elastic/eui';
import styled from 'styled-components';
import styled from '@emotion/styled';
export const ConditionalFlexGroup = styled(EuiFlexGroup)`
@media only screen and (min-width: 1441px) {

View file

@ -6,7 +6,7 @@
*/
import React from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { EuiFlexItem, EuiLoadingSpinner, EuiFlexGroup } from '@elastic/eui';

View file

@ -9,7 +9,7 @@ import { EuiPanel, EuiSpacer, EuiWindowEvent } from '@elastic/eui';
import { noop } from 'lodash/fp';
import React, { useCallback, useMemo, useRef } from 'react';
import { useParams } from 'react-router-dom';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { isTab } from '@kbn/timelines-plugin/public';
import { getEsQueryConfig } from '@kbn/data-plugin/common';

View file

@ -6,7 +6,7 @@
*/
import { EuiSpacer, EuiWindowEvent } from '@elastic/eui';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { noop } from 'lodash/fp';
import React, { useCallback, useMemo, useRef } from 'react';
import { useParams } from 'react-router-dom';

View file

@ -2,8 +2,8 @@
exports[`Netflow renders correctly against snapshot 1`] = `
<DocumentFragment>
.c11,
.c11 * {
.c7,
.c7 * {
display: inline-block;
max-width: 100%;
overflow: hidden;
@ -106,75 +106,17 @@ tr:hover .c3:focus::before {
vertical-align: top;
}
.c13 svg {
.c8 svg {
position: relative;
top: -1px;
}
.c22 {
margin-right: 5px;
}
.c21 {
margin-right: 5px;
}
.c15 {
position: relative;
top: 1px;
}
.c14 {
margin-right: 5px;
}
.c17 {
background-color: #343741;
height: 2.8px;
width: 25px;
}
.c20 {
background-color: #343741;
height: 2.2px;
width: 25px;
}
.c19 {
margin-right: 5px;
}
.c16 {
margin: 0 2px;
}
.c16 .euiToolTipAnchor {
white-space: nowrap;
}
.c18 {
margin: 0 5px;
}
.c7 {
margin-right: 3px;
}
.c8 {
margin: 0 5px;
}
.c12 {
margin: 0 3px;
}
.c10 {
font-weight: bold;
margin-top: 2px;
margin-right: 5px;
}
.c9 {
margin-top: 3px;
margin-right: 5px;
}
.c6 {
@ -537,7 +479,7 @@ tr:hover .c3:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-center-center-row"
>
<div
class="euiFlexItem c7 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c1"
@ -599,7 +541,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c7 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c1"
@ -656,7 +598,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c7 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c1"
@ -692,7 +634,7 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c8 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
100B
@ -706,7 +648,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c7 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c1"
@ -742,7 +684,7 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c8 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
3 pkts
@ -756,7 +698,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c7 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c1"
@ -872,7 +814,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-center-stretch-row"
@ -899,7 +841,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c10"
class="css-fbtzpm"
>
Source
</div>
@ -954,7 +896,7 @@ tr:hover .c3:focus::before {
tabindex="-1"
>
<span
class="c11"
class="c7"
data-test-subj="draggable-truncatable-content"
>
<span
@ -989,7 +931,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c12"
class="css-7g9jn5"
data-test-subj="ip-port-separator"
>
:
@ -999,7 +941,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c13"
class="c8"
>
<a
class="euiLink emotion-euiLink-primary"
@ -1035,7 +977,7 @@ tr:hover .c3:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1087,7 +1029,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1139,7 +1081,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1148,7 +1090,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c15"
class="css-19nn5cj"
data-test-subj="country-flag"
>
🇺🇸
@ -1201,7 +1143,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1253,7 +1195,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1312,7 +1254,7 @@ tr:hover .c3:focus::before {
</span>
</div>
<div
class="euiFlexGroup c16 emotion-euiFlexGroup-none-center-center-column"
class="euiFlexGroup emotion-euiFlexGroup-none-center-center-column"
>
<div
class="euiFlexItem emotion-euiFlexItem-growZero"
@ -1324,7 +1266,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c17"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1365,10 +1307,10 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c18 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span
class="c19"
class="css-2dse8b"
>
(60.00%)
</span>
@ -1387,7 +1329,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c17"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1428,7 +1370,7 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c18 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
2 pkts
@ -1445,7 +1387,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c17"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1479,7 +1421,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c20"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1528,10 +1470,10 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c18 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span
class="c19"
class="css-2dse8b"
>
(40.00%)
</span>
@ -1554,7 +1496,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c20"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1595,7 +1537,7 @@ tr:hover .c3:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c18 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
1 pkts
@ -1612,7 +1554,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c20"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1641,7 +1583,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c10"
class="css-fbtzpm"
>
Destination
</div>
@ -1696,7 +1638,7 @@ tr:hover .c3:focus::before {
tabindex="-1"
>
<span
class="c11"
class="c7"
data-test-subj="draggable-truncatable-content"
>
<span
@ -1731,7 +1673,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c12"
class="css-7g9jn5"
data-test-subj="ip-port-separator"
>
:
@ -1741,7 +1683,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c13"
class="c8"
>
<a
class="euiLink emotion-euiLink-primary"
@ -1777,7 +1719,7 @@ tr:hover .c3:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1829,7 +1771,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1881,7 +1823,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1890,7 +1832,7 @@ tr:hover .c3:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c15"
class="css-19nn5cj"
data-test-subj="country-flag"
>
🇺🇸
@ -1943,7 +1885,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1995,7 +1937,7 @@ tr:hover .c3:focus::before {
</div>
</div>
<div
class="euiFlexItem c14 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2118,7 +2060,7 @@ tr:hover .c3:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c21"
class="c9"
>
ja3
</span>
@ -2203,7 +2145,7 @@ tr:hover .c3:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c22"
class="c10"
>
client cert
</span>
@ -2288,7 +2230,7 @@ tr:hover .c3:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c22"
class="c10"
>
server cert
</span>

View file

@ -16,8 +16,8 @@ exports[`netflowRowRenderer renders correctly against snapshot 1`] = `
border-radius: 4px;
}
.c13,
.c13 * {
.c9,
.c9 * {
display: inline-block;
max-width: 100%;
overflow: hidden;
@ -120,75 +120,17 @@ tr:hover .c5:focus::before {
vertical-align: top;
}
.c15 svg {
.c10 svg {
position: relative;
top: -1px;
}
.c24 {
margin-right: 5px;
}
.c23 {
margin-right: 5px;
}
.c9 {
margin-right: 3px;
}
.c10 {
margin: 0 5px;
}
.c19 {
background-color: #343741;
height: 2.8px;
width: 25px;
}
.c22 {
background-color: #343741;
height: 2.2px;
width: 25px;
}
.c21 {
margin-right: 5px;
}
.c18 {
margin: 0 2px;
}
.c18 .euiToolTipAnchor {
white-space: nowrap;
}
.c20 {
margin: 0 5px;
}
.c17 {
position: relative;
top: 1px;
}
.c16 {
margin-right: 5px;
}
.c14 {
margin: 0 3px;
}
.c12 {
font-weight: bold;
margin-top: 2px;
margin-right: 5px;
}
.c11 {
margin-top: 3px;
margin-right: 5px;
}
.c8 {
@ -611,7 +553,7 @@ tr:hover .c5:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-center-center-row"
>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c3"
@ -683,7 +625,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c3"
@ -750,7 +692,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c3"
@ -791,7 +733,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c10 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
100B
@ -810,7 +752,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c3"
@ -851,7 +793,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c10 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
3 pkts
@ -870,7 +812,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c9 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c3"
@ -1006,7 +948,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c11 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-center-stretch-row"
@ -1033,7 +975,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c12"
class="css-fbtzpm"
>
Source
</div>
@ -1093,7 +1035,7 @@ tr:hover .c5:focus::before {
source.ip
</p>
<span
class="c13"
class="c9"
data-test-subj="draggable-truncatable-content"
>
<span
@ -1133,7 +1075,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c14"
class="css-7g9jn5"
data-test-subj="ip-port-separator"
>
:
@ -1189,7 +1131,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="c15"
class="c10"
>
<a
class="euiLink emotion-euiLink-primary"
@ -1240,7 +1182,7 @@ tr:hover .c5:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1302,7 +1244,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1364,7 +1306,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1373,7 +1315,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c17"
class="css-19nn5cj"
data-test-subj="country-flag"
>
🇺🇸
@ -1436,7 +1378,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1498,7 +1440,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -1567,7 +1509,7 @@ tr:hover .c5:focus::before {
</span>
</div>
<div
class="euiFlexGroup c18 emotion-euiFlexGroup-none-center-center-column"
class="euiFlexGroup emotion-euiFlexGroup-none-center-center-column"
>
<div
class="euiFlexItem emotion-euiFlexItem-growZero"
@ -1579,7 +1521,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c19"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1625,10 +1567,10 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c20 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span
class="c21"
class="css-2dse8b"
>
(60.00%)
</span>
@ -1652,7 +1594,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c19"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1698,7 +1640,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c20 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
2 pkts
@ -1720,7 +1662,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c19"
class="css-1io4upz"
height="2.8"
/>
</div>
@ -1754,7 +1696,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c22"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1808,10 +1750,10 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c20 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span
class="c21"
class="css-2dse8b"
>
(40.00%)
</span>
@ -1839,7 +1781,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c22"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1885,7 +1827,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="euiText c20 emotion-euiText-xs"
class="euiText emotion-euiText-xs"
>
<span>
1 pkts
@ -1907,7 +1849,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c22"
class="css-1almmfe"
height="2.2"
/>
</div>
@ -1936,7 +1878,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="c12"
class="css-fbtzpm"
>
Destination
</div>
@ -1996,7 +1938,7 @@ tr:hover .c5:focus::before {
destination.ip
</p>
<span
class="c13"
class="c9"
data-test-subj="draggable-truncatable-content"
>
<span
@ -2036,7 +1978,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c14"
class="css-7g9jn5"
data-test-subj="ip-port-separator"
>
:
@ -2092,7 +2034,7 @@ tr:hover .c5:focus::before {
class="euiToolTipAnchor emotion-euiToolTipAnchor-inlineBlock"
>
<div
class="c15"
class="c10"
>
<a
class="euiLink emotion-euiLink-primary"
@ -2143,7 +2085,7 @@ tr:hover .c5:focus::before {
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2205,7 +2147,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2267,7 +2209,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2276,7 +2218,7 @@ tr:hover .c5:focus::before {
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<span
class="c17"
class="css-19nn5cj"
data-test-subj="country-flag"
>
🇺🇸
@ -2339,7 +2281,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2401,7 +2343,7 @@ tr:hover .c5:focus::before {
</div>
</div>
<div
class="euiFlexItem c16 emotion-euiFlexItem-growZero"
class="euiFlexItem emotion-euiFlexItem-growZero"
>
<div
class="euiFlexGroup emotion-euiFlexGroup-responsive-none-flexStart-center-row"
@ -2539,7 +2481,7 @@ tr:hover .c5:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c23"
class="c11"
>
ja3
</span>
@ -2634,7 +2576,7 @@ tr:hover .c5:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c24"
class="c12"
>
client cert
</span>
@ -2729,7 +2671,7 @@ tr:hover .c5:focus::before {
class="euiBadge__text emotion-euiBadge__text"
>
<span
class="c24"
class="c12"
>
server cert
</span>

View file

@ -13,7 +13,8 @@
"server/**/*.json",
"scripts/**/*.json",
"public/**/*.json",
"../../../../../typings/**/*"
"../../../../../typings/**/*",
"emotion.d.ts"
],
"exclude": ["target/**/*", "**/cypress/**", "public/management/cypress.config.ts"],
"kbn_references": [