Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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.707 11.707a1 1 0 0 1 0-1.414l8.586-8.586a1 1 0 0 1 1.414 0l2.586 2.586a1 1 0 0 1 0 1.414l-8.586 8.586a1 1 0 0 1-1.414 0ZM2.414 11 5 13.586l.939-.94-1.414-1.414.707-.707 1.414 1.414 1.293-1.293-.884-.883.708-.708.883.884 1.293-1.293-1.414-1.414.707-.707 1.414 1.414 1.293-1.293-.884-.883.708-.708.883.884.94-.939L11 2.414Z"
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.707 11.707a1 1 0 0 1 0-1.414l8.586-8.586a1 1 0 0 1 1.414 0l2.586 2.586a1 1 0 0 1 0 1.414l-8.586 8.586a1 1 0 0 1-1.414 0ZM2.414 11 5 13.586l.939-.94-1.414-1.414.707-.707 1.414 1.414 1.293-1.293-.884-.883.708-.708.883.884 1.293-1.293-1.414-1.414.707-.707 1.414 1.414 1.293-1.293-.884-.883.708-.708.883.884.94-.939L11 2.414Z"
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.
Loading