@zohodesk/components 1.0.0-alpha-221 → 1.0.0-alpha-225

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 (287) hide show
  1. package/README.md +16 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +356 -0
  3. package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
  4. package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
  5. package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +34 -0
  6. package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
  7. package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +34 -0
  8. package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
  9. package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +34 -0
  10. package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
  11. package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +34 -0
  12. package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
  13. package/assets/Appearance/default/mode/defaultMode.module.css +356 -0
  14. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +34 -0
  15. package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +42 -0
  16. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +34 -0
  17. package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +42 -0
  18. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +34 -0
  19. package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +42 -0
  20. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +34 -0
  21. package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +42 -0
  22. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +34 -0
  23. package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +42 -0
  24. package/es/Animation/docs/Animation__default.docs.js +2 -2
  25. package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
  26. package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
  27. package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
  28. package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
  29. package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
  30. package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
  31. package/es/AppContainer/AppContainer.js +6 -6
  32. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
  33. package/es/Card/Card.module.css +3 -3
  34. package/es/Card/docs/Card__Default.docs.js +4 -4
  35. package/es/Card/docs/Card__Scroll.docs.js +4 -4
  36. package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
  37. package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
  38. package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
  39. package/es/MultiSelect/MultiSelect.js +8 -1
  40. package/es/PopOver/PopOver.module.css +1 -1
  41. package/es/Provider.js +22 -22
  42. package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
  43. package/es/Select/Select.js +14 -0
  44. package/es/Stencils/Stencils.module.css +4 -14
  45. package/es/Tab/Tabs.js +14 -2
  46. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  47. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  48. package/es/common/docStyle.module.css +9 -9
  49. package/lib/Accordion/Accordion.js +3 -3
  50. package/lib/Accordion/AccordionItem.js +3 -3
  51. package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
  52. package/lib/Animation/Animation.js +3 -3
  53. package/lib/Animation/docs/Animation__default.docs.js +5 -5
  54. package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
  55. package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
  56. package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
  57. package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
  58. package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
  59. package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
  60. package/lib/AppContainer/AppContainer.js +9 -9
  61. package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
  62. package/lib/Avatar/Avatar.js +3 -3
  63. package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
  64. package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
  65. package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
  66. package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
  67. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  68. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
  69. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
  70. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +4 -4
  71. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
  72. package/lib/Button/Button.js +3 -3
  73. package/lib/Button/docs/Button__custom.docs.js +3 -3
  74. package/lib/Button/docs/Button__default.docs.js +3 -3
  75. package/lib/Buttongroup/Buttongroup.js +3 -3
  76. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
  77. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
  78. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
  79. package/lib/Card/Card.js +3 -3
  80. package/lib/Card/Card.module.css +3 -3
  81. package/lib/Card/__tests__/Card.spec.js +1 -1
  82. package/lib/Card/docs/Card__Custom.docs.js +3 -3
  83. package/lib/Card/docs/Card__Default.docs.js +7 -7
  84. package/lib/Card/docs/Card__Scroll.docs.js +7 -7
  85. package/lib/Card/index.js +1 -1
  86. package/lib/CheckBox/CheckBox.js +3 -3
  87. package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
  88. package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
  89. package/lib/DateTime/CalendarView.js +3 -3
  90. package/lib/DateTime/DateTime.js +3 -3
  91. package/lib/DateTime/DateTimePopupFooter.js +3 -3
  92. package/lib/DateTime/DateTimePopupHeader.js +3 -3
  93. package/lib/DateTime/DateWidget.js +3 -3
  94. package/lib/DateTime/DaysRow.js +3 -3
  95. package/lib/DateTime/Time.js +3 -3
  96. package/lib/DateTime/YearView.js +3 -3
  97. package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
  98. package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
  99. package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
  100. package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
  101. package/lib/DateTime/objectUtils.js +1 -1
  102. package/lib/DropBox/DropBox.js +3 -3
  103. package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
  104. package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
  105. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
  106. package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
  107. package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
  108. package/lib/DropDown/DropDown.js +3 -3
  109. package/lib/DropDown/DropDownHeading.js +3 -3
  110. package/lib/DropDown/DropDownItem.js +3 -3
  111. package/lib/DropDown/DropDownSearch.js +3 -3
  112. package/lib/DropDown/DropDownSeparator.js +3 -3
  113. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
  114. package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
  115. package/lib/Label/Label.js +3 -3
  116. package/lib/Label/docs/Label__clipped.docs.js +3 -3
  117. package/lib/Label/docs/Label__custom.docs.js +3 -3
  118. package/lib/Label/docs/Label__palette.docs.js +3 -3
  119. package/lib/Label/docs/Label__size.docs.js +3 -3
  120. package/lib/Label/docs/Label__type.docs.js +3 -3
  121. package/lib/Layout/docs/Layout__Hidden.docs.js +4 -4
  122. package/lib/Layout/docs/Layout__default.docs.js +3 -3
  123. package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
  124. package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
  125. package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
  126. package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
  127. package/lib/ListItem/ListItem.js +3 -3
  128. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  129. package/lib/ListItem/ListItemWithCheckBox.js +3 -3
  130. package/lib/ListItem/ListItemWithIcon.js +3 -3
  131. package/lib/ListItem/ListItemWithRadio.js +3 -3
  132. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
  133. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
  134. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
  135. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
  136. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
  137. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
  138. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
  139. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
  140. package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
  141. package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
  142. package/lib/Modal/Modal.js +3 -3
  143. package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
  144. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -3
  145. package/lib/MultiSelect/AdvancedMultiSelect.js +3 -3
  146. package/lib/MultiSelect/EmptyState.js +3 -3
  147. package/lib/MultiSelect/MultiSelect.js +10 -4
  148. package/lib/MultiSelect/MultiSelectHeader.js +3 -3
  149. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -3
  150. package/lib/MultiSelect/SelectedOptions.js +3 -3
  151. package/lib/MultiSelect/Suggestions.js +5 -5
  152. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
  153. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
  154. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
  155. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
  156. package/lib/PopOver/PopOver.js +3 -3
  157. package/lib/PopOver/PopOver.module.css +1 -1
  158. package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
  159. package/lib/Popup/Popup.js +3 -3
  160. package/lib/Popup/__tests__/Popup.spec.js +3 -3
  161. package/lib/Provider/LibraryContext.js +3 -3
  162. package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
  163. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
  164. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
  165. package/lib/Provider.js +25 -25
  166. package/lib/Radio/Radio.js +3 -3
  167. package/lib/Radio/docs/Radio__custom.docs.js +3 -3
  168. package/lib/Radio/docs/Radio__default.docs.js +3 -3
  169. package/lib/Responsive/CustomResponsive.js +3 -3
  170. package/lib/Responsive/RefWrapper.js +1 -1
  171. package/lib/Responsive/ResizeComponent.js +3 -3
  172. package/lib/Responsive/ResizeObserver.js +1 -1
  173. package/lib/Responsive/Responsive.js +3 -3
  174. package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
  175. package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
  176. package/lib/Responsive/sizeObservers.js +3 -3
  177. package/lib/Responsive/utils/shallowCompare.js +1 -1
  178. package/lib/Ribbon/Ribbon.js +3 -3
  179. package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
  180. package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
  181. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
  182. package/lib/Select/GroupSelect.js +3 -3
  183. package/lib/Select/Select.js +19 -5
  184. package/lib/Select/SelectWithAvatar.js +3 -3
  185. package/lib/Select/SelectWithIcon.js +3 -3
  186. package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
  187. package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
  188. package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
  189. package/lib/Select/docs/Select__default.docs.js +3 -3
  190. package/lib/Stencils/Stencils.js +3 -3
  191. package/lib/Stencils/Stencils.module.css +4 -14
  192. package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
  193. package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
  194. package/lib/Switch/Switch.js +3 -3
  195. package/lib/Switch/docs/Switch__custom.docs.js +3 -3
  196. package/lib/Switch/docs/Switch__default.docs.js +3 -3
  197. package/lib/Tab/Tab.js +1 -1
  198. package/lib/Tab/TabWrapper.js +1 -1
  199. package/lib/Tab/Tabs.js +16 -5
  200. package/lib/Tab/docs/Tab__default.docs.js +3 -3
  201. package/lib/Tag/Tag.js +3 -3
  202. package/lib/Tag/docs/Tag__custom.docs.js +3 -3
  203. package/lib/Tag/docs/Tag__default.docs.js +3 -3
  204. package/lib/TextBox/TextBox.js +3 -3
  205. package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
  206. package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
  207. package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
  208. package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
  209. package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
  210. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
  211. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
  212. package/lib/Textarea/Textarea.js +3 -3
  213. package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
  214. package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
  215. package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
  216. package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
  217. package/lib/Tooltip/Tooltip.js +3 -3
  218. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
  219. package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
  220. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  221. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +5 -5
  222. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  223. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
  224. package/lib/a11y/FocusScope/FocusScope.js +1 -1
  225. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
  226. package/lib/beta/FocusRing/FocusRing.js +3 -3
  227. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
  228. package/lib/common/docStyle.module.css +9 -9
  229. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
  230. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
  231. package/lib/semantic/Button/Button.js +3 -3
  232. package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
  233. package/lib/utils/datetime/common.js +1 -1
  234. package/lib/utils/dropDownUtils.js +1 -1
  235. package/lib/utils/shallowEqual.js +1 -1
  236. package/package.json +13 -9
  237. package/preprocess/componentAppearanceColors.js +67 -0
  238. package/preprocess/componentThemeColors.js +123 -0
  239. package/preprocess/ctaThemeColors.js +101 -0
  240. package/preprocess/index.js +3 -0
  241. package/preprocess/json/componentAppearanceVariableJson.js +1346 -0
  242. package/preprocess/json/componentThemeVariableJson.js +242 -0
  243. package/preprocess/json/ctaThemeVariableJson.js +203 -0
  244. package/es/Appearance/dark/mode/darkMode.module.css +0 -393
  245. package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
  246. package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
  247. package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
  248. package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
  249. package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
  250. package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
  251. package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
  252. package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
  253. package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
  254. package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
  255. package/es/Appearance/default/mode/defaultMode.module.css +0 -395
  256. package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
  257. package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
  258. package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
  259. package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
  260. package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
  261. package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
  262. package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
  263. package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
  264. package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
  265. package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
  266. package/lib/Appearance/dark/mode/darkMode.module.css +0 -393
  267. package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
  268. package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
  269. package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
  270. package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
  271. package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
  272. package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
  273. package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
  274. package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
  275. package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
  276. package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
  277. package/lib/Appearance/default/mode/defaultMode.module.css +0 -395
  278. package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
  279. package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
  280. package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
  281. package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
  282. package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
  283. package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
  284. package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
  285. package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
  286. package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
  287. package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
@@ -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
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  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); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- 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); }
30
+ 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); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -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
@@ -13,9 +13,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
 
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
16
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
17
 
18
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
19
 
20
20
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
21
 
@@ -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
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  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); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- 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); }
30
+ 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); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -94,18 +94,18 @@
94
94
  }
95
95
 
96
96
  .blue {
97
- color: var(--zd_text_prime);
97
+ color: var(--zd_prime);
98
98
  }
99
99
 
100
100
  .dark {
101
101
  composes: p10;
102
- background-color: var(--dot_bg_black);
102
+ background-color: var(--dot_black);
103
103
  }
104
104
 
105
105
  .table {
106
106
  composes: p10;
107
107
  composes: cboth;
108
- border: 1px solid var(--zd_border_smoke84);
108
+ border: 1px solid var(--zd_smoke84);
109
109
  border-radius: 3px;
110
110
  }
111
111
 
@@ -119,7 +119,7 @@
119
119
 
120
120
  .tableheading {
121
121
  composes: blue;
122
- background: var(--zd_bg_smoke1);
122
+ background:var(--zd_smoke1);
123
123
  }
124
124
 
125
125
  .palette {
@@ -130,13 +130,13 @@
130
130
  width: 200px;
131
131
  composes: tcenter;
132
132
  font-weight: bold;
133
- border: 1px solid var(--zd_border_smoke83);
133
+ border: 1px solid var(--zd_smoke83);
134
134
  border-radius: 3px;
135
135
  }
136
136
 
137
137
  .palette .palettecard {
138
138
  height: 80px;
139
- border: 1px solid var(--zd_border_smoke83);
139
+ border: 1px solid var(--zd_smoke83);
140
140
  }
141
141
 
142
142
  .palette span {
@@ -149,7 +149,7 @@
149
149
  composes: tcenter;
150
150
  composes: p10;
151
151
  composes: m10;
152
- border: 1px solid var(--zd_border_smoke83);
152
+ border: 1px solid var(--zd_smoke83);
153
153
  border-radius: 3px;
154
154
  }
155
155
 
@@ -161,7 +161,7 @@
161
161
  .cover {
162
162
  composes: p10;
163
163
  composes: m10;
164
- border: 1px solid var(--zd_border_smoke1);
164
+ border: 1px solid var(--zd_smoke1);
165
165
  border-radius: 5px;
166
166
  }
167
167
 
@@ -759,4 +759,4 @@
759
759
  --textarea_text_color: hsl(var(--hue), 100%, 80%);
760
760
  --textarea_padding: 2px 10px;
761
761
  background-color: hsl(var(--hue), 100%, 97%);
762
- }
762
+ }
@@ -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
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  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); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- 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); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -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
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
25
25
 
26
26
  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); } }
27
27
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- 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); }
30
+ 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); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -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
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  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); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- 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); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -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
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
19
 
20
20
  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); } }
21
21
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- 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); }
24
+ 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); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -18,7 +18,7 @@ exports.pad = pad;
18
18
  exports.replaceI18NValuesWithRegex = replaceI18NValuesWithRegex;
19
19
  exports.unescapeUnicode = unescapeUnicode;
20
20
 
21
- 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); }
21
+ 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); }
22
22
 
23
23
  var dateFormat = {
24
24
  dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
@@ -19,7 +19,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
19
19
 
20
20
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
21
 
22
- 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); }
22
+ 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); }
23
23
 
24
24
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
25
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = shallowEqual;
7
7
 
8
- 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); }
8
+ 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); }
9
9
 
10
10
  function is(x, y) {
11
11
  if (x === y) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-alpha-221",
3
+ "version": "1.0.0-alpha-225",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -13,7 +13,8 @@
13
13
  "lintAllFix": "npm run lintAll --eslint:fix=true",
14
14
  "clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
15
15
  "dubCheck": "node dubFinder node_modules/@zohodesk/icons/lib node_modules/@zohodesk/variables/lib",
16
- "init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components",
16
+ "init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
17
+ "build:variables": "node ./preprocess/index",
17
18
  "rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
18
19
  "start": "react-cli start",
19
20
  "docs": "npm run dubCheck && react-cli docs",
@@ -33,12 +34,12 @@
33
34
  },
34
35
  "devDependencies": {
35
36
  "@zohodesk/docstool": "1.0.0-alpha-2",
36
- "@zohodesk/variables": "1.0.0-beta.25",
37
- "@zohodesk/icons": "1.0.0-beta.85",
37
+ "@zohodesk/variables": "1.0.0-beta.29",
38
+ "@zohodesk/icons": "1.0.0-beta.92",
38
39
  "@zohodesk/virtualizer": "1.0.3",
39
40
  "velocity-react": "^1.4.1",
40
41
  "react-sortable-hoc": "^0.8.3",
41
- "@zohodesk/svg": "1.0.0-beta.37"
42
+ "@zohodesk/svg": "1.0.0-beta.39"
42
43
  },
43
44
  "dependencies": {
44
45
  "hoist-non-react-statics": "3.0.1",
@@ -47,14 +48,17 @@
47
48
  "selectn": "1.1.2"
48
49
  },
49
50
  "peerDependencies": {
50
- "@zohodesk/icons": "^1.0.0-beta.85",
51
- "@zohodesk/variables": "^1.0.0-beta.24",
52
- "@zohodesk/svg": "^1.0.0-beta.37",
51
+ "@zohodesk/icons": "1.0.0-beta.92",
52
+ "@zohodesk/variables": "1.0.0-beta.29",
53
+ "@zohodesk/svg": "1.0.0-beta.39",
53
54
  "@zohodesk/virtualizer": "^1.0.3",
54
55
  "velocity-react": "^1.4.1",
55
56
  "react-sortable-hoc": "^0.8.3"
56
57
  },
57
58
  "react-cli": {
59
+ "preprocessor": {
60
+ "runner": "preprocess/index.js"
61
+ },
58
62
  "docs": {
59
63
  "componentFolder": "./src",
60
64
  "cssUniqueness": "false",
@@ -65,4 +69,4 @@
65
69
  "hasRTL": true
66
70
  }
67
71
  }
68
- }
72
+ }
@@ -0,0 +1,67 @@
1
+ var { componentAppearanceVariables } = require('./json/componentAppearanceVariableJson');
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
+ mode.forEach(mode => {
9
+ let modeFilesString = `../assets/${baseFolder}/${mode}/mode/${mode}Mode.module.css`;
10
+ modeFiles.push(path.join(__dirname, modeFilesString));
11
+ });
12
+ let files = modeFiles;
13
+
14
+ function generate(mode) {
15
+ let exportVariables = [];
16
+ let counter = 0;
17
+ let newLine = '';
18
+
19
+ componentAppearanceVariables.forEach((element) => {
20
+ let commentName = element.comment;
21
+ counting = counter++;
22
+ if (counting != 0) {
23
+ newLine = `\n\t`;
24
+ }
25
+
26
+ exportVariables.push(commentName ? `${newLine}\n\t/* ${commentName} */` : '');
27
+
28
+ Object.entries(element.data).map(([key, value]) => {
29
+ if (mode == 'default') {
30
+ let componentDefaultColors = value.light[0];
31
+
32
+ colorsResult = [
33
+ `\n\t--${key}: ${componentDefaultColors};`
34
+ ];
35
+ exportVariables.push(colorsResult);
36
+ } else if (mode == 'dark') {
37
+ let componentDarkColors = value.dark[0];
38
+
39
+ colorsResult = [
40
+ `\n\t--${key}: ${componentDarkColors};`
41
+ ];
42
+ exportVariables.push(colorsResult);
43
+ }
44
+ });
45
+ });
46
+ return exportVariables.join('');
47
+ }
48
+
49
+ let arrayIndexCounter = 0;
50
+ mode.forEach(mode => {
51
+ let fileString = files[arrayIndexCounter];
52
+ // let splitPath = fileString.split(/\\/g);
53
+ let getMode = mode;
54
+ if (mode == 'default') {
55
+ blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
56
+ } else if (mode == 'dark') {
57
+ blueSelector = '';
58
+ }
59
+ ensureDirectoryExistence(fileString);
60
+ fs.writeFileSync(
61
+ fileString,
62
+ `[data-mode='${getMode}']${blueSelector} {${generate(
63
+ getMode
64
+ )}\n}`
65
+ );
66
+ arrayIndexCounter++;
67
+ });
@@ -0,0 +1,123 @@
1
+ var { componentThemeVariables } = require('./json/componentThemeVariableJson');
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 themes = ['blue', 'green', 'orange', 'red', 'yellow'];
8
+ let themeFiles = [];
9
+ let prefix=`\n\t--zdt_`;
10
+ mode.forEach(mode => {
11
+ themes.forEach(theme => {
12
+ let themeFilesString = `../assets/${baseFolder}/${mode}/themes/${theme}/${
13
+ theme + capitalizeFirstLetter(mode)
14
+ }ComponentTheme.module.css`;
15
+ themeFiles.push(path.join(__dirname, themeFilesString));
16
+ });
17
+ });
18
+ let files = themeFiles;
19
+
20
+ function capitalizeFirstLetter(string) {
21
+ return string.charAt(0).toUpperCase() + string.slice(1);
22
+ }
23
+
24
+ function generate(mode, theme) {
25
+ let exportVariables = [];
26
+ let counter = 0;
27
+ let newLine = '';
28
+
29
+ componentThemeVariables.forEach((element) => {
30
+ let commentName = element.comment;
31
+ counting = counter++;
32
+ if (counting != 0) {
33
+ newLine = `\n\t`;
34
+ }
35
+
36
+ exportVariables.push(commentName ? `${newLine}\n\t/* ${commentName} */` : '');
37
+
38
+ Object.entries(element.data).map(([key, value]) => {
39
+ if (mode == 'default') {
40
+ let componentDefaultColors = value.light;
41
+ let colorsResult = '';
42
+
43
+ if (theme == 'blue') {
44
+ colorsResult = [
45
+ `${prefix}${key}: ${componentDefaultColors[0]};`
46
+ ];
47
+ } else if (theme == 'green') {
48
+ colorsResult = [
49
+ `${prefix}${key}: ${componentDefaultColors[1]};`
50
+ ];
51
+ } else if (theme == 'orange') {
52
+ colorsResult = [
53
+ `${prefix}${key}: ${componentDefaultColors[2]};`
54
+ ];
55
+ } else if (theme == 'red') {
56
+ colorsResult = [
57
+ `${prefix}${key}: ${componentDefaultColors[3]};`
58
+ ];
59
+ } else if (theme == 'yellow') {
60
+ colorsResult = [
61
+ `${prefix}${key}: ${componentDefaultColors[4]};`
62
+ ];
63
+ }
64
+ exportVariables.push(colorsResult);
65
+ } else if (mode == 'dark') {
66
+ let componentDarkColors = value.dark;
67
+ let colorsResult = '';
68
+
69
+ if (theme == 'blue') {
70
+ colorsResult = [
71
+ `${prefix}${key}: ${componentDarkColors[0]};`
72
+ ];
73
+ } else if (theme == 'green') {
74
+ colorsResult = [
75
+ `${prefix}${key}: ${componentDarkColors[1]};`
76
+ ];
77
+ } else if (theme == 'orange') {
78
+ colorsResult = [
79
+ `${prefix}${key}: ${componentDarkColors[2]};`
80
+ ];
81
+ } else if (theme == 'red') {
82
+ colorsResult = [
83
+ `${prefix}${key}: ${componentDarkColors[3]};`
84
+ ];
85
+ } else if (theme == 'yellow') {
86
+ colorsResult = [
87
+ `${prefix}${key}: ${componentDarkColors[4]};`
88
+ ];
89
+ }
90
+ exportVariables.push(colorsResult);
91
+ }
92
+ });
93
+ });
94
+ return exportVariables.join('');
95
+ }
96
+
97
+ let arrayIndexCounter = 0;
98
+ mode.forEach(mode => {
99
+ themes.forEach(theme => {
100
+ let fileString = files[arrayIndexCounter];
101
+ // let splitPath = fileString.split(/\\/g);
102
+ let getMode = mode;
103
+ let getTheme = theme;
104
+ if (theme == 'blue') {
105
+ if (mode == 'default') {
106
+ blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
107
+ } else if (mode == 'dark') {
108
+ blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
109
+ }
110
+ } else {
111
+ blueSelector = '';
112
+ }
113
+ ensureDirectoryExistence(fileString);
114
+ fs.writeFileSync(
115
+ fileString,
116
+ `[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
117
+ getMode,
118
+ getTheme
119
+ )}\n}`
120
+ );
121
+ arrayIndexCounter++;
122
+ });
123
+ });
@@ -0,0 +1,101 @@
1
+ var { ctaThemeVariables } = require('./json/ctaThemeVariableJson');
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 themes = ['blue', 'green', 'orange', 'red', 'yellow'];
8
+ let themeFiles = [];
9
+ let prefix=`\n\t--zdt_cta_`;
10
+ mode.forEach(mode => {
11
+ themes.forEach(theme => {
12
+ let themeFilesString = `../assets/${baseFolder}/${mode}/themes/${theme}/${
13
+ theme + capitalizeFirstLetter(mode)
14
+ }CTATheme.module.css`;
15
+ themeFiles.push(path.join(__dirname, themeFilesString));
16
+ });
17
+ });
18
+ let files = themeFiles;
19
+
20
+ function capitalizeFirstLetter(string) {
21
+ return string.charAt(0).toUpperCase() + string.slice(1);
22
+ }
23
+
24
+ function generate(mode, theme) {
25
+ let exportVariables = [];
26
+
27
+ ctaThemeVariables.forEach((element) => {
28
+ Object.entries(element).map(([key, value]) => {
29
+ if (mode == 'default') {
30
+ let ctaDefaultColors = value.light;
31
+ let colorsResult = '';
32
+ if (theme == 'blue') {
33
+ colorsResult = [
34
+ `${prefix}${key}: ${ctaDefaultColors[0]}`
35
+ ];
36
+ } else if (theme == 'green') {
37
+ colorsResult = [
38
+ `${prefix}${key}: ${ctaDefaultColors[1]}`
39
+ ];
40
+ } else if (theme == 'orange') {
41
+ colorsResult = [
42
+ `${prefix}${key}: ${ctaDefaultColors[2]}`
43
+ ];
44
+ } else if (theme == 'red') {
45
+ colorsResult = [
46
+ `${prefix}${key}: ${ctaDefaultColors[3]}`
47
+ ];
48
+ } else if (theme == 'yellow') {
49
+ colorsResult = [
50
+ `${prefix}${key}: ${ctaDefaultColors[4]}`
51
+ ];
52
+ }
53
+ exportVariables.push(colorsResult);
54
+ } else if (mode == 'dark') {
55
+ let ctaDarkColors = value.dark;
56
+ let colorsResult = '';
57
+ if (theme == 'blue') {
58
+ colorsResult = [`${prefix}${key}: ${ctaDarkColors[0]}`];
59
+ } else if (theme == 'green') {
60
+ colorsResult = [`${prefix}${key}: ${ctaDarkColors[1]}`];
61
+ } else if (theme == 'orange') {
62
+ colorsResult = [`${prefix}${key}: ${ctaDarkColors[2]}`];
63
+ } else if (theme == 'red') {
64
+ colorsResult = [`${prefix}${key}: ${ctaDarkColors[3]}`];
65
+ } else if (theme == 'yellow') {
66
+ colorsResult = [`${prefix}${key}: ${ctaDarkColors[4]}`];
67
+ }
68
+ exportVariables.push(colorsResult);
69
+ }
70
+ });
71
+ });
72
+ return exportVariables.join(';');
73
+ }
74
+
75
+ let arrayIndexCounter = 0;
76
+ mode.forEach(mode => {
77
+ themes.forEach(theme => {
78
+ let fileString = files[arrayIndexCounter];
79
+ // let splitPath = fileString.split(/\\/g);
80
+ let getMode = mode;
81
+ let getTheme = theme;
82
+ if (theme == 'blue') {
83
+ if (mode == 'default') {
84
+ blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
85
+ } else if (mode == 'dark') {
86
+ blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
87
+ }
88
+ } else {
89
+ blueSelector = '';
90
+ }
91
+ ensureDirectoryExistence(fileString);
92
+ fs.writeFileSync(
93
+ fileString,
94
+ `[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
95
+ getMode,
96
+ getTheme
97
+ )}\n}`
98
+ );
99
+ arrayIndexCounter++;
100
+ });
101
+ });
@@ -0,0 +1,3 @@
1
+ require('./ctaThemeColors');
2
+ require('./componentThemeColors');
3
+ require('./componentAppearanceColors');