Skip to content

Commit

Permalink
Add stop icons (transparent, filled).
Browse files Browse the repository at this point in the history
  • Loading branch information
bevacqua committed Mar 20, 2018
1 parent d37f2e1 commit 5658374
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ const iconTypes = [
'starEmpty',
'starPlusFilled',
'stats',
'stop',
'stopFilled',
'string',
'tableOfContents',
'tear',
Expand Down
43 changes: 43 additions & 0 deletions src/components/icon/__snapshots__/icon.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3332,6 +3332,49 @@ exports[`EuiIcon renders type stats 1`] = `
</svg>
`;

exports[`EuiIcon renders type stop 1`] = `
<svg
class="euiIcon euiIcon--medium"
height="16"
viewBox="0 0 16 16"
width="16"
xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<path
d="M0 1.994C0 .893.895 0 1.994 0h12.012C15.107 0 16 .895 16 1.994v12.012A1.995 1.995 0 0 1 14.006 16H1.994A1.995 1.995 0 0 1 0 14.006V1.994zm1 0v12.012c0 .548.446.994.994.994h12.012a.995.995 0 0 0 .994-.994V1.994A.995.995 0 0 0 14.006 1H1.994A.995.995 0 0 0 1 1.994z"
id="stop-a"
/>
</defs>
<use
href="#stop-a"
/>
</svg>
`;

exports[`EuiIcon renders type stopFilled 1`] = `
<svg
class="euiIcon euiIcon--medium"
height="16"
viewBox="0 0 16 16"
width="16"
xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<path
d="M0 1.994C0 .893.895 0 1.994 0h12.012C15.107 0 16 .895 16 1.994v12.012A1.995 1.995 0 0 1 14.006 16H1.994A1.995 1.995 0 0 1 0 14.006V1.994zm1 0v12.012c0 .548.446.994.994.994h12.012a.995.995 0 0 0 .994-.994V1.994A.995.995 0 0 0 14.006 1H1.994A.995.995 0 0 0 1 1.994z"
id="stop-a"
/>
</defs>
<use
fill-rule="evenodd"
href="#stop-a"
/>
</svg>
`;

exports[`EuiIcon renders type string 1`] = `
<svg
class="euiIcon euiIcon--medium"
Expand Down
3 changes: 3 additions & 0 deletions src/components/icon/assets/stop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/icon/assets/stop_filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/icon/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ import sortUp from './assets/sort_up.svg';
import starEmpty from './assets/star_empty.svg';
import starPlusFilled from './assets/starPlusFilled.svg';
import stats from './assets/stats.svg';
import stop from './assets/stop.svg';
import stopFilled from './assets/stop_filled.svg';
import string from './assets/string.svg';
import tableOfContents from './assets/tableOfContents.svg';
import tear from './assets/tear.svg';
Expand Down Expand Up @@ -276,6 +278,8 @@ const typeToIconMap = {
starEmpty,
starPlusFilled,
stats,
stop,
stopFilled,
string,
tableOfContents,
tear,
Expand Down
2 changes: 2 additions & 0 deletions src/components/icon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ declare module '@elastic/eui' {
| 'starEmpty'
| 'starPlusFilled'
| 'stats'
| 'stop'
| 'stopFilled'
| 'string'
| 'tableOfContents'
| 'tear'
Expand Down

0 comments on commit 5658374

Please sign in to comment.