From 68c8d3a8edf39afea4b588ec647a04cabf46b325 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Thu, 26 Sep 2019 07:26:05 -0500 Subject: [PATCH] add stacked chart icons (#2379) --- CHANGELOG.md | 1 + src-docs/src/views/icon/icons.js | 3 ++ .../icon/__snapshots__/icon.test.tsx.snap | 45 +++++++++++++++++++ .../icon/assets/vis_area_stacked.js | 14 ++++++ .../icon/assets/vis_area_stacked.svg | 3 ++ .../icon/assets/vis_bar_horizontal_stacked.js | 14 ++++++ .../assets/vis_bar_horizontal_stacked.svg | 3 ++ .../icon/assets/vis_bar_vertical_stacked.js | 14 ++++++ .../icon/assets/vis_bar_vertical_stacked.svg | 3 ++ src/components/icon/icon.tsx | 3 ++ 10 files changed, 103 insertions(+) create mode 100644 src/components/icon/assets/vis_area_stacked.js create mode 100644 src/components/icon/assets/vis_area_stacked.svg create mode 100644 src/components/icon/assets/vis_bar_horizontal_stacked.js create mode 100644 src/components/icon/assets/vis_bar_horizontal_stacked.svg create mode 100644 src/components/icon/assets/vis_bar_vertical_stacked.js create mode 100644 src/components/icon/assets/vis_bar_vertical_stacked.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f7a296c8b8..70d7091c2f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - 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)) - Set `textOnly={true}` for expanded rows in `EuiBasicTable` ([#2376](https://github.com/elastic/eui/pull/2376)) +- Added `visAreaStacked`, `visBarVerticalStacked`, and `visBarHorizontalStacked` icons to glyph set ([#2379](https://github.com/elastic/eui/pull/2379)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 6bc0d601732..c501ff64576 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -178,8 +178,11 @@ export const iconTypes = [ 'vector', 'videoPlayer', 'visArea', + 'visAreaStacked', 'visBarHorizontal', + 'visBarHorizontalStacked', 'visBarVertical', + 'visBarVerticalStacked', 'visControls', 'visGauge', 'visGoal', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index b926777fabe..6f1e638943f 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -6660,6 +6660,21 @@ exports[`EuiIcon props type visArea is rendered 1`] = ` `; +exports[`EuiIcon props type visAreaStacked is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type visBarHorizontal is rendered 1`] = ` `; +exports[`EuiIcon props type visBarHorizontalStacked is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type visBarVertical is rendered 1`] = ` `; +exports[`EuiIcon props type visBarVerticalStacked is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type visControls is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconVisAreaStacked; diff --git a/src/components/icon/assets/vis_area_stacked.svg b/src/components/icon/assets/vis_area_stacked.svg new file mode 100644 index 00000000000..87e37c8241d --- /dev/null +++ b/src/components/icon/assets/vis_area_stacked.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/assets/vis_bar_horizontal_stacked.js b/src/components/icon/assets/vis_bar_horizontal_stacked.js new file mode 100644 index 00000000000..efcbf185d5a --- /dev/null +++ b/src/components/icon/assets/vis_bar_horizontal_stacked.js @@ -0,0 +1,14 @@ +import React from 'react'; + +const EuiIconVisBarHorizontalStacked = props => ( + + + +); + +export const icon = EuiIconVisBarHorizontalStacked; diff --git a/src/components/icon/assets/vis_bar_horizontal_stacked.svg b/src/components/icon/assets/vis_bar_horizontal_stacked.svg new file mode 100644 index 00000000000..8a3807e1095 --- /dev/null +++ b/src/components/icon/assets/vis_bar_horizontal_stacked.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/assets/vis_bar_vertical_stacked.js b/src/components/icon/assets/vis_bar_vertical_stacked.js new file mode 100644 index 00000000000..738fe11d726 --- /dev/null +++ b/src/components/icon/assets/vis_bar_vertical_stacked.js @@ -0,0 +1,14 @@ +import React from 'react'; + +const EuiIconVisBarVerticalStacked = props => ( + + + +); + +export const icon = EuiIconVisBarVerticalStacked; diff --git a/src/components/icon/assets/vis_bar_vertical_stacked.svg b/src/components/icon/assets/vis_bar_vertical_stacked.svg new file mode 100644 index 00000000000..f33513d055f --- /dev/null +++ b/src/components/icon/assets/vis_bar_vertical_stacked.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 724831fd074..823a0bd8d77 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -304,8 +304,11 @@ const typeToPathMap = { vector: 'vector', videoPlayer: 'videoPlayer', visArea: 'vis_area', + visAreaStacked: 'vis_area_stacked', visBarHorizontal: 'vis_bar_horizontal', + visBarHorizontalStacked: 'vis_bar_horizontal_stacked', visBarVertical: 'vis_bar_vertical', + visBarVerticalStacked: 'vis_bar_vertical_stacked', visControls: 'vis_controls', visGauge: 'vis_gauge', visGoal: 'vis_goal',