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** 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..ef45c2b82e4 --- /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..352f59d979a --- /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,