@zohodesk/svg 1.0.0-beta.37 → 1.0.0-beta.40

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.
Files changed (258) hide show
  1. package/README.md +7 -0
  2. package/lib/Provider.js +17 -17
  3. package/lib/index.js +1 -1
  4. package/lib/svg/EmptyAccounts.js +3 -3
  5. package/lib/svg/EmptyActiveCalls.js +3 -3
  6. package/lib/svg/EmptyActivity.js +3 -3
  7. package/lib/svg/EmptyAgent.js +3 -3
  8. package/lib/svg/EmptyAgentQueue.js +3 -3
  9. package/lib/svg/EmptyApproval.js +3 -3
  10. package/lib/svg/EmptyArchived.js +3 -3
  11. package/lib/svg/EmptyAttach.js +3 -3
  12. package/lib/svg/EmptyBlueprint.js +3 -3
  13. package/lib/svg/EmptyBusinessHoliday.js +3 -3
  14. package/lib/svg/EmptyBusinessHour.js +3 -3
  15. package/lib/svg/EmptyCallHistory.js +3 -3
  16. package/lib/svg/EmptyCollision.js +3 -3
  17. package/lib/svg/EmptyColumn.js +3 -3
  18. package/lib/svg/EmptyContact.js +3 -3
  19. package/lib/svg/EmptyContract.js +3 -3
  20. package/lib/svg/EmptyConversation.js +3 -3
  21. package/lib/svg/EmptyCrm.js +3 -3
  22. package/lib/svg/EmptyCrmNotes.js +3 -3
  23. package/lib/svg/EmptyCrmPotential.js +3 -3
  24. package/lib/svg/EmptyCustomDomain.js +3 -3
  25. package/lib/svg/EmptyDashboard.js +3 -3
  26. package/lib/svg/EmptyDepartment.js +3 -3
  27. package/lib/svg/EmptyError.js +3 -3
  28. package/lib/svg/EmptyFeed.js +3 -3
  29. package/lib/svg/EmptyFollowers.js +3 -3
  30. package/lib/svg/EmptyFrame.js +3 -3
  31. package/lib/svg/EmptyFromAddress.js +3 -3
  32. package/lib/svg/EmptyHappiness.js +3 -3
  33. package/lib/svg/EmptyHistory.js +3 -3
  34. package/lib/svg/EmptyImportHistory.js +3 -3
  35. package/lib/svg/EmptyInconvenience.js +3 -3
  36. package/lib/svg/EmptyInvoice.js +3 -3
  37. package/lib/svg/EmptyNetwork.js +3 -3
  38. package/lib/svg/EmptyNotification.js +3 -3
  39. package/lib/svg/EmptyProducts.js +3 -3
  40. package/lib/svg/EmptyRecycleBin.js +3 -3
  41. package/lib/svg/EmptyReply.js +3 -3
  42. package/lib/svg/EmptyReports.js +3 -3
  43. package/lib/svg/EmptyRoles.js +3 -3
  44. package/lib/svg/EmptySchedule.js +3 -3
  45. package/lib/svg/EmptySearch.js +3 -3
  46. package/lib/svg/EmptySkills.js +3 -3
  47. package/lib/svg/EmptySla.js +3 -3
  48. package/lib/svg/EmptySnippet.js +3 -3
  49. package/lib/svg/EmptyTag.js +3 -3
  50. package/lib/svg/EmptyTask.js +3 -3
  51. package/lib/svg/EmptyTeams.js +3 -3
  52. package/lib/svg/EmptyTemplate.js +3 -3
  53. package/lib/svg/EmptyTicket.js +3 -3
  54. package/lib/svg/EmptyTimeEntry.js +3 -3
  55. package/lib/svg/EmptyTimeline.js +3 -3
  56. package/lib/svg/EmptyTopic.js +3 -3
  57. package/lib/svg/EmptyUnauthorizedLogin.js +3 -3
  58. package/lib/svg/EmptyWebhook.js +3 -3
  59. package/lib/svg/EmptyWillBeRightBack.js +3 -3
  60. package/lib/svg/ErrorInconvenience.js +3 -3
  61. package/lib/svg/ErrorOopsSomethingMiss.js +3 -3
  62. package/lib/svg/ErrorUnableToProcessRequest.js +3 -3
  63. package/lib/svg/ErrorUnauthorizedLogin.js +3 -3
  64. package/lib/svg/ErrorUrlNotFound.js +3 -3
  65. package/lib/svg/ErrorWillBeRightBack.js +3 -3
  66. package/lib/svg/Extractor.js +3 -3
  67. package/lib/svg/FailureLog.js +3 -3
  68. package/lib/svg/Import.js +3 -3
  69. package/lib/svg/Loader.js +3 -3
  70. package/lib/svg/NoRequestFound.js +3 -3
  71. package/lib/svg/NotImpossible.js +3 -3
  72. package/lib/svg/PageNotFound.js +3 -3
  73. package/lib/svg/Predictor.js +3 -3
  74. package/lib/svg/SVG.js +3 -3
  75. package/lib/svg/SvgLoader.js +1 -1
  76. package/lib/svg/UnableToProcessRequest.js +3 -3
  77. package/lib/svg/UnauthorizedLogin.js +3 -3
  78. package/lib/svg/UrlNotFound.js +3 -3
  79. package/lib/svg/WillBeRightBack.js +3 -3
  80. package/lib/svg/ZiaAnamoly.js +3 -3
  81. package/lib/svg/docs/SVG__common.docs.js +3 -3
  82. package/lib/svg/docs/SVG__default.docs.js +3 -3
  83. package/lib/svg/docs/SVG__errorstate.docs.js +3 -3
  84. package/package.json +12 -6
  85. package/preprocess/index.js +2 -0
  86. package/preprocess/json/svgAppearanceVariableJson.js +151 -0
  87. package/preprocess/json/svgThemeVariableJson.js +71 -0
  88. package/preprocess/svgAppearanceColors.js +63 -0
  89. package/preprocess/svgThemeColors.js +92 -0
  90. package/src/Provider.js +14 -14
  91. package/src/index.js +1 -1
  92. package/build/Unusedfiles.json +0 -1
  93. package/es/Provider.js +0 -140
  94. package/es/index.js +0 -9
  95. package/es/svg/Appearance/dark/mode/darkEmptyStates.module.css +0 -37
  96. package/es/svg/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -10
  97. package/es/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -10
  98. package/es/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -10
  99. package/es/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -10
  100. package/es/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -10
  101. package/es/svg/Appearance/default/mode/defaultEmptyStates.module.css +0 -37
  102. package/es/svg/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -10
  103. package/es/svg/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -10
  104. package/es/svg/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -10
  105. package/es/svg/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -10
  106. package/es/svg/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -10
  107. package/es/svg/EmptyAccounts.js +0 -101
  108. package/es/svg/EmptyActiveCalls.js +0 -72
  109. package/es/svg/EmptyActivity.js +0 -72
  110. package/es/svg/EmptyAgent.js +0 -72
  111. package/es/svg/EmptyAgentQueue.js +0 -78
  112. package/es/svg/EmptyApproval.js +0 -78
  113. package/es/svg/EmptyArchived.js +0 -80
  114. package/es/svg/EmptyAttach.js +0 -72
  115. package/es/svg/EmptyBlueprint.js +0 -87
  116. package/es/svg/EmptyBusinessHoliday.js +0 -39
  117. package/es/svg/EmptyBusinessHour.js +0 -39
  118. package/es/svg/EmptyCallHistory.js +0 -74
  119. package/es/svg/EmptyCollision.js +0 -72
  120. package/es/svg/EmptyColumn.js +0 -78
  121. package/es/svg/EmptyContact.js +0 -72
  122. package/es/svg/EmptyContract.js +0 -68
  123. package/es/svg/EmptyConversation.js +0 -72
  124. package/es/svg/EmptyCrm.js +0 -72
  125. package/es/svg/EmptyCrmNotes.js +0 -83
  126. package/es/svg/EmptyCrmPotential.js +0 -86
  127. package/es/svg/EmptyCustomDomain.js +0 -39
  128. package/es/svg/EmptyDashboard.js +0 -78
  129. package/es/svg/EmptyDepartment.js +0 -72
  130. package/es/svg/EmptyError.js +0 -94
  131. package/es/svg/EmptyFeed.js +0 -75
  132. package/es/svg/EmptyFollowers.js +0 -73
  133. package/es/svg/EmptyFrame.js +0 -71
  134. package/es/svg/EmptyFromAddress.js +0 -39
  135. package/es/svg/EmptyHappiness.js +0 -72
  136. package/es/svg/EmptyHistory.js +0 -72
  137. package/es/svg/EmptyImportHistory.js +0 -39
  138. package/es/svg/EmptyInconvenience.js +0 -42
  139. package/es/svg/EmptyInvoice.js +0 -77
  140. package/es/svg/EmptyNetwork.js +0 -39
  141. package/es/svg/EmptyNotification.js +0 -72
  142. package/es/svg/EmptyProducts.js +0 -75
  143. package/es/svg/EmptyRecycleBin.js +0 -39
  144. package/es/svg/EmptyReply.js +0 -67
  145. package/es/svg/EmptyReports.js +0 -78
  146. package/es/svg/EmptyRoles.js +0 -39
  147. package/es/svg/EmptySchedule.js +0 -114
  148. package/es/svg/EmptySearch.js +0 -82
  149. package/es/svg/EmptySkills.js +0 -120
  150. package/es/svg/EmptySla.js +0 -67
  151. package/es/svg/EmptySnippet.js +0 -82
  152. package/es/svg/EmptyStateVariables.module.css +0 -39
  153. package/es/svg/EmptyTag.js +0 -75
  154. package/es/svg/EmptyTask.js +0 -88
  155. package/es/svg/EmptyTeams.js +0 -72
  156. package/es/svg/EmptyTemplate.js +0 -84
  157. package/es/svg/EmptyTicket.js +0 -75
  158. package/es/svg/EmptyTimeEntry.js +0 -78
  159. package/es/svg/EmptyTimeline.js +0 -72
  160. package/es/svg/EmptyTopic.js +0 -78
  161. package/es/svg/EmptyUnauthorizedLogin.js +0 -47
  162. package/es/svg/EmptyWebhook.js +0 -39
  163. package/es/svg/EmptyWillBeRightBack.js +0 -42
  164. package/es/svg/ErrorInconvenience.js +0 -113
  165. package/es/svg/ErrorOopsSomethingMiss.js +0 -114
  166. package/es/svg/ErrorUnableToProcessRequest.js +0 -114
  167. package/es/svg/ErrorUnauthorizedLogin.js +0 -113
  168. package/es/svg/ErrorUrlNotFound.js +0 -114
  169. package/es/svg/ErrorWillBeRightBack.js +0 -113
  170. package/es/svg/Extractor.js +0 -66
  171. package/es/svg/FailureLog.js +0 -39
  172. package/es/svg/Import.js +0 -82
  173. package/es/svg/Loader.js +0 -71
  174. package/es/svg/NoRequestFound.js +0 -42
  175. package/es/svg/NotImpossible.js +0 -79
  176. package/es/svg/PageNotFound.js +0 -43
  177. package/es/svg/Predictor.js +0 -73
  178. package/es/svg/SVG.js +0 -78
  179. package/es/svg/SVG.module.css +0 -26
  180. package/es/svg/SvgLoader.js +0 -28
  181. package/es/svg/UnableToProcessRequest.js +0 -43
  182. package/es/svg/UnauthorizedLogin.js +0 -43
  183. package/es/svg/UrlNotFound.js +0 -43
  184. package/es/svg/WillBeRightBack.js +0 -43
  185. package/es/svg/ZiaAnamoly.js +0 -67
  186. package/es/svg/deprecated/21_07_2021/EmptyPageNotFound.js +0 -40
  187. package/es/svg/deprecated/21_07_2021/EmptyUnableToProcess.js +0 -42
  188. package/es/svg/deprecated/21_07_2021/EmptyUrlNotFound.js +0 -45
  189. package/es/svg/deprecated/21_07_2021/InvalidUrl.js +0 -717
  190. package/es/svg/deprecated/Themes/DarkEmptyStates.module.css +0 -37
  191. package/es/svg/deprecated/Themes/DefaultEmptyStates.module.css +0 -37
  192. package/es/svg/deprecated/Themes/palette/darkCTAPalette.module.css +0 -51
  193. package/es/svg/deprecated/Themes/palette/defaultCTAPalette.module.css +0 -51
  194. package/es/svg/docs/SVG__common.docs.js +0 -49
  195. package/es/svg/docs/SVG__default.docs.js +0 -327
  196. package/es/svg/docs/SVG__errorstate.docs.js +0 -74
  197. package/es/svg/docs/SVGdocstyle.module.css +0 -8
  198. package/es/svg/images/EmptyBusinessHoliday.svg +0 -50
  199. package/es/svg/images/EmptyBusinessHour.svg +0 -42
  200. package/es/svg/images/EmptyContactInfo.svg +0 -27
  201. package/es/svg/images/EmptyCustomDomain.svg +0 -85
  202. package/es/svg/images/EmptyFilter.svg +0 -62
  203. package/es/svg/images/EmptyFromAddress.svg +0 -41
  204. package/es/svg/images/EmptyImportHistory.svg +0 -43
  205. package/es/svg/images/EmptyNetwork.svg +0 -50
  206. package/es/svg/images/EmptyRecycleBin.svg +0 -58
  207. package/es/svg/images/EmptyRoles.svg +0 -30
  208. package/es/svg/images/EmptySkills.svg +0 -83
  209. package/es/svg/images/EmptyWebhook.svg +0 -44
  210. package/es/svg/images/FailureLog.svg +0 -46
  211. package/es/svg/images/Inconvenience.svg +0 -719
  212. package/es/svg/images/NoRequestFound.svg +0 -247
  213. package/es/svg/images/PageNotFound.svg +0 -405
  214. package/es/svg/images/ReguestUrlNotFound.svg +0 -267
  215. package/es/svg/images/UnableToProcess.svg +0 -752
  216. package/es/svg/images/UnauthorizedLogin.svg +0 -1047
  217. package/es/svg/images/WillBack.svg +0 -633
  218. package/es/svg/utils.js +0 -14
  219. package/lib/svg/Appearance/dark/mode/darkEmptyStates.module.css +0 -37
  220. package/lib/svg/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -10
  221. package/lib/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -10
  222. package/lib/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -10
  223. package/lib/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -10
  224. package/lib/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -10
  225. package/lib/svg/Appearance/default/mode/defaultEmptyStates.module.css +0 -37
  226. package/lib/svg/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -10
  227. package/lib/svg/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -10
  228. package/lib/svg/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -10
  229. package/lib/svg/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -10
  230. package/lib/svg/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -10
  231. package/lib/svg/deprecated/21_07_2021/EmptyPageNotFound.js +0 -90
  232. package/lib/svg/deprecated/21_07_2021/EmptyUnableToProcess.js +0 -92
  233. package/lib/svg/deprecated/21_07_2021/EmptyUrlNotFound.js +0 -95
  234. package/lib/svg/deprecated/21_07_2021/InvalidUrl.js +0 -765
  235. package/lib/svg/deprecated/Themes/DarkEmptyStates.module.css +0 -37
  236. package/lib/svg/deprecated/Themes/DefaultEmptyStates.module.css +0 -37
  237. package/lib/svg/deprecated/Themes/palette/darkCTAPalette.module.css +0 -51
  238. package/lib/svg/deprecated/Themes/palette/defaultCTAPalette.module.css +0 -51
  239. package/src/svg/Appearance/dark/mode/darkEmptyStates.module.css +0 -37
  240. package/src/svg/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -10
  241. package/src/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -10
  242. package/src/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -10
  243. package/src/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -10
  244. package/src/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -10
  245. package/src/svg/Appearance/default/mode/defaultEmptyStates.module.css +0 -37
  246. package/src/svg/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -10
  247. package/src/svg/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -10
  248. package/src/svg/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -10
  249. package/src/svg/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -10
  250. package/src/svg/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -10
  251. package/src/svg/deprecated/21_07_2021/EmptyPageNotFound.js +0 -39
  252. package/src/svg/deprecated/21_07_2021/EmptyUnableToProcess.js +0 -41
  253. package/src/svg/deprecated/21_07_2021/EmptyUrlNotFound.js +0 -48
  254. package/src/svg/deprecated/21_07_2021/InvalidUrl.js +0 -756
  255. package/src/svg/deprecated/Themes/DarkEmptyStates.module.css +0 -37
  256. package/src/svg/deprecated/Themes/DefaultEmptyStates.module.css +0 -37
  257. package/src/svg/deprecated/Themes/palette/darkCTAPalette.module.css +0 -51
  258. package/src/svg/deprecated/Themes/palette/defaultCTAPalette.module.css +0 -51
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -21,9 +21,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21
21
 
22
22
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
23
 
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
package/lib/svg/SVG.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -21,9 +21,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21
21
 
22
22
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
23
 
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -23,9 +23,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
23
23
 
24
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
25
 
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -21,9 +21,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21
21
 
22
22
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
23
 
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -17,9 +17,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
17
17
 
18
18
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
19
19
 
20
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
20
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
21
 
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
23
 
24
24
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
25
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -135,9 +135,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
135
135
 
136
136
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
137
137
 
138
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
138
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
139
139
 
140
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
140
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
141
141
 
142
142
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
143
143
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ 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); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -29,9 +29,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
29
29
 
30
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
31
 
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
33
 
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
35
 
36
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/svg",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.40",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -22,20 +22,26 @@
22
22
  "build:es": "react-cli build:library:es",
23
23
  "build:dev": "npm run clean && npm run build:es --module:mode=dev -- -w",
24
24
  "prepare": "npm run init && npm run build && npm run build:es",
25
- "init": "npm run clean",
25
+ "init": "npm run clean && npm run build:variables",
26
+ "build:variables": "node ./preprocess/index",
26
27
  "lint": "react-cli lint",
27
28
  "docs": "react-cli docs",
28
29
  "postpublish": "react-cli postpublish",
29
30
  "download": "rm package-lock.json && rm -rf node_modules/ && npm install"
30
31
  },
32
+ "react-cli": {
33
+ "preprocessor": {
34
+ "runner": "preprocess/index.js"
35
+ }
36
+ },
31
37
  "devDependencies": {
32
- "@zohodesk/variables": "1.0.0-beta.25",
33
- "@zohodesk/components": "1.0.0-alpha-190",
38
+ "@zohodesk/variables": "1.0.0-beta.29",
39
+ "@zohodesk/components": "1.0.0-alpha-225",
34
40
  "@svgr/cli": "5.5.0"
35
41
  },
36
42
  "peerDependencies": {
37
- "@zohodesk/variables": "^1.0.0-beta.23",
38
- "@zohodesk/components": "1.0.0-alpha-190"
43
+ "@zohodesk/variables": "1.0.0-beta.29",
44
+ "@zohodesk/components": "1.0.0-alpha-225"
39
45
  },
40
46
  "tags": [
41
47
  "react",
@@ -0,0 +1,2 @@
1
+ require('./svgThemeColors');
2
+ require('./svgAppearanceColors');
@@ -0,0 +1,151 @@
1
+ /* sample =>
2
+ {
3
+ "comment": "comment name",
4
+ "data": {
5
+ "--zdt_variable_name": {
6
+ 'lightMode': ['green'],
7
+ 'nightMode': ['red]
8
+ }
9
+ }
10
+ }
11
+ */
12
+
13
+ const svgAppearanceVariables = [
14
+ {
15
+ "comment": "default palette",
16
+ "data": {
17
+ "default_primary_fill": {
18
+ 'light': ['var(--zdt_cta_primary_fill)'],
19
+ 'dark': ['var(--zdt_cta_primary_fill)']
20
+ },
21
+ "default_primary_stroke": {
22
+ 'light': ['var(--zdt_cta_primary_stroke)'],
23
+ 'dark': ['var(--zdt_cta_primary_stroke)']
24
+ },
25
+ "default_secondary_fill": {
26
+ 'light': ['var(--zdt_cta_secondary_fill)'],
27
+ 'dark': ['var(--zdt_cta_secondary_fill)']
28
+ },
29
+ "default_secondary_plainfill": {
30
+ 'light': ['var(--zdt_cta_secondary_plainfill)'],
31
+ 'dark': ['var(--zdt_cta_secondary_plainfill)']
32
+ },
33
+ "default_plus": {
34
+ 'light': ['#3f70b7'],
35
+ 'dark': ['#479dff']
36
+ },
37
+ "default_cross": {
38
+ 'light': ['#5cc1a5'],
39
+ 'dark': ['#5cc1a5']
40
+ },
41
+ "default_medium_circle": {
42
+ 'light': ['#e56471'],
43
+ 'dark': ['#ff6b6b']
44
+ },
45
+ "default_tiny_circle": {
46
+ 'light': ['#5cc1a5'],
47
+ 'dark': ['#4ac064']
48
+ },
49
+ "default_small_circle": {
50
+ 'light': ['#010101'],
51
+ 'dark': ['#ff6b6b']
52
+ },
53
+ "default_circle_fill": {
54
+ 'light': ['var(--dot_white)'],
55
+ 'dark': ['var(--dot_white)']
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "comment": "dark palette",
61
+ "data": {
62
+ "dark_primary_fill": {
63
+ 'light': ['var(--zdt_cta_primary_dark_fill)'],
64
+ 'dark': ['var(--zdt_cta_primary_dark_fill)']
65
+ },
66
+ "dark_primary_stroke": {
67
+ 'light': ['var(--zdt_cta_primary_dark_stroke)'],
68
+ 'dark': ['var(--zdt_cta_primary_dark_stroke)']
69
+ },
70
+ "dark_secondary_fill": {
71
+ 'light': ['var(--zdt_cta_secondary_dark_fill)'],
72
+ 'dark': ['var(--zdt_cta_secondary_dark_fill)']
73
+ },
74
+ "dark_secondary_plainfill": {
75
+ 'light': ['var(--zdt_cta_secondary_dark_plainfill)'],
76
+ 'dark': ['var(--zdt_cta_secondary_dark_plainfill)']
77
+ },
78
+ "dark_plus": {
79
+ 'light': ['#479dff'],
80
+ 'dark': ['#479dff']
81
+ },
82
+ "dark_cross": {
83
+ 'light': ['#5cc1a5'],
84
+ 'dark': ['#5cc1a5']
85
+ },
86
+ "dark_medium_circle": {
87
+ 'light': ['#e56471'],
88
+ 'dark': ['#ff6b6b']
89
+ },
90
+ "dark_tiny_circle": {
91
+ 'light': ['#5cc1a5'],
92
+ 'dark': ['#4ac064']
93
+ },
94
+ "dark_small_circle": {
95
+ 'light': ['#010101'],
96
+ 'dark': ['#ff6b6b']
97
+ },
98
+ "dark_circle_fill": {
99
+ 'light': ['var(--dot_white)'],
100
+ 'dark': ['var(--dot_white)']
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "comment": "danger palette",
106
+ "data": {
107
+ "danger_primary_fill": {
108
+ 'light': ['#ff6f00'],
109
+ 'dark': ['#ff6f00']
110
+ },
111
+ "danger_primary_stroke": {
112
+ 'light': ['#010101'],
113
+ 'dark': ['#479dff']
114
+ },
115
+ "danger_secondary_fill": {
116
+ 'light': ['rgba(63, 112, 183, 0.25)'],
117
+ 'dark': ['#334b68']
118
+ },
119
+ "danger_secondary_plainfill": {
120
+ 'light': ['#3f70b7'],
121
+ 'dark': ['#334b68']
122
+ },
123
+ "danger_plus": {
124
+ 'light': ['#3f70b7'],
125
+ 'dark': ['#479dff']
126
+ },
127
+ "danger_cross": {
128
+ 'light': ['#5cc1a5'],
129
+ 'dark': ['#5cc1a5']
130
+ },
131
+ "danger_medium_circle": {
132
+ 'light': ['#e56471'],
133
+ 'dark': ['#ff6b6b']
134
+ },
135
+ "danger_tiny_circle": {
136
+ 'light': ['#5cc1a5'],
137
+ 'dark': ['#4ac064']
138
+ },
139
+ "danger_small_circle": {
140
+ 'light': ['#010101'],
141
+ 'dark': ['#ff6b6b']
142
+ },
143
+ "danger_circle_fill": {
144
+ 'light': ['var(--dot_white)'],
145
+ 'dark': ['var(--dot_white)']
146
+ }
147
+ }
148
+ }
149
+ ];
150
+
151
+ module.exports = { svgAppearanceVariables: svgAppearanceVariables };
@@ -0,0 +1,71 @@
1
+ /* sample =>
2
+ {
3
+ "--zdt_variable_name": {
4
+ 'lightMode': ['blue', 'green', 'orange', 'red', 'yellow'],
5
+ 'nightMode': ['blue', 'green', 'orange', 'red', 'yellow']
6
+ }
7
+ }
8
+ */
9
+
10
+ const svgThemeVariables = [
11
+ {
12
+ "primary_fill": {
13
+ 'light': ['#0a73eb', '#26a942', '#e57717', '#de3535', '#e8b923'],
14
+ 'dark': ['#828994', '#45a159', '#ff801f', '#e94f4f', '#d79835']
15
+ },
16
+ "primary_stroke": {
17
+ 'light': ['#221f1f', '#010101', '#010101', '#010101', '#010101'],
18
+ 'dark': ['#479dff', '#45a159', '#ff801f', '#e94f4f', '#d79835']
19
+ },
20
+ "secondary_fill": {
21
+ 'light': [
22
+ 'rgba(10, 115, 235, 0.25)',
23
+ 'rgba(38, 169, 66, 0.25)',
24
+ 'rgba(229, 119, 23, 0.25)',
25
+ 'rgba(222, 53, 53, 0.25)',
26
+ 'rgba(232, 185, 35, 0.25)'
27
+ ],
28
+ 'dark': [
29
+ '#334b68',
30
+ 'rgba(69, 161, 89, 0.25)',
31
+ 'rgba(255, 128, 31, 0.25)',
32
+ 'rgba(233, 79, 79, 0.25)',
33
+ 'rgba(215, 152, 53, 0.25)'
34
+ ]
35
+ },
36
+ "secondary_plainfill": {
37
+ 'light': ['#0a73eb', '#26a942', '#e57717', '#de3535', '#e8b923'],
38
+ 'dark': ['#334b68', '#45a159', '#ff801f', '#e94f4f', '#d79835']
39
+ },
40
+ "primary_dark_fill": {
41
+ 'light': ['#a6add7', '#26a942', '#e57717', '#de3535', '#e8b923'],
42
+ 'dark': ['#828994', '#45a159', '#ff801f', '#e94f4f', '#d79835']
43
+ },
44
+ "primary_dark_stroke": {
45
+ 'light': ['#fff', '#fff', '#fff', '#fff', '#fff'],
46
+ 'dark': ['#479dff', '#45a159', '#ff801f', '#e94f4f', '#d79835']
47
+ },
48
+ "secondary_dark_fill": {
49
+ 'light': [
50
+ '#3f70b7',
51
+ 'rgba(38, 169, 66, 0.25)',
52
+ 'rgba(229, 119, 23, 0.25)',
53
+ 'rgba(222, 53, 53, 0.25)',
54
+ 'rgba(232, 185, 35, 0.25)'
55
+ ],
56
+ 'dark': [
57
+ '#334b68',
58
+ 'rgba(69, 161, 89, 0.25)',
59
+ 'rgba(255, 128, 31, 0.25)',
60
+ 'rgba(233, 79, 79, 0.25)',
61
+ 'rgba(215, 152, 53, 0.25)'
62
+ ]
63
+ },
64
+ "secondary_dark_plainfill": {
65
+ 'light': ['#3f70b7', '#26a942', '#e57717', '#de3535', '#e8b923'],
66
+ 'dark': ['#334b68', '#45a159', '#ff801f', '#e94f4f', '#d79835']
67
+ }
68
+ }
69
+ ];
70
+
71
+ module.exports = { svgThemeVariables: svgThemeVariables };
@@ -0,0 +1,63 @@
1
+ var { svgAppearanceVariables } = require('./json/svgAppearanceVariableJson');
2
+ var { ensureDirectoryExistence } = require('../../common/pre_utils');
3
+ let fs = require('fs');
4
+ let path = require('path');
5
+ let baseFolder = 'Appearance';
6
+ let mode = ['default', 'dark'];
7
+ let modeFiles = [];
8
+ let prefix=`\n\t--zdt_svg_`;
9
+ mode.forEach(mode => {
10
+ let modeFilesString = `../assets/${baseFolder}/${mode}/mode/${mode}EmptyStates.module.css`;
11
+ modeFiles.push(path.join(__dirname, modeFilesString));
12
+ });
13
+ let files = modeFiles;
14
+
15
+ function generate(mode) {
16
+ let exportVariables = [];
17
+ let counter = 0;
18
+ let newLine = '';
19
+
20
+ svgAppearanceVariables.forEach((element) => {
21
+ let commentName = element.comment;
22
+ counting = counter++;
23
+ if (counting != 0) {
24
+ newLine = `\n\t`;
25
+ }
26
+
27
+ exportVariables.push(commentName ? `${newLine}\n\t/* ${commentName} */` : '');
28
+
29
+ Object.entries(element.data).map(([key, value]) => {
30
+ if (mode == 'default') {
31
+ let svgDefaultColors = value.light[0];
32
+
33
+ colorsResult = [
34
+ `${prefix}${key}: ${svgDefaultColors};`
35
+ ];
36
+ exportVariables.push(colorsResult);
37
+ } else if (mode == 'dark') {
38
+ let svgDarkColors = value.dark[0];
39
+
40
+ colorsResult = [
41
+ `${prefix}${key}: ${svgDarkColors};`
42
+ ];
43
+ exportVariables.push(colorsResult);
44
+ }
45
+ })
46
+ });
47
+ return exportVariables.join('');
48
+ }
49
+
50
+ let arrayIndexCounter = 0;
51
+ mode.forEach(mode => {
52
+ let fileString = files[arrayIndexCounter];
53
+ // let splitPath = fileString.split(/\\/g);
54
+ let getMode = mode;
55
+ ensureDirectoryExistence(fileString);
56
+ fs.writeFileSync(
57
+ fileString,
58
+ `[data-mode='${getMode}'] {${generate(
59
+ getMode
60
+ )}\n}`
61
+ );
62
+ arrayIndexCounter++;
63
+ });