Skip to content

Commit d6dc01f

Browse files
committed
add section icon
1 parent a28fd7f commit d6dc01f

7 files changed

Lines changed: 56 additions & 4 deletions

File tree

packages/eui/src-docs/src/views/icon/icons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ export const iconTypes = [
234234
'save',
235235
'scale',
236236
'search',
237+
'section',
237238
'securitySignal',
238239
'securitySignalDetected',
239240
'securitySignalResolved',

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,9 +1961,7 @@ exports[`EuiIcon props type createGeoJob is rendered 1`] = `
19611961
/>
19621962
<path
19631963
class="euiIcon__fillSecondary"
1964-
clip-rule="evenodd"
19651964
d="M23 15h-6V9h-2v6H9v2h6v6h2v-6h6v-2Zm-1 9.196C22 27.329 25.427 32 27 32s5-4.67 5-7.804V24a5 5 0 1 0-10 .096v.1ZM27 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
1966-
fill-rule="evenodd"
19671965
/>
19681966
</svg>
19691967
`;
@@ -9048,6 +9046,24 @@ exports[`EuiIcon props type searchProfilerApp is rendered 1`] = `
90489046
</svg>
90499047
`;
90509048

9049+
exports[`EuiIcon props type section is rendered 1`] = `
9050+
<svg
9051+
aria-hidden="true"
9052+
class="euiIcon emotion-euiIcon-m-isLoaded"
9053+
data-icon-type="section"
9054+
data-is-loaded="true"
9055+
height="16"
9056+
role="img"
9057+
viewBox="0 0 16 16"
9058+
width="16"
9059+
xmlns="http://www.w3.org/2000/svg"
9060+
>
9061+
<path
9062+
d="M1.5 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm1.5.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5ZM1.5 4a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5H7a.5.5 0 0 0 .5-.5v-4A.5.5 0 0 0 7 4H1.5Zm7 .5A.5.5 0 0 1 9 4h5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5v-4Zm-7 5.5a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5h-13Z"
9063+
/>
9064+
</svg>
9065+
`;
9066+
90519067
exports[`EuiIcon props type securityAnalyticsApp is rendered 1`] = `
90529068
<svg
90539069
aria-hidden="true"

packages/eui/src/components/icon/assets/ml_create_geo_job.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ const EuiIconMlCreateGeoJob = ({
3030
{title ? <title id={titleId}>{title}</title> : null}
3131
<path d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16h-2c0-7.732-6.268-14-14-14S2 8.268 2 16s6.268 14 14 14v2Z" />
3232
<path
33-
clipRule="evenodd"
34-
fillRule="evenodd"
3533
d="M23 15h-6V9h-2v6H9v2h6v6h2v-6h6v-2Zm-1 9.196C22 27.329 25.427 32 27 32s5-4.67 5-7.804V24a5 5 0 1 0-10 .096v.1ZM27 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
3634
className="euiIcon__fillSecondary"
3735
/>
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 EuiIconSection = ({
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 d="M1.5 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm1.5.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5ZM1.5 4a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5H7a.5.5 0 0 0 .5-.5v-4A.5.5 0 0 0 7 4H1.5Zm7 .5A.5.5 0 0 1 9 4h5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5v-4Zm-7 5.5a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5h-13Z" />
32+
</svg>
33+
);
34+
export const icon = EuiIconSection;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export const typeToPathMap = {
365365
scale: 'scale',
366366
search: 'search',
367367
searchProfilerApp: 'app_search_profiler',
368+
section: 'section',
368369
securityAnalyticsApp: 'app_security_analytics',
369370
securityApp: 'app_security',
370371
securitySignal: 'securitySignal',
Lines changed: 1 addition & 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
@@ -224,6 +224,7 @@ export const iconTypes: Array<IconType> = [
224224
'save',
225225
'scale',
226226
'search',
227+
'section',
227228
'securitySignal',
228229
'securitySignalDetected',
229230
'securitySignalResolved',

0 commit comments

Comments
 (0)