From a94cbd309617ed8425dc8fc8549bf7658b0a29c7 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Thu, 18 Mar 2021 10:52:26 -0500 Subject: [PATCH] Rk/4648 runtime icon (#4650) * Add index runtime icon * Set eql glyph height to 16 * Add CHANGELOG entry * Fix fill on eql SVG * Remove circle --- CHANGELOG.md | 2 +- src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 24 +++++++++++++++++-- src/components/icon/assets/eql.js | 4 ++-- src/components/icon/assets/eql.svg | 6 ++--- src/components/icon/assets/index_runtime.js | 17 +++++++++++++ src/components/icon/assets/index_runtime.svg | 4 ++++ src/components/icon/icon.tsx | 1 + 8 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 src/components/icon/assets/index_runtime.js create mode 100644 src/components/icon/assets/index_runtime.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9926fdacc..6699de33a6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `31.11.0`. +- Added `indexRuntime` glyph in `EuiIcon` ([#4650](https://github.com/elastic/eui/pull/4650)) ## [`31.11.0`](https://github.com/elastic/eui/tree/v31.11.0) diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index af1f1ca33f4..d2092592385 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -107,6 +107,7 @@ export const iconTypes = [ 'indexFlush', 'indexMapping', 'indexOpen', + 'indexRuntime', 'indexSettings', 'inputOutput', 'inspect', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index d1e94fad1d9..afd0e8ffc22 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -2250,10 +2250,10 @@ exports[`EuiIcon props type eql is rendered 1`] = ` xmlns="http://www.w3.org/2000/svg" > `; @@ -3041,6 +3041,26 @@ exports[`EuiIcon props type indexRollupApp is rendered 1`] = ` `; +exports[`EuiIcon props type indexRuntime is rendered 1`] = ` + +`; + exports[`EuiIcon props type indexSettings is rendered 1`] = ` ); diff --git a/src/components/icon/assets/eql.svg b/src/components/icon/assets/eql.svg index 7b5380b4d40..1ae622e8a8a 100644 --- a/src/components/icon/assets/eql.svg +++ b/src/components/icon/assets/eql.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/components/icon/assets/index_runtime.js b/src/components/icon/assets/index_runtime.js new file mode 100644 index 00000000000..1c287a3024d --- /dev/null +++ b/src/components/icon/assets/index_runtime.js @@ -0,0 +1,17 @@ +import * as React from 'react'; + +const EuiIconIndexRuntime = ({ title, titleId, ...props }) => ( + + {title ? {title} : null} + + + +); + +export const icon = EuiIconIndexRuntime; diff --git a/src/components/icon/assets/index_runtime.svg b/src/components/icon/assets/index_runtime.svg new file mode 100644 index 00000000000..c39080e3c16 --- /dev/null +++ b/src/components/icon/assets/index_runtime.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index e1b59517ed8..ecd2273742d 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -178,6 +178,7 @@ const typeToPathMap = { indexOpen: 'index_open', indexPatternApp: 'app_index_pattern', indexRollupApp: 'app_index_rollup', + indexRuntime: 'index_runtime', indexSettings: 'index_settings', inputOutput: 'inputOutput', inspect: 'inspect',