Skip to content

Commit

Permalink
new chat icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskirov committed Feb 12, 2024
1 parent 8cf4d8f commit 714f299
Show file tree
Hide file tree
Showing 5 changed files with 69 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 @@ -177,6 +177,7 @@ export const iconTypes = [
'moon',
'namespace',
'nested',
'newChat',
'node',
'number',
'offline',
Expand Down
23 changes: 23 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7577,6 +7577,29 @@ exports[`EuiIcon props type nested is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type newChat is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="newChat"
data-is-loaded="true"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 4a.5.5 0 01.5.5V6H10a.5.5 0 010 1H8.5v1.5a.5.5 0 01-1 0V7H6a.5.5 0 010-1h1.5V4.5A.5.5 0 018 4z"
/>
<path
clip-rule="evenodd"
d="M1 4a2.5 2.5 0 012.5-2.5h9A2.5 2.5 0 0115 4v5a2.5 2.5 0 01-2.5 2.5H7.707L4.5 14.707V11.5h-1A2.5 2.5 0 011 9V4zm2.5-1.5A1.5 1.5 0 002 4v5a1.5 1.5 0 001.5 1.5h2v1.793L7.293 10.5H12.5A1.5 1.5 0 0014 9V4a1.5 1.5 0 00-1.5-1.5h-9z"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon props type node is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
40 changes: 40 additions & 0 deletions src/components/icon/assets/new_chat.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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';
interface SVGRProps {
title?: string;
titleId?: string;
}

const EuiIconNewChat = ({
title,
titleId,
...props
}: React.SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M8 4a.5.5 0 01.5.5V6H10a.5.5 0 010 1H8.5v1.5a.5.5 0 01-1 0V7H6a.5.5 0 010-1h1.5V4.5A.5.5 0 018 4z" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M1 4a2.5 2.5 0 012.5-2.5h9A2.5 2.5 0 0115 4v5a2.5 2.5 0 01-2.5 2.5H7.707L4.5 14.707V11.5h-1A2.5 2.5 0 011 9V4zm2.5-1.5A1.5 1.5 0 002 4v5a1.5 1.5 0 001.5 1.5h2v1.793L7.293 10.5H12.5A1.5 1.5 0 0014 9V4a1.5 1.5 0 00-1.5-1.5h-9z"
/>
</svg>
);

export const icon = EuiIconNewChat;
1 change: 1 addition & 0 deletions src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export const typeToPathMap = {
moon: 'moon',
namespace: 'namespace',
nested: 'nested',
newChat: 'new_chat',
node: 'node',
notebookApp: 'app_notebook',
number: 'number',
Expand Down
4 changes: 4 additions & 0 deletions src/components/icon/svgs/new_chat.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 714f299

Please sign in to comment.