@zohodesk/icons 1.3.9 → 1.3.11
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 +9 -1
- package/assets/fonts/zd-rGeneral.svg +1 -0
- package/assets/fonts/zd-rGeneral.woff +0 -0
- package/assets/fonts/zd-rGeneral.woff2 +0 -0
- package/assets/react/zd-font-rGeneral.module.css +6 -3
- package/cbt.config.js +1 -1
- package/es/Context/__tests__/__snapshots__/IconContext.spec.js.snap +11 -11
- package/es/Icon/FontFactory.js +2 -1
- package/es/Icon/FontIcon.js +3 -3
- package/es/Icon/SvgIcon.js +1 -1
- package/es/Icon/__tests__/Icon.spec.js +15 -0
- package/es/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +21 -21
- package/es/Icon/__tests__/__snapshots__/Icon.spec.js.snap +37876 -0
- 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/FontFactory.js +1 -1
- package/lib/Icon/FontIcon.js +3 -3
- package/lib/Icon/SvgIcon.js +1 -1
- package/lib/Icon/__tests__/Icon.spec.js +38 -0
- package/lib/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +21 -21
- package/lib/Icon/__tests__/__snapshots__/Icon.spec.js.snap +37876 -0
- 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 +2 -2
|
@@ -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 myIconClass
|
|
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,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.filesMap = void 0;
|
|
7
|
+
|
|
8
|
+
function getAddforms() {
|
|
9
|
+
return require("../../assets/react/zd-font-react-addforms.module.css");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function getAutomate() {
|
|
13
|
+
return require("../../assets/react/zd-font-react-automate.module.css");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function getChannels() {
|
|
17
|
+
return require("../../assets/react/zd-font-react-channels.module.css");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function getCommon() {
|
|
21
|
+
return require("../../assets/react/zd-font-react-common.module.css");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getCommunity() {
|
|
25
|
+
return require("../../assets/react/zd-font-react-community.module.css");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getCustomers() {
|
|
29
|
+
return require("../../assets/react/zd-font-react-customers.module.css");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getCustomize() {
|
|
33
|
+
return require("../../assets/react/zd-font-react-customize.module.css");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getGamescope() {
|
|
37
|
+
return require("../../assets/react/zd-font-react-gamescope.module.css");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getGettingstarted() {
|
|
41
|
+
return require("../../assets/react/zd-font-react-gettingstarted.module.css");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function getKnowledgeBase() {
|
|
45
|
+
return require("../../assets/react/zd-font-react-kb.module.css");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function getOrganization() {
|
|
49
|
+
return require("../../assets/react/zd-font-react-organization.module.css");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function getOthers() {
|
|
53
|
+
return require("../../assets/react/zd-font-react-others.module.css");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function getReports() {
|
|
57
|
+
return require("../../assets/react/zd-font-react-reports.module.css");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function getSetup() {
|
|
61
|
+
return require("../../assets/react/zd-font-react-setup.module.css");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function getSocial() {
|
|
65
|
+
return require("../../assets/react/zd-font-react-social.module.css");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function getTickets() {
|
|
69
|
+
return require("../../assets/react/zd-font-react-tickets.module.css");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function getTopband() {
|
|
73
|
+
return require("../../assets/react/zd-font-react-topband.module.css");
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function getTicketsChannel() {
|
|
77
|
+
return require("../../assets/react/zd-font-react-ticket-channels.module.css");
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function getReactCallBar() {
|
|
81
|
+
return require("../../assets/react/zd-font-rCallBar.module.css");
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function getReactChannels() {
|
|
85
|
+
return require("../../assets/react/zd-font-rChannels.module.css");
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function getReactCutomize() {
|
|
89
|
+
return require("../../assets/react/zd-font-rCustomize.module.css");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function getReactExportFiles() {
|
|
93
|
+
return require("../../assets/react/zd-font-rExportFiles.module.css");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function getReactGeneral() {
|
|
97
|
+
return require("../../assets/react/zd-font-rGeneral.module.css");
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function getReactIntegrations() {
|
|
101
|
+
return require("../../assets/react/zd-font-rIntegrations.module.css");
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function getReactLhs() {
|
|
105
|
+
return require("../../assets/react/zd-font-rLhs.module.css");
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function getReactMarketplace() {
|
|
109
|
+
return require("../../assets/react/zd-font-rMarketplace.module.css");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function getReactReports() {
|
|
113
|
+
return require("../../assets/react/zd-font-rReports.module.css");
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function getReactSetup() {
|
|
117
|
+
return require("../../assets/react/zd-font-rSetup.module.css");
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function getReactTickets() {
|
|
121
|
+
return require("../../assets/react/zd-font-rTickets.module.css");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function getReactTopband() {
|
|
125
|
+
return require("../../assets/react/zd-font-rTopband.module.css");
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function getReactGC() {
|
|
129
|
+
return require("../../assets/react/zd-font-react-gcFonts.module.css");
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function getReactTwotone() {
|
|
133
|
+
return require("../../assets/react/zd-font-rTwotone.module.css");
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function getReactAccessibility() {
|
|
137
|
+
return require("../../assets/react/zd-font-rAccessibility.module.css");
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function getReactUpdates() {
|
|
141
|
+
return require("../../assets/react/zd-font-rUpdates.module.css");
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function getReactAI() {
|
|
145
|
+
return require("../../assets/react/zd-font-rAI.module.css");
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function getReactAutomation() {
|
|
149
|
+
return require("../../assets/react/zd-font-rAutomation.module.css");
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function getReactDeveloperSpace() {
|
|
153
|
+
return require("../../assets/react/zd-font-rDeveloperSpace.module.css");
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function getReactAnalyticsColor() {
|
|
157
|
+
return require("../../assets/react/zd-font-rAnalyticsColor.module.css");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function getReactIM() {
|
|
161
|
+
return require("../../assets/react/zd-font-rIM.module.css");
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
var filesMap = {
|
|
165
|
+
AddformsFontIcon: getAddforms,
|
|
166
|
+
AutomateFontIcon: getAutomate,
|
|
167
|
+
ChannelsFontIcon: getChannels,
|
|
168
|
+
CommonFontIcon: getCommon,
|
|
169
|
+
CommunityFontIcon: getCommunity,
|
|
170
|
+
CustomersFontIcon: getCustomers,
|
|
171
|
+
CustomizeFontIcon: getCustomize,
|
|
172
|
+
GamescopeFontIcon: getGamescope,
|
|
173
|
+
GettingstartedFontIcon: getGettingstarted,
|
|
174
|
+
KnowledgeBaseFontIcon: getKnowledgeBase,
|
|
175
|
+
OrganizationFontIcon: getOrganization,
|
|
176
|
+
OthersFontIcon: getOthers,
|
|
177
|
+
ReportsFontIcon: getReports,
|
|
178
|
+
SetupFontIcon: getSetup,
|
|
179
|
+
SocialFontIcon: getSocial,
|
|
180
|
+
TicketsFontIcon: getTickets,
|
|
181
|
+
TopbandFontIcon: getTopband,
|
|
182
|
+
TicketsChannelFontIcon: getTicketsChannel,
|
|
183
|
+
ReactCallBarFontIcon: getReactCallBar,
|
|
184
|
+
ReactChannelsFontIcon: getReactChannels,
|
|
185
|
+
ReactCustomizeFontIcon: getReactCutomize,
|
|
186
|
+
ReactExportFilesFontIcon: getReactExportFiles,
|
|
187
|
+
ReactGeneralFontIcon: getReactGeneral,
|
|
188
|
+
ReactIntegrationsFontIcon: getReactIntegrations,
|
|
189
|
+
ReactLhsFontIcon: getReactLhs,
|
|
190
|
+
ReactMarketplaceFontIcon: getReactMarketplace,
|
|
191
|
+
ReactReportsFontIcon: getReactReports,
|
|
192
|
+
ReactSetupFontIcon: getReactSetup,
|
|
193
|
+
ReactTicketsFontIcon: getReactTickets,
|
|
194
|
+
ReactTopbandFontIcon: getReactTopband,
|
|
195
|
+
ReactGCFontIcon: getReactGC,
|
|
196
|
+
ReactTwotoneIcon: getReactTwotone,
|
|
197
|
+
ReactAccessibilityIcon: getReactAccessibility,
|
|
198
|
+
ReactProductUpdatesIcon: getReactUpdates,
|
|
199
|
+
ReactAIIcon: getReactAI,
|
|
200
|
+
ReactAutomationIcon: getReactAutomation,
|
|
201
|
+
ReactDeveloperSpaceIcon: getReactDeveloperSpace,
|
|
202
|
+
ReactAnalyticsColorIcon: getReactAnalyticsColor,
|
|
203
|
+
ReactIMIcon: getReactIM
|
|
204
|
+
};
|
|
205
|
+
exports.filesMap = filesMap;
|
package/lib/Icon/index.js
CHANGED
|
@@ -17,6 +17,8 @@ var _SvgIcon = _interopRequireDefault(require("./SvgIcon"));
|
|
|
17
17
|
|
|
18
18
|
var _constants = require("@zohodesk/dotkit/es/utils/constants");
|
|
19
19
|
|
|
20
|
+
var _iconCssModules = require("./iconCssModules");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -25,162 +27,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
29
|
|
|
28
|
-
function getAddforms() {
|
|
29
|
-
return require("../../assets/react/zd-font-react-addforms.module.css");
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function getAutomate() {
|
|
33
|
-
return require("../../assets/react/zd-font-react-automate.module.css");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function getChannels() {
|
|
37
|
-
return require("../../assets/react/zd-font-react-channels.module.css");
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function getCommon() {
|
|
41
|
-
return require("../../assets/react/zd-font-react-common.module.css");
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function getCommunity() {
|
|
45
|
-
return require("../../assets/react/zd-font-react-community.module.css");
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function getCustomers() {
|
|
49
|
-
return require("../../assets/react/zd-font-react-customers.module.css");
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function getCustomize() {
|
|
53
|
-
return require("../../assets/react/zd-font-react-customize.module.css");
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function getGamescope() {
|
|
57
|
-
return require("../../assets/react/zd-font-react-gamescope.module.css");
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getGettingstarted() {
|
|
61
|
-
return require("../../assets/react/zd-font-react-gettingstarted.module.css");
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function getKnowledgeBase() {
|
|
65
|
-
return require("../../assets/react/zd-font-react-kb.module.css");
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function getOrganization() {
|
|
69
|
-
return require("../../assets/react/zd-font-react-organization.module.css");
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function getOthers() {
|
|
73
|
-
return require("../../assets/react/zd-font-react-others.module.css");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function getReports() {
|
|
77
|
-
return require("../../assets/react/zd-font-react-reports.module.css");
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function getSetup() {
|
|
81
|
-
return require("../../assets/react/zd-font-react-setup.module.css");
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function getSocial() {
|
|
85
|
-
return require("../../assets/react/zd-font-react-social.module.css");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function getTickets() {
|
|
89
|
-
return require("../../assets/react/zd-font-react-tickets.module.css");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function getTopband() {
|
|
93
|
-
return require("../../assets/react/zd-font-react-topband.module.css");
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function getTicketsChannel() {
|
|
97
|
-
return require("../../assets/react/zd-font-react-ticket-channels.module.css");
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function getReactCallBar() {
|
|
101
|
-
return require("../../assets/react/zd-font-rCallBar.module.css");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function getReactChannels() {
|
|
105
|
-
return require("../../assets/react/zd-font-rChannels.module.css");
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function getReactCutomize() {
|
|
109
|
-
return require("../../assets/react/zd-font-rCustomize.module.css");
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function getReactExportFiles() {
|
|
113
|
-
return require("../../assets/react/zd-font-rExportFiles.module.css");
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function getReactGeneral() {
|
|
117
|
-
return require("../../assets/react/zd-font-rGeneral.module.css");
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function getReactIntegrations() {
|
|
121
|
-
return require("../../assets/react/zd-font-rIntegrations.module.css");
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function getReactLhs() {
|
|
125
|
-
return require("../../assets/react/zd-font-rLhs.module.css");
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function getReactMarketplace() {
|
|
129
|
-
return require("../../assets/react/zd-font-rMarketplace.module.css");
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function getReactReports() {
|
|
133
|
-
return require("../../assets/react/zd-font-rReports.module.css");
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function getReactSetup() {
|
|
137
|
-
return require("../../assets/react/zd-font-rSetup.module.css");
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function getReactTickets() {
|
|
141
|
-
return require("../../assets/react/zd-font-rTickets.module.css");
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function getReactTopband() {
|
|
145
|
-
return require("../../assets/react/zd-font-rTopband.module.css");
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function getReactGC() {
|
|
149
|
-
return require("../../assets/react/zd-font-react-gcFonts.module.css");
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function getReactTwotone() {
|
|
153
|
-
return require("../../assets/react/zd-font-rTwotone.module.css");
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function getReactAccessibility() {
|
|
157
|
-
return require("../../assets/react/zd-font-rAccessibility.module.css");
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function getReactUpdates() {
|
|
161
|
-
return require("../../assets/react/zd-font-rUpdates.module.css");
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function getReactAI() {
|
|
165
|
-
return require("../../assets/react/zd-font-rAI.module.css");
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function getReactAutomation() {
|
|
169
|
-
return require("../../assets/react/zd-font-rAutomation.module.css");
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function getReactDeveloperSpace() {
|
|
173
|
-
return require("../../assets/react/zd-font-rDeveloperSpace.module.css");
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function getReactAnalyticsColor() {
|
|
177
|
-
return require("../../assets/react/zd-font-rAnalyticsColor.module.css");
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function getReactIM() {
|
|
181
|
-
return require("../../assets/react/zd-font-rIM.module.css");
|
|
182
|
-
}
|
|
183
|
-
|
|
184
30
|
function IconRender(iconName, iconContent, props) {
|
|
185
31
|
var name = props.name,
|
|
186
32
|
onClick = props.onClick,
|
|
@@ -210,47 +56,6 @@ function IconRender(iconName, iconContent, props) {
|
|
|
210
56
|
|
|
211
57
|
function getIcon(props) {
|
|
212
58
|
var iconName;
|
|
213
|
-
var filesMap = {
|
|
214
|
-
AddformsFontIcon: getAddforms,
|
|
215
|
-
AutomateFontIcon: getAutomate,
|
|
216
|
-
ChannelsFontIcon: getChannels,
|
|
217
|
-
CommonFontIcon: getCommon,
|
|
218
|
-
CommunityFontIcon: getCommunity,
|
|
219
|
-
CustomersFontIcon: getCustomers,
|
|
220
|
-
CustomizeFontIcon: getCustomize,
|
|
221
|
-
GamescopeFontIcon: getGamescope,
|
|
222
|
-
GettingstartedFontIcon: getGettingstarted,
|
|
223
|
-
KnowledgeBaseFontIcon: getKnowledgeBase,
|
|
224
|
-
OrganizationFontIcon: getOrganization,
|
|
225
|
-
OthersFontIcon: getOthers,
|
|
226
|
-
ReportsFontIcon: getReports,
|
|
227
|
-
SetupFontIcon: getSetup,
|
|
228
|
-
SocialFontIcon: getSocial,
|
|
229
|
-
TicketsFontIcon: getTickets,
|
|
230
|
-
TopbandFontIcon: getTopband,
|
|
231
|
-
TicketsChannelFontIcon: getTicketsChannel,
|
|
232
|
-
ReactCallBarFontIcon: getReactCallBar,
|
|
233
|
-
ReactChannelsFontIcon: getReactChannels,
|
|
234
|
-
ReactCustomizeFontIcon: getReactCutomize,
|
|
235
|
-
ReactExportFilesFontIcon: getReactExportFiles,
|
|
236
|
-
ReactGeneralFontIcon: getReactGeneral,
|
|
237
|
-
ReactIntegrationsFontIcon: getReactIntegrations,
|
|
238
|
-
ReactLhsFontIcon: getReactLhs,
|
|
239
|
-
ReactMarketplaceFontIcon: getReactMarketplace,
|
|
240
|
-
ReactReportsFontIcon: getReactReports,
|
|
241
|
-
ReactSetupFontIcon: getReactSetup,
|
|
242
|
-
ReactTicketsFontIcon: getReactTickets,
|
|
243
|
-
ReactTopbandFontIcon: getReactTopband,
|
|
244
|
-
ReactGCFontIcon: getReactGC,
|
|
245
|
-
ReactTwotoneIcon: getReactTwotone,
|
|
246
|
-
ReactAccessibilityIcon: getReactAccessibility,
|
|
247
|
-
ReactProductUpdatesIcon: getReactUpdates,
|
|
248
|
-
ReactAIIcon: getReactAI,
|
|
249
|
-
ReactAutomationIcon: getReactAutomation,
|
|
250
|
-
ReactDeveloperSpaceIcon: getReactDeveloperSpace,
|
|
251
|
-
ReactAnalyticsColorIcon: getReactAnalyticsColor,
|
|
252
|
-
ReactIMIcon: getReactIM
|
|
253
|
-
};
|
|
254
59
|
var iconNames = Object.keys(_FontFactory.FontFactory);
|
|
255
60
|
|
|
256
61
|
for (var _i = 0, _iconNames = iconNames; _i < _iconNames.length; _i++) {
|
|
@@ -263,7 +68,8 @@ function getIcon(props) {
|
|
|
263
68
|
}
|
|
264
69
|
|
|
265
70
|
if (iconName) {
|
|
266
|
-
var iconCssModule = filesMap[iconName]();
|
|
71
|
+
var iconCssModule = _iconCssModules.filesMap[iconName]();
|
|
72
|
+
|
|
267
73
|
var iconContent;
|
|
268
74
|
|
|
269
75
|
if (iconCssModule["default"] && typeof iconCssModule["default"] != 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/icons",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "DOT - Icons",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:es": "cbt build:es src,assets/react es,assets/react",
|
|
25
25
|
"build:es:watch": "cbt build:es src es",
|
|
26
26
|
"build:watch": "npm run build:es:watch --module:mode=dev -- -w",
|
|
27
|
-
"init": "npm run clean && cd ../assets && npm install --legacy-peer-deps && npm run iconsassets",
|
|
27
|
+
"init": "npm run clean && cd ../assets && npm run clean && npm install --legacy-peer-deps && npm run iconsassets",
|
|
28
28
|
"init_": "npm run clean && cd ../assets && npm run iconsassets_temp",
|
|
29
29
|
"lint": "react-cli lint",
|
|
30
30
|
"prepare": "npm run init && npm run css:build",
|