@zohodesk/icons 1.0.1 → 1.0.2
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 +4 -0
- package/coverage/Icon/CustomIcons.js.html +1 -1
- package/coverage/Icon/FontIcon.js.html +1 -1
- package/coverage/Icon/Icon.module.css.html +1 -1
- package/coverage/Icon/index.html +1 -1
- package/coverage/Icon/props/defaultProps.js.html +1 -1
- package/coverage/Icon/props/index.html +1 -1
- package/coverage/Icon/props/propTypes.js.html +1 -1
- package/coverage/index.html +1 -1
- package/es/Icon/index.js +5 -12
- package/lib/Icon/index.js +5 -11
- package/package.json +2 -2
- package/result.json +1 -1
package/README.md
CHANGED
|
@@ -415,7 +415,7 @@ export const allCustomIcons = { ...CustomIcons, ...TwoToneIcons };
|
|
|
415
415
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
416
416
|
Code coverage generated by
|
|
417
417
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
418
|
-
at 2023-08-
|
|
418
|
+
at 2023-08-17T11:25:25.826Z
|
|
419
419
|
</div>
|
|
420
420
|
<script src="../prettify.js"></script>
|
|
421
421
|
<script>
|
|
@@ -283,7 +283,7 @@ FontIcon.defaultProps = IconDefaultProps;
|
|
|
283
283
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
284
284
|
Code coverage generated by
|
|
285
285
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
286
|
-
at 2023-08-
|
|
286
|
+
at 2023-08-17T11:25:25.826Z
|
|
287
287
|
</div>
|
|
288
288
|
<script src="../prettify.js"></script>
|
|
289
289
|
<script>
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
236
236
|
Code coverage generated by
|
|
237
237
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
238
|
-
at 2023-08-
|
|
238
|
+
at 2023-08-17T11:25:25.826Z
|
|
239
239
|
</div>
|
|
240
240
|
<script src="../prettify.js"></script>
|
|
241
241
|
<script>
|
package/coverage/Icon/index.html
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-08-
|
|
134
|
+
at 2023-08-17T11:25:25.826Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
86
86
|
Code coverage generated by
|
|
87
87
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
88
|
-
at 2023-08-
|
|
88
|
+
at 2023-08-17T11:25:25.826Z
|
|
89
89
|
</div>
|
|
90
90
|
<script src="../../prettify.js"></script>
|
|
91
91
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-08-
|
|
119
|
+
at 2023-08-17T11:25:25.826Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -124,7 +124,7 @@ export const IconProps = {
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at 2023-08-
|
|
127
|
+
at 2023-08-17T11:25:25.826Z
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../prettify.js"></script>
|
|
130
130
|
<script>
|
package/coverage/index.html
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-08-
|
|
119
|
+
at 2023-08-17T11:25:25.826Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="prettify.js"></script>
|
|
122
122
|
<script>
|
package/es/Icon/index.js
CHANGED
|
@@ -205,29 +205,22 @@ function getIcon(props) {
|
|
|
205
205
|
|
|
206
206
|
if (iconName) {
|
|
207
207
|
const iconContent = filesMap[iconName]();
|
|
208
|
-
|
|
209
|
-
const Icon = () => IconRender(iconName, iconContent, props);
|
|
210
|
-
|
|
208
|
+
const Icon = IconRender(iconName, iconContent, props);
|
|
211
209
|
return {
|
|
212
|
-
Icon
|
|
210
|
+
IconComponent: Icon
|
|
213
211
|
};
|
|
214
212
|
}
|
|
215
213
|
|
|
216
214
|
return {
|
|
217
|
-
|
|
215
|
+
IconComponent: null
|
|
218
216
|
};
|
|
219
217
|
}
|
|
220
218
|
|
|
221
219
|
function Icon(props) {
|
|
222
220
|
const {
|
|
223
|
-
|
|
221
|
+
IconComponent
|
|
224
222
|
} = getIcon(props);
|
|
225
|
-
|
|
226
|
-
if (Icon) {
|
|
227
|
-
return /*#__PURE__*/React.createElement(Icon, null);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
return null;
|
|
223
|
+
return IconComponent;
|
|
231
224
|
}
|
|
232
225
|
|
|
233
226
|
export default Icon;
|
package/lib/Icon/index.js
CHANGED
|
@@ -218,29 +218,23 @@ function getIcon(props) {
|
|
|
218
218
|
if (iconName) {
|
|
219
219
|
var iconContent = filesMap[iconName]();
|
|
220
220
|
|
|
221
|
-
var _Icon =
|
|
222
|
-
return IconRender(iconName, iconContent, props);
|
|
223
|
-
};
|
|
221
|
+
var _Icon = IconRender(iconName, iconContent, props);
|
|
224
222
|
|
|
225
223
|
return {
|
|
226
|
-
|
|
224
|
+
IconComponent: _Icon
|
|
227
225
|
};
|
|
228
226
|
}
|
|
229
227
|
|
|
230
228
|
return {
|
|
231
|
-
|
|
229
|
+
IconComponent: null
|
|
232
230
|
};
|
|
233
231
|
}
|
|
234
232
|
|
|
235
233
|
function Icon(props) {
|
|
236
234
|
var _getIcon = getIcon(props),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (Icon) {
|
|
240
|
-
return /*#__PURE__*/_react["default"].createElement(Icon, null);
|
|
241
|
-
}
|
|
235
|
+
IconComponent = _getIcon.IconComponent;
|
|
242
236
|
|
|
243
|
-
return
|
|
237
|
+
return IconComponent;
|
|
244
238
|
}
|
|
245
239
|
|
|
246
240
|
var _default = Icon;
|
package/package.json
CHANGED
package/result.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"bk"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":17,"numberOfFails":0,"numberOfCases":17,"numberOfSuites":1,"endTime":
|
|
1
|
+
{"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"bk"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":17,"numberOfFails":0,"numberOfCases":17,"numberOfSuites":1,"endTime":1692271525837,"startTime":1692271523490,"coverageDetail":{"codeCoveragePercentage":93.59,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}}]}}}
|