@zohodesk/components 1.0.0-temp-41 → 1.0.0-temp-42

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 (289) hide show
  1. package/README.md +1 -0
  2. package/es/Appearance/dark/mode/darkMode.module.css +355 -392
  3. package/es/Appearance/default/mode/defaultMode.module.css +355 -394
  4. package/es/Avatar/Avatar.js +2 -1
  5. package/es/Avatar/__tests__/Avatar.spec.js +0 -1
  6. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
  7. package/es/Button/__tests__/Button.spec.js +0 -1
  8. package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
  9. package/es/DateTime/DateTime.js +6 -3
  10. package/es/DateTime/DateWidget.js +5 -2
  11. package/es/DateTime/DateWidget.module.css +4 -0
  12. package/es/DateTime/YearView.js +6 -5
  13. package/es/DateTime/common.js +9 -2
  14. package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
  15. package/es/DateTime/dateFormatUtils/index.js +12 -7
  16. package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
  17. package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
  18. package/es/DateTime/validator.js +0 -1
  19. package/es/Label/__tests__/Label.spec.js +0 -2
  20. package/es/Layout/utils.js +2 -1
  21. package/es/ListItem/ListItem.js +0 -2
  22. package/es/ListItem/ListItemWithIcon.js +0 -2
  23. package/es/MultiSelect/AdvancedGroupMultiSelect.js +15 -10
  24. package/es/MultiSelect/AdvancedMultiSelect.js +6 -7
  25. package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  26. package/es/MultiSelect/MultiSelect.js +23 -11
  27. package/es/MultiSelect/MultiSelect.module.css +13 -8
  28. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
  29. package/es/MultiSelect/SelectedOptions.js +2 -3
  30. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -1
  31. package/es/Popup/Popup.js +14 -8
  32. package/es/Popup/viewPort.js +14 -9
  33. package/es/Provider/IdProvider.js +5 -4
  34. package/es/Provider/LibraryContext.js +6 -5
  35. package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
  36. package/es/Provider/ZindexProvider.js +5 -4
  37. package/es/Radio/Radio.js +2 -1
  38. package/es/Radio/Radio.module.css +2 -2
  39. package/es/Responsive/CustomResponsive.js +11 -8
  40. package/es/Responsive/ResizeComponent.js +3 -1
  41. package/es/Responsive/Responsive.js +12 -9
  42. package/es/Responsive/docs/Responsive__Custom.docs.js +49 -44
  43. package/es/Responsive/docs/Responsive__default.docs.js +77 -74
  44. package/es/Responsive/sizeObservers.js +5 -1
  45. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
  46. package/es/RippleEffect/RippleEffect.js +4 -7
  47. package/es/RippleEffect/RippleEffect.module.css +0 -3
  48. package/es/Select/GroupSelect.js +2 -1
  49. package/es/Select/Select.js +16 -1
  50. package/es/Select/Select.module.css +1 -1
  51. package/es/Select/SelectWithAvatar.js +4 -7
  52. package/es/Select/docs/Select__default.docs.js +2 -1
  53. package/es/Stencils/__tests__/Stencils.spec.js +0 -1
  54. package/es/Tab/Tab.js +27 -26
  55. package/es/Tab/TabContent.js +17 -14
  56. package/es/Tab/TabContentWrapper.js +17 -14
  57. package/es/Tab/TabWrapper.js +15 -14
  58. package/es/Tab/Tabs.js +2 -1
  59. package/es/Tab/docs/Tab__default.docs.js +0 -1
  60. package/es/Tag/Tag.js +4 -10
  61. package/es/Tag/Tag.module.css +11 -14
  62. package/es/Tag/docs/Tag__default.docs.js +0 -70
  63. package/es/TextBox/__tests__/TextBox.spec.js +0 -1
  64. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  65. package/es/TextBoxIcon/TextBoxIcon.module.css +2 -5
  66. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
  67. package/es/Textarea/__tests__/Textarea.spec.js +0 -1
  68. package/es/Tooltip/Tooltip.js +0 -1
  69. package/es/a11y/FocusScope/FocusScope.js +10 -4
  70. package/es/beta/FocusRing/FocusRing.js +4 -1
  71. package/es/utils/Common.js +31 -11
  72. package/es/utils/datetime/common.js +6 -3
  73. package/es/utils/dropDownUtils.js +6 -5
  74. package/es/utils/getInitial.js +3 -1
  75. package/lib/Accordion/Accordion.js +3 -3
  76. package/lib/Accordion/AccordionItem.js +3 -3
  77. package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
  78. package/lib/Animation/Animation.js +3 -3
  79. package/lib/Animation/docs/Animation__default.docs.js +3 -3
  80. package/lib/Animation/docs/Animation__fadeIn.docs.js +3 -3
  81. package/lib/Animation/docs/Animation__scaleIn.docs.js +3 -3
  82. package/lib/Animation/docs/Animation__skewIn.docs.js +3 -3
  83. package/lib/Animation/docs/Animation__slideDown.docs.js +3 -3
  84. package/lib/Animation/docs/Animation__slideLeft.docs.js +3 -3
  85. package/lib/Animation/docs/Animation__zoomIn.docs.js +3 -3
  86. package/lib/AppContainer/AppContainer.js +3 -3
  87. package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
  88. package/lib/Appearance/dark/mode/darkMode.module.css +355 -392
  89. package/lib/Appearance/default/mode/defaultMode.module.css +355 -394
  90. package/lib/Avatar/Avatar.js +3 -3
  91. package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
  92. package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
  93. package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
  94. package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
  95. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  96. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
  97. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
  98. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +3 -3
  99. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
  100. package/lib/Button/Button.js +3 -3
  101. package/lib/Button/docs/Button__custom.docs.js +3 -3
  102. package/lib/Button/docs/Button__default.docs.js +3 -3
  103. package/lib/Buttongroup/Buttongroup.js +3 -3
  104. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
  105. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
  106. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
  107. package/lib/Card/Card.js +4 -4
  108. package/lib/Card/__tests__/Card.spec.js +1 -1
  109. package/lib/Card/docs/Card__Custom.docs.js +3 -3
  110. package/lib/Card/docs/Card__Default.docs.js +3 -3
  111. package/lib/Card/docs/Card__Scroll.docs.js +3 -3
  112. package/lib/Card/index.js +7 -7
  113. package/lib/CheckBox/CheckBox.js +3 -3
  114. package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
  115. package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
  116. package/lib/DateTime/CalendarView.js +4 -4
  117. package/lib/DateTime/DateTime.js +3 -3
  118. package/lib/DateTime/DateTimePopupFooter.js +3 -3
  119. package/lib/DateTime/DateTimePopupHeader.js +3 -3
  120. package/lib/DateTime/DateWidget.js +3 -3
  121. package/lib/DateTime/DateWidget.module.css +4 -0
  122. package/lib/DateTime/DaysRow.js +3 -3
  123. package/lib/DateTime/Time.js +3 -3
  124. package/lib/DateTime/YearView.js +3 -3
  125. package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
  126. package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
  127. package/lib/DateTime/constants.js +1 -1
  128. package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
  129. package/lib/DateTime/dateFormatUtils/index.js +13 -13
  130. package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
  131. package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
  132. package/lib/DateTime/objectUtils.js +2 -2
  133. package/lib/DropBox/DropBox.js +3 -3
  134. package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
  135. package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
  136. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
  137. package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
  138. package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
  139. package/lib/DropDown/DropDown.js +4 -4
  140. package/lib/DropDown/DropDownHeading.js +3 -3
  141. package/lib/DropDown/DropDownItem.js +3 -3
  142. package/lib/DropDown/DropDownSearch.js +3 -3
  143. package/lib/DropDown/DropDownSeparator.js +3 -3
  144. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
  145. package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
  146. package/lib/Label/Label.js +3 -3
  147. package/lib/Label/docs/Label__clipped.docs.js +3 -3
  148. package/lib/Label/docs/Label__custom.docs.js +3 -3
  149. package/lib/Label/docs/Label__palette.docs.js +3 -3
  150. package/lib/Label/docs/Label__size.docs.js +3 -3
  151. package/lib/Label/docs/Label__type.docs.js +3 -3
  152. package/lib/Layout/Box.js +1 -1
  153. package/lib/Layout/Container.js +1 -1
  154. package/lib/Layout/docs/Layout__Hidden.docs.js +3 -3
  155. package/lib/Layout/docs/Layout__default.docs.js +3 -3
  156. package/lib/Layout/docs/Layout__four_Column.docs.js +3 -3
  157. package/lib/Layout/docs/Layout__three_Column.docs.js +3 -3
  158. package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
  159. package/lib/Layout/index.js +4 -4
  160. package/lib/Layout/utils.js +2 -2
  161. package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
  162. package/lib/ListItem/ListItem.js +3 -3
  163. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  164. package/lib/ListItem/ListItemWithCheckBox.js +3 -3
  165. package/lib/ListItem/ListItemWithIcon.js +3 -3
  166. package/lib/ListItem/ListItemWithRadio.js +3 -3
  167. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
  168. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
  169. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
  170. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
  171. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
  172. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
  173. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
  174. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
  175. package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
  176. package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
  177. package/lib/Modal/Modal.js +3 -3
  178. package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
  179. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -10
  180. package/lib/MultiSelect/AdvancedMultiSelect.js +6 -9
  181. package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  182. package/lib/MultiSelect/EmptyState.js +3 -3
  183. package/lib/MultiSelect/MultiSelect.js +14 -11
  184. package/lib/MultiSelect/MultiSelect.module.css +13 -8
  185. package/lib/MultiSelect/MultiSelectHeader.js +3 -3
  186. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -9
  187. package/lib/MultiSelect/SelectedOptions.js +5 -6
  188. package/lib/MultiSelect/Suggestions.js +5 -5
  189. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
  190. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
  191. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
  192. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
  193. package/lib/PopOver/PopOver.js +4 -4
  194. package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
  195. package/lib/Popup/Popup.js +3 -3
  196. package/lib/Popup/__tests__/Popup.spec.js +3 -3
  197. package/lib/Provider/IdProvider.js +3 -3
  198. package/lib/Provider/LibraryContext.js +3 -3
  199. package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
  200. package/lib/Provider/ZindexProvider.js +1 -1
  201. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
  202. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
  203. package/lib/Provider.js +3 -3
  204. package/lib/Radio/Radio.js +6 -4
  205. package/lib/Radio/Radio.module.css +2 -2
  206. package/lib/Radio/docs/Radio__custom.docs.js +3 -3
  207. package/lib/Radio/docs/Radio__default.docs.js +3 -3
  208. package/lib/Responsive/CustomResponsive.js +4 -4
  209. package/lib/Responsive/RefWrapper.js +1 -1
  210. package/lib/Responsive/ResizeComponent.js +3 -3
  211. package/lib/Responsive/ResizeObserver.js +1 -1
  212. package/lib/Responsive/Responsive.js +6 -5
  213. package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
  214. package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
  215. package/lib/Responsive/sizeObservers.js +6 -5
  216. package/lib/Responsive/utils/index.js +3 -2
  217. package/lib/Responsive/utils/shallowCompare.js +1 -1
  218. package/lib/Ribbon/Ribbon.js +3 -3
  219. package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
  220. package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
  221. package/lib/RippleEffect/RippleEffect.js +4 -7
  222. package/lib/RippleEffect/RippleEffect.module.css +0 -3
  223. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +3 -3
  224. package/lib/Select/GroupSelect.js +3 -3
  225. package/lib/Select/Select.js +19 -5
  226. package/lib/Select/Select.module.css +1 -1
  227. package/lib/Select/SelectWithAvatar.js +7 -10
  228. package/lib/Select/SelectWithIcon.js +3 -3
  229. package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
  230. package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
  231. package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
  232. package/lib/Select/docs/Select__default.docs.js +3 -3
  233. package/lib/Stencils/Stencils.js +3 -3
  234. package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
  235. package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
  236. package/lib/Switch/Switch.js +3 -3
  237. package/lib/Switch/docs/Switch__custom.docs.js +3 -3
  238. package/lib/Switch/docs/Switch__default.docs.js +3 -3
  239. package/lib/Tab/Tab.js +1 -1
  240. package/lib/Tab/TabWrapper.js +1 -1
  241. package/lib/Tab/Tabs.js +3 -3
  242. package/lib/Tab/docs/Tab__default.docs.js +3 -3
  243. package/lib/Tab/index.js +10 -10
  244. package/lib/Tag/Tag.js +7 -13
  245. package/lib/Tag/Tag.module.css +11 -14
  246. package/lib/Tag/docs/Tag__custom.docs.js +3 -3
  247. package/lib/Tag/docs/Tag__default.docs.js +3 -73
  248. package/lib/TextBox/TextBox.js +3 -3
  249. package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
  250. package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
  251. package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
  252. package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
  253. package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
  254. package/lib/TextBoxIcon/TextBoxIcon.module.css +2 -5
  255. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
  256. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
  257. package/lib/Textarea/Textarea.js +3 -3
  258. package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
  259. package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
  260. package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
  261. package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
  262. package/lib/Tooltip/Tooltip.js +3 -3
  263. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
  264. package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
  265. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  266. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +3 -3
  267. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  268. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +3 -3
  269. package/lib/a11y/FocusScope/FocusScope.js +2 -2
  270. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
  271. package/lib/beta/FocusRing/FocusRing.js +3 -3
  272. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
  273. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
  274. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
  275. package/lib/index.js +310 -310
  276. package/lib/semantic/Button/Button.js +3 -3
  277. package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
  278. package/lib/utils/Common.js +20 -16
  279. package/lib/utils/datetime/common.js +10 -10
  280. package/lib/utils/dropDownUtils.js +2 -2
  281. package/lib/utils/shallowEqual.js +1 -1
  282. package/package.json +2 -2
  283. package/preprocess/componentAppearanceColors.js +65 -0
  284. package/preprocess/componentThemeColors.js +1 -1
  285. package/preprocess/ctaThemeColors.js +1 -1
  286. package/preprocess/index.js +2 -1
  287. package/preprocess/json/componentAppearanceVariableJson.js +1515 -0
  288. /package/preprocess/json/{componentVariableJson.js → componentThemeVariableJson.js} +0 -0
  289. /package/preprocess/json/{ctaVariableJson.js → ctaThemeVariableJson.js} +0 -0
@@ -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
 
@@ -3,29 +3,33 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.encodeForHtml = encodeForHtml;
7
- exports.getListOfDetails = getListOfDetails;
8
- exports.capitalize = capitalize;
9
6
  exports.bind = bind;
10
- exports.getFullName = getFullName;
11
- exports.getStringifiedOutputForJson = getStringifiedOutputForJson;
12
- exports.mapValues = mapValues;
13
- exports.filterValue = filterValue;
14
- exports.merge = merge;
15
- exports.formatValue = formatValue;
16
7
  exports.bytesToSize = bytesToSize;
17
- exports.getMemSize = getMemSize;
8
+ exports.capitalize = capitalize;
18
9
  exports.checkIsImageFile = checkIsImageFile;
19
- exports.getPortalName = getPortalName;
20
- exports.getFullDateString = getFullDateString;
10
+ exports.debounce = exports.cs = void 0;
11
+ exports.doAfterScrollEnd = doAfterScrollEnd;
12
+ exports.encodeForHtml = encodeForHtml;
13
+ exports.filterValue = filterValue;
21
14
  exports.format12Hour = format12Hour;
15
+ exports.formatValue = formatValue;
22
16
  exports.getDateOnly = getDateOnly;
23
- exports.doAfterScrollEnd = doAfterScrollEnd;
24
- exports.remConvert = remConvert;
25
- exports.isDescendant = isDescendant;
26
17
  exports.getElementSpace = getElementSpace;
18
+ exports.getFullDateString = getFullDateString;
19
+ exports.getFullName = getFullName;
20
+ exports.getIsEmptyValue = void 0;
21
+ exports.getListOfDetails = getListOfDetails;
22
+ exports.getMemSize = getMemSize;
23
+ exports.getPortalName = getPortalName;
27
24
  exports.getSearchString = getSearchString;
28
- exports.getIsEmptyValue = exports.scrollTo = exports.throttle = exports.debounce = exports.stopAllEventPropagation = exports.getTotalDimension = exports.parseDecimal = exports.cs = void 0;
25
+ exports.getStringifiedOutputForJson = getStringifiedOutputForJson;
26
+ exports.getTotalDimension = void 0;
27
+ exports.isDescendant = isDescendant;
28
+ exports.mapValues = mapValues;
29
+ exports.merge = merge;
30
+ exports.parseDecimal = void 0;
31
+ exports.remConvert = remConvert;
32
+ exports.throttle = exports.stopAllEventPropagation = exports.scrollTo = void 0;
29
33
 
30
34
  var _viewPort = _interopRequireDefault(require("../Popup/viewPort"));
31
35
 
@@ -3,22 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.pad = pad;
7
6
  exports.formatDate = formatDate;
8
- exports.replaceI18NValuesWithRegex = replaceI18NValuesWithRegex;
9
- exports.unescapeUnicode = unescapeUnicode;
10
- exports.getValues = getValues;
11
- exports.getI18NValue = getI18NValue;
7
+ exports.getDiffObj = getDiffObj;
12
8
  exports.getI18NInfo = getI18NInfo;
9
+ exports.getI18NValue = getI18NValue;
10
+ exports.getMonthEnd = getMonthEnd;
11
+ exports.getValues = getValues;
13
12
  exports.isToday = isToday;
14
- exports.isYesterday = isYesterday;
15
13
  exports.isTomorrow = isTomorrow;
16
- exports.isWithinAWeek = isWithinAWeek;
17
14
  exports.isTwoWeeksOrMore = isTwoWeeksOrMore;
18
- exports.getDiffObj = getDiffObj;
19
- exports.getMonthEnd = getMonthEnd;
15
+ exports.isWithinAWeek = isWithinAWeek;
16
+ exports.isYesterday = isYesterday;
17
+ exports.pad = pad;
18
+ exports.replaceI18NValuesWithRegex = replaceI18NValuesWithRegex;
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'],
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.filterSelectedOptions = exports.makeGetOptionIdChange = exports.makeGetGroupSelectFilterSuggestions = exports.makeGetGroupSelectOptions = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetMultiSelectSelectedOptions = exports.makeFormatOptions = exports.extractOptionId = exports.optionIdGrouping = exports.makeGetMultiSelectFilterSuggestions = exports.getPrefixText = exports.getOptionType = exports.getIconSize = exports.getIconName = exports.getImageField = exports.getTextField = exports.getValueField = exports.getOptions = exports.dummyObj = exports.dummyArray = void 0;
6
+ exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
7
7
 
8
8
  var _reselect = require("reselect");
9
9
 
@@ -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-temp-41",
3
+ "version": "1.0.0-temp-42",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -69,4 +69,4 @@
69
69
  "hasRTL": true
70
70
  }
71
71
  }
72
- }
72
+ }
@@ -0,0 +1,65 @@
1
+ var { componentAppearanceVariables } = require('./json/componentAppearanceVariableJson');
2
+ let fs = require('fs');
3
+ let path = require('path');
4
+ let baseFolder = 'Appearance';
5
+ let mode = ['default', 'dark'];
6
+ let modeFiles = [];
7
+ mode.forEach(mode => {
8
+ let modeFilesString = `../src/${baseFolder}/${mode}/mode/${mode}Mode.module.css`;
9
+ modeFiles.push(path.join(__dirname, modeFilesString));
10
+ });
11
+ let files = modeFiles;
12
+
13
+ function generate(mode) {
14
+ let exportVariables = [];
15
+ let counter = 0;
16
+ let newLine = '';
17
+ componentAppearanceVariables.map(componentVariable => {
18
+ let commentName = componentVariable[3];
19
+ counting = counter++;
20
+ if (counting != 0) {
21
+ newLine = `\n\t`;
22
+ }
23
+ if (mode == 'default') {
24
+ let componentDefaultColors = componentVariable[1][1];
25
+
26
+ colorsResult = [
27
+ `\n\t--${componentVariable[0]}: ${componentDefaultColors};`
28
+ ];
29
+ exportVariables.push(
30
+ commentName ? `${newLine}\n\t/* ${commentName} */` : '',
31
+ colorsResult
32
+ );
33
+ } else if (mode == 'dark') {
34
+ let componentDarkColors = componentVariable[2][1];
35
+
36
+ colorsResult = [
37
+ `\n\t--${componentVariable[0]}: ${componentDarkColors};`
38
+ ];
39
+ exportVariables.push(
40
+ commentName ? `${newLine}\n\t/* ${commentName} */` : '',
41
+ colorsResult
42
+ );
43
+ }
44
+ });
45
+ return exportVariables.join('');
46
+ }
47
+
48
+ let arrayIndexCounter = 0;
49
+ mode.forEach(mode => {
50
+ let fileString = files[arrayIndexCounter];
51
+ // let splitPath = fileString.split(/\\/g);
52
+ let getMode = mode;
53
+ if (mode == 'default') {
54
+ blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
55
+ } else if (mode == 'dark') {
56
+ blueSelector = '';
57
+ }
58
+ fs.writeFileSync(
59
+ fileString,
60
+ `[data-mode='${getMode}']${blueSelector} {${generate(
61
+ getMode
62
+ )}\n}`
63
+ );
64
+ arrayIndexCounter++;
65
+ });
@@ -1,4 +1,4 @@
1
- var { componentThemeVariables } = require('./json/componentVariableJson');
1
+ var { componentThemeVariables } = require('./json/componentThemeVariableJson');
2
2
  let fs = require('fs');
3
3
  let path = require('path');
4
4
  let baseFolder = 'Appearance';
@@ -1,4 +1,4 @@
1
- var { ctaThemeVariables } = require('./json/ctaVariableJson');
1
+ var { ctaThemeVariables } = require('./json/ctaThemeVariableJson');
2
2
  let fs = require('fs');
3
3
  let path = require('path');
4
4
  let baseFolder = 'Appearance';
@@ -1,2 +1,3 @@
1
1
  require('./ctaThemeColors');
2
- require('./componentThemeColors');
2
+ require('./componentThemeColors');
3
+ require('./componentAppearanceColors');