@zohodesk/icons 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/es/Context/__tests__/__snapshots__/IconContext.spec.js.snap +11 -11
- package/es/Icon/FontIcon.js +3 -3
- package/es/Icon/SvgIcon.js +1 -1
- package/es/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +18 -18
- package/es/Icon/__tests__/__snapshots__/SvgIcon.spec.js.snap +12 -12
- package/es/Icon/iconCssModules.js +197 -0
- package/es/Icon/index.js +1 -197
- package/lib/Context/__tests__/__snapshots__/IconContext.spec.js.snap +11 -11
- package/lib/Icon/FontIcon.js +3 -3
- package/lib/Icon/SvgIcon.js +1 -1
- package/lib/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +18 -18
- package/lib/Icon/__tests__/__snapshots__/SvgIcon.spec.js.snap +12 -12
- package/lib/Icon/iconCssModules.js +205 -0
- package/lib/Icon/index.js +4 -198
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
In this GiftBox we Provide FontIcons
|
|
4
4
|
|
|
5
|
+
# 1.3.10
|
|
6
|
+
|
|
7
|
+
- Reordered className values to ensure customClass is always appended last to adopt CSS utility .
|
|
8
|
+
|
|
5
9
|
# 1.3.9
|
|
6
10
|
|
|
7
|
-
- ReactAnalyticsColorIcon --> ZD-AC-unassignedTicket icon
|
|
11
|
+
- ReactAnalyticsColorIcon --> ZD-AC-unassignedTicket icon added.
|
|
8
12
|
|
|
9
13
|
# 1.3.8
|
|
10
14
|
|
|
@@ -4,7 +4,7 @@ exports[`IconProvider / IconContext - default context - renders font icon (no p
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<i
|
|
6
6
|
aria-hidden="true"
|
|
7
|
-
class="zd_font_icons
|
|
7
|
+
class="zd_font_icons basic icon-close2 "
|
|
8
8
|
data-id="fontIcon"
|
|
9
9
|
data-selector-id="fontIcon"
|
|
10
10
|
data-test-id="fontIcon"
|
|
@@ -16,7 +16,7 @@ exports[`IconProvider / IconContext - multiple icons share the same provider co
|
|
|
16
16
|
<DocumentFragment>
|
|
17
17
|
<svg
|
|
18
18
|
aria-hidden="true"
|
|
19
|
-
class="svgIcon
|
|
19
|
+
class="svgIcon "
|
|
20
20
|
data-id="fontIcon"
|
|
21
21
|
data-selector-id="fontIcon"
|
|
22
22
|
data-test-id="fontIcon"
|
|
@@ -27,7 +27,7 @@ exports[`IconProvider / IconContext - multiple icons share the same provider co
|
|
|
27
27
|
</svg>
|
|
28
28
|
<svg
|
|
29
29
|
aria-hidden="true"
|
|
30
|
-
class="svgIcon
|
|
30
|
+
class="svgIcon "
|
|
31
31
|
data-id="fontIcon"
|
|
32
32
|
data-selector-id="fontIcon"
|
|
33
33
|
data-test-id="fontIcon"
|
|
@@ -43,7 +43,7 @@ exports[`IconProvider / IconContext - type "fontIcon" - renders font icon 1`] =
|
|
|
43
43
|
<DocumentFragment>
|
|
44
44
|
<i
|
|
45
45
|
aria-hidden="true"
|
|
46
|
-
class="zd_font_icons
|
|
46
|
+
class="zd_font_icons basic icon-close2 "
|
|
47
47
|
data-id="fontIcon"
|
|
48
48
|
data-selector-id="fontIcon"
|
|
49
49
|
data-test-id="fontIcon"
|
|
@@ -55,7 +55,7 @@ exports[`IconProvider / IconContext - type "svgIcon" - passes "a11y" ariaHidden
|
|
|
55
55
|
<DocumentFragment>
|
|
56
56
|
<svg
|
|
57
57
|
aria-hidden="false"
|
|
58
|
-
class="svgIcon
|
|
58
|
+
class="svgIcon "
|
|
59
59
|
data-id="fontIcon"
|
|
60
60
|
data-selector-id="fontIcon"
|
|
61
61
|
data-test-id="fontIcon"
|
|
@@ -71,7 +71,7 @@ exports[`IconProvider / IconContext - type "svgIcon" - passes "iconClass" prop
|
|
|
71
71
|
<DocumentFragment>
|
|
72
72
|
<svg
|
|
73
73
|
aria-hidden="true"
|
|
74
|
-
class="svgIcon
|
|
74
|
+
class="svgIcon custom-class"
|
|
75
75
|
data-id="fontIcon"
|
|
76
76
|
data-selector-id="fontIcon"
|
|
77
77
|
data-test-id="fontIcon"
|
|
@@ -87,7 +87,7 @@ exports[`IconProvider / IconContext - type "svgIcon" - passes "size" prop to sv
|
|
|
87
87
|
<DocumentFragment>
|
|
88
88
|
<svg
|
|
89
89
|
aria-hidden="true"
|
|
90
|
-
class="svgIcon
|
|
90
|
+
class="svgIcon "
|
|
91
91
|
data-id="fontIcon"
|
|
92
92
|
data-selector-id="fontIcon"
|
|
93
93
|
data-test-id="fontIcon"
|
|
@@ -104,7 +104,7 @@ exports[`IconProvider / IconContext - type "svgIcon" - passes "title" prop to s
|
|
|
104
104
|
<DocumentFragment>
|
|
105
105
|
<svg
|
|
106
106
|
aria-hidden="true"
|
|
107
|
-
class="svgIcon
|
|
107
|
+
class="svgIcon "
|
|
108
108
|
data-id="fontIcon"
|
|
109
109
|
data-selector-id="fontIcon"
|
|
110
110
|
data-test-id="fontIcon"
|
|
@@ -121,7 +121,7 @@ exports[`IconProvider / IconContext - type "svgIcon" - renders svg symbol 1`] =
|
|
|
121
121
|
<DocumentFragment>
|
|
122
122
|
<svg
|
|
123
123
|
aria-hidden="true"
|
|
124
|
-
class="svgIcon
|
|
124
|
+
class="svgIcon "
|
|
125
125
|
data-id="fontIcon"
|
|
126
126
|
data-selector-id="fontIcon"
|
|
127
127
|
data-test-id="fontIcon"
|
|
@@ -137,7 +137,7 @@ exports[`IconProvider / IconContext - type "svgIcon" with "svgIconClass" 1`] =
|
|
|
137
137
|
<DocumentFragment>
|
|
138
138
|
<svg
|
|
139
139
|
aria-hidden="true"
|
|
140
|
-
class="svgIcon
|
|
140
|
+
class="svgIcon app-svg-icon "
|
|
141
141
|
data-id="fontIcon"
|
|
142
142
|
data-selector-id="fontIcon"
|
|
143
143
|
data-test-id="fontIcon"
|
|
@@ -153,7 +153,7 @@ exports[`IconProvider / IconContext - type "svgIcon" with custom "svgIconPrefix
|
|
|
153
153
|
<DocumentFragment>
|
|
154
154
|
<svg
|
|
155
155
|
aria-hidden="true"
|
|
156
|
-
class="svgIcon
|
|
156
|
+
class="svgIcon "
|
|
157
157
|
data-id="fontIcon"
|
|
158
158
|
data-selector-id="fontIcon"
|
|
159
159
|
data-test-id="fontIcon"
|
package/es/Icon/FontIcon.js
CHANGED
|
@@ -33,13 +33,13 @@ export default class FontIcon extends React.Component {
|
|
|
33
33
|
isCustom = isCustom ? style[isCustom] : ''; // let isTwoTone = TwoToneIcons[iconName] || null;
|
|
34
34
|
// isTwoTone = isTwoTone ? style[isTwoTone] : '';
|
|
35
35
|
|
|
36
|
-
let fontClass = `${style.basic} ${pathName} ${isBold ? style.fbold : ''} ${
|
|
36
|
+
let fontClass = `${style.basic} ${pathName} ${isBold ? style.fbold : ''} ${onClick ? style.cursor : ''} ${iconClass ? iconClass : ''}`;
|
|
37
37
|
let childArray;
|
|
38
38
|
|
|
39
39
|
if (typeof name === 'object') {
|
|
40
40
|
childArray = [];
|
|
41
41
|
let isRtl = name[2] ? name[2] : false;
|
|
42
|
-
fontClass = isRtl ? `${
|
|
42
|
+
fontClass = isRtl ? `${style.rtl} ${fontClass}` : fontClass;
|
|
43
43
|
|
|
44
44
|
for (let i = 1; i < name[1] + 1; i++) {
|
|
45
45
|
let pathClass = `${iconContent[`path${i}`]} ${iconClass || isCustom ? `path${i}` : ''}`;
|
|
@@ -51,7 +51,7 @@ export default class FontIcon extends React.Component {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
return /*#__PURE__*/React.createElement("i", _extends({
|
|
54
|
-
className: `${'zd_font_icons'} ${
|
|
54
|
+
className: `${'zd_font_icons'} ${isCustom} ${fontClass}`,
|
|
55
55
|
"data-title": title,
|
|
56
56
|
onClick: onClick,
|
|
57
57
|
"data-id": dataId,
|
package/es/Icon/SvgIcon.js
CHANGED
|
@@ -25,7 +25,7 @@ export default function SvgIcon({
|
|
|
25
25
|
let fontStyle = size ? {
|
|
26
26
|
'--zd-iconfont-size': 'var(--zd_font_size' + size + ')'
|
|
27
27
|
} : DUMMY_OBJECT;
|
|
28
|
-
let className = `${style.svgIcon} ${
|
|
28
|
+
let className = `${style.svgIcon} ${onClick ? style.cursor : ''} ${iconClass ? iconClass : ''}`;
|
|
29
29
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
30
30
|
className: className,
|
|
31
31
|
onClick: onClick,
|
|
@@ -4,7 +4,7 @@ exports[`FontIcon - checking "isBold" is false 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<i
|
|
6
6
|
aria-hidden="true"
|
|
7
|
-
class="zd_font_icons
|
|
7
|
+
class="zd_font_icons basic undefined "
|
|
8
8
|
data-id="fontIcon"
|
|
9
9
|
data-selector-id="fontIcon"
|
|
10
10
|
data-test-id="fontIcon"
|
|
@@ -16,7 +16,7 @@ exports[`FontIcon - checking "isBold" is true 1`] = `
|
|
|
16
16
|
<DocumentFragment>
|
|
17
17
|
<i
|
|
18
18
|
aria-hidden="true"
|
|
19
|
-
class="zd_font_icons
|
|
19
|
+
class="zd_font_icons basic undefined fbold "
|
|
20
20
|
data-id="fontIcon"
|
|
21
21
|
data-selector-id="fontIcon"
|
|
22
22
|
data-test-id="fontIcon"
|
|
@@ -28,7 +28,7 @@ exports[`FontIcon - rendering "IconName" 1`] = `
|
|
|
28
28
|
<DocumentFragment>
|
|
29
29
|
<i
|
|
30
30
|
aria-hidden="true"
|
|
31
|
-
class="zd_font_icons
|
|
31
|
+
class="zd_font_icons basic undefined "
|
|
32
32
|
data-id="fontIcon"
|
|
33
33
|
data-selector-id="fontIcon"
|
|
34
34
|
data-test-id="fontIcon"
|
|
@@ -40,7 +40,7 @@ exports[`FontIcon - rendering "Name" with "iconContent" and without path 1`] =
|
|
|
40
40
|
<DocumentFragment>
|
|
41
41
|
<i
|
|
42
42
|
aria-hidden="true"
|
|
43
|
-
class="zd_font_icons
|
|
43
|
+
class="zd_font_icons basic undefined "
|
|
44
44
|
data-id="fontIcon"
|
|
45
45
|
data-selector-id="fontIcon"
|
|
46
46
|
data-test-id="fontIcon"
|
|
@@ -62,7 +62,7 @@ exports[`FontIcon - rendering "ariaHidden" is false 1`] = `
|
|
|
62
62
|
<DocumentFragment>
|
|
63
63
|
<i
|
|
64
64
|
aria-hidden="false"
|
|
65
|
-
class="zd_font_icons
|
|
65
|
+
class="zd_font_icons basic undefined "
|
|
66
66
|
data-id="fontIcon"
|
|
67
67
|
data-selector-id="fontIcon"
|
|
68
68
|
data-test-id="fontIcon"
|
|
@@ -74,7 +74,7 @@ exports[`FontIcon - rendering "custumIcon" with path 1`] = `
|
|
|
74
74
|
<DocumentFragment>
|
|
75
75
|
<i
|
|
76
76
|
aria-hidden="true"
|
|
77
|
-
class="zd_font_icons basic undefined
|
|
77
|
+
class="zd_font_icons red basic undefined "
|
|
78
78
|
data-id="fontIcon"
|
|
79
79
|
data-selector-id="fontIcon"
|
|
80
80
|
data-test-id="fontIcon"
|
|
@@ -93,7 +93,7 @@ exports[`FontIcon - rendering "iconClass" with path 1`] = `
|
|
|
93
93
|
<DocumentFragment>
|
|
94
94
|
<i
|
|
95
95
|
aria-hidden="true"
|
|
96
|
-
class="zd_font_icons
|
|
96
|
+
class="zd_font_icons basic undefined iconStyleCss"
|
|
97
97
|
data-id="fontIcon"
|
|
98
98
|
data-selector-id="fontIcon"
|
|
99
99
|
data-test-id="fontIcon"
|
|
@@ -115,7 +115,7 @@ exports[`FontIcon - rendering custom attributes with tagAttributes prop 1`] = `
|
|
|
115
115
|
<DocumentFragment>
|
|
116
116
|
<i
|
|
117
117
|
aria-hidden="true"
|
|
118
|
-
class="zd_font_icons
|
|
118
|
+
class="zd_font_icons basic undefined "
|
|
119
119
|
data-custom-attr="true"
|
|
120
120
|
data-id="fontIcon"
|
|
121
121
|
data-selector-id="fontIcon"
|
|
@@ -128,7 +128,7 @@ exports[`FontIcon - rendering custom icon name 1`] = `
|
|
|
128
128
|
<DocumentFragment>
|
|
129
129
|
<i
|
|
130
130
|
aria-hidden="true"
|
|
131
|
-
class="zd_font_icons basic undefined
|
|
131
|
+
class="zd_font_icons red basic undefined "
|
|
132
132
|
data-id="fontIcon"
|
|
133
133
|
data-selector-id="fontIcon"
|
|
134
134
|
data-test-id="fontIcon"
|
|
@@ -140,7 +140,7 @@ exports[`FontIcon - rendering the "default" props 1`] = `
|
|
|
140
140
|
<DocumentFragment>
|
|
141
141
|
<i
|
|
142
142
|
aria-hidden="true"
|
|
143
|
-
class="zd_font_icons
|
|
143
|
+
class="zd_font_icons basic undefined "
|
|
144
144
|
data-id="fontIcon"
|
|
145
145
|
data-selector-id="fontIcon"
|
|
146
146
|
data-test-id="fontIcon"
|
|
@@ -152,7 +152,7 @@ exports[`FontIcon - rendering the "fontSize" 1`] = `
|
|
|
152
152
|
<DocumentFragment>
|
|
153
153
|
<i
|
|
154
154
|
aria-hidden="true"
|
|
155
|
-
class="zd_font_icons
|
|
155
|
+
class="zd_font_icons basic undefined "
|
|
156
156
|
data-id="fontIcon"
|
|
157
157
|
data-selector-id="fontIcon"
|
|
158
158
|
data-test-id="fontIcon"
|
|
@@ -165,7 +165,7 @@ exports[`FontIcon - rendering the "iconClass" 1`] = `
|
|
|
165
165
|
<DocumentFragment>
|
|
166
166
|
<i
|
|
167
167
|
aria-hidden="true"
|
|
168
|
-
class="zd_font_icons
|
|
168
|
+
class="zd_font_icons basic undefined iconStyleCss"
|
|
169
169
|
data-id="fontIcon"
|
|
170
170
|
data-selector-id="fontIcon"
|
|
171
171
|
data-test-id="fontIcon"
|
|
@@ -177,7 +177,7 @@ exports[`FontIcon - rendering the "pathname" 1`] = `
|
|
|
177
177
|
<DocumentFragment>
|
|
178
178
|
<i
|
|
179
179
|
aria-hidden="true"
|
|
180
|
-
class="zd_font_icons
|
|
180
|
+
class="zd_font_icons basic zd67f91bb627 "
|
|
181
181
|
data-id="fontIcon"
|
|
182
182
|
data-selector-id="fontIcon"
|
|
183
183
|
data-test-id="fontIcon"
|
|
@@ -189,7 +189,7 @@ exports[`FontIcon - rendering the "title" 1`] = `
|
|
|
189
189
|
<DocumentFragment>
|
|
190
190
|
<i
|
|
191
191
|
aria-hidden="true"
|
|
192
|
-
class="zd_font_icons
|
|
192
|
+
class="zd_font_icons basic undefined "
|
|
193
193
|
data-id="fontIcon"
|
|
194
194
|
data-selector-id="fontIcon"
|
|
195
195
|
data-test-id="fontIcon"
|
|
@@ -202,7 +202,7 @@ exports[`FontIcon - rendering the "titlePostion" to - bottom 1`] = `
|
|
|
202
202
|
<DocumentFragment>
|
|
203
203
|
<i
|
|
204
204
|
aria-hidden="true"
|
|
205
|
-
class="zd_font_icons
|
|
205
|
+
class="zd_font_icons basic undefined "
|
|
206
206
|
data-id="fontIcon"
|
|
207
207
|
data-selector-id="fontIcon"
|
|
208
208
|
data-test-id="fontIcon"
|
|
@@ -215,7 +215,7 @@ exports[`FontIcon - rendering the "titlePostion" to - left 1`] = `
|
|
|
215
215
|
<DocumentFragment>
|
|
216
216
|
<i
|
|
217
217
|
aria-hidden="true"
|
|
218
|
-
class="zd_font_icons
|
|
218
|
+
class="zd_font_icons basic undefined "
|
|
219
219
|
data-id="fontIcon"
|
|
220
220
|
data-selector-id="fontIcon"
|
|
221
221
|
data-test-id="fontIcon"
|
|
@@ -228,7 +228,7 @@ exports[`FontIcon - rendering the "titlePostion" to - right 1`] = `
|
|
|
228
228
|
<DocumentFragment>
|
|
229
229
|
<i
|
|
230
230
|
aria-hidden="true"
|
|
231
|
-
class="zd_font_icons
|
|
231
|
+
class="zd_font_icons basic undefined "
|
|
232
232
|
data-id="fontIcon"
|
|
233
233
|
data-selector-id="fontIcon"
|
|
234
234
|
data-test-id="fontIcon"
|
|
@@ -241,7 +241,7 @@ exports[`FontIcon - rendering the "titlePostion" to - top 1`] = `
|
|
|
241
241
|
<DocumentFragment>
|
|
242
242
|
<i
|
|
243
243
|
aria-hidden="true"
|
|
244
|
-
class="zd_font_icons
|
|
244
|
+
class="zd_font_icons basic undefined "
|
|
245
245
|
data-id="fontIcon"
|
|
246
246
|
data-selector-id="fontIcon"
|
|
247
247
|
data-test-id="fontIcon"
|
|
@@ -4,7 +4,7 @@ exports[`SvgIcon - rendering the "default" props 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<svg
|
|
6
6
|
aria-hidden="true"
|
|
7
|
-
class="svgIcon
|
|
7
|
+
class="svgIcon "
|
|
8
8
|
data-id="fontIcon"
|
|
9
9
|
data-selector-id="fontIcon"
|
|
10
10
|
data-test-id="fontIcon"
|
|
@@ -20,7 +20,7 @@ exports[`SvgIcon - rendering with "ariaHidden" false 1`] = `
|
|
|
20
20
|
<DocumentFragment>
|
|
21
21
|
<svg
|
|
22
22
|
aria-hidden="false"
|
|
23
|
-
class="svgIcon
|
|
23
|
+
class="svgIcon "
|
|
24
24
|
data-id="fontIcon"
|
|
25
25
|
data-selector-id="fontIcon"
|
|
26
26
|
data-test-id="fontIcon"
|
|
@@ -36,7 +36,7 @@ exports[`SvgIcon - rendering with "iconClass" 1`] = `
|
|
|
36
36
|
<DocumentFragment>
|
|
37
37
|
<svg
|
|
38
38
|
aria-hidden="true"
|
|
39
|
-
class="svgIcon
|
|
39
|
+
class="svgIcon myIconClass"
|
|
40
40
|
data-id="fontIcon"
|
|
41
41
|
data-selector-id="fontIcon"
|
|
42
42
|
data-test-id="fontIcon"
|
|
@@ -52,7 +52,7 @@ exports[`SvgIcon - rendering with "name" and "svgPrefix" 1`] = `
|
|
|
52
52
|
<DocumentFragment>
|
|
53
53
|
<svg
|
|
54
54
|
aria-hidden="true"
|
|
55
|
-
class="svgIcon
|
|
55
|
+
class="svgIcon "
|
|
56
56
|
data-id="fontIcon"
|
|
57
57
|
data-selector-id="fontIcon"
|
|
58
58
|
data-test-id="fontIcon"
|
|
@@ -68,7 +68,7 @@ exports[`SvgIcon - rendering with "size" 1`] = `
|
|
|
68
68
|
<DocumentFragment>
|
|
69
69
|
<svg
|
|
70
70
|
aria-hidden="true"
|
|
71
|
-
class="svgIcon
|
|
71
|
+
class="svgIcon "
|
|
72
72
|
data-id="fontIcon"
|
|
73
73
|
data-selector-id="fontIcon"
|
|
74
74
|
data-test-id="fontIcon"
|
|
@@ -85,7 +85,7 @@ exports[`SvgIcon - rendering with "tagAttributes" 1`] = `
|
|
|
85
85
|
<DocumentFragment>
|
|
86
86
|
<svg
|
|
87
87
|
aria-hidden="true"
|
|
88
|
-
class="svgIcon
|
|
88
|
+
class="svgIcon "
|
|
89
89
|
data-custom-attr="true"
|
|
90
90
|
data-id="fontIcon"
|
|
91
91
|
data-selector-id="fontIcon"
|
|
@@ -102,7 +102,7 @@ exports[`SvgIcon - rendering with "title" 1`] = `
|
|
|
102
102
|
<DocumentFragment>
|
|
103
103
|
<svg
|
|
104
104
|
aria-hidden="true"
|
|
105
|
-
class="svgIcon
|
|
105
|
+
class="svgIcon "
|
|
106
106
|
data-id="fontIcon"
|
|
107
107
|
data-selector-id="fontIcon"
|
|
108
108
|
data-test-id="fontIcon"
|
|
@@ -119,7 +119,7 @@ exports[`SvgIcon - rendering with "titlePosition" - bottom 1`] = `
|
|
|
119
119
|
<DocumentFragment>
|
|
120
120
|
<svg
|
|
121
121
|
aria-hidden="true"
|
|
122
|
-
class="svgIcon
|
|
122
|
+
class="svgIcon "
|
|
123
123
|
data-id="fontIcon"
|
|
124
124
|
data-selector-id="fontIcon"
|
|
125
125
|
data-test-id="fontIcon"
|
|
@@ -136,7 +136,7 @@ exports[`SvgIcon - rendering with "titlePosition" - left 1`] = `
|
|
|
136
136
|
<DocumentFragment>
|
|
137
137
|
<svg
|
|
138
138
|
aria-hidden="true"
|
|
139
|
-
class="svgIcon
|
|
139
|
+
class="svgIcon "
|
|
140
140
|
data-id="fontIcon"
|
|
141
141
|
data-selector-id="fontIcon"
|
|
142
142
|
data-test-id="fontIcon"
|
|
@@ -153,7 +153,7 @@ exports[`SvgIcon - rendering with "titlePosition" - right 1`] = `
|
|
|
153
153
|
<DocumentFragment>
|
|
154
154
|
<svg
|
|
155
155
|
aria-hidden="true"
|
|
156
|
-
class="svgIcon
|
|
156
|
+
class="svgIcon "
|
|
157
157
|
data-id="fontIcon"
|
|
158
158
|
data-selector-id="fontIcon"
|
|
159
159
|
data-test-id="fontIcon"
|
|
@@ -170,7 +170,7 @@ exports[`SvgIcon - rendering with "titlePosition" - top 1`] = `
|
|
|
170
170
|
<DocumentFragment>
|
|
171
171
|
<svg
|
|
172
172
|
aria-hidden="true"
|
|
173
|
-
class="svgIcon
|
|
173
|
+
class="svgIcon "
|
|
174
174
|
data-id="fontIcon"
|
|
175
175
|
data-selector-id="fontIcon"
|
|
176
176
|
data-test-id="fontIcon"
|
|
@@ -187,7 +187,7 @@ exports[`SvgIcon - rendering with external sprite "svgPrefix" 1`] = `
|
|
|
187
187
|
<DocumentFragment>
|
|
188
188
|
<svg
|
|
189
189
|
aria-hidden="true"
|
|
190
|
-
class="svgIcon
|
|
190
|
+
class="svgIcon "
|
|
191
191
|
data-id="fontIcon"
|
|
192
192
|
data-selector-id="fontIcon"
|
|
193
193
|
data-test-id="fontIcon"
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
function getAddforms() {
|
|
2
|
+
return require("../../assets/react/zd-font-react-addforms.module.css");
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function getAutomate() {
|
|
6
|
+
return require("../../assets/react/zd-font-react-automate.module.css");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getChannels() {
|
|
10
|
+
return require("../../assets/react/zd-font-react-channels.module.css");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function getCommon() {
|
|
14
|
+
return require("../../assets/react/zd-font-react-common.module.css");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getCommunity() {
|
|
18
|
+
return require("../../assets/react/zd-font-react-community.module.css");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getCustomers() {
|
|
22
|
+
return require("../../assets/react/zd-font-react-customers.module.css");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function getCustomize() {
|
|
26
|
+
return require("../../assets/react/zd-font-react-customize.module.css");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getGamescope() {
|
|
30
|
+
return require("../../assets/react/zd-font-react-gamescope.module.css");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function getGettingstarted() {
|
|
34
|
+
return require("../../assets/react/zd-font-react-gettingstarted.module.css");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getKnowledgeBase() {
|
|
38
|
+
return require("../../assets/react/zd-font-react-kb.module.css");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function getOrganization() {
|
|
42
|
+
return require("../../assets/react/zd-font-react-organization.module.css");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function getOthers() {
|
|
46
|
+
return require("../../assets/react/zd-font-react-others.module.css");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function getReports() {
|
|
50
|
+
return require("../../assets/react/zd-font-react-reports.module.css");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function getSetup() {
|
|
54
|
+
return require("../../assets/react/zd-font-react-setup.module.css");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function getSocial() {
|
|
58
|
+
return require("../../assets/react/zd-font-react-social.module.css");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function getTickets() {
|
|
62
|
+
return require("../../assets/react/zd-font-react-tickets.module.css");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function getTopband() {
|
|
66
|
+
return require("../../assets/react/zd-font-react-topband.module.css");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function getTicketsChannel() {
|
|
70
|
+
return require("../../assets/react/zd-font-react-ticket-channels.module.css");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function getReactCallBar() {
|
|
74
|
+
return require("../../assets/react/zd-font-rCallBar.module.css");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function getReactChannels() {
|
|
78
|
+
return require("../../assets/react/zd-font-rChannels.module.css");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function getReactCutomize() {
|
|
82
|
+
return require("../../assets/react/zd-font-rCustomize.module.css");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function getReactExportFiles() {
|
|
86
|
+
return require("../../assets/react/zd-font-rExportFiles.module.css");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function getReactGeneral() {
|
|
90
|
+
return require("../../assets/react/zd-font-rGeneral.module.css");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function getReactIntegrations() {
|
|
94
|
+
return require("../../assets/react/zd-font-rIntegrations.module.css");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getReactLhs() {
|
|
98
|
+
return require("../../assets/react/zd-font-rLhs.module.css");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function getReactMarketplace() {
|
|
102
|
+
return require("../../assets/react/zd-font-rMarketplace.module.css");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function getReactReports() {
|
|
106
|
+
return require("../../assets/react/zd-font-rReports.module.css");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getReactSetup() {
|
|
110
|
+
return require("../../assets/react/zd-font-rSetup.module.css");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function getReactTickets() {
|
|
114
|
+
return require("../../assets/react/zd-font-rTickets.module.css");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function getReactTopband() {
|
|
118
|
+
return require("../../assets/react/zd-font-rTopband.module.css");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function getReactGC() {
|
|
122
|
+
return require("../../assets/react/zd-font-react-gcFonts.module.css");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function getReactTwotone() {
|
|
126
|
+
return require("../../assets/react/zd-font-rTwotone.module.css");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function getReactAccessibility() {
|
|
130
|
+
return require("../../assets/react/zd-font-rAccessibility.module.css");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function getReactUpdates() {
|
|
134
|
+
return require("../../assets/react/zd-font-rUpdates.module.css");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function getReactAI() {
|
|
138
|
+
return require("../../assets/react/zd-font-rAI.module.css");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function getReactAutomation() {
|
|
142
|
+
return require("../../assets/react/zd-font-rAutomation.module.css");
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function getReactDeveloperSpace() {
|
|
146
|
+
return require("../../assets/react/zd-font-rDeveloperSpace.module.css");
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function getReactAnalyticsColor() {
|
|
150
|
+
return require("../../assets/react/zd-font-rAnalyticsColor.module.css");
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function getReactIM() {
|
|
154
|
+
return require("../../assets/react/zd-font-rIM.module.css");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export const filesMap = {
|
|
158
|
+
AddformsFontIcon: getAddforms,
|
|
159
|
+
AutomateFontIcon: getAutomate,
|
|
160
|
+
ChannelsFontIcon: getChannels,
|
|
161
|
+
CommonFontIcon: getCommon,
|
|
162
|
+
CommunityFontIcon: getCommunity,
|
|
163
|
+
CustomersFontIcon: getCustomers,
|
|
164
|
+
CustomizeFontIcon: getCustomize,
|
|
165
|
+
GamescopeFontIcon: getGamescope,
|
|
166
|
+
GettingstartedFontIcon: getGettingstarted,
|
|
167
|
+
KnowledgeBaseFontIcon: getKnowledgeBase,
|
|
168
|
+
OrganizationFontIcon: getOrganization,
|
|
169
|
+
OthersFontIcon: getOthers,
|
|
170
|
+
ReportsFontIcon: getReports,
|
|
171
|
+
SetupFontIcon: getSetup,
|
|
172
|
+
SocialFontIcon: getSocial,
|
|
173
|
+
TicketsFontIcon: getTickets,
|
|
174
|
+
TopbandFontIcon: getTopband,
|
|
175
|
+
TicketsChannelFontIcon: getTicketsChannel,
|
|
176
|
+
ReactCallBarFontIcon: getReactCallBar,
|
|
177
|
+
ReactChannelsFontIcon: getReactChannels,
|
|
178
|
+
ReactCustomizeFontIcon: getReactCutomize,
|
|
179
|
+
ReactExportFilesFontIcon: getReactExportFiles,
|
|
180
|
+
ReactGeneralFontIcon: getReactGeneral,
|
|
181
|
+
ReactIntegrationsFontIcon: getReactIntegrations,
|
|
182
|
+
ReactLhsFontIcon: getReactLhs,
|
|
183
|
+
ReactMarketplaceFontIcon: getReactMarketplace,
|
|
184
|
+
ReactReportsFontIcon: getReactReports,
|
|
185
|
+
ReactSetupFontIcon: getReactSetup,
|
|
186
|
+
ReactTicketsFontIcon: getReactTickets,
|
|
187
|
+
ReactTopbandFontIcon: getReactTopband,
|
|
188
|
+
ReactGCFontIcon: getReactGC,
|
|
189
|
+
ReactTwotoneIcon: getReactTwotone,
|
|
190
|
+
ReactAccessibilityIcon: getReactAccessibility,
|
|
191
|
+
ReactProductUpdatesIcon: getReactUpdates,
|
|
192
|
+
ReactAIIcon: getReactAI,
|
|
193
|
+
ReactAutomationIcon: getReactAutomation,
|
|
194
|
+
ReactDeveloperSpaceIcon: getReactDeveloperSpace,
|
|
195
|
+
ReactAnalyticsColorIcon: getReactAnalyticsColor,
|
|
196
|
+
ReactIMIcon: getReactIM
|
|
197
|
+
};
|