Skip to content

Commit 5a8e92d

Browse files
committed
chore: rhds to rh, support multiple paths
1 parent 7209db4 commit 5a8e92d

File tree

9 files changed

+5486
-4709
lines changed

9 files changed

+5486
-4709
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Generated icon files - these are auto-generated and should not be formatted
2+
packages/react-icons/scripts/icons/rhIcons*.mjs
23
packages/react-icons/scripts/icons/rhdsIcons*.mjs
34

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import faIcons from './icons/fontawesomeIcons.mjs';
22
import patternflyIcons from './icons/patternflyIcons.mjs';
33
import customIcons from './icons/customIcons.mjs';
4-
import rhdsIconsMicrons from './icons/rhdsIconsMicrons.mjs';
5-
import rhdsIconsStandard from './icons/rhdsIconsStandard.mjs';
6-
import rhdsIconsSocial from './icons/rhdsIconsSocial.mjs';
7-
import rhdsIconsUI from './icons/rhdsIconsUI.mjs';
4+
import rhIconsMicrons from './icons/rhIconsMicrons.mjs';
5+
import rhIconsStandard from './icons/rhIconsStandard.mjs';
6+
import rhIconsSocial from './icons/rhIconsSocial.mjs';
7+
import rhIconsUI from './icons/rhIconsUI.mjs';
88

99
/**
1010
* Generates icons from FontAwesome, PatternFly CSS, and custom icons in this repo.
@@ -14,9 +14,9 @@ export function generateIcons() {
1414
...faIcons,
1515
...patternflyIcons,
1616
...customIcons,
17-
...rhdsIconsMicrons,
18-
...rhdsIconsStandard,
19-
...rhdsIconsSocial,
20-
...rhdsIconsUI
17+
...rhIconsMicrons,
18+
...rhIconsStandard,
19+
...rhIconsSocial,
20+
...rhIconsUI
2121
};
2222
}

packages/react-icons/scripts/icons/rhdsIconsMicrons.mjs renamed to packages/react-icons/scripts/icons/RhIconsMicrons.mjs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,149 @@
11
export default {
2-
'rhds-microns-arrow-down': {
2+
'rh-microns-arrow-down': {
33
xOffset: 0,
44
yOffset: 0,
55
width: 20,
66
height: 20,
77
svgPathData:
88
'M16.71 11.29a.996.996 0 0 0-1.41 0l-4.29 4.29V2c0-.55-.45-1-1-1s-1 .45-1 1v13.59L4.72 11.3a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 5.65 5.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.65-5.65a.996.996 0 0 0 0-1.41Z'
99
},
10-
'rhds-microns-arrow-left': {
10+
'rh-microns-arrow-left': {
1111
xOffset: 0,
1212
yOffset: 0,
1313
width: 20,
1414
height: 20,
1515
svgPathData:
1616
'M18 9H4.41L8.7 4.71c.4-.38.41-1.02.02-1.41a.987.987 0 0 0-1.41-.02l-.02.02-5.64 5.64c-.58.59-.58 1.53 0 2.12l5.65 5.65a.996.996 0 1 0 1.41-1.41l-4.29-4.29h13.59c.55 0 1-.45 1-1s-.45-1-1-1Z'
1717
},
18-
'rhds-microns-arrow-right': {
18+
'rh-microns-arrow-right': {
1919
xOffset: 0,
2020
yOffset: 0,
2121
width: 20,
2222
height: 20,
2323
svgPathData:
2424
'M18.35 8.94 12.7 3.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 4.29 4.29H2c-.55 0-1 .45-1 1s.45 1 1 1h13.59l-4.29 4.29a.987.987 0 0 0-.02 1.41c.38.4 1.02.41 1.41.02l.02-.02 5.65-5.65c.59-.59.59-1.53 0-2.12Z'
2525
},
26-
'rhds-microns-arrow-up': {
26+
'rh-microns-arrow-up': {
2727
xOffset: 0,
2828
yOffset: 0,
2929
width: 20,
3030
height: 20,
3131
svgPathData:
3232
'm16.71 7.29-5.65-5.64c-.59-.58-1.53-.58-2.12 0L3.29 7.29a.987.987 0 0 0-.02 1.41c.38.4 1.02.41 1.41.02l.02-.02 4.29-4.29V18c0 .55.45 1 1 1s1-.45 1-1V4.41l4.29 4.29a.996.996 0 1 0 1.41-1.41Z'
3333
},
34-
'rhds-microns-caret-down-fill': {
34+
'rh-microns-caret-down-fill': {
3535
xOffset: 0,
3636
yOffset: 0,
3737
width: 20,
3838
height: 20,
3939
svgPathData:
4040
'M18.92 5.62C18.77 5.25 18.4 5 18 5H2a1.003 1.003 0 0 0-.71 1.71l7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65c.29-.29.37-.72.22-1.09Z'
4141
},
42-
'rhds-microns-caret-down': {
42+
'rh-microns-caret-down': {
4343
xOffset: 0,
4444
yOffset: 0,
4545
width: 20,
4646
height: 20,
4747
svgPathData:
4848
'M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z'
4949
},
50-
'rhds-microns-caret-left-fill': {
50+
'rh-microns-caret-left-fill': {
5151
xOffset: 0,
5252
yOffset: 0,
5353
width: 20,
5454
height: 20,
5555
svgPathData:
5656
'M13.38 1.08a.988.988 0 0 0-1.09.22L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65a.996.996 0 0 0 1.7-.71V2c0-.4-.24-.77-.62-.92Z'
5757
},
58-
'rhds-microns-caret-left': {
58+
'rh-microns-caret-left': {
5959
xOffset: 0,
6060
yOffset: 0,
6161
width: 20,
6262
height: 20,
6363
svgPathData:
6464
'm6.41 10 7.29-7.29.02-.02c.38-.4.37-1.03-.02-1.41-.4-.38-1.03-.37-1.41.02L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41l-7.29-7.29Z'
6565
},
66-
'rhds-microns-caret-right-fill': {
66+
'rh-microns-caret-right-fill': {
6767
xOffset: 0,
6868
yOffset: 0,
6969
width: 20,
7070
height: 20,
7171
svgPathData:
7272
'M14.35 8.94 6.71 1.29a.996.996 0 0 0-1.7.71v16a1.003 1.003 0 0 0 1.71.71l7.65-7.65c.59-.59.59-1.54 0-2.12Z'
7373
},
74-
'rhds-microns-caret-right': {
74+
'rh-microns-caret-right': {
7575
xOffset: 0,
7676
yOffset: 0,
7777
width: 20,
7878
height: 20,
7979
svgPathData:
8080
'M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z'
8181
},
82-
'rhds-microns-caret-up-fill': {
82+
'rh-microns-caret-up-fill': {
8383
xOffset: 0,
8484
yOffset: 0,
8585
width: 20,
8686
height: 20,
8787
svgPathData:
8888
'm18.71 13.29-7.65-7.65a1.49 1.49 0 0 0-2.12 0s-7.65 7.65-7.65 7.65a.996.996 0 0 0 .71 1.7h16a1.003 1.003 0 0 0 .71-1.71Z'
8989
},
90-
'rhds-microns-caret-up': {
90+
'rh-microns-caret-up': {
9191
xOffset: 0,
9292
yOffset: 0,
9393
width: 20,
9494
height: 20,
9595
svgPathData:
9696
'm18.71 13.29-7.65-7.65a1.49 1.49 0 0 0-2.12 0l-7.65 7.65-.02.02c-.38.4-.37 1.03.02 1.41.4.38 1.03.37 1.41-.02l7.29-7.29 7.29 7.29c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41Z'
9797
},
98-
'rhds-microns-checkbox-complete-fill': {
98+
'rh-microns-checkbox-complete-fill': {
9999
xOffset: 0,
100100
yOffset: 0,
101101
width: 20,
102102
height: 20,
103103
svgPathData:
104104
'M17.5 1h-15C1.67 1 1 1.67 1 2.5v15c0 .83.67 1.5 1.5 1.5h15c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5Zm-1.7 6.8-5.65 5.65c-.32.32-.73.47-1.15.47s-.83-.16-1.15-.47L5.2 10.8c-.43-.45-.41-1.16.04-1.59.44-.42 1.12-.42 1.56 0L9 11.42l5.2-5.2c.45-.43 1.16-.41 1.59.04.42.44.42 1.12 0 1.56Z'
105105
},
106-
'rhds-microns-checkbox-complete': {
106+
'rh-microns-checkbox-complete': {
107107
xOffset: 0,
108108
yOffset: 0,
109109
width: 20,
110110
height: 20,
111111
svgPathData:
112112
'm5.29 10.71 2.65 2.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l4.65-4.65c.4-.38.41-1.02.02-1.41a.987.987 0 0 0-1.41-.02l-.02.02-4.29 4.29L6.72 9.3a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02ZM17.5 1h-15C1.67 1 1 1.67 1 2.5v15c0 .83.67 1.5 1.5 1.5h15c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5ZM17 17H3V3h14v14Z'
113113
},
114-
'rhds-microns-checkbox-incomplete': {
114+
'rh-microns-checkbox-incomplete': {
115115
xOffset: 0,
116116
yOffset: 0,
117117
width: 20,
118118
height: 20,
119119
svgPathData:
120120
'M17.5 1h-15C1.67 1 1 1.67 1 2.5v15c0 .83.67 1.5 1.5 1.5h15c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5ZM17 17H3V3h14v14Z'
121121
},
122-
'rhds-microns-checkmark': {
122+
'rh-microns-checkmark': {
123123
xOffset: 0,
124124
yOffset: 0,
125125
width: 20,
126126
height: 20,
127127
svgPathData:
128128
'M18.71 4.27c-.4-.38-1.03-.37-1.41.02L7 14.59 2.71 10.3l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l4.65 4.65a1.499 1.499 0 0 0 2.12 0L18.72 5.71l.02-.02c.38-.4.37-1.03-.02-1.41Z'
129129
},
130-
'rhds-microns-close': {
130+
'rh-microns-close': {
131131
xOffset: 0,
132132
yOffset: 0,
133133
width: 20,
134134
height: 20,
135135
svgPathData:
136136
'M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z'
137137
},
138-
'rhds-microns-external-link': {
138+
'rh-microns-external-link': {
139139
xOffset: 0,
140140
yOffset: 0,
141141
width: 20,
142142
height: 20,
143143
svgPathData:
144144
'M18 14c-.55 0-1 .45-1 1v2H3V3h2c.55 0 1-.45 1-1s-.45-1-1-1H2.5C1.67 1 1 1.67 1 2.5v15c0 .83.67 1.5 1.5 1.5h15c.83 0 1.5-.67 1.5-1.5V15c0-.55-.45-1-1-1Zm-.5-13H11c-.55 0-1 .45-1 1s.45 1 1 1h4.59L8.3 10.29a.987.987 0 0 0-.02 1.41c.38.4 1.02.41 1.41.02l.02-.02L17 4.41V9c0 .55.45 1 1 1s1-.45 1-1V2.5c0-.83-.67-1.5-1.5-1.5Z'
145145
},
146-
'rhds-microns-search': {
146+
'rh-microns-search': {
147147
xOffset: 0,
148148
yOffset: 0,
149149
width: 20,

0 commit comments

Comments
 (0)