From 565837406532c6c7fe124ec02f7cd6efc79dca36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Bevacqua?= Date: Tue, 20 Mar 2018 17:03:42 -0300 Subject: [PATCH] Add stop icons (transparent, filled). --- src-docs/src/views/icon/icons.js | 2 + .../icon/__snapshots__/icon.test.js.snap | 43 +++++++++++++++++++ src/components/icon/assets/stop.svg | 3 ++ src/components/icon/assets/stop_filled.svg | 3 ++ src/components/icon/icon.js | 4 ++ src/components/icon/index.d.ts | 2 + 6 files changed, 57 insertions(+) create mode 100644 src/components/icon/assets/stop.svg create mode 100644 src/components/icon/assets/stop_filled.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 7f044f46798..810f3817522 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -96,6 +96,8 @@ const iconTypes = [ 'starEmpty', 'starPlusFilled', 'stats', + 'stop', + 'stopFilled', 'string', 'tableOfContents', 'tear', diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap index 5d0ad7a3534..139fc4a5bc9 100644 --- a/src/components/icon/__snapshots__/icon.test.js.snap +++ b/src/components/icon/__snapshots__/icon.test.js.snap @@ -3332,6 +3332,49 @@ exports[`EuiIcon renders type stats 1`] = ` `; +exports[`EuiIcon renders type stop 1`] = ` + + + + + + +`; + +exports[`EuiIcon renders type stopFilled 1`] = ` + + + + + + +`; + exports[`EuiIcon renders type string 1`] = ` + + diff --git a/src/components/icon/assets/stop_filled.svg b/src/components/icon/assets/stop_filled.svg new file mode 100644 index 00000000000..8c5779aaf0b --- /dev/null +++ b/src/components/icon/assets/stop_filled.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.js b/src/components/icon/icon.js index 8da6080330e..2a08256d9f8 100644 --- a/src/components/icon/icon.js +++ b/src/components/icon/icon.js @@ -132,6 +132,8 @@ import sortUp from './assets/sort_up.svg'; import starEmpty from './assets/star_empty.svg'; import starPlusFilled from './assets/starPlusFilled.svg'; import stats from './assets/stats.svg'; +import stop from './assets/stop.svg'; +import stopFilled from './assets/stop_filled.svg'; import string from './assets/string.svg'; import tableOfContents from './assets/tableOfContents.svg'; import tear from './assets/tear.svg'; @@ -276,6 +278,8 @@ const typeToIconMap = { starEmpty, starPlusFilled, stats, + stop, + stopFilled, string, tableOfContents, tear, diff --git a/src/components/icon/index.d.ts b/src/components/icon/index.d.ts index 647a0dd214c..82263a24919 100644 --- a/src/components/icon/index.d.ts +++ b/src/components/icon/index.d.ts @@ -114,6 +114,8 @@ declare module '@elastic/eui' { | 'starEmpty' | 'starPlusFilled' | 'stats' + | 'stop' + | 'stopFilled' | 'string' | 'tableOfContents' | 'tear'