From c95240ebc4279ada9825079e6c8778268f95d864 Mon Sep 17 00:00:00 2001 From: cchaos Date: Fri, 27 Sep 2019 16:14:44 -0400 Subject: [PATCH 1/2] Added Lens app `lensApp` icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …updated package icon js --- src-docs/src/views/icon/apps.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 21 ++++++++++++++++++- src/components/icon/assets/app_lens.js | 18 ++++++++++++++++ src/components/icon/assets/app_lens.svg | 4 ++++ src/components/icon/assets/package.js | 2 +- src/components/icon/icon.tsx | 1 + 6 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 src/components/icon/assets/app_lens.js create mode 100644 src/components/icon/assets/app_lens.svg diff --git a/src-docs/src/views/icon/apps.js b/src-docs/src/views/icon/apps.js index 58e00694ecd..120cedaaf99 100644 --- a/src-docs/src/views/icon/apps.js +++ b/src-docs/src/views/icon/apps.js @@ -42,6 +42,7 @@ const iconTypes = [ 'indexPatternApp', 'indexRollupApp', 'infraApp', + 'lensApp', 'loggingApp', 'machineLearningApp', 'managementApp', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 2a95d870ab9..c493f93fc0e 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -2599,6 +2599,25 @@ exports[`EuiIcon props type kqlValue is rendered 1`] = ` `; +exports[`EuiIcon props type lensApp is rendered 1`] = ` + + + + +`; + exports[`EuiIcon props type link is rendered 1`] = ` `; diff --git a/src/components/icon/assets/app_lens.js b/src/components/icon/assets/app_lens.js new file mode 100644 index 00000000000..32c6599f700 --- /dev/null +++ b/src/components/icon/assets/app_lens.js @@ -0,0 +1,18 @@ +import React from 'react'; + +const EuiIconAppLens = props => ( + + + + +); + +export const icon = EuiIconAppLens; diff --git a/src/components/icon/assets/app_lens.svg b/src/components/icon/assets/app_lens.svg new file mode 100644 index 00000000000..fe33252f38d --- /dev/null +++ b/src/components/icon/assets/app_lens.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/icon/assets/package.js b/src/components/icon/assets/package.js index f92c8b02e2f..b2903b87247 100644 --- a/src/components/icon/assets/package.js +++ b/src/components/icon/assets/package.js @@ -7,7 +7,7 @@ const EuiIconPackage = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - + ); diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index b6948005b91..2bbd24dec00 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -152,6 +152,7 @@ const typeToPathMap = { kqlOperand: 'kql_operand', kqlSelector: 'kql_selector', kqlValue: 'kql_value', + lensApp: 'app_lens', link: 'link', list: 'list', listAdd: 'list_add', From 85238726fd2d8a0a42ace4879aa88f206803335b Mon Sep 17 00:00:00 2001 From: cchaos Date: Fri, 27 Sep 2019 16:18:14 -0400 Subject: [PATCH 2/2] cl --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3999a0683cf..68ad1a3bfe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Migrate `EuiEmptyPrompt`and `EuiCard` to TS ([#2387](https://github.com/elastic/eui/pull/2387)) +- Added Lens app `lensApp` icon ([#2389](https://github.com/elastic/eui/pull/2389)) ## [`14.3.0`](https://github.com/elastic/eui/tree/v14.3.0)