Skip to content

Commit 0e5f218

Browse files
[EuiIcon] Add ruler icon (#10194)
Co-authored-by: kibanamachine <infra-root+kibanamachine@elastic.co>
1 parent aadccfa commit 0e5f218

6 files changed

Lines changed: 64 additions & 0 deletions

File tree

49 Bytes
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added new icon: `ruler`.

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9822,6 +9822,25 @@ exports[`EuiIcon props type routeSplit is rendered 1`] = `
98229822
</svg>
98239823
`;
98249824

9825+
exports[`EuiIcon props type ruler is rendered 1`] = `
9826+
<svg
9827+
class="euiIcon emotion-euiIcon-m-isLoaded"
9828+
data-icon-type="ruler"
9829+
data-is-loaded="true"
9830+
height="16"
9831+
role="presentation"
9832+
viewBox="0 0 16 16"
9833+
width="16"
9834+
xmlns="http://www.w3.org/2000/svg"
9835+
>
9836+
<path
9837+
clip-rule="evenodd"
9838+
d="M1.293 11.707a1 1 0 0 1 0-1.414l9-9a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-9 9a1 1 0 0 1-1.414 0ZM2 11l3 3 1.146-1.146-1.5-1.5.708-.708 1.5 1.5 1.292-1.292-1-1 .708-.708 1 1 1.292-1.292-1.5-1.5.708-.708 1.5 1.5 1.292-1.292-1-1 .708-.708 1 1L14 5l-3-3Z"
9839+
fill-rule="evenodd"
9840+
/>
9841+
</svg>
9842+
`;
9843+
98259844
exports[`EuiIcon props type save is rendered 1`] = `
98269845
<svg
98279846
class="euiIcon emotion-euiIcon-m-isLoaded"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 EuiIconRuler = ({
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
32+
fillRule="evenodd"
33+
d="M1.293 11.707a1 1 0 0 1 0-1.414l9-9a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-9 9a1 1 0 0 1-1.414 0ZM2 11l3 3 1.146-1.146-1.5-1.5.708-.708 1.5 1.5 1.292-1.292-1-1 .708-.708 1 1 1.292-1.292-1.5-1.5.708-.708 1.5 1.5 1.292-1.292-1-1 .708-.708 1 1L14 5l-3-3Z"
34+
clipRule="evenodd"
35+
/>
36+
</svg>
37+
);
38+
export const icon = EuiIconRuler;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,9 @@ export const typeToPathMap = {
17391739
routeSplit: withMetadata(() => import('./assets/route_split'), {
17401740
synonyms: ['tree', 'parent'],
17411741
}),
1742+
ruler: withMetadata(() => import('./assets/ruler'), {
1743+
synonyms: ['ruler', 'measure', 'measurement', 'length', 'scale', 'size'],
1744+
}),
17421745
save: withMetadata(() => import('./assets/save'), {
17431746
synonyms: ['save', 'store', 'disk', 'persist', 'keep'],
17441747
}),
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)