From 4b3d50977b28e9306a4091b9e36e4d4187786f59 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Tue, 31 Jul 2018 09:40:41 -0700 Subject: [PATCH 1/3] add spaces icon --- src-docs/src/views/icon/apps.js | 1 + src/components/icon/assets/app_spaces.svg | 10 ++++++++++ src/components/icon/icon.js | 2 ++ src/components/icon/index.d.ts | 1 + 4 files changed, 14 insertions(+) create mode 100644 src/components/icon/assets/app_spaces.svg diff --git a/src-docs/src/views/icon/apps.js b/src-docs/src/views/icon/apps.js index 362b02fc999..ee3a86ac574 100644 --- a/src-docs/src/views/icon/apps.js +++ b/src-docs/src/views/icon/apps.js @@ -30,6 +30,7 @@ const iconTypes = [ 'savedObjectsApp', 'searchProfilerApp', 'securityApp', + 'spacesApp', 'timelionApp', 'upgradeAssistantApp', 'usersRolesApp', diff --git a/src/components/icon/assets/app_spaces.svg b/src/components/icon/assets/app_spaces.svg new file mode 100644 index 00000000000..1ea28568221 --- /dev/null +++ b/src/components/icon/assets/app_spaces.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/components/icon/icon.js b/src/components/icon/icon.js index a2697c53817..9cab580f3d3 100644 --- a/src/components/icon/icon.js +++ b/src/components/icon/icon.js @@ -172,6 +172,7 @@ import sortDown from './assets/sort_down.svg'; import sortLeft from './assets/sortLeft.svg'; import sortRight from './assets/sortRight.svg'; import sortUp from './assets/sort_up.svg'; +import spacesApp from './assets/app_spaces.svg'; import starEmpty from './assets/star_empty.svg'; import starPlusFilled from './assets/starPlusFilled.svg'; import stats from './assets/stats.svg'; @@ -382,6 +383,7 @@ const typeToIconMap = { sortLeft, sortRight, sortUp, + spacesApp, starEmpty, starPlusFilled, stats, diff --git a/src/components/icon/index.d.ts b/src/components/icon/index.d.ts index d9b55079209..ae614e5739c 100644 --- a/src/components/icon/index.d.ts +++ b/src/components/icon/index.d.ts @@ -176,6 +176,7 @@ declare module '@elastic/eui' { | 'sortLeft' | 'sortRight' | 'sortUp' + | 'spacesApp' | 'starEmpty' | 'starPlusFilled' | 'stats' From d1c48e826f93594bedf9cad19fa1f4fdec511aae Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Tue, 31 Jul 2018 09:43:04 -0700 Subject: [PATCH 2/3] tests --- .../icon/__snapshots__/icon.test.js.snap | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap index ed574b70a5f..8bee34caa7c 100644 --- a/src/components/icon/__snapshots__/icon.test.js.snap +++ b/src/components/icon/__snapshots__/icon.test.js.snap @@ -4697,6 +4697,59 @@ exports[`EuiIcon props type sortUp is rendered 1`] = ` `; +exports[`EuiIcon props type spacesApp is rendered 1`] = ` + + + + + + + + + + +`; + exports[`EuiIcon props type starEmpty is rendered 1`] = ` Date: Tue, 31 Jul 2018 09:52:28 -0700 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d6ddce7fa8..e81a5f10312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added `spacesApp` logo to `EuiIcon` set ([#1065](https://github.com/elastic/eui/pull/1065)) + **Bug fixes** - `EuiMutationObserver`'s `children` prop is no longer marked as required ([#1076](https://github.com/elastic/eui/pull/1076))