From e55c5730bf611b0bf0cd7feec520ae299c5ccd78 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Mon, 26 Feb 2018 14:55:12 -0800 Subject: [PATCH 1/3] kql icons --- src-docs/src/views/icon/icons.js | 5 ++ .../icon/__snapshots__/icon.test.js.snap | 71 ++++++++++++++++++- src/components/icon/assets/heatmap.svg | 2 +- src/components/icon/assets/kql_field.svg | 5 ++ src/components/icon/assets/kql_function.svg | 5 ++ src/components/icon/assets/kql_operand.svg | 5 ++ src/components/icon/assets/kql_selector.svg | 5 ++ src/components/icon/assets/kql_value.svg | 5 ++ src/components/icon/icon.js | 10 +++ 9 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 src/components/icon/assets/kql_field.svg create mode 100644 src/components/icon/assets/kql_function.svg create mode 100644 src/components/icon/assets/kql_operand.svg create mode 100644 src/components/icon/assets/kql_selector.svg create mode 100644 src/components/icon/assets/kql_value.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 8faaf980401..7f044f46798 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -58,6 +58,11 @@ const iconTypes = [ 'indexOpen', 'indexSettings', 'invert', + 'kqlField', + 'kqlOperand', + 'kqlValue', + 'kqlFunction', + 'kqlSelector', 'link', 'list', 'listAdd', diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap index e638820dcd8..b7157587377 100644 --- a/src/components/icon/__snapshots__/icon.test.js.snap +++ b/src/components/icon/__snapshots__/icon.test.js.snap @@ -1435,7 +1435,6 @@ exports[`EuiIcon renders type heatmap 1`] = ` > `; @@ -1631,6 +1630,76 @@ exports[`EuiIcon renders type invert 1`] = ` `; +exports[`EuiIcon renders type kqlField 1`] = ` + + + +`; + +exports[`EuiIcon renders type kqlFunction 1`] = ` + + + +`; + +exports[`EuiIcon renders type kqlOperand 1`] = ` + + + +`; + +exports[`EuiIcon renders type kqlSelector 1`] = ` + + + +`; + +exports[`EuiIcon renders type kqlValue 1`] = ` + + + +`; + exports[`EuiIcon renders type link 1`] = ` - + diff --git a/src/components/icon/assets/kql_field.svg b/src/components/icon/assets/kql_field.svg new file mode 100644 index 00000000000..fbaf829cf9c --- /dev/null +++ b/src/components/icon/assets/kql_field.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/icon/assets/kql_function.svg b/src/components/icon/assets/kql_function.svg new file mode 100644 index 00000000000..fbaf829cf9c --- /dev/null +++ b/src/components/icon/assets/kql_function.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/icon/assets/kql_operand.svg b/src/components/icon/assets/kql_operand.svg new file mode 100644 index 00000000000..13e0c5db7dd --- /dev/null +++ b/src/components/icon/assets/kql_operand.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/icon/assets/kql_selector.svg b/src/components/icon/assets/kql_selector.svg new file mode 100644 index 00000000000..18bc40682b2 --- /dev/null +++ b/src/components/icon/assets/kql_selector.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/icon/assets/kql_value.svg b/src/components/icon/assets/kql_value.svg new file mode 100644 index 00000000000..13e0c5db7dd --- /dev/null +++ b/src/components/icon/assets/kql_value.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/icon/icon.js b/src/components/icon/icon.js index 8da2be6d215..4989c540517 100644 --- a/src/components/icon/icon.js +++ b/src/components/icon/icon.js @@ -66,6 +66,11 @@ import indexOpen from './assets/index_open.svg'; import indexPatternApp from './assets/app_index_pattern.svg'; import indexSettings from './assets/index_settings.svg'; import invert from './assets/invert.svg'; +import kqlField from './assets/kql_field.svg'; +import kqlOperand from './assets/kql_operand.svg'; +import kqlValue from './assets/kql_value.svg'; +import kqlFunction from './assets/kql_function.svg'; +import kqlSelector from './assets/kql_selector.svg'; import link from './assets/link.svg'; import list from './assets/list.svg'; import listAdd from './assets/list_add.svg'; @@ -203,6 +208,11 @@ const typeToIconMap = { indexPatternApp, indexSettings, invert, + kqlField, + kqlOperand, + kqlValue, + kqlFunction, + kqlSelector, link, list, listAdd, From 9307bb91f0715d58db6d444aabba0c49de79c038 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Mon, 26 Feb 2018 14:57:38 -0800 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f88795f490f..27e3c0b7a90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # [`master`](https://github.com/elastic/eui/tree/master) - Added `Ast` and `Query` services ([#454](https://github.com/elastic/eui/pull/454)) +- Icons for Kibana query language ([#455](https://github.com/elastic/eui/pull/455)) **Breaking changes** From 1f79da0d7b69ccd9479f3ed3e6e8474c35d033a8 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Mon, 26 Feb 2018 15:03:47 -0800 Subject: [PATCH 3/3] fix icons --- src/components/icon/assets/kql_field.svg | 6 +++--- src/components/icon/assets/kql_operand.svg | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/icon/assets/kql_field.svg b/src/components/icon/assets/kql_field.svg index fbaf829cf9c..ef45c2b82e4 100644 --- a/src/components/icon/assets/kql_field.svg +++ b/src/components/icon/assets/kql_field.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/src/components/icon/assets/kql_operand.svg b/src/components/icon/assets/kql_operand.svg index 13e0c5db7dd..352f59d979a 100644 --- a/src/components/icon/assets/kql_operand.svg +++ b/src/components/icon/assets/kql_operand.svg @@ -1,5 +1,5 @@ - +