From 3619e81e902d9e9ca184a5edf23ba7df19ad5d97 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 26 Sep 2019 13:39:03 -0400 Subject: [PATCH] Added package icon to glyph set (#2378) * added package.js + package.svg * added icon reference to icon.tsx and src-docs/.../icon.js * update package icon * updated changelog * fixed svg viewbox * update package icon * updated icon test snapshot --- CHANGELOG.md | 1 + src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 15 +++++++++++++++ src/components/icon/assets/package.js | 14 ++++++++++++++ src/components/icon/assets/package.svg | 3 +++ src/components/icon/icon.tsx | 1 + 6 files changed, 35 insertions(+) create mode 100644 src/components/icon/assets/package.js create mode 100644 src/components/icon/assets/package.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index ba3d03f4d49..3dc9886764c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added `package` icon to glyph set ([#2378](https://github.com/elastic/eui/pull/2378)) - Modified `EuiFacetButton` to use `$euiFocusBackgroundColor` for `:focus` state ([2365](https://github.com/elastic/eui/pull/2365)) - 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)) diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index c501ff64576..996ad829c8b 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -128,6 +128,7 @@ export const iconTypes = [ 'number', 'offline', 'online', + 'package', 'partial', 'pause', 'pencil', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 6f1e638943f..90dc65c4c8c 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -5074,6 +5074,21 @@ exports[`EuiIcon props type online is rendered 1`] = ` `; +exports[`EuiIcon props type package is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type packetbeatApp is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconPackage; diff --git a/src/components/icon/assets/package.svg b/src/components/icon/assets/package.svg new file mode 100644 index 00000000000..8ec479e0157 --- /dev/null +++ b/src/components/icon/assets/package.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 823a0bd8d77..a9cdf0ed359 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -239,6 +239,7 @@ const typeToPathMap = { number: 'number', offline: 'offline', online: 'online', + package: 'package', packetbeatApp: 'app_packetbeat', partial: 'partial', pause: 'pause',