From 9605f20aa5e743397a18d0c4011d1b30fbe8ba01 Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Mon, 12 Feb 2018 22:10:32 -0500 Subject: [PATCH] Added importAction and exportAction icons (#394) --- CHANGELOG.md | 1 + src-docs/src/views/icon/icons.js | 2 ++ .../icon/__snapshots__/icon.test.js.snap | 28 +++++++++++++++++++ src/components/icon/assets/export.svg | 3 ++ src/components/icon/assets/import.svg | 3 ++ src/components/icon/icon.js | 4 +++ 6 files changed, 41 insertions(+) create mode 100644 src/components/icon/assets/export.svg create mode 100644 src/components/icon/assets/import.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 617cac92363..1d07af83676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Changed look and feel of pagination. Added compressed prop for smaller footprint pagination. ([#380](https://github.com/elastic/eui/pull/380)) - Added `EuiBasicTable` as an opinionated, high level component for constructing tables. Its addition deprecates `EuiTableOfRecords` which is still avaiable, but now marked for removal. ([#377](https://github.com/elastic/eui/pull/377)) - Add styles for `readOnly` states of form controls. ([#391](https://github.com/elastic/eui/pull/391)) +- Added importAction and exportAction icons ([#394](https://github.com/elastic/eui/pull/394)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index bf238a3a081..73f9bce0ce5 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -37,6 +37,7 @@ const iconTypes = [ 'empty', 'exit', 'expand', + 'exportAction', 'faceHappy', 'faceNeutral', 'faceSad', @@ -44,6 +45,7 @@ const iconTypes = [ 'gear', 'grid', 'help', + 'importAction', 'iInCircle', 'indexClose', 'indexEdit', diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap index 6844e68a603..00a6b7566ee 100644 --- a/src/components/icon/__snapshots__/icon.test.js.snap +++ b/src/components/icon/__snapshots__/icon.test.js.snap @@ -1210,6 +1210,20 @@ exports[`EuiIcon renders type expand 1`] = ` `; +exports[`EuiIcon renders type exportAction 1`] = ` + + + +`; + exports[`EuiIcon renders type faceHappy 1`] = ` `; +exports[`EuiIcon renders type importAction 1`] = ` + + + +`; + exports[`EuiIcon renders type indexClose 1`] = ` + + diff --git a/src/components/icon/assets/import.svg b/src/components/icon/assets/import.svg new file mode 100644 index 00000000000..d2e9e46ec25 --- /dev/null +++ b/src/components/icon/assets/import.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.js b/src/components/icon/icon.js index 0a95bbd15da..38bb6ae9ece 100644 --- a/src/components/icon/icon.js +++ b/src/components/icon/icon.js @@ -42,6 +42,7 @@ import dot from './assets/dot.svg'; import empty from './assets/empty.svg'; import exit from './assets/exit.svg'; import expand from './assets/expand.svg'; +import exportAction from './assets/export.svg'; import faceHappy from './assets/face_happy.svg'; import faceNeutral from './assets/faceNeutral.svg'; import faceSad from './assets/face_sad.svg'; @@ -51,6 +52,7 @@ import graphApp from './assets/app_graph.svg'; import grid from './assets/grid.svg'; import grokApp from './assets/app_grok.svg'; import help from './assets/help.svg'; +import importAction from './assets/import.svg'; import iInCircle from './assets/iInCircle.svg'; import indexPatternApp from './assets/app_index_pattern.svg'; import indexClose from './assets/index_close.svg'; @@ -167,6 +169,7 @@ const typeToIconMap = { empty, exit, expand, + exportAction, faceHappy, faceNeutral, faceSad, @@ -176,6 +179,7 @@ const typeToIconMap = { grid, grokApp, help, + importAction, iInCircle, indexClose, indexEdit,