Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `18.1.0`.
- Added `rencentlyViewedApp` glyph to `EuiIcon` ([#2755](https://github.com/elastic/eui/pull/2755))

## [`18.1.0`](https://github.com/elastic/eui/tree/v18.1.0)

Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/icon/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const iconTypes = [
'notebookApp',
'packetbeatApp',
'pipelineApp',
'recentlyViewedApp',
'reportingApp',
'savedObjectsApp',
'searchProfilerApp',
Expand Down
22 changes: 22 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6261,6 +6261,28 @@ exports[`EuiIcon props type questionInCircle is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type recentlyViewedApp is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon--app euiIcon-isLoaded"
focusable="false"
height="32"
role="img"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<title />
<path
d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16a16 16 0 01-16 16zm0-30C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14A14 14 0 0016 2z"
/>
<path
class="euiIcon__fillSecondary"
d="M15 4h2v9.17A3.009 3.009 0 0118.83 15H26v2h-7.17A3.001 3.001 0 1115 13.17V4zm1 13a1 1 0 100-2 1 1 0 000 2z"
/>
</svg>
`;

exports[`EuiIcon props type refresh is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
19 changes: 19 additions & 0 deletions src/components/icon/assets/app_recently_viewed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';

const EuiIconAppRecentlyViewed = ({ title, ...props }) => (
<svg
width={32}
height={32}
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<title>{title}</title>
<path d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16a16 16 0 01-16 16zm0-30C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14A14 14 0 0016 2z" />
<path
className="euiIcon__fillSecondary"
d="M15 4h2v9.17A3.009 3.009 0 0118.83 15H26v2h-7.17A3.001 3.001 0 1115 13.17V4zm1 13a1 1 0 100-2 1 1 0 000 2z"
/>
</svg>
);

export const icon = EuiIconAppRecentlyViewed;
6 changes: 6 additions & 0 deletions src/components/icon/assets/app_recently_viewed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ const typeToPathMap = {
plusInCircleFilled: 'plus_in_circle_filled',
popout: 'popout',
questionInCircle: 'question_in_circle',
recentlyViewedApp: 'app_recently_viewed',
refresh: 'refresh',
reportingApp: 'app_reporting',
save: 'save',
Expand Down