diff --git a/CHANGELOG.md b/CHANGELOG.md index 76947c9f4e7..b22ef047ba2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ No public changes since 0.0.50 - Created `EuiToggle`, `EuiButtonToggle`, and `EuiButtonGroup` ([#872](https://github.com/elastic/eui/pull/872)) - `EuiBasicTable` and `EuiInMemoryTable` now accept `rowProps` and `cellProps` callbacks, -which let you apply custom props to rows and props ([#869](https://github.com/elastic/eui/pull/869)) +- Added `offine` and `online` icons ([#881](https://github.com/elastic/eui/pull/881)) **Breaking changes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 657b9dc5cb7..81ee27e9940 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -94,6 +94,8 @@ const iconTypes = [ 'minusInCircle', 'node', 'number', + 'offline', + 'online', 'pause', 'pencil', 'pin', diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap index 4e8153d40b9..c3c81696d24 100644 --- a/src/components/icon/__snapshots__/icon.test.js.snap +++ b/src/components/icon/__snapshots__/icon.test.js.snap @@ -2490,7 +2490,7 @@ exports[`EuiIcon renders type logoElastic 1`] = ` `; -exports[`EuiIcon renders type logoElasticsearch 1`] = ` +exports[`EuiIcon renders type logoElasticStack 1`] = ` - - - - `; -exports[`EuiIcon renders type logoElasticStack 1`] = ` +exports[`EuiIcon renders type logoElasticsearch 1`] = ` + + + + `; @@ -3113,7 +3113,7 @@ exports[`EuiIcon renders type minusInCircle 1`] = ` xmlns="http://www.w3.org/2000/svg" > `; @@ -3155,7 +3155,6 @@ exports[`EuiIcon renders type node 1`] = ` > `; @@ -3175,6 +3174,34 @@ exports[`EuiIcon renders type number 1`] = ` `; +exports[`EuiIcon renders type offline 1`] = ` + + + +`; + +exports[`EuiIcon renders type online 1`] = ` + + + +`; + exports[`EuiIcon renders type pause 1`] = ` `; @@ -3678,7 +3704,6 @@ exports[`EuiIcon renders type stats 1`] = ` > diff --git a/src/components/icon/assets/minus_in_circle.svg b/src/components/icon/assets/minus_in_circle.svg index fd2689836c9..98280dcb7d7 100644 --- a/src/components/icon/assets/minus_in_circle.svg +++ b/src/components/icon/assets/minus_in_circle.svg @@ -1,3 +1,3 @@ - - + + diff --git a/src/components/icon/assets/node.svg b/src/components/icon/assets/node.svg index 841d805c67e..b63c03d96e3 100644 --- a/src/components/icon/assets/node.svg +++ b/src/components/icon/assets/node.svg @@ -1,3 +1,3 @@ - + diff --git a/src/components/icon/assets/offline.svg b/src/components/icon/assets/offline.svg new file mode 100644 index 00000000000..c8b880a54c5 --- /dev/null +++ b/src/components/icon/assets/offline.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/assets/online.svg b/src/components/icon/assets/online.svg new file mode 100644 index 00000000000..1ed0c853847 --- /dev/null +++ b/src/components/icon/assets/online.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/assets/shard.svg b/src/components/icon/assets/shard.svg index 1612194c285..afd0f282c5c 100644 --- a/src/components/icon/assets/shard.svg +++ b/src/components/icon/assets/shard.svg @@ -1,3 +1,3 @@ - + diff --git a/src/components/icon/assets/stats.svg b/src/components/icon/assets/stats.svg index 6c8f636e93a..f89a6aa0169 100644 --- a/src/components/icon/assets/stats.svg +++ b/src/components/icon/assets/stats.svg @@ -1,3 +1,3 @@ - + diff --git a/src/components/icon/icon.js b/src/components/icon/icon.js index a3c7a1126cb..937a6843749 100644 --- a/src/components/icon/icon.js +++ b/src/components/icon/icon.js @@ -125,6 +125,8 @@ import minusInCircle from './assets/minus_in_circle.svg'; import monitoringApp from './assets/app_monitoring.svg'; import node from './assets/node.svg'; import number from './assets/number.svg'; +import offline from './assets/offline.svg'; +import online from './assets/online.svg'; import pause from './assets/pause.svg'; import pencil from './assets/pencil.svg'; import pin from './assets/pin.svg'; @@ -291,6 +293,8 @@ const typeToIconMap = { monitoringApp, node, number, + offline, + online, pause, pencil, pin,