Skip to content

Commit

Permalink
feat(icons): added open-drawer-right pficon (patternfly#5160)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoker authored and jenny-s51 committed Nov 15, 2022
1 parent 6553179 commit 8bc58dc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions patternfly-docs/site/pages/icons.md
Expand Up @@ -64,6 +64,7 @@ id: Icons
| ok | <i class="pf-icon pf-icon-ok"></i> | &lt;i class=&quot;pf-icon pf-icon-ok&quot;&gt;&lt;/i&gt;
| on-running | <i class="pf-icon pf-icon-on-running"></i> | &lt;i class=&quot;pf-icon pf-icon-on-running&quot;&gt;&lt;/i&gt;
| on | <i class="pf-icon pf-icon-on"></i> | &lt;i class=&quot;pf-icon pf-icon-on&quot;&gt;&lt;/i&gt;
| open-drawer-right | <i class="pf-icon pf-icon-open-drawer-right"></i> | &lt;i class=&quot;pf-icon pf-icon-open-drawer-right&quot;&gt;&lt;/i&gt;
| openshift | <i class="pf-icon pf-icon-openshift"></i> | &lt;i class=&quot;pf-icon pf-icon-openshift&quot;&gt;&lt;/i&gt;
| openstack | <i class="pf-icon pf-icon-openstack"></i> | &lt;i class=&quot;pf-icon pf-icon-openstack&quot;&gt;&lt;/i&gt;
| optimize | <i class="pf-icon pf-icon-optimize"></i> | &lt;i class=&quot;pf-icon pf-icon-optimize&quot;&gt;&lt;/i&gt;
Expand Down
2 changes: 1 addition & 1 deletion scripts/iconList.sh
@@ -1,7 +1,7 @@
#!/bin/bash

ICON_SRC='./src/icons/definitions/pf-icons.json'
ICON_OUT='./src/site/pages/icons.md'
ICON_OUT='./patternfly-docs/site/pages/icons.md'

echo "---" > $ICON_OUT
echo "id: Icons" >> $ICON_OUT
Expand Down
1 change: 1 addition & 0 deletions src/icons/definitions/pf-icons.json
Expand Up @@ -60,6 +60,7 @@
"ok": { "width": 1024, "height": 1024, "svgPathData": "M668.3,361.4 L465.1,564.6 L352.2,451.7 C346.210177,445.698444 338.079189,442.325817 329.6,442.325817 C321.120811,442.325817 312.989823,445.698444 307,451.7 L261.8,496.9 C255.798444,502.889823 252.425817,511.020811 252.425817,519.5 C252.425817,527.979189 255.798444,536.110177 261.8,542.1 L442.4,722.7 C448.389823,728.701556 456.520811,732.074183 465,732.074183 C473.479189,732.074183 481.610177,728.701556 487.6,722.7 L758.6,451.7 C764.601556,445.710177 767.974183,437.579189 767.974183,429.1 C767.974183,420.620811 764.601556,412.489823 758.6,406.5 L713.4,361.3 C700.916226,348.87879 680.728569,348.923552 668.3,361.4 M512.1,127.9 C300.3,127.9 128.1,300.2 128.1,511.9 C128.1,723.8 300.3,895.9 512.1,895.9 C723.9,895.9 896.1,723.7 896.1,511.9 C896.1,300.1 723.8,127.9 512.1,127.9 M512.1,1024 C229.7,1024 0,794.3 0,512 C0,229.7 229.7,0 512.1,0 C794.3,0 1024,229.7 1024,512 C1024,794.3 794.3,1024 512.1,1024" },
"on-running": { "width": 1024, "height": 1024, "svgPathData": "M512.1,895.9 C300.3,895.9 128.1,723.8 128.1,511.9 C128.1,300.2 300.3,127.9 512.1,127.9 C723.9,127.9 896,300.2 896.100043,511.9 C896.2,723.6 723.8,895.9 512.1,895.9 M512.1,0 C229.7,0 0,229.7 0,512 C0,794.3 229.7,1024 512.1,1024 C794.3,1024 1024,794.3 1024,512 C1024,229.7 794.3,0 512.1,0 M716.3,482.9 C710,495.2 575.5,679.5 493.7,782.4 C478,800.2 463.4,794.2 457.3,790.3 C443.9,781.4 443.1,771.7 451,745 C458.9,718.3 494.1,576 494.1,576 L341.3,576 C328.2,576.2 312.2,576.2 307.1,563.8 C302.2,552 306.9,541.2 314.4,530.8 C370,453.5 508.1,264.9 508.1,264.9 C508.1,264.9 527.2,239.7 541.4,238.3 C554.4,237 562.9,240.5 567,249.6 C572.1,260.2 570.4,272.9 566.8,286.9 C563.5,300 526.4,448 526.4,448 L695.3,448 C702.6,448 711.5,449.4 717.4,457 C723.3,464.6 719.5,477 716.3,482.9" },
"on": { "width": 1024, "height": 1024, "svgPathData": "M663.603658,224.4 L663.603658,224.4 C641.771642,250.215879 643.831875,288.571296 668.303658,311.9 C670.303658,313.8 672.303658,315.7 674.203658,317.7 C703.443938,346.873221 726.741707,381.446295 742.803658,419.5 C776.369088,499.099506 776.405142,588.873559 742.903658,668.5 C710.393155,745.27714 649.280798,806.389497 572.503658,838.9 C492.877204,872.366658 403.130112,872.366658 323.503658,838.9 C246.726518,806.389497 185.61416,745.27714 153.103658,668.5 C119.637,588.873546 119.637,499.126454 153.103658,419.5 C169.190182,381.459603 192.484939,346.891 221.703658,317.7 C223.703658,315.7 225.603658,313.8 227.603658,311.9 C244.902514,296.274512 252.337369,272.479103 247.011573,249.784562 C241.685777,227.090022 224.441743,209.086081 201.997819,202.787151 C179.553894,196.488221 155.460168,202.89064 139.103658,219.5 C50.4831883,303.673416 0.213266584,420.475994 0.00182414744,542.7 C-0.696342125,790.9 199.103658,991.6 447.303658,992.000597 C695.003658,992.4 896.003658,791.7 896.003658,544 C896.003658,416.1 842.403658,300.8 756.503658,219.1 C729.903658,193.8 687.303658,196.3 663.603658,224.4 M448.003658,32 C412.714357,32.1370474 384.140705,60.7106988 384.003658,96 L384.003658,416 C384.003658,451.346224 412.657434,480 448.003658,480 C483.349882,480 512.003658,451.346224 512.003658,416 L512.003658,96 C511.86661,60.7106988 483.292959,32.1370474 448.003658,32" },
"open-drawer-right": { "width": 1216, "height": 1024, "svgPathData": "M1184,0 C1201.673,0 1216,14.334 1216,32.015 L1216,991.984 C1216,1009.666 1201.673,1024 1184,1024 L32,1024 C14.327,1024 0,1009.666 0,991.984 L0,32.015 C0,14.334 14.327,0 32,0 L1184,0 Z M1151.96,64.031 L64,64.031 L64,959.968 L1152,959.968 L1151.96,64.031 Z M1056.9407,128.6256 C1074.6467,128.6256 1088.9997,142.9716 1088.9997,160.6676 L1088.9997,863.9576 C1088.9997,881.6546 1074.6467,895.9996 1056.9407,895.9996 L737.0597,895.9996 C719.3537,895.9996 704.9997,881.6546 704.9997,863.9576 L704.9997,160.6676 C704.9997,142.9716 719.3537,128.6256 737.0597,128.6256 Z" },
"openshift": { "width": 1116, "height": 1024, "svgPathData": "M1006.91,504.51 C1002.0573,439.787297 984.864829,376.59097 956.26,318.33 L1116.69,260.14 C1104.01926,234.33374 1089.19332,209.642796 1072.37,186.33 L999.29,212.85 C906.31,83.91 754.83,0 583.75,0 C300.98,0 71.75,229.23 71.75,512 C71.75,524.38 72.1866667,536.656667 73.06,548.83 L146.17,522.33 C148.200448,550.867511 152.626027,579.183857 159.4,606.98 L-1,665.15 C14.4544867,728.332438 41.8610187,787.972364 79.74,840.85 L167.09,809.17 C260,938.97 412,1023.56 583.75,1023.56 C866.52,1023.56 1095.75,794.33 1095.75,511.56 C1095.75,498.526667 1095.26667,485.613333 1094.3,472.82 L1006.91,504.51 Z M786.38,379.93 C814.645405,429.864006 829.462101,486.281159 829.38,543.66 C829.38,552.42 829.046667,561.086667 828.38,569.66 L915.69,537.98 C902.19,709.55 758.74,844.530218 583.75,844.530218 C494.136383,844.632572 408.289413,808.493313 345.73,744.33 L258.38,776.02 C212.04846,728.757237 180.89298,668.730618 168.91,603.64 L329.32,545.46 C325.681927,525.572976 323.854446,505.397053 323.86,485.18 C323.86,475.73 324.28,466.37 325.05,457.11 L252,483.65 C266.38,313.02 409.41,179.02973 583.75,179.02973 C672.657058,178.916588 757.893117,214.475742 820.36,277.74 L893.45,251.23 C914.280407,272.266843 932.224012,295.977555 946.81,321.74 L786.38,379.93 Z" },
"openstack": { "width": 1024, "height": 1024, "svgPathData": "M768,704 L768,720 C768,746.509668 746.509668,768 720,768 L304,768 C277.490332,768 256,746.509668 256,720 L256,704 L0,704 L0,928 C0,981.019336 42.980664,1024 96,1024 L928,1024 C981.019336,1024 1024,981.019336 1024,928 L1024,704 L768,704 Z M0,640 L256,640 L256,384 L0,384 L0,640 Z M768,640 L1024,640 L1024,384 L768,384 L768,640 Z M0,320 L0,96 C0,42.980664 42.980664,0 96,0 L928,0 C981.019336,0 1024,42.980664 1024,96 L1024,320 L768,320 L768,304 C768,277.490332 746.509668,256 720,256 L304,256 C277.490332,256 256,277.490332 256,304 L256,320 L0,320 Z" },
"optimize": { "width": 1024, "height": 1024, "svgPathData": "M1010,882 L374.9,246.9 C356.2,228.2 325.7,228.2 307,246.9 L246.9,307 C228.2,325.7 228.2,356.2 246.9,374.9 L882,1010 C891.3,1019.3 903.7,1024 916,1024 C928.3,1024 940.6,1019.3 950,1010 L1010.1,949.9 C1019.4,940.6 1024,928.6 1024,916.2 C1024,903.8 1019.4,891.4 1010,882 Z M481,545 L277,341 L341,277 L545,481 L481,545 Z M244.7,500.7 C250.9,506.9 250.9,517.1 244.7,523.3 L132.7,635.3 C129.7,638.3 125.6,640 121.4,640 L80,640 C71.2,640 64,632.8 64,624 L64,582.6 C64,578.4 65.7,574.3 68.7,571.3 L180.7,459.3 C186.9,453.1 197.1,453.1 203.3,459.3 L244.7,500.7 Z M384,592 L384,688 C384,696.8 376.8,704 368,704 L336,704 C327.2,704 320,696.8 320,688 L320,592 C320,583.2 327.2,576 336,576 L368,576 C376.8,576 384,583.2 384,592 Z M112,384 L16,384 C7.2,384 0,376.8 0,368 L0,336 C0,327.2 7.2,320 16,320 L112,320 C120.8,320 128,327.2 128,336 L128,368 C128,376.8 120.8,384 112,384 Z M459.3,203.3 C453.1,197.1 453.1,186.9 459.3,180.7 L571.3,68.7 C574.3,65.7 578.4,64 582.6,64 L624,64 C632.8,64 640,71.2 640,80 L640,121.4 C640,125.6 638.3,129.7 635.3,132.7 L523.3,244.7 C517.1,250.9 506.9,250.9 500.7,244.7 L459.3,203.3 Z M592,320 L688,320 C696.8,320 704,327.2 704,336 L704,368 C704,376.8 696.8,384 688,384 L592,384 C583.2,384 576,376.8 576,368 L576,336 C576,327.2 583.2,320 592,320 Z M320,112 L320,16 C320,7.2 327.2,0 336,0 L368,0 C376.8,0 384,7.2 384,16 L384,112 C384,120.8 376.8,128 368,128 L336,128 C327.2,128 320,120.8 320,112 Z M68.7,132.7 C65.7,129.7 64,125.6 64,121.4 L64,80 C64,71.2 71.2,64 80,64 L121.4,64 C125.6,64 129.7,65.7 132.7,68.7 L244.7,180.7 C250.9,186.9 250.9,197.1 244.7,203.3 L203.3,244.7 C197.1,250.9 186.9,250.9 180.7,244.7 L68.7,132.7 Z" },
Expand Down
1 change: 1 addition & 0 deletions src/patternfly/assets/icons/iconUnicodes.json
Expand Up @@ -60,6 +60,7 @@
"pf-icon-ok": "E602",
"pf-icon-on-running": "E925",
"pf-icon-on": "E92C",
"pf-icon-open-drawer-right": "E977",
"pf-icon-openshift": "E95E",
"pf-icon-openstack": "E95F",
"pf-icon-optimize": "E93E",
Expand Down
6 changes: 6 additions & 0 deletions src/patternfly/assets/pficon/pficon.scss
Expand Up @@ -206,6 +206,9 @@
@if $filename == on {
$char: '\E92C';
}
@if $filename == open-drawer-right {
$char: '\E977';
}
@if $filename == openshift {
$char: '\E95E';
}
Expand Down Expand Up @@ -593,6 +596,9 @@
.pf-icon-on {
@include pf-icon(on);
}
.pf-icon-open-drawer-right {
@include pf-icon(open-drawer-right);
}
.pf-icon-openshift {
@include pf-icon(openshift);
}
Expand Down
Binary file modified src/patternfly/assets/pficon/pficon.woff
Binary file not shown.
Binary file modified src/patternfly/assets/pficon/pficon.woff2
Binary file not shown.

0 comments on commit 8bc58dc

Please sign in to comment.