From 94a55fa93aca669dab3c750ba6accfd1554609c1 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Mon, 13 Jan 2020 14:21:20 -0600 Subject: [PATCH 1/3] add recentlyViewedApp icon --- CHANGELOG.md | 2 +- src-docs/src/views/icon/apps.js | 1 + .../icon/assets/app_recently_viewed.js | 19 +++++++++++++++++++ .../icon/assets/app_recently_viewed.svg | 6 ++++++ src/components/icon/icon.tsx | 1 + 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/components/icon/assets/app_recently_viewed.js create mode 100644 src/components/icon/assets/app_recently_viewed.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index b58d614f2d2..9f6de94a3ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `18.1.0`. +- Added `rencentlyViewedApp` glyph to `EuiIcon` ([#2755](https://github.com/elastic/eui/pull/2755)) ## [`18.1.0`](https://github.com/elastic/eui/tree/v18.1.0) diff --git a/src-docs/src/views/icon/apps.js b/src-docs/src/views/icon/apps.js index 49b26b5e324..c8944c0be84 100644 --- a/src-docs/src/views/icon/apps.js +++ b/src-docs/src/views/icon/apps.js @@ -51,6 +51,7 @@ const iconTypes = [ 'notebookApp', 'packetbeatApp', 'pipelineApp', + 'recentlyViewedApp', 'reportingApp', 'savedObjectsApp', 'searchProfilerApp', diff --git a/src/components/icon/assets/app_recently_viewed.js b/src/components/icon/assets/app_recently_viewed.js new file mode 100644 index 00000000000..a2c04e92620 --- /dev/null +++ b/src/components/icon/assets/app_recently_viewed.js @@ -0,0 +1,19 @@ +import React from 'react'; + +const EuiIconAppRecentlyViewed = ({ title, ...props }) => ( + + {title} + + + +); + +export const icon = EuiIconAppRecentlyViewed; diff --git a/src/components/icon/assets/app_recently_viewed.svg b/src/components/icon/assets/app_recently_viewed.svg new file mode 100644 index 00000000000..efa0bdbd853 --- /dev/null +++ b/src/components/icon/assets/app_recently_viewed.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index f3bc342be8b..86f95ce5a85 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -264,6 +264,7 @@ const typeToPathMap = { plusInCircleFilled: 'plus_in_circle_filled', popout: 'popout', questionInCircle: 'question_in_circle', + recentlyViewedApp: 'app_recently_viewed', refresh: 'refresh', reportingApp: 'app_reporting', save: 'save', From 90f111a04f5ad077146a0ad039dae0efb93c76a7 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Mon, 13 Jan 2020 14:23:15 -0600 Subject: [PATCH 2/3] add recentlyViewedApp icon --- .../icon/__snapshots__/icon.test.tsx.snap | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 70dfee9507c..1f255ca9840 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -6261,6 +6261,28 @@ exports[`EuiIcon props type questionInCircle is rendered 1`] = ` `; +exports[`EuiIcon props type recentlyViewedApp is rendered 1`] = ` + +`; + exports[`EuiIcon props type refresh is rendered 1`] = `