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

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 (348) hide show
  1. package/README.md +3 -0
  2. package/es/Animation/docs/Animation__default.docs.js +2 -2
  3. package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
  4. package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
  5. package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
  6. package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
  7. package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
  8. package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
  9. package/es/Appearance/dark/mode/darkMode.module.css +69 -69
  10. package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
  11. package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
  12. package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
  13. package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
  14. package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
  15. package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
  16. package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
  17. package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
  18. package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
  19. package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
  20. package/es/Appearance/default/mode/defaultMode.module.css +158 -158
  21. package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
  22. package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
  23. package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  24. package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
  25. package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  26. package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
  27. package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  28. package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
  29. package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
  30. package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
  31. package/es/Avatar/Avatar.js +1 -2
  32. package/es/Avatar/__tests__/Avatar.spec.js +1 -0
  33. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -0
  34. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
  35. package/es/Button/__tests__/Button.spec.js +1 -0
  36. package/es/Buttongroup/__test__/Buttongroup.spec.js +1 -0
  37. package/es/Card/Card.module.css +3 -3
  38. package/es/Card/docs/Card__Default.docs.js +4 -4
  39. package/es/Card/docs/Card__Scroll.docs.js +4 -4
  40. package/es/DateTime/DateTime.js +3 -6
  41. package/es/DateTime/DateWidget.js +2 -5
  42. package/es/DateTime/DateWidget.module.css +0 -4
  43. package/es/DateTime/YearView.js +5 -6
  44. package/es/DateTime/common.js +2 -9
  45. package/es/DateTime/dateFormatUtils/dateFormat.js +57 -76
  46. package/es/DateTime/dateFormatUtils/index.js +7 -12
  47. package/es/DateTime/dateFormatUtils/timeChange.js +3 -4
  48. package/es/DateTime/dateFormatUtils/yearChange.js +3 -4
  49. package/es/DateTime/validator.js +1 -0
  50. package/es/Label/__tests__/Label.spec.js +2 -0
  51. package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
  52. package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
  53. package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
  54. package/es/Layout/utils.js +1 -2
  55. package/es/ListItem/ListItem.js +2 -0
  56. package/es/ListItem/ListItemWithIcon.js +2 -0
  57. package/es/MultiSelect/AdvancedGroupMultiSelect.js +10 -15
  58. package/es/MultiSelect/AdvancedMultiSelect.js +7 -6
  59. package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  60. package/es/MultiSelect/MultiSelect.js +10 -15
  61. package/es/MultiSelect/MultiSelect.module.css +8 -13
  62. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  63. package/es/MultiSelect/SelectedOptions.js +3 -2
  64. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +1 -2
  65. package/es/PopOver/PopOver.module.css +1 -1
  66. package/es/Popup/Popup.js +8 -14
  67. package/es/Popup/viewPort.js +9 -14
  68. package/es/Provider/IdProvider.js +4 -5
  69. package/es/Provider/LibraryContext.js +5 -6
  70. package/es/Provider/NumberGenerator/NumberGenerator.js +15 -17
  71. package/es/Provider/ZindexProvider.js +4 -5
  72. package/es/Radio/Radio.js +1 -2
  73. package/es/Radio/Radio.module.css +2 -2
  74. package/es/Responsive/CustomResponsive.js +8 -11
  75. package/es/Responsive/ResizeComponent.js +1 -3
  76. package/es/Responsive/Responsive.js +9 -12
  77. package/es/Responsive/docs/Responsive__Custom.docs.js +44 -49
  78. package/es/Responsive/docs/Responsive__default.docs.js +74 -77
  79. package/es/Responsive/sizeObservers.js +1 -5
  80. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -0
  81. package/es/RippleEffect/RippleEffect.js +7 -4
  82. package/es/RippleEffect/RippleEffect.module.css +3 -0
  83. package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
  84. package/es/Select/GroupSelect.js +1 -2
  85. package/es/Select/Select.js +1 -2
  86. package/es/Select/Select.module.css +1 -1
  87. package/es/Select/SelectWithAvatar.js +7 -4
  88. package/es/Select/docs/Select__default.docs.js +1 -2
  89. package/es/Stencils/__tests__/Stencils.spec.js +1 -0
  90. package/es/Tab/Tab.js +26 -27
  91. package/es/Tab/TabContent.js +14 -17
  92. package/es/Tab/TabContentWrapper.js +14 -17
  93. package/es/Tab/TabWrapper.js +14 -15
  94. package/es/Tab/Tabs.js +1 -2
  95. package/es/Tab/docs/Tab__default.docs.js +1 -0
  96. package/es/Tag/Tag.js +10 -4
  97. package/es/Tag/Tag.module.css +14 -11
  98. package/es/Tag/docs/Tag__default.docs.js +70 -0
  99. package/es/TextBox/__tests__/TextBox.spec.js +1 -0
  100. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  101. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
  102. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -0
  103. package/es/Textarea/__tests__/Textarea.spec.js +1 -0
  104. package/es/Tooltip/Tooltip.js +1 -0
  105. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  106. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  107. package/es/a11y/FocusScope/FocusScope.js +4 -10
  108. package/es/beta/FocusRing/FocusRing.js +1 -4
  109. package/es/common/docStyle.module.css +9 -9
  110. package/es/utils/Common.js +11 -31
  111. package/es/utils/datetime/common.js +3 -6
  112. package/es/utils/dropDownUtils.js +5 -6
  113. package/es/utils/getInitial.js +1 -3
  114. package/lib/Accordion/Accordion.js +3 -3
  115. package/lib/Accordion/AccordionItem.js +3 -3
  116. package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
  117. package/lib/Animation/Animation.js +3 -3
  118. package/lib/Animation/docs/Animation__default.docs.js +5 -5
  119. package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
  120. package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
  121. package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
  122. package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
  123. package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
  124. package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
  125. package/lib/AppContainer/AppContainer.js +3 -3
  126. package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
  127. package/lib/Appearance/dark/mode/darkMode.module.css +69 -69
  128. package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
  129. package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
  130. package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
  131. package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
  132. package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
  133. package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
  134. package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
  135. package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
  136. package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
  137. package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
  138. package/lib/Appearance/default/mode/defaultMode.module.css +158 -158
  139. package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
  140. package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
  141. package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  142. package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
  143. package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  144. package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
  145. package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  146. package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
  147. package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
  148. package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
  149. package/lib/Avatar/Avatar.js +3 -3
  150. package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
  151. package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
  152. package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
  153. package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
  154. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  155. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
  156. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
  157. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +4 -4
  158. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
  159. package/lib/Button/Button.js +3 -3
  160. package/lib/Button/docs/Button__custom.docs.js +3 -3
  161. package/lib/Button/docs/Button__default.docs.js +3 -3
  162. package/lib/Buttongroup/Buttongroup.js +3 -3
  163. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
  164. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
  165. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
  166. package/lib/Card/Card.js +4 -4
  167. package/lib/Card/Card.module.css +3 -3
  168. package/lib/Card/__tests__/Card.spec.js +1 -1
  169. package/lib/Card/docs/Card__Custom.docs.js +3 -3
  170. package/lib/Card/docs/Card__Default.docs.js +7 -7
  171. package/lib/Card/docs/Card__Scroll.docs.js +7 -7
  172. package/lib/Card/index.js +7 -7
  173. package/lib/CheckBox/CheckBox.js +3 -3
  174. package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
  175. package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
  176. package/lib/DateTime/CalendarView.js +4 -4
  177. package/lib/DateTime/DateTime.js +3 -3
  178. package/lib/DateTime/DateTimePopupFooter.js +3 -3
  179. package/lib/DateTime/DateTimePopupHeader.js +3 -3
  180. package/lib/DateTime/DateWidget.js +3 -3
  181. package/lib/DateTime/DateWidget.module.css +0 -4
  182. package/lib/DateTime/DaysRow.js +3 -3
  183. package/lib/DateTime/Time.js +3 -3
  184. package/lib/DateTime/YearView.js +3 -3
  185. package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
  186. package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
  187. package/lib/DateTime/constants.js +1 -1
  188. package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
  189. package/lib/DateTime/dateFormatUtils/index.js +13 -13
  190. package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
  191. package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
  192. package/lib/DateTime/objectUtils.js +2 -2
  193. package/lib/DropBox/DropBox.js +3 -3
  194. package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
  195. package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
  196. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
  197. package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
  198. package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
  199. package/lib/DropDown/DropDown.js +4 -4
  200. package/lib/DropDown/DropDownHeading.js +3 -3
  201. package/lib/DropDown/DropDownItem.js +3 -3
  202. package/lib/DropDown/DropDownSearch.js +3 -3
  203. package/lib/DropDown/DropDownSeparator.js +3 -3
  204. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
  205. package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
  206. package/lib/Label/Label.js +3 -3
  207. package/lib/Label/docs/Label__clipped.docs.js +3 -3
  208. package/lib/Label/docs/Label__custom.docs.js +3 -3
  209. package/lib/Label/docs/Label__palette.docs.js +3 -3
  210. package/lib/Label/docs/Label__size.docs.js +3 -3
  211. package/lib/Label/docs/Label__type.docs.js +3 -3
  212. package/lib/Layout/Box.js +1 -1
  213. package/lib/Layout/Container.js +1 -1
  214. package/lib/Layout/docs/Layout__Hidden.docs.js +4 -4
  215. package/lib/Layout/docs/Layout__default.docs.js +3 -3
  216. package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
  217. package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
  218. package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
  219. package/lib/Layout/index.js +4 -4
  220. package/lib/Layout/utils.js +2 -2
  221. package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
  222. package/lib/ListItem/ListItem.js +3 -3
  223. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  224. package/lib/ListItem/ListItemWithCheckBox.js +3 -3
  225. package/lib/ListItem/ListItemWithIcon.js +3 -3
  226. package/lib/ListItem/ListItemWithRadio.js +3 -3
  227. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
  228. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
  229. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
  230. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
  231. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
  232. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
  233. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
  234. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
  235. package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
  236. package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
  237. package/lib/Modal/Modal.js +3 -3
  238. package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
  239. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +10 -7
  240. package/lib/MultiSelect/AdvancedMultiSelect.js +9 -6
  241. package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  242. package/lib/MultiSelect/EmptyState.js +3 -3
  243. package/lib/MultiSelect/MultiSelect.js +10 -7
  244. package/lib/MultiSelect/MultiSelect.module.css +8 -13
  245. package/lib/MultiSelect/MultiSelectHeader.js +3 -3
  246. package/lib/MultiSelect/MultiSelectWithAvatar.js +9 -6
  247. package/lib/MultiSelect/SelectedOptions.js +6 -5
  248. package/lib/MultiSelect/Suggestions.js +5 -5
  249. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
  250. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
  251. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
  252. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
  253. package/lib/PopOver/PopOver.js +4 -4
  254. package/lib/PopOver/PopOver.module.css +1 -1
  255. package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
  256. package/lib/Popup/Popup.js +3 -3
  257. package/lib/Popup/__tests__/Popup.spec.js +3 -3
  258. package/lib/Provider/IdProvider.js +3 -3
  259. package/lib/Provider/LibraryContext.js +3 -3
  260. package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
  261. package/lib/Provider/ZindexProvider.js +1 -1
  262. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
  263. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
  264. package/lib/Provider.js +3 -3
  265. package/lib/Radio/Radio.js +4 -6
  266. package/lib/Radio/Radio.module.css +2 -2
  267. package/lib/Radio/docs/Radio__custom.docs.js +3 -3
  268. package/lib/Radio/docs/Radio__default.docs.js +3 -3
  269. package/lib/Responsive/CustomResponsive.js +4 -4
  270. package/lib/Responsive/RefWrapper.js +1 -1
  271. package/lib/Responsive/ResizeComponent.js +3 -3
  272. package/lib/Responsive/ResizeObserver.js +1 -1
  273. package/lib/Responsive/Responsive.js +5 -6
  274. package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
  275. package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
  276. package/lib/Responsive/sizeObservers.js +5 -6
  277. package/lib/Responsive/utils/index.js +2 -3
  278. package/lib/Responsive/utils/shallowCompare.js +1 -1
  279. package/lib/Ribbon/Ribbon.js +3 -3
  280. package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
  281. package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
  282. package/lib/RippleEffect/RippleEffect.js +7 -4
  283. package/lib/RippleEffect/RippleEffect.module.css +3 -0
  284. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
  285. package/lib/Select/GroupSelect.js +3 -3
  286. package/lib/Select/Select.js +3 -3
  287. package/lib/Select/Select.module.css +1 -1
  288. package/lib/Select/SelectWithAvatar.js +10 -7
  289. package/lib/Select/SelectWithIcon.js +3 -3
  290. package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
  291. package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
  292. package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
  293. package/lib/Select/docs/Select__default.docs.js +3 -3
  294. package/lib/Stencils/Stencils.js +3 -3
  295. package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
  296. package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
  297. package/lib/Switch/Switch.js +3 -3
  298. package/lib/Switch/docs/Switch__custom.docs.js +3 -3
  299. package/lib/Switch/docs/Switch__default.docs.js +3 -3
  300. package/lib/Tab/Tab.js +1 -1
  301. package/lib/Tab/TabWrapper.js +1 -1
  302. package/lib/Tab/Tabs.js +3 -3
  303. package/lib/Tab/docs/Tab__default.docs.js +3 -3
  304. package/lib/Tab/index.js +10 -10
  305. package/lib/Tag/Tag.js +13 -7
  306. package/lib/Tag/Tag.module.css +14 -11
  307. package/lib/Tag/docs/Tag__custom.docs.js +3 -3
  308. package/lib/Tag/docs/Tag__default.docs.js +73 -3
  309. package/lib/TextBox/TextBox.js +3 -3
  310. package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
  311. package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
  312. package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
  313. package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
  314. package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
  315. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
  316. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
  317. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
  318. package/lib/Textarea/Textarea.js +3 -3
  319. package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
  320. package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
  321. package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
  322. package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
  323. package/lib/Tooltip/Tooltip.js +3 -3
  324. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
  325. package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
  326. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  327. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +5 -5
  328. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  329. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
  330. package/lib/a11y/FocusScope/FocusScope.js +2 -2
  331. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
  332. package/lib/beta/FocusRing/FocusRing.js +3 -3
  333. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
  334. package/lib/common/docStyle.module.css +9 -9
  335. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
  336. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
  337. package/lib/index.js +308 -308
  338. package/lib/semantic/Button/Button.js +3 -3
  339. package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
  340. package/lib/utils/Common.js +16 -20
  341. package/lib/utils/datetime/common.js +10 -10
  342. package/lib/utils/dropDownUtils.js +2 -2
  343. package/lib/utils/shallowEqual.js +1 -1
  344. package/package.json +5 -5
  345. package/preprocess/componentAppearanceColors.js +1 -1
  346. package/preprocess/json/componentAppearanceVariableJson.js +230 -230
  347. package/preprocess/json/componentThemeVariableJson.js +33 -33
  348. package/preprocess/json/ctaThemeVariableJson.js +38 -38
@@ -4,21 +4,20 @@ import React, { useState, useCallback } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Container } from '../Layout';
6
6
 
7
- function TabWrapper(_ref) {
8
- let {
9
- defaultTab,
10
- hookToDisableInternalState,
11
- onSelect,
12
- type,
13
- isAnimate,
14
- needTabBorder,
15
- needBorder,
16
- needPadding,
17
- needAppearance,
18
- align,
19
- dataId,
20
- children
21
- } = _ref;
7
+ function TabWrapper({
8
+ defaultTab,
9
+ hookToDisableInternalState,
10
+ onSelect,
11
+ type,
12
+ isAnimate,
13
+ needTabBorder,
14
+ needBorder,
15
+ needPadding,
16
+ needAppearance,
17
+ align,
18
+ dataId,
19
+ children
20
+ }) {
22
21
  let [selectedTabInternal, setSelected] = useState(!hookToDisableInternalState ? defaultTab || 0 : null);
23
22
  const setSelectedTab = useCallback(id => {
24
23
  if (!hookToDisableInternalState) {
package/es/Tab/Tabs.js CHANGED
@@ -95,8 +95,7 @@ class Tabs extends React.Component {
95
95
  }
96
96
  }
97
97
 
98
- setMaxDim() {
99
- let totalDimension = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
98
+ setMaxDim(totalDimension = 0) {
100
99
  let {
101
100
  selectedTab
102
101
  } = this.props; // let actual = Object.keys(tabDimensions).reduce(
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.string.replace";
1
2
  import React from 'react';
2
3
  import { TabWrapper, Tabs, Tab, TabContentWrapper, TabContent } from '../';
3
4
  import { Container, Box } from '../../Layout';
package/es/Tag/Tag.js CHANGED
@@ -78,7 +78,9 @@ export default class Tag extends PureComponent {
78
78
  tooltip,
79
79
  avatarPalette,
80
80
  customClass,
81
- a11y
81
+ a11y,
82
+ needEffect,
83
+ isReadOnly
82
84
  } = this.props;
83
85
  let {
84
86
  customTag = '',
@@ -93,7 +95,7 @@ export default class Tag extends PureComponent {
93
95
  } = a11y;
94
96
  let isDarkPalette = palette === 'dark';
95
97
  return /*#__PURE__*/React.createElement("div", {
96
- className: `${style.container} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
98
+ className: `${style.container} ${needEffect && !isReadOnly ? style.effect : style.readonly} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
97
99
  "data-id": active ? `${dataId}_TagSelected` : `${dataId}_Tag`,
98
100
  onClick: this.handleSelect,
99
101
  ref: this.getRef,
@@ -148,7 +150,9 @@ Tag.defaultProps = {
148
150
  size: 'medium',
149
151
  dataId: 'tag',
150
152
  customClass: {},
151
- a11y: {}
153
+ a11y: {},
154
+ needEffect: true,
155
+ isReadOnly: false
152
156
  };
153
157
  Tag.propTypes = {
154
158
  active: PropTypes.bool,
@@ -179,7 +183,9 @@ Tag.propTypes = {
179
183
  }),
180
184
  a11y: PropTypes.shape({
181
185
  clearLabel: PropTypes.string
182
- })
186
+ }),
187
+ needEffect: PropTypes.bool,
188
+ isReadOnly: PropTypes.bool
183
189
  };
184
190
 
185
191
  if (false) {
@@ -50,9 +50,12 @@
50
50
  }
51
51
  .disabled {
52
52
  pointer-events: none;
53
- --tag_cursor: not-allowed;
54
53
  --tag_text_color: var(--zdt_tag_disabled_text);
55
54
  }
55
+ .readonly,
56
+ .disabled {
57
+ --tag_cursor: not-allowed;
58
+ }
56
59
  .pointer {
57
60
  --tag_cursor: pointer;
58
61
  }
@@ -158,11 +161,11 @@
158
161
  .danger {
159
162
  --tag_bg_color: var(--zdt_tag_default_danger_bg);
160
163
  }
161
- .default:hover {
164
+ .effect.default:hover {
162
165
  --tag_bg_color: var(--zdt_tag_default_hover_bg);
163
166
  }
164
167
  .activedefault,
165
- .activedefault:hover {
168
+ .effect.activedefault:hover {
166
169
  --tag_bg_color: var(--zdt_tag_active_default_bg);
167
170
  }
168
171
  .activeprimaryClose,
@@ -170,11 +173,11 @@
170
173
  --tag_closeicon_bg_color: var(--zdt_tag_primary_bg);
171
174
  }
172
175
 
173
- .danger:hover {
176
+ .effect.danger:hover {
174
177
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
175
178
  }
176
179
  .activedanger,
177
- .activedanger:hover {
180
+ .effect.activedanger:hover {
178
181
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
179
182
  }
180
183
  .activedangerClose,
@@ -187,7 +190,7 @@
187
190
  --tag_text_color: var(--zdt_tag_secondary_text);
188
191
  }
189
192
  .activesecondary,
190
- .secondary:hover {
193
+ .effect.secondary:hover {
191
194
  --tag_bg_color: var(--zdt_tag_secondary_hover_bg);
192
195
  }
193
196
 
@@ -196,12 +199,12 @@
196
199
  --tag_border_width: 1px;
197
200
  --tag_border_color: var(--zdt_tag_pure_border);
198
201
  }
199
- .pureDotted:hover {
202
+ .effect.pureDotted:hover {
200
203
  --tag_bg_color: var(--zdt_tag_pure_hover_bg);
201
204
  --tag_border_color: var(--zdt_tag_pure_hover_border);
202
205
  }
203
206
  .activepureDotted,
204
- .activepureDotted:hover {
207
+ .effect.activepureDotted:hover {
205
208
  --tag_bg_color: var(--zdt_tag_pure_bg);
206
209
  }
207
210
 
@@ -210,10 +213,10 @@
210
213
  --tag_border_width: 1px;
211
214
  --tag_border_color: var(--zdt_tag_primary_border);
212
215
  }
213
- .primaryDotted:hover,
216
+ .effect.primaryDotted:hover,
214
217
  .activeprimaryDotted,
215
218
  .primary,
216
- .primary:hover {
219
+ .effect.primary:hover {
217
220
  --tag_bg_color: var(--zdt_tag_active_default_bg);
218
221
  }
219
222
 
@@ -228,7 +231,7 @@
228
231
  --tag_bg_color: var(--zdt_tag_dark_bg);
229
232
  --tag_text_color: var(--zdt_tag_dark_text);
230
233
  }
231
- .dark:hover {
234
+ .effect.dark:hover {
232
235
  --tag_bg_color: var(--zdt_tag_dark_hover_bg);
233
236
  --tag_text_color: var(--zdt_tag_dark_hover_text);
234
237
  }
@@ -135,6 +135,76 @@ export default class Tag__default extends Component {
135
135
  }, /*#__PURE__*/React.createElement(Tag, {
136
136
  text: "Bharathi",
137
137
  palette: "primaryDotted"
138
+ })), /*#__PURE__*/React.createElement("span", {
139
+ style: spanStyle
140
+ }, /*#__PURE__*/React.createElement(Tag, {
141
+ text: "Bharathi",
142
+ palette: "dark"
143
+ })), /*#__PURE__*/React.createElement("span", {
144
+ style: spanStyle
145
+ }, /*#__PURE__*/React.createElement(Tag, {
146
+ text: "Bharathi",
147
+ palette: "pureDarkDotted"
148
+ })), /*#__PURE__*/React.createElement("span", {
149
+ style: spanStyle
150
+ }, /*#__PURE__*/React.createElement(Tag, {
151
+ text: "Bharathi",
152
+ palette: "darkPrimaryDotted"
153
+ })))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
154
+ style: titleStyle
155
+ }, "Palette with Read-only"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
156
+ style: spanStyle
157
+ }, /*#__PURE__*/React.createElement(Tag, {
158
+ text: "Bharathi",
159
+ imageURL: "https://iz.zohostatic.com/sites/default/files/styles/product-home-page/public/Desk-logo.png?itok=NW1geavh",
160
+ hasAvatar: true,
161
+ palette: "default",
162
+ isReadOnly: true
163
+ })), /*#__PURE__*/React.createElement("span", {
164
+ style: spanStyle
165
+ }, /*#__PURE__*/React.createElement(Tag, {
166
+ text: "Bharathi",
167
+ rounded: false,
168
+ initial: "TT",
169
+ hasAvatar: true,
170
+ palette: "danger",
171
+ isReadOnly: true
172
+ })), /*#__PURE__*/React.createElement("span", {
173
+ style: spanStyle
174
+ }, /*#__PURE__*/React.createElement(Tag, {
175
+ text: "Bharathi",
176
+ palette: "secondary",
177
+ isReadOnly: true
178
+ })), /*#__PURE__*/React.createElement("span", {
179
+ style: spanStyle
180
+ }, /*#__PURE__*/React.createElement(Tag, {
181
+ text: "Bharathi",
182
+ palette: "pureDotted",
183
+ isReadOnly: true
184
+ })), /*#__PURE__*/React.createElement("span", {
185
+ style: spanStyle
186
+ }, /*#__PURE__*/React.createElement(Tag, {
187
+ text: "Bharathi",
188
+ palette: "primaryDotted",
189
+ isReadOnly: true
190
+ })), /*#__PURE__*/React.createElement("span", {
191
+ style: spanStyle
192
+ }, /*#__PURE__*/React.createElement(Tag, {
193
+ text: "Bharathi",
194
+ palette: "dark",
195
+ isReadOnly: true
196
+ })), /*#__PURE__*/React.createElement("span", {
197
+ style: spanStyle
198
+ }, /*#__PURE__*/React.createElement(Tag, {
199
+ text: "Bharathi",
200
+ palette: "pureDarkDotted",
201
+ isReadOnly: true
202
+ })), /*#__PURE__*/React.createElement("span", {
203
+ style: spanStyle
204
+ }, /*#__PURE__*/React.createElement(Tag, {
205
+ text: "Bharathi",
206
+ palette: "darkPrimaryDotted",
207
+ isReadOnly: true
138
208
  })))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
139
209
  style: titleStyle
140
210
  }, "Rounded"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import TextBox from '../TextBox';
3
4
  import renderer from 'react-test-renderer';
@@ -100,7 +100,7 @@ export default class TextBoxIcon extends React.Component {
100
100
  return /*#__PURE__*/React.createElement(Container, {
101
101
  alignBox: "row",
102
102
  isCover: false,
103
- className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? needEffect ? style.effect : '' : style.effect} ${isActive || isFocus ? style.effectFocused : ''} ${customTBoxWrap} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
103
+ className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? needEffect ? style.effect : style.readonly : style.effect} ${isActive || isFocus ? style.effectFocused : ''} ${customTBoxWrap} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
104
104
  "data-title": isDisabled ? title : ''
105
105
  }, /*#__PURE__*/React.createElement(Box, {
106
106
  flexible: true
@@ -12,8 +12,11 @@
12
12
  composes: varClass;
13
13
  position: relative;
14
14
  }
15
- .disabled {
16
- composes: disabled from '../common/common.module.css';
15
+ .disabled,.readonly {
16
+ --textboxicon_icon_cursor: not-allowed;
17
+ }
18
+ .disabled, .readonly {
19
+ cursor: not-allowed;
17
20
  }
18
21
  .icon {
19
22
  composes: offSelection from '../common/common.module.css';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import TextBoxIcon from '../TextBoxIcon';
3
4
  import renderer from 'react-test-renderer'; // children: PropTypes.node,
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import Textarea from '../Textarea';
3
4
  import renderer from 'react-test-renderer';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.string.replace";
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import style from './Tooltip.module.css';
@@ -56,9 +56,9 @@ export default class VelocityAnimation__demo extends React.Component {
56
56
  let animate = {
57
57
  width: '200px',
58
58
  height: '100px',
59
- background: 'var(--dot_bg_black)',
59
+ background: 'var(--dot_black)',
60
60
  textAlign: 'center',
61
- color: 'var(--dot_text_white)',
61
+ color: 'var(--dot_white)',
62
62
  lineHeight: '100px'
63
63
  };
64
64
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -76,9 +76,9 @@ export default class VelocityAnimationGroup__demo extends React.Component {
76
76
  let animate = {
77
77
  width: '200px',
78
78
  height: '100px',
79
- background: 'var(--dot_bg_black)',
79
+ background: 'var(--dot_black)',
80
80
  textAlign: 'center',
81
- color: 'var(--dot_text_white)',
81
+ color: 'var(--dot_white)',
82
82
  lineHeight: '100px'
83
83
  },
84
84
  field = {
@@ -225,9 +225,7 @@ function useFocusContainment(scopeRef, contain) {
225
225
  }, [raf]);
226
226
  }
227
227
 
228
- function isElementInAnyScope(element) {
229
- let scopes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
230
-
228
+ function isElementInAnyScope(element, scopes = []) {
231
229
  for (let scope of scopes.values()) {
232
230
  if (isElementInScope(element, scope.current)) {
233
231
  return true;
@@ -237,14 +235,11 @@ function isElementInAnyScope(element) {
237
235
  return false;
238
236
  }
239
237
 
240
- function isElementInScope(element) {
241
- let scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
238
+ function isElementInScope(element, scope = []) {
242
239
  return scope.some(node => node.contains(element));
243
240
  }
244
241
 
245
- function focusElement() {
246
- let element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
247
-
242
+ function focusElement(element = null) {
248
243
  if (element != null) {
249
244
  element.focus();
250
245
  }
@@ -264,8 +259,7 @@ function findElement(elements) {
264
259
  return ele.length ? ele[0] : null;
265
260
  }
266
261
 
267
- function focusFirstInScope() {
268
- let scope = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
262
+ function focusFirstInScope(scope = []) {
269
263
  let elements = getFocusableElementsInScope(scope, {
270
264
  tabbable: true
271
265
  });
@@ -16,10 +16,7 @@ const FOCUS_VISIBLE_INPUT_KEYS = {
16
16
  Escape: false
17
17
  };
18
18
 
19
- function triggerChangeHandlers() {
20
- let evType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : eventFrom;
21
- let e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eventType;
22
-
19
+ function triggerChangeHandlers(evType = eventFrom, e = eventType) {
23
20
  for (let handler of changeHandlers) {
24
21
  handler(evType, e);
25
22
  }
@@ -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,3 +1,4 @@
1
+ import "core-js/modules/es.string.replace";
1
2
  //$Id$//
2
3
  import viewPort from '../Popup/viewPort';
3
4
  const {
@@ -38,14 +39,11 @@ export function encodeForHtml(str) {
38
39
 
39
40
  return str;
40
41
  }
41
- export function getListOfDetails() {
42
- let Obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
43
- let fn = arguments.length > 1 ? arguments[1] : undefined;
42
+ export function getListOfDetails(Obj = {}, fn) {
44
43
  const ids = Object.keys(Obj) || [];
45
44
  return ids.map(id => fn(Obj[id]));
46
45
  }
47
- export function capitalize() {
48
- let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
46
+ export function capitalize(value = '') {
49
47
  let newValue = '';
50
48
 
51
49
  for (let i = 0; i < value.length; i++) {
@@ -58,18 +56,12 @@ export function capitalize() {
58
56
 
59
57
  return newValue;
60
58
  }
61
- export function bind() {
62
- for (var _len = arguments.length, handlers = new Array(_len), _key = 0; _key < _len; _key++) {
63
- handlers[_key] = arguments[_key];
64
- }
65
-
59
+ export function bind(...handlers) {
66
60
  handlers.forEach(handler => {
67
61
  this[handler] = this[handler].bind(this);
68
62
  });
69
63
  }
70
- export function getFullName() {
71
- let firstName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
72
- let lastName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
64
+ export function getFullName(firstName = '', lastName = '') {
73
65
  let fullName = '';
74
66
 
75
67
  if (firstName !== null && firstName !== '') {
@@ -82,8 +74,7 @@ export function getFullName() {
82
74
 
83
75
  return fullName;
84
76
  }
85
- export function getStringifiedOutputForJson() {
86
- let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
77
+ export function getStringifiedOutputForJson(input = {}) {
87
78
  const keys = Object.keys(input);
88
79
  const modifiedInput = keys.reduce((curr, next) => {
89
80
  const values = input[next] || [];
@@ -119,19 +110,14 @@ export function filterValue(obj, val) {
119
110
  });
120
111
  return result;
121
112
  }
122
- export function merge() {
123
- let oldObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
124
- let newObj = arguments.length > 1 ? arguments[1] : undefined;
113
+ export function merge(oldObj = {}, newObj) {
125
114
  const copyOfOld = Object.assign({}, oldObj);
126
115
  return Object.keys(newObj).reduce((res, key) => {
127
116
  res[key] = Object.assign({}, res[key] || {}, newObj[key]);
128
117
  return res;
129
118
  }, copyOfOld);
130
119
  }
131
- export function formatValue() {
132
- let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
133
- let valueField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'id';
134
- let textField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'name';
120
+ export function formatValue(values = [], valueField = 'id', textField = 'name') {
135
121
  return values && values.map(value => {
136
122
  let formattedValue = value;
137
123
 
@@ -155,8 +141,7 @@ export function bytesToSize(bytes) {
155
141
  const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);
156
142
  return `${Math.round(bytes / Math.pow(1024, i), 2)} ${sizes[i]}`;
157
143
  }
158
- export function getMemSize(bytes) {
159
- let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
144
+ export function getMemSize(bytes, size = !0) {
160
145
  const thresh = size ? 1000 : 1024;
161
146
 
162
147
  if (Math.abs(bytes) < thresh) {
@@ -289,11 +274,7 @@ export const debounce = function (func, wait) {
289
274
  };
290
275
  };
291
276
  let timerId;
292
- export const throttle = function (func, wait) {
293
- for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
294
- args[_key2 - 2] = arguments[_key2];
295
- }
296
-
277
+ export const throttle = (func, wait, ...args) => {
297
278
  if (timerId) {
298
279
  return;
299
280
  }
@@ -363,7 +344,6 @@ export function getElementSpace(elementRef) {
363
344
  availableInsideSpace: availableInsideSpace
364
345
  };
365
346
  }
366
- export function getSearchString() {
367
- let charachers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
347
+ export function getSearchString(charachers = '') {
368
348
  return (charachers || '').toString().toLowerCase(); //.replace(/\s+/g, '');
369
349
  }
@@ -1,11 +1,10 @@
1
+ import "core-js/modules/es.string.replace";
1
2
  let dateFormat = {
2
3
  dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
3
4
  monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
4
5
  timeNames: ['a', 'p', 'am', 'pm', 'A', 'P', 'AM', 'PM']
5
6
  };
6
- export function pad(n) {
7
- let width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
8
- let z = arguments.length > 2 ? arguments[2] : undefined;
7
+ export function pad(n, width = 1, z) {
9
8
  z = z || '0';
10
9
  n = `${n}`;
11
10
  return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
@@ -77,9 +76,7 @@ export function replaceI18NValuesWithRegex(i18nStr, values) {
77
76
  export function unescapeUnicode(str) {
78
77
  return str.replace(/\\u([a-fA-F0-9]{4})/g, (g, m1) => String.fromCharCode(parseInt(m1, 16)));
79
78
  }
80
- export function getValues() {
81
- let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
82
- let diff = arguments.length > 1 ? arguments[1] : undefined;
79
+ export function getValues(params = [], diff) {
83
80
  return params.map(param => diff[param]);
84
81
  }
85
82
  export function getI18NValue(i18n) {
@@ -377,12 +377,11 @@ export const makeGetOptionIdChange = () => createSelector([getOptions, getValueF
377
377
  return changedOptions;
378
378
  }, newOptions);
379
379
  });
380
- export const filterSelectedOptions = function () {
381
- let {
382
- selectedOptions = dummyArray,
383
- propSelectedOptions = dummyArray,
384
- disabledOptions = dummyArray
385
- } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
380
+ export const filterSelectedOptions = ({
381
+ selectedOptions = dummyArray,
382
+ propSelectedOptions = dummyArray,
383
+ disabledOptions = dummyArray
384
+ } = {}) => {
386
385
  // eslint-disable-next-line no-param-reassign
387
386
  selectedOptions = selectedOptions || dummyArray; // eslint-disable-next-line no-param-reassign
388
387
 
@@ -1,6 +1,4 @@
1
- export function getInitial() {
2
- let firstName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3
- let lastName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1
+ export function getInitial(firstName = '', lastName = '') {
4
2
  let initial = '';
5
3
 
6
4
  if (firstName) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
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); }
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); }
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); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); 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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); 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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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"; 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); }
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); }
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); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); 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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); 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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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