From 714f29916c3e6bb39064c42e2aab46af6caab22c Mon Sep 17 00:00:00 2001 From: Boris Kirov Date: Mon, 12 Feb 2024 12:59:19 +0100 Subject: [PATCH 1/3] new chat icon added --- src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 23 +++++++++++ src/components/icon/assets/new_chat.tsx | 40 +++++++++++++++++++ src/components/icon/icon_map.ts | 1 + src/components/icon/svgs/new_chat.svg | 4 ++ 5 files changed, 69 insertions(+) create mode 100644 src/components/icon/assets/new_chat.tsx create mode 100644 src/components/icon/svgs/new_chat.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 9464c46f36b..958bb6abc55 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -177,6 +177,7 @@ export const iconTypes = [ 'moon', 'namespace', 'nested', + 'newChat', 'node', 'number', 'offline', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 4937a1845e0..b28db6ba60f 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -7577,6 +7577,29 @@ exports[`EuiIcon props type nested is rendered 1`] = ` `; +exports[`EuiIcon props type newChat is rendered 1`] = ` + +`; + exports[`EuiIcon props type node is rendered 1`] = ` diff --git a/src/components/icon/assets/new_chat.tsx b/src/components/icon/assets/new_chat.tsx index 020985cc0e6..750b9a7a891 100644 --- a/src/components/icon/assets/new_chat.tsx +++ b/src/components/icon/assets/new_chat.tsx @@ -9,32 +9,31 @@ // 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 EuiIconNewChat = ({ title, titleId, ...props -}: React.SVGProps & SVGRProps) => ( +}: SVGProps & SVGRProps) => ( {title ? {title} : null} - + ); - export const icon = EuiIconNewChat; From e1293bca98d2423a993dc1eb976796ff5bc4601b Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Mon, 12 Feb 2024 08:00:19 -0800 Subject: [PATCH 3/3] changelog --- changelogs/upcoming/7524.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/upcoming/7524.md diff --git a/changelogs/upcoming/7524.md b/changelogs/upcoming/7524.md new file mode 100644 index 00000000000..44028850162 --- /dev/null +++ b/changelogs/upcoming/7524.md @@ -0,0 +1 @@ +- Added `newChat` glyph to `EuiIcon`