Skip to content

Commit

Permalink
Merge pull request #1400 from cozy/large-logout-icon
Browse files Browse the repository at this point in the history
feat: Add large logout icon
  • Loading branch information
y-lohse authored Mar 5, 2020
2 parents 947f1cc + a98a82f commit 4fb3c5d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/icons/illus/logout-large.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion react/Icon/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include via `Sprite`. See the example below for how to include `Sprite`.
```
import Icon from 'cozy-ui/transpiled/react/Icon';
import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite';
const availableIcons = ['cozy', 'cloud-broken', 'cozy-logo', 'device-laptop', 'device-phone', 'device-tablet', 'device-browser', 'file-type-audio', 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-image', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'google', 'top-select', 'bottom-select', 'check-white', 'dash-white', 'keychain'];
const availableIcons = ['cozy', 'cloud-broken', 'cozy-logo', 'device-laptop', 'device-phone', 'device-tablet', 'device-browser', 'file-type-audio', 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-image', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'google', 'logout-large', 'top-select', 'bottom-select', 'check-white', 'dash-white', 'keychain'];
<div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
<Sprite />
Expand Down
19 changes: 19 additions & 0 deletions react/__snapshots__/examples.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2624,6 +2624,13 @@ exports[`Icon should render examples: Icon 1`] = `
<path fill=\\"#95999D\\" d=\\"M15.45 17.55c.54.47 1.13.89 1.77 1.23L4 32H2a2 2 0 0 1-.82-.18l14.27-14.27z\\"></path>
</g>
</symbol>
<symbol id=\\"logout-large\\">
<g fill=\\"none\\" fill-rule=\\"evenodd\\">
<rect width=\\"27.5\\" height=\\"32.5\\" x=\\"1.25\\" y=\\"1.25\\" fill=\\"#D9DDE1\\" rx=\\"2\\"></rect>
<path fill=\\"#95999D\\" d=\\"M4.74 1.45l13.75 5.91c.92.4 1.51 1.3 1.51 2.29v27.61a2.5 2.5 0 01-3.49 2.29L2.76 33.64a2.49 2.49 0 01-1.51-2.29V3.74a2.5 2.5 0 013.49-2.29z\\"></path>
<path fill=\\"#95999D\\" fill-rule=\\"nonzero\\" d=\\"M34.3 12.92l.15.13 5 5c.69.69.73 1.77.13 2.5l-.13.15-5 5-.14.13a1.88 1.88 0 01-2.64-2.64l.13-.14 1.8-1.8h-7.98a1.88 1.88 0 01-.18-3.74l.18-.01h7.98l-1.8-1.8a1.87 1.87 0 012.5-2.78z\\"></path>
</g>
</symbol>
<symbol id=\\"share-grey08\\" viewBox=\\"0 0 16 16\\">
<g fill=\\"#32363F\\" fill-rule=\\"evenodd\\" transform=\\"translate(-160 -32)\\">
<path d=\\"M165.082611,42.1593397 C164.543049,42.6798471 163.808912,43 163,43 C161.343146,43 160,41.6568542 160,40 C160,38.3431458 161.343146,37 163,37 C163.808912,37 164.543049,37.3201529 165.082611,37.8406603 L170.022669,35.3706317 C170.007705,35.2491857 170,35.1254927 170,35 C170,33.3431458 171.343146,32 173,32 C174.656854,32 176,33.3431458 176,35 C176,36.6568542 174.656854,38 173,38 C172.191088,38 171.456951,37.6798471 170.917389,37.1593397 L165.977331,39.6293683 C165.992295,39.7508143 166,39.8745073 166,40 C166,40.1254927 165.992295,40.2491857 165.977331,40.3706317 L170.917389,42.8406603 C171.456951,42.3201529 172.191088,42 173,42 C174.656854,42 176,43.3431458 176,45 C176,46.6568542 174.656854,48 173,48 C171.343146,48 170,46.6568542 170,45 C170,44.8745073 170.007705,44.7508143 170.022669,44.6293683 L165.082611,42.1593397 Z\\"></path>
Expand Down Expand Up @@ -3371,6 +3378,11 @@ exports[`Icon should render examples: Icon 1`] = `
</svg>
<p style=\\"font-size: 1rem; margin-top: 0.5rem; margin-bottom: 1rem;\\">google</p>
</div>
<div style=\\"text-align: center;\\"><svg class=\\"styles__icon___23x3R\\" width=\\"16\\" height=\\"16\\">
<use xlink:href=\\"#logout-large\\"></use>
</svg>
<p style=\\"font-size: 1rem; margin-top: 0.5rem; margin-bottom: 1rem;\\">logout-large</p>
</div>
<div style=\\"text-align: center;\\"><svg class=\\"styles__icon___23x3R\\" width=\\"16\\" height=\\"16\\">
<use xlink:href=\\"#top-select\\"></use>
</svg>
Expand Down Expand Up @@ -3576,6 +3588,13 @@ exports[`Icon should render examples: Icon 2`] = `
<path fill=\\"#95999D\\" d=\\"M15.45 17.55c.54.47 1.13.89 1.77 1.23L4 32H2a2 2 0 0 1-.82-.18l14.27-14.27z\\"></path>
</g>
</symbol>
<symbol id=\\"logout-large\\">
<g fill=\\"none\\" fill-rule=\\"evenodd\\">
<rect width=\\"27.5\\" height=\\"32.5\\" x=\\"1.25\\" y=\\"1.25\\" fill=\\"#D9DDE1\\" rx=\\"2\\"></rect>
<path fill=\\"#95999D\\" d=\\"M4.74 1.45l13.75 5.91c.92.4 1.51 1.3 1.51 2.29v27.61a2.5 2.5 0 01-3.49 2.29L2.76 33.64a2.49 2.49 0 01-1.51-2.29V3.74a2.5 2.5 0 013.49-2.29z\\"></path>
<path fill=\\"#95999D\\" fill-rule=\\"nonzero\\" d=\\"M34.3 12.92l.15.13 5 5c.69.69.73 1.77.13 2.5l-.13.15-5 5-.14.13a1.88 1.88 0 01-2.64-2.64l.13-.14 1.8-1.8h-7.98a1.88 1.88 0 01-.18-3.74l.18-.01h7.98l-1.8-1.8a1.87 1.87 0 012.5-2.78z\\"></path>
</g>
</symbol>
<symbol id=\\"share-grey08\\" viewBox=\\"0 0 16 16\\">
<g fill=\\"#32363F\\" fill-rule=\\"evenodd\\" transform=\\"translate(-160 -32)\\">
<path d=\\"M165.082611,42.1593397 C164.543049,42.6798471 163.808912,43 163,43 C161.343146,43 160,41.6568542 160,40 C160,38.3431458 161.343146,37 163,37 C163.808912,37 164.543049,37.3201529 165.082611,37.8406603 L170.022669,35.3706317 C170.007705,35.2491857 170,35.1254927 170,35 C170,33.3431458 171.343146,32 173,32 C174.656854,32 176,33.3431458 176,35 C176,36.6568542 174.656854,38 173,38 C172.191088,38 171.456951,37.6798471 170.917389,37.1593397 L165.977331,39.6293683 C165.992295,39.7508143 166,39.8745073 166,40 C166,40.1254927 165.992295,40.2491857 165.977331,40.3706317 L170.917389,42.8406603 C171.456951,42.3201529 172.191088,42 173,42 C174.656854,42 176,43.3431458 176,45 C176,46.6568542 174.656854,48 173,48 C171.343146,48 170,46.6568542 170,45 C170,44.8745073 170.007705,44.7508143 170.022669,44.6293683 L165.082611,42.1593397 Z\\"></path>
Expand Down

0 comments on commit 4fb3c5d

Please sign in to comment.