@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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  In this GiftBox we Provide FontIcons
4
4
 
5
+ # 1.0.2
6
+
7
+ - Async remove issue fixed
8
+
5
9
  # 1.0.1
6
10
 
7
11
  - WordWrap css inheritance issue solved for RTL direction
@@ -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-11T17:43:43.545Z
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-11T17:43:43.545Z
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-11T17:43:43.545Z
238
+ at 2023-08-17T11:25:25.826Z
239
239
  </div>
240
240
  <script src="../prettify.js"></script>
241
241
  <script>
@@ -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-11T17:43:43.545Z
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-11T17:43:43.545Z
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-11T17:43:43.545Z
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-11T17:43:43.545Z
127
+ at 2023-08-17T11:25:25.826Z
128
128
  </div>
129
129
  <script src="../../prettify.js"></script>
130
130
  <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-11T17:43:43.545Z
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
- Icon: null
215
+ IconComponent: null
218
216
  };
219
217
  }
220
218
 
221
219
  function Icon(props) {
222
220
  const {
223
- Icon
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 = function _Icon() {
222
- return IconRender(iconName, iconContent, props);
223
- };
221
+ var _Icon = IconRender(iconName, iconContent, props);
224
222
 
225
223
  return {
226
- Icon: _Icon
224
+ IconComponent: _Icon
227
225
  };
228
226
  }
229
227
 
230
228
  return {
231
- Icon: null
229
+ IconComponent: null
232
230
  };
233
231
  }
234
232
 
235
233
  function Icon(props) {
236
234
  var _getIcon = getIcon(props),
237
- Icon = _getIcon.Icon;
238
-
239
- if (Icon) {
240
- return /*#__PURE__*/_react["default"].createElement(Icon, null);
241
- }
235
+ IconComponent = _getIcon.IconComponent;
242
236
 
243
- return null;
237
+ return IconComponent;
244
238
  }
245
239
 
246
240
  var _default = Icon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/icons",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "DOT - Icons",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",
@@ -46,4 +46,4 @@
46
46
  "peerDependencies": {
47
47
  "@zohodesk/variables": "1.0.0"
48
48
  }
49
- }
49
+ }
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":1691775823556,"startTime":1691775821837,"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":[]}}]}}}
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":[]}}]}}}