Skip to content

Commit bb83547

Browse files
committed
[Icon] Adding the crossProjectSearch icon to EUI
1 parent b2b1299 commit bb83547

6 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added `crossProjectSearch` icon

packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,6 +2163,25 @@ exports[`EuiIcon props type crossInCircle is rendered 1`] = `
21632163
</svg>
21642164
`;
21652165

2166+
exports[`EuiIcon props type crossProjectSearch is rendered 1`] = `
2167+
<svg
2168+
class="euiIcon emotion-euiIcon-m-isLoaded"
2169+
data-icon-type="crossProjectSearch"
2170+
data-is-loaded="true"
2171+
height="16"
2172+
role="presentation"
2173+
viewBox="0 0 16 16"
2174+
width="16"
2175+
xmlns="http://www.w3.org/2000/svg"
2176+
>
2177+
<path
2178+
clip-rule="evenodd"
2179+
d="M8.5 9h4a1 1 0 0 1 1 1v2.065A1.999 1.999 0 1 1 11 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 6 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 1 14a2 2 0 0 1 1.5-1.935V10a1 1 0 0 1 1-1h4V7h1v2ZM3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 0a3 3 0 0 1 3 3c0 .648-.208 1.246-.557 1.736l1.91 1.91-.707.708-1.91-1.91A3 3 0 1 1 7 0Zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"
2180+
fill-rule="evenodd"
2181+
/>
2182+
</svg>
2183+
`;
2184+
21662185
exports[`EuiIcon props type crosshairs is rendered 1`] = `
21672186
<svg
21682187
class="euiIcon emotion-euiIcon-m-isLoaded"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
9+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
10+
11+
import * as React from 'react';
12+
import type { SVGProps } from 'react';
13+
interface SVGRProps {
14+
title?: string;
15+
titleId?: string;
16+
}
17+
const EuiIconCrossProjectSearch = ({
18+
title,
19+
titleId,
20+
...props
21+
}: SVGProps<SVGSVGElement> & SVGRProps) => (
22+
<svg
23+
xmlns="http://www.w3.org/2000/svg"
24+
width={16}
25+
height={16}
26+
viewBox="0 0 16 16"
27+
aria-labelledby={titleId}
28+
{...props}
29+
>
30+
{title ? <title id={titleId}>{title}</title> : null}
31+
<path fillRule="evenodd" d="M8.5 9h4a1 1 0 0 1 1 1v2.065A1.999 1.999 0 1 1 11 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 6 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 1 14a2 2 0 0 1 1.5-1.935V10a1 1 0 0 1 1-1h4V7h1v2ZM3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 0a3 3 0 0 1 3 3c0 .648-.208 1.246-.557 1.736l1.91 1.91-.707.708-1.91-1.91A3 3 0 1 1 7 0Zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" clipRule="evenodd" />
32+
</svg>
33+
);
34+
export const icon = EuiIconCrossProjectSearch;

packages/eui/src/components/icon/icon_map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const typeToPathMap = {
8181
controlsVertical: 'controls', // NOTE: To be deprecated in favor of `controls`
8282
copy: 'copy',
8383
copyClipboard: 'copy', // NOTE: To be deprecated in favor of `copy`
84+
crossProjectSearch: 'cross_project_search',
8485
createAdvancedJob: 'ml_create_advanced_job',
8586
createGenericJob: 'ml_create_generic_job',
8687
createGeoJob: 'ml_create_geo_job',
Lines changed: 3 additions & 0 deletions
Loading

packages/website/docs/components/display/icons/icon_types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const iconTypes: Array<IconType> = [
5858
'contrastHigh',
5959
'controls',
6060
'copy',
61+
'crossProjectSearch',
6162
'cross',
6263
'crossInCircle',
6364
'crosshairs',

0 commit comments

Comments
 (0)