Skip to content

Commit

Permalink
test(update-icon-220307): [Icon] update snapshot, devUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
233mawile authored and ZouYouShun committed Mar 7, 2022
1 parent 2409f3f commit 7890a2d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
10 changes: 9 additions & 1 deletion packages/juno-icon/__tests__/__snapshots__/icons.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
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-park-location-full\\" viewBox=\\"0 0 32 32\\">
<title>park-location-full</title>
<path d=\\"M22 2c4.418 0 8 3.582 8 8v12c0 4.418-3.582 8-8 8h-12c-4.418 0-8-3.582-8-8v-12c0-4.418 3.582-8 8-8h12zM17.361 9.226h-3.262l-0.153 0.007-0.154 0.021c-0.861 0.152-1.499 0.899-1.499 1.787v0 10.459l0.007 0.116 0.022 0.122c0.113 0.475 0.529 0.812 1.017 0.812 0.578 0 1.046-0.47 1.046-1.050v0l-0.001-3.527 2.959 0.001 0.221-0.005 0.219-0.014c2.312-0.2 3.912-1.95 3.912-4.328 0-2.582-1.785-4.399-4.333-4.399v0zM16.944 11.148l0.201 0.004c1.58 0.066 2.411 0.921 2.411 2.475s-0.933 2.424-2.612 2.424v0h-2.561v-4.903l2.561 0z\\"></path>
</symbol>
<symbol id=\\"icon-park-location\\" viewBox=\\"0 0 32 32\\">
<title>park-location</title>
<path d=\\"M22 2c4.418 0 8 3.582 8 8v12c0 4.418-3.582 8-8 8h-12c-4.418 0-8-3.582-8-8v-12c0-4.418 3.582-8 8-8h12zM22 4h-12c-3.238 0-5.878 2.566-5.996 5.775l-0.004 0.225v12c0 3.238 2.566 5.878 5.775 5.996l0.225 0.004h12c3.238 0 5.878-2.566 5.996-5.775l0.004-0.225v-12c0-3.238-2.566-5.878-5.775-5.996l-0.225-0.004zM17.361 9.226c2.548 0 4.333 1.816 4.333 4.399 0 2.379-1.6 4.129-3.912 4.328l-0.219 0.014-0.221 0.005-2.959-0.001 0.001 3.527c0 0.58-0.467 1.050-1.046 1.050-0.488 0-0.904-0.337-1.017-0.812l-0.022-0.122-0.007-0.116v-10.459c0-0.888 0.638-1.635 1.499-1.787l0.154-0.021 0.153-0.007h3.262zM16.944 11.148l-2.561-0v4.903h2.561c1.679 0 2.612-0.871 2.612-2.424s-0.831-2.409-2.411-2.475l-0.201-0.004z\\"></path>
</symbol>
<symbol id=\\"icon-customize\\" viewBox=\\"0 0 32 32\\">
<title>customize</title>
<path d=\\"M28.727 20.727c0.703 0 1.273 0.57 1.273 1.273 0 0.633-0.462 1.157-1.066 1.256l-0.206 0.017h-25.455c-0.703 0-1.273-0.57-1.273-1.273 0-0.633 0.462-1.157 1.066-1.256l0.206-0.017h25.455zM28.727 8c0.703 0 1.273 0.57 1.273 1.273 0 0.633-0.462 1.157-1.066 1.256l-0.206 0.017h-25.455c-0.703 0-1.273-0.57-1.273-1.273 0-0.633 0.462-1.157 1.066-1.256l0.206-0.017h25.455z\\"></path>
Expand Down Expand Up @@ -61,7 +69,7 @@ exports[`icon svg file expect svg file to match snapshot 1`] = `
</symbol>
<symbol id=\\"icon-avatar_rooms\\" viewBox=\\"0 0 32 32\\">
<title>avatar_rooms</title>
<path d=\\"M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16c-8.837 0-16-7.163-16-16s7.163-16 16-16zM19.024 22.814h-6.047c-0.244 0-0.442 0.198-0.442 0.441v0.441c0 0.244 0.198 0.441 0.442 0.441h6.047c0.244 0 0.442-0.198 0.442-0.441v-0.441c0-0.244-0.198-0.441-0.442-0.441zM16 19.137c-0.774 0-1.401 0.625-1.401 1.397s0.627 1.397 1.401 1.397c0.774 0 1.401-0.625 1.401-1.397s-0.627-1.397-1.401-1.397zM22.858 10.167h-13.717c-0.814 0.002-1.473 0.659-1.475 1.471v7.353c0.002 0.811 0.661 1.468 1.475 1.471h0.434c0.167 0.001 0.305-0.128 0.316-0.294 0.195-3.222 2.872-5.735 6.109-5.735s5.914 2.513 6.109 5.735c0.011 0.166 0.149 0.295 0.316 0.294h0.434c0.814-0.002 1.473-0.659 1.475-1.471v-7.353c-0.002-0.811-0.661-1.468-1.475-1.471zM16 16.049c-2.313 0.001-4.248 1.749-4.476 4.044-0.008 0.095 0.024 0.189 0.089 0.259s0.156 0.11 0.252 0.109h0.8c0.173-0.001 0.319-0.131 0.338-0.303 0.189-1.507 1.474-2.638 2.997-2.638s2.808 1.131 2.997 2.638c0.020 0.172 0.165 0.302 0.338 0.303h0.8c0.095 0 0.187-0.039 0.251-0.109s0.097-0.164 0.089-0.259c-0.227-2.295-2.163-4.044-4.476-4.044z\\"></path>
<path d=\\"M19.024 22.814c0.244 0 0.442 0.198 0.442 0.441v0 0.441c0 0.244-0.198 0.441-0.442 0.441v0h-6.047c-0.244 0-0.442-0.198-0.442-0.441v0-0.441c0-0.244 0.198-0.441 0.442-0.441v0zM16 19.137c0.774 0 1.401 0.625 1.401 1.397s-0.627 1.397-1.401 1.397c-0.774 0-1.401-0.625-1.401-1.397s0.627-1.397 1.401-1.397zM22.858 10.167c0.814 0.002 1.473 0.659 1.475 1.471v0 7.353c-0.002 0.811-0.661 1.468-1.475 1.471v0h-0.434c-0.167 0.001-0.305-0.128-0.316-0.294-0.195-3.222-2.872-5.735-6.109-5.735s-5.914 2.513-6.109 5.735c-0.011 0.166-0.149 0.295-0.316 0.294v0h-0.434c-0.814-0.002-1.473-0.659-1.475-1.471v0-7.353c0.002-0.811 0.661-1.468 1.475-1.471v0zM16 16.049c2.313 0.001 4.248 1.749 4.476 4.044 0.008 0.095-0.024 0.189-0.089 0.259s-0.156 0.11-0.251 0.109v0h-0.8c-0.173-0.001-0.319-0.131-0.338-0.303-0.189-1.507-1.474-2.638-2.997-2.638s-2.808 1.131-2.997 2.638c-0.020 0.172-0.165 0.302-0.338 0.303v0h-0.8c-0.095 0-0.187-0.039-0.252-0.109s-0.097-0.164-0.089-0.259c0.227-2.295 2.163-4.044 4.476-4.044z\\"></path>
</symbol>
<symbol id=\\"icon-poll_border\\" viewBox=\\"0 0 32 32\\">
<title>poll_border</title>
Expand Down
10 changes: 9 additions & 1 deletion packages/juno-icon/devUtils/iconSymbol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
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-park-location-full" viewBox="0 0 32 32">
<title>park-location-full</title>
<path d="M22 2c4.418 0 8 3.582 8 8v12c0 4.418-3.582 8-8 8h-12c-4.418 0-8-3.582-8-8v-12c0-4.418 3.582-8 8-8h12zM17.361 9.226h-3.262l-0.153 0.007-0.154 0.021c-0.861 0.152-1.499 0.899-1.499 1.787v0 10.459l0.007 0.116 0.022 0.122c0.113 0.475 0.529 0.812 1.017 0.812 0.578 0 1.046-0.47 1.046-1.050v0l-0.001-3.527 2.959 0.001 0.221-0.005 0.219-0.014c2.312-0.2 3.912-1.95 3.912-4.328 0-2.582-1.785-4.399-4.333-4.399v0zM16.944 11.148l0.201 0.004c1.58 0.066 2.411 0.921 2.411 2.475s-0.933 2.424-2.612 2.424v0h-2.561v-4.903l2.561 0z"></path>
</symbol>
<symbol id="icon-park-location" viewBox="0 0 32 32">
<title>park-location</title>
<path d="M22 2c4.418 0 8 3.582 8 8v12c0 4.418-3.582 8-8 8h-12c-4.418 0-8-3.582-8-8v-12c0-4.418 3.582-8 8-8h12zM22 4h-12c-3.238 0-5.878 2.566-5.996 5.775l-0.004 0.225v12c0 3.238 2.566 5.878 5.775 5.996l0.225 0.004h12c3.238 0 5.878-2.566 5.996-5.775l0.004-0.225v-12c0-3.238-2.566-5.878-5.775-5.996l-0.225-0.004zM17.361 9.226c2.548 0 4.333 1.816 4.333 4.399 0 2.379-1.6 4.129-3.912 4.328l-0.219 0.014-0.221 0.005-2.959-0.001 0.001 3.527c0 0.58-0.467 1.050-1.046 1.050-0.488 0-0.904-0.337-1.017-0.812l-0.022-0.122-0.007-0.116v-10.459c0-0.888 0.638-1.635 1.499-1.787l0.154-0.021 0.153-0.007h3.262zM16.944 11.148l-2.561-0v4.903h2.561c1.679 0 2.612-0.871 2.612-2.424s-0.831-2.409-2.411-2.475l-0.201-0.004z"></path>
</symbol>
<symbol id="icon-customize" viewBox="0 0 32 32">
<title>customize</title>
<path d="M28.727 20.727c0.703 0 1.273 0.57 1.273 1.273 0 0.633-0.462 1.157-1.066 1.256l-0.206 0.017h-25.455c-0.703 0-1.273-0.57-1.273-1.273 0-0.633 0.462-1.157 1.066-1.256l0.206-0.017h25.455zM28.727 8c0.703 0 1.273 0.57 1.273 1.273 0 0.633-0.462 1.157-1.066 1.256l-0.206 0.017h-25.455c-0.703 0-1.273-0.57-1.273-1.273 0-0.633 0.462-1.157 1.066-1.256l0.206-0.017h25.455z"></path>
Expand Down Expand Up @@ -58,7 +66,7 @@ export default `<svg aria-hidden="true" style="position: absolute; width: 0; hei
</symbol>
<symbol id="icon-avatar_rooms" viewBox="0 0 32 32">
<title>avatar_rooms</title>
<path d="M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16c-8.837 0-16-7.163-16-16s7.163-16 16-16zM19.024 22.814h-6.047c-0.244 0-0.442 0.198-0.442 0.441v0.441c0 0.244 0.198 0.441 0.442 0.441h6.047c0.244 0 0.442-0.198 0.442-0.441v-0.441c0-0.244-0.198-0.441-0.442-0.441zM16 19.137c-0.774 0-1.401 0.625-1.401 1.397s0.627 1.397 1.401 1.397c0.774 0 1.401-0.625 1.401-1.397s-0.627-1.397-1.401-1.397zM22.858 10.167h-13.717c-0.814 0.002-1.473 0.659-1.475 1.471v7.353c0.002 0.811 0.661 1.468 1.475 1.471h0.434c0.167 0.001 0.305-0.128 0.316-0.294 0.195-3.222 2.872-5.735 6.109-5.735s5.914 2.513 6.109 5.735c0.011 0.166 0.149 0.295 0.316 0.294h0.434c0.814-0.002 1.473-0.659 1.475-1.471v-7.353c-0.002-0.811-0.661-1.468-1.475-1.471zM16 16.049c-2.313 0.001-4.248 1.749-4.476 4.044-0.008 0.095 0.024 0.189 0.089 0.259s0.156 0.11 0.252 0.109h0.8c0.173-0.001 0.319-0.131 0.338-0.303 0.189-1.507 1.474-2.638 2.997-2.638s2.808 1.131 2.997 2.638c0.020 0.172 0.165 0.302 0.338 0.303h0.8c0.095 0 0.187-0.039 0.251-0.109s0.097-0.164 0.089-0.259c-0.227-2.295-2.163-4.044-4.476-4.044z"></path>
<path d="M19.024 22.814c0.244 0 0.442 0.198 0.442 0.441v0 0.441c0 0.244-0.198 0.441-0.442 0.441v0h-6.047c-0.244 0-0.442-0.198-0.442-0.441v0-0.441c0-0.244 0.198-0.441 0.442-0.441v0zM16 19.137c0.774 0 1.401 0.625 1.401 1.397s-0.627 1.397-1.401 1.397c-0.774 0-1.401-0.625-1.401-1.397s0.627-1.397 1.401-1.397zM22.858 10.167c0.814 0.002 1.473 0.659 1.475 1.471v0 7.353c-0.002 0.811-0.661 1.468-1.475 1.471v0h-0.434c-0.167 0.001-0.305-0.128-0.316-0.294-0.195-3.222-2.872-5.735-6.109-5.735s-5.914 2.513-6.109 5.735c-0.011 0.166-0.149 0.295-0.316 0.294v0h-0.434c-0.814-0.002-1.473-0.659-1.475-1.471v0-7.353c0.002-0.811 0.661-1.468 1.475-1.471v0zM16 16.049c2.313 0.001 4.248 1.749 4.476 4.044 0.008 0.095-0.024 0.189-0.089 0.259s-0.156 0.11-0.251 0.109v0h-0.8c-0.173-0.001-0.319-0.131-0.338-0.303-0.189-1.507-1.474-2.638-2.997-2.638s-2.808 1.131-2.997 2.638c-0.020 0.172-0.165 0.302-0.338 0.303v0h-0.8c-0.095 0-0.187-0.039-0.252-0.109s-0.097-0.164-0.089-0.259c0.227-2.295 2.163-4.044 4.476-4.044z"></path>
</symbol>
<symbol id="icon-poll_border" viewBox="0 0 32 32">
<title>poll_border</title>
Expand Down
2 changes: 2 additions & 0 deletions packages/juno-icon/devUtils/svgToComponentMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default {
'7': '7',
'8': '8',
'9': '9',
ParkLocationFull: 'park-location-full',
ParkLocation: 'park-location',
Customize: 'customize',
Mobile: 'mobile',
Department: 'department',
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": "1ef9d8f4928675e3a088be7bfa978457bfa6320b"
"latestCommitSHA": "791fdc76537487bfb76d8e07b22621faa067b36f"
}

0 comments on commit 7890a2d

Please sign in to comment.