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

[EuiIcon] Add vulnerabilityManagementApp #6762

Merged
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
1 change: 1 addition & 0 deletions src-docs/src/views/icon/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const iconTypes = [
'usersRolesApp',
'visualizeApp',
'watchesApp',
'vulnerabilityManagementApp',
'workplaceSearchApp',
];

Expand Down
22 changes: 22 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10951,6 +10951,28 @@ exports[`EuiIcon props type visualizeApp is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type vulnerabilityManagementApp is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-app-isLoaded"
data-icon-type="vulnerabilityManagementApp"
data-is-loaded="true"
height="32"
role="img"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
class="euiIcon__fillSecondary"
d="M5.394 6.192L11.05.536 16 5.486l4.95-4.95 5.657 5.656L16 16.8 5.394 6.192zm2.828 0L16 13.971l7.778-7.779-2.828-2.828L16 8.314l-4.95-4.95-2.828 2.828z"
/>
<path
d="M16 30.941L4.686 19.627A8.004 8.004 0 013.45 9.905a8.011 8.011 0 011.236-1.591L16 19.539 27.313 8.314l.045.045a8.003 8.003 0 01-.045 11.268L16 30.942zm0-2.828l9.899-9.9a6.002 6.002 0 001.169-6.838L16 22.357 4.932 11.375A6.003 6.003 0 006.1 18.213l9.9 9.9z"
/>
</svg>
`;

exports[`EuiIcon props type warning is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
37 changes: 37 additions & 0 deletions src/components/icon/assets/app_vulnerability_management.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js

import * as React from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
const EuiIconAppVulnerabilityManagement = ({
title,
titleId,
...props
}: React.SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
width={32}
height={32}
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
className="euiIcon__fillSecondary"
d="M5.394 6.192L11.05.536 16 5.486l4.95-4.95 5.657 5.656L16 16.8 5.394 6.192zm2.828 0L16 13.971l7.778-7.779-2.828-2.828L16 8.314l-4.95-4.95-2.828 2.828z"
/>
<path d="M16 30.941L4.686 19.627A8.004 8.004 0 013.45 9.905a8.011 8.011 0 011.236-1.591L16 19.539 27.313 8.314l.045.045a8.003 8.003 0 01-.045 11.268L16 30.942zm0-2.828l9.899-9.9a6.002 6.002 0 001.169-6.838L16 22.357 4.932 11.375A6.003 6.003 0 006.1 18.213l9.9 9.9z" />
</svg>
);
export const icon = EuiIconAppVulnerabilityManagement;
1 change: 1 addition & 0 deletions src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export const typeToPathMap = {
visVega: 'vis_vega',
visVisualBuilder: 'vis_visual_builder',
visualizeApp: 'app_visualize',
vulnerabilityManagementApp: 'app_vulnerability_management',
warning: 'warning',
alert: 'warning', // NOTE: This is an undocumented alias for `warning`, added for legacy compatability with Elastic Charts
watchesApp: 'app_watches',
Expand Down
4 changes: 4 additions & 0 deletions src/components/icon/svgs/app_vulnerability_management.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions upcoming_changelogs/6762.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added `vulnerabilityManagementApp` glyph to `EuiIcon`