Skip to content

Commit

Permalink
feat(FIJI-50006): [Icon] add icon shield
Browse files Browse the repository at this point in the history
  • Loading branch information
233mawile authored and 233mawile-rc committed Apr 28, 2022
1 parent 16577c7 commit b255589
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
exports[`icon svg file expect svg file to match snapshot 1`] = `
"export default \`<svg aria-hidden=\\"true\\" style=\\"position: absolute; width: 0; height: 0; overflow: hidden;\\" version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\">
<defs>
<symbol id=\\"icon-shield\\" viewBox=\\"0 0 32 32\\">
<title>shield</title>
<path d=\\"M16 2l0.507 0.223 0.622 0.263c0.18 0.075 0.378 0.15 0.58 0.224l0.608 0.22 1.12 0.414 0.343 0.12 0.393 0.132 0.148 0.044 0.139 0.044 0.373 0.102 0.233 0.053 0.503 0.106 0.414 0.080 0.471 0.088 1.327 0.238 0.66 0.115 2.556 0.426v12.466l0.003 0.050c0.008 0.514-0.086 1.197-0.344 2.022l-0.092 0.28-0.035 0.098c-0.544 1.525-1.525 3.15-3.029 4.829-0.426 0.467-0.876 0.912-1.35 1.33-0.459 0.412-0.969 0.839-1.521 1.277-0.512 0.405-1.072 0.811-1.631 1.205l-1.442 1.008-0.519 0.356-0.245 0.163-0.793 0.522-1.047-0.642-0.654-0.424-0.493-0.333c-0.731-0.499-1.411-1.038-2.088-1.595l-1.020-0.846c-0.876-0.727-1.664-1.456-2.346-2.177-1.368-1.45-2.286-2.933-2.824-4.394-0.337-0.917-0.491-1.723-0.522-2.388l-0.006-0.216v-12.625l1.21-0.166 1.186-0.17 0.839-0.127 0.748-0.119 0.474-0.079 0.602-0.107 0.318-0.063 0.214-0.045 0.198-0.050 0.353-0.101 0.201-0.062 0.444-0.145 0.549-0.188 0.802-0.287c0.422-0.154 0.797-0.317 1.197-0.483l0.955-0.381 0.712-0.287zM15.973 4.167l-0.725 0.287-0.756 0.314-0.51 0.202-0.468 0.171-0.53 0.188-0.575 0.197-0.475 0.155-0.393 0.119-0.357 0.096-0.179 0.044-0.399 0.083-0.449 0.083-0.371 0.066-0.488 0.081-0.97 0.152-0.648 0.098-0.679 0.097v10.87c0.003 0.459 0.102 1.022 0.309 1.653l0.096 0.274c0.46 1.249 1.255 2.497 2.4 3.711 0.514 0.544 1.105 1.102 1.766 1.67l1.316 1.099 0.768 0.623 0.449 0.349c0.072 0.055 0.143 0.108 0.212 0.16l0.412 0.297 0.441 0.302 0.223 0.149 0.568 0.37 0.451-0.307 1.477-1.034 0.494-0.353 0.634-0.468 0.368-0.285c0.533-0.424 1.011-0.825 1.443-1.212 0.414-0.365 0.813-0.759 1.184-1.165 1.192-1.331 2.027-2.629 2.518-3.858l0.144-0.386c0.206-0.6 0.309-1.112 0.327-1.436l0.003-0.112-0.005-0.154-0.001-10.772-0.899-0.149-0.667-0.116-1.343-0.241-0.484-0.090-0.443-0.086-0.536-0.113-0.313-0.073-0.267-0.072-0.504-0.152-0.599-0.203-0.666-0.242-1.492-0.55-0.436-0.172-0.375-0.159zM15.246 6.62l0.712-0.296 1.609 0.594 0.705 0.256 0.474 0.162 0.286 0.093 0.148 0.044 0.071 0.023 0.25 0.073 0.292 0.079 0.133 0.033 0.259 0.059 0.568 0.12 0.471 0.092 0.497 0.093 1.276 0.229 0.001 9.084 0.003 0.124-0.002 0.042c-0.007 0.095-0.032 0.245-0.082 0.44l-0.042 0.154-0.093 0.291-0.116 0.308c-0.399 0.994-1.105 2.091-2.145 3.252-0.311 0.341-0.658 0.683-1.017 1-0.309 0.277-0.639 0.558-0.997 0.85l-0.368 0.296-0.338 0.262-0.384 0.285-0.683 0.49-0.797 0.558-0.249-0.176-0.385-0.286-0.418-0.326-0.467-0.377-0.257-0.211-1.283-1.070c-0.611-0.525-1.153-1.038-1.619-1.53-0.876-0.928-1.492-1.854-1.87-2.757l-0.106-0.27-0.068-0.195c-0.126-0.38-0.191-0.701-0.209-0.942l-0.005-0.114v-9.13l0.611-0.097 0.503-0.084 0.654-0.116 0.218-0.042 0.434-0.090 0.167-0.039 0.182-0.046 0.404-0.112 0.353-0.108 0.269-0.087 0.524-0.175 0.587-0.204 0.78-0.283 0.562-0.222z\\"></path>
</symbol>
<symbol id=\\"icon-Microsoft_Exchange_Server_Logo_wine\\" viewBox=\\"0 0 32 32\\">
<title>Microsoft_Exchange_Server_Logo_wine</title>
<path fill=\\"#28a8ea\\" style=\\"fill: var(--color1, #28a8ea)\\" d=\\"M29.068 3h-6.652c-0.504 0-0.988 0.199-1.344 0.554l-15.701 15.599c-0.356 0.354-0.557 0.834-0.557 1.336v6.608c0 0.502 0.201 0.982 0.557 1.337 0.357 0.354 0.841 0.553 1.345 0.553h6.652c0.504 0 0.988-0.199 1.345-0.554l15.7-15.599c0.357-0.354 0.557-0.834 0.557-1.336v-6.608c0-0.501-0.2-0.982-0.557-1.337s-0.84-0.553-1.345-0.553z\\"></path>
Expand Down
5 changes: 5 additions & 0 deletions packages/juno-icon/assets/icon-shield.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 packages/juno-icon/devUtils/iconSymbol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export default `<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-shield" viewBox="0 0 32 32">
<title>shield</title>
<path d="M16 2l0.507 0.223 0.622 0.263c0.18 0.075 0.378 0.15 0.58 0.224l0.608 0.22 1.12 0.414 0.343 0.12 0.393 0.132 0.148 0.044 0.139 0.044 0.373 0.102 0.233 0.053 0.503 0.106 0.414 0.080 0.471 0.088 1.327 0.238 0.66 0.115 2.556 0.426v12.466l0.003 0.050c0.008 0.514-0.086 1.197-0.344 2.022l-0.092 0.28-0.035 0.098c-0.544 1.525-1.525 3.15-3.029 4.829-0.426 0.467-0.876 0.912-1.35 1.33-0.459 0.412-0.969 0.839-1.521 1.277-0.512 0.405-1.072 0.811-1.631 1.205l-1.442 1.008-0.519 0.356-0.245 0.163-0.793 0.522-1.047-0.642-0.654-0.424-0.493-0.333c-0.731-0.499-1.411-1.038-2.088-1.595l-1.020-0.846c-0.876-0.727-1.664-1.456-2.346-2.177-1.368-1.45-2.286-2.933-2.824-4.394-0.337-0.917-0.491-1.723-0.522-2.388l-0.006-0.216v-12.625l1.21-0.166 1.186-0.17 0.839-0.127 0.748-0.119 0.474-0.079 0.602-0.107 0.318-0.063 0.214-0.045 0.198-0.050 0.353-0.101 0.201-0.062 0.444-0.145 0.549-0.188 0.802-0.287c0.422-0.154 0.797-0.317 1.197-0.483l0.955-0.381 0.712-0.287zM15.973 4.167l-0.725 0.287-0.756 0.314-0.51 0.202-0.468 0.171-0.53 0.188-0.575 0.197-0.475 0.155-0.393 0.119-0.357 0.096-0.179 0.044-0.399 0.083-0.449 0.083-0.371 0.066-0.488 0.081-0.97 0.152-0.648 0.098-0.679 0.097v10.87c0.003 0.459 0.102 1.022 0.309 1.653l0.096 0.274c0.46 1.249 1.255 2.497 2.4 3.711 0.514 0.544 1.105 1.102 1.766 1.67l1.316 1.099 0.768 0.623 0.449 0.349c0.072 0.055 0.143 0.108 0.212 0.16l0.412 0.297 0.441 0.302 0.223 0.149 0.568 0.37 0.451-0.307 1.477-1.034 0.494-0.353 0.634-0.468 0.368-0.285c0.533-0.424 1.011-0.825 1.443-1.212 0.414-0.365 0.813-0.759 1.184-1.165 1.192-1.331 2.027-2.629 2.518-3.858l0.144-0.386c0.206-0.6 0.309-1.112 0.327-1.436l0.003-0.112-0.005-0.154-0.001-10.772-0.899-0.149-0.667-0.116-1.343-0.241-0.484-0.090-0.443-0.086-0.536-0.113-0.313-0.073-0.267-0.072-0.504-0.152-0.599-0.203-0.666-0.242-1.492-0.55-0.436-0.172-0.375-0.159zM15.246 6.62l0.712-0.296 1.609 0.594 0.705 0.256 0.474 0.162 0.286 0.093 0.148 0.044 0.071 0.023 0.25 0.073 0.292 0.079 0.133 0.033 0.259 0.059 0.568 0.12 0.471 0.092 0.497 0.093 1.276 0.229 0.001 9.084 0.003 0.124-0.002 0.042c-0.007 0.095-0.032 0.245-0.082 0.44l-0.042 0.154-0.093 0.291-0.116 0.308c-0.399 0.994-1.105 2.091-2.145 3.252-0.311 0.341-0.658 0.683-1.017 1-0.309 0.277-0.639 0.558-0.997 0.85l-0.368 0.296-0.338 0.262-0.384 0.285-0.683 0.49-0.797 0.558-0.249-0.176-0.385-0.286-0.418-0.326-0.467-0.377-0.257-0.211-1.283-1.070c-0.611-0.525-1.153-1.038-1.619-1.53-0.876-0.928-1.492-1.854-1.87-2.757l-0.106-0.27-0.068-0.195c-0.126-0.38-0.191-0.701-0.209-0.942l-0.005-0.114v-9.13l0.611-0.097 0.503-0.084 0.654-0.116 0.218-0.042 0.434-0.090 0.167-0.039 0.182-0.046 0.404-0.112 0.353-0.108 0.269-0.087 0.524-0.175 0.587-0.204 0.78-0.283 0.562-0.222z"></path>
</symbol>
<symbol id="icon-Microsoft_Exchange_Server_Logo_wine" viewBox="0 0 32 32">
<title>Microsoft_Exchange_Server_Logo_wine</title>
<path fill="#28a8ea" style="fill: var(--color1, #28a8ea)" d="M29.068 3h-6.652c-0.504 0-0.988 0.199-1.344 0.554l-15.701 15.599c-0.356 0.354-0.557 0.834-0.557 1.336v6.608c0 0.502 0.201 0.982 0.557 1.337 0.357 0.354 0.841 0.553 1.345 0.553h6.652c0.504 0 0.988-0.199 1.345-0.554l15.7-15.599c0.357-0.354 0.557-0.834 0.557-1.336v-6.608c0-0.501-0.2-0.982-0.557-1.337s-0.84-0.553-1.345-0.553z"></path>
Expand Down
1 change: 1 addition & 0 deletions packages/juno-icon/devUtils/svgToComponentMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'7': '7',
'8': '8',
'9': '9',
Shield: 'shield',
MicrosoftExchangeServerLogoWine: 'Microsoft_Exchange_Server_Logo_wine',
RecordBorder: 'record_border',
VoicemailBorder: 'voicemail_border',
Expand Down
18 changes: 18 additions & 0 deletions packages/juno-icon/src/Shield.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import { SVGProps, Ref, forwardRef, memo } from 'react';

const Shield = memo(
forwardRef((props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
<svg
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
{...props}
>
<path d="m16 2 .507.223.622.263c.18.075.378.15.58.224l.608.22 1.12.414.343.12.393.132.148.044.139.044.373.102.233.053.503.106.414.08.471.088 1.327.238.66.115 2.556.426v12.466l.003.05c.008.514-.086 1.197-.344 2.022l-.092.28-.035.098c-.544 1.525-1.525 3.15-3.029 4.829-.426.467-.876.912-1.35 1.33-.459.412-.969.839-1.521 1.277-.512.405-1.072.811-1.631 1.205l-1.442 1.008-.519.356-.245.163-.793.522-1.047-.642-.654-.424-.493-.333a29.192 29.192 0 0 1-2.088-1.595l-1.02-.846a26.759 26.759 0 0 1-2.346-2.177c-1.368-1.45-2.286-2.933-2.824-4.394-.337-.917-.491-1.723-.522-2.388l-.006-.216V4.858l1.21-.166 1.186-.17.839-.127.748-.119.474-.079.602-.107.318-.063.214-.045.198-.05.353-.101.201-.062.444-.145.549-.188.802-.287c.422-.154.797-.317 1.197-.483l.955-.381.712-.287zm-.027 2.167-.725.287-.756.314-.51.202-.468.171-.53.188-.575.197-.475.155-.393.119-.357.096-.179.044-.399.083-.449.083-.371.066-.488.081-.97.152-.648.098-.679.097v10.87c.003.459.102 1.022.309 1.653l.096.274c.46 1.249 1.255 2.497 2.4 3.711a23.547 23.547 0 0 0 1.766 1.67l1.316 1.099.768.623.449.349.212.16.412.297.441.302.223.149.568.37.451-.307 1.477-1.034.494-.353.634-.468.368-.285a32.274 32.274 0 0 0 1.443-1.212c.414-.365.813-.759 1.184-1.165 1.192-1.331 2.027-2.629 2.518-3.858l.144-.386c.206-.6.309-1.112.327-1.436l.003-.112-.005-.154-.001-10.772-.899-.149-.667-.116-1.343-.241-.484-.09-.443-.086-.536-.113-.313-.073-.267-.072-.504-.152-.599-.203-.666-.242-1.492-.55-.436-.172-.375-.159zm-.727 2.453.712-.296 1.609.594.705.256.474.162.286.093.148.044.071.023.25.073.292.079.133.033.259.059.568.12.471.092.497.093 1.276.229.001 9.084.003.124-.002.042a2.704 2.704 0 0 1-.082.44l-.042.154-.093.291-.116.308c-.399.994-1.105 2.091-2.145 3.252-.311.341-.658.683-1.017 1-.309.277-.639.558-.997.85l-.368.296-.338.262-.384.285-.683.49-.797.558-.249-.176-.385-.286-.418-.326-.467-.377-.257-.211-1.283-1.07a21.85 21.85 0 0 1-1.619-1.53c-.876-.928-1.492-1.854-1.87-2.757l-.106-.27-.068-.195a4.071 4.071 0 0 1-.209-.942l-.005-.114v-9.13l.611-.097.503-.084.654-.116.218-.042.434-.09.167-.039.182-.046.404-.112.353-.108.269-.087.524-.175.587-.204.78-.283.562-.222z" />
</svg>
)),
);
Shield.displayName = 'Shield';
Shield['iconName'] = 'shield';
export default Shield;
1 change: 1 addition & 0 deletions packages/juno-icon/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export { default as SettingsBorder } from './SettingsBorder';
export { default as Settings } from './Settings';
export { default as Share } from './Share';
export { default as Sharepoint } from './Sharepoint';
export { default as Shield } from './Shield';
export { default as ShortcutBorder } from './ShortcutBorder';
export { default as Shortcut } from './Shortcut';
export { default as Signal0 } from './Signal0';
Expand Down
2 changes: 1 addition & 1 deletion sync-github.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latestCommitSHA": "27343c1a6db417a444ce759ea39dbb812ff04b61"
"latestCommitSHA": "11fd01c530a0fab51bfa869d9b00a028e106b6ac"
}

0 comments on commit b255589

Please sign in to comment.