Skip to content

Commit

Permalink
add diff icon
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Feb 8, 2024
1 parent 46d5138 commit 3aaf698
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const iconTypes = [
'database',
'desktop',
'discuss',
'diff',
'document',
'documents',
'documentEdit',
Expand Down
18 changes: 18 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,24 @@ exports[`EuiIcon props type devToolsApp is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type diff is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="diff"
data-is-loaded="true"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M3.5 6.5a.5.5 0 1 0 1 0v-2h2a.5.5 0 1 0 0-1h-2v-2a.5.5 0 1 0-1 0v2h-2a.5.5 0 1 0 0 1h2v2Zm11 4.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1ZM3.854 12.854l9-9a.5.5 0 1 0-.707-.707l-9 9a.5.5 0 0 0 .707.707Z"
/>
</svg>
`;

exports[`EuiIcon props type discoverApp is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
34 changes: 34 additions & 0 deletions src/components/icon/assets/diff.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* 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 EuiIconDiff = ({
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 d="M3.5 6.5a.5.5 0 1 0 1 0v-2h2a.5.5 0 1 0 0-1h-2v-2a.5.5 0 1 0-1 0v2h-2a.5.5 0 1 0 0 1h2v2Zm11 4.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1ZM3.854 12.854l9-9a.5.5 0 1 0-.707-.707l-9 9a.5.5 0 0 0 .707.707Z" />
</svg>
);
export const icon = EuiIconDiff;
1 change: 1 addition & 0 deletions src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const typeToPathMap = {
database: 'database',
desktop: 'desktop',
devToolsApp: 'app_devtools',
diff: 'diff',
discoverApp: 'app_discover',
discuss: 'discuss',
document: 'document',
Expand Down
1 change: 1 addition & 0 deletions src/components/icon/svgs/diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3aaf698

Please sign in to comment.