From d1aba92a324b9f8d462b07d661e6f304400a8dc7 Mon Sep 17 00:00:00 2001 From: cchaos Date: Tue, 24 Sep 2019 17:48:23 -0400 Subject: [PATCH 1/2] Add IP icon to glyph set --- src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 15 +++++++++++++++ src/components/icon/assets/ip.js | 14 ++++++++++++++ src/components/icon/assets/ip.svg | 3 +++ src/components/icon/icon.tsx | 1 + 5 files changed, 34 insertions(+) create mode 100644 src/components/icon/assets/ip.js create mode 100644 src/components/icon/assets/ip.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 79dd1154109..3607ee0e95f 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -96,6 +96,7 @@ const iconTypes = [ 'inputOutput', 'inspect', 'invert', + 'ip', 'kqlField', 'kqlFunction', 'kqlOperand', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index abcd1c67ea3..f1b6bda4f82 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -2509,6 +2509,21 @@ exports[`EuiIcon props type invert is rendered 1`] = ` `; +exports[`EuiIcon props type ip is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type kqlField is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconIp; diff --git a/src/components/icon/assets/ip.svg b/src/components/icon/assets/ip.svg new file mode 100644 index 00000000000..df1b2bf6a75 --- /dev/null +++ b/src/components/icon/assets/ip.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 2da808dc7f1..08b887484f7 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -146,6 +146,7 @@ const typeToPathMap = { inputOutput: 'inputOutput', inspect: 'inspect', invert: 'invert', + ip: 'ip', kqlField: 'kql_field', kqlFunction: 'kql_function', kqlOperand: 'kql_operand', From 7c537ef0aefebc1bfc23d9f86210401cf6e09a3c Mon Sep 17 00:00:00 2001 From: cchaos Date: Tue, 24 Sep 2019 17:51:36 -0400 Subject: [PATCH 2/2] cl --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a62c2cfa464..d86d835b2e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Added a `showMaxPopover` option for `EuiBreadcrumbs` to display all items when a `max` is set. ([#2342](https://github.com/elastic/eui/pull/2342)) - Added `data-test-subj` support for basic and in-memory tables' actions ([#2353](https://github.com/elastic/eui/pull/2353)) +- Added `ip` icon to glyph set ([#2371](https://github.com/elastic/eui/pull/2371)) **Bug fixes**