Skip to content
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/eui/changelogs/upcoming/10194.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added new icon: `ruler`.
Original file line number Diff line number Diff line change
Expand Up @@ -9822,6 +9822,25 @@ exports[`EuiIcon props type routeSplit is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type ruler is rendered 1`] = `
<svg
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="ruler"
data-is-loaded="true"
height="16"
role="presentation"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
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"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon props type save is rendered 1`] = `
<svg
class="euiIcon emotion-euiIcon-m-isLoaded"
Expand Down
38 changes: 38 additions & 0 deletions packages/eui/src/components/icon/assets/ruler.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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';
import type { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
const EuiIconRuler = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
fillRule="evenodd"
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"
clipRule="evenodd"
/>
</svg>
);
export const icon = EuiIconRuler;
3 changes: 3 additions & 0 deletions packages/eui/src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,9 @@ export const typeToPathMap = {
routeSplit: withMetadata(() => import('./assets/route_split'), {
synonyms: ['tree', 'parent'],
}),
ruler: withMetadata(() => import('./assets/ruler'), {
synonyms: ['ruler', 'measure', 'measurement', 'length', 'scale', 'size'],
}),
save: withMetadata(() => import('./assets/save'), {
synonyms: ['save', 'store', 'disk', 'persist', 'keep'],
}),
Expand Down
3 changes: 3 additions & 0 deletions packages/eui/src/components/icon/svgs/ruler.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.