@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
@@ -25,18 +25,18 @@
25
25
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
26
26
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
27
27
  --zdt_multiselect_darkmsg_text: #d0d0d4;
28
- --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_white);
29
29
 
30
30
  /* avatar */
31
31
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
32
- --zdt_avatar_white_text: var(--dot_text_white);
32
+ --zdt_avatar_white_text: var(--dot_white);
33
33
 
34
34
  /* label */
35
35
  --zdt_label_dark_text: #d0d0d4;
36
36
 
37
37
  /* textbox */
38
- --zdt_textbox_light_text: var(--dot_text_white);
38
+ --zdt_textbox_light_text: var(--dot_white);
39
39
 
40
40
  /* dropdown */
41
- --zdt_dropdown_darkheading_text: var(--dot_text_white);
41
+ --zdt_dropdown_darkheading_text: var(--dot_white);
42
42
  }
@@ -11,7 +11,7 @@
11
11
  --zdt_cta_primary_light_hover_bg: #f8d7d7;
12
12
  --zdt_cta_primary_light_border: #f8d7d7;
13
13
  --zdt_cta_secondary_bg: #de3535;
14
- --zdt_cta_secondary_text: var(--dot_text_white);
14
+ --zdt_cta_secondary_text: var(--dot_white);
15
15
  --zdt_cta_secondary_border: #e55d5d;
16
16
  --zdt_cta_secondary_light_border: #f8d7d7;
17
17
  --zdt_cta_alpha_text: #de3535;
@@ -25,18 +25,18 @@
25
25
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
26
26
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
27
27
  --zdt_multiselect_darkmsg_text: #d0d0d4;
28
- --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_white);
29
29
 
30
30
  /* avatar */
31
31
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
32
- --zdt_avatar_white_text: var(--dot_text_white);
32
+ --zdt_avatar_white_text: var(--dot_white);
33
33
 
34
34
  /* label */
35
35
  --zdt_label_dark_text: #d0d0d4;
36
36
 
37
37
  /* textbox */
38
- --zdt_textbox_light_text: var(--dot_text_white);
38
+ --zdt_textbox_light_text: var(--dot_white);
39
39
 
40
40
  /* dropdown */
41
- --zdt_dropdown_darkheading_text: var(--dot_text_white);
41
+ --zdt_dropdown_darkheading_text: var(--dot_white);
42
42
  }
@@ -11,7 +11,7 @@
11
11
  --zdt_cta_primary_light_hover_bg: #f8eabd;
12
12
  --zdt_cta_primary_light_border: #f8eabd;
13
13
  --zdt_cta_secondary_bg: #e8b923;
14
- --zdt_cta_secondary_text: var(--dot_text_black);
14
+ --zdt_cta_secondary_text: var(--dot_black);
15
15
  --zdt_cta_secondary_border: rgba(255, 255, 255, 0.2);
16
16
  --zdt_cta_secondary_light_border: #f6e3a7;
17
17
  --zdt_cta_alpha_text: #b68c07;
@@ -25,18 +25,18 @@
25
25
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
26
26
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
27
27
  --zdt_multiselect_darkmsg_text: #d0d0d4;
28
- --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_white);
29
29
 
30
30
  /* avatar */
31
31
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
32
- --zdt_avatar_white_text: var(--dot_text_white);
32
+ --zdt_avatar_white_text: var(--dot_white);
33
33
 
34
34
  /* label */
35
35
  --zdt_label_dark_text: #d0d0d4;
36
36
 
37
37
  /* textbox */
38
- --zdt_textbox_light_text: var(--dot_text_white);
38
+ --zdt_textbox_light_text: var(--dot_white);
39
39
 
40
40
  /* dropdown */
41
- --zdt_dropdown_darkheading_text: var(--dot_text_white);
41
+ --zdt_dropdown_darkheading_text: var(--dot_white);
42
42
  }
@@ -93,8 +93,7 @@ export default class Avatar extends React.Component {
93
93
  /* this will cause error if user name already have some space need to move firstName lastName user preference pattern*/
94
94
 
95
95
 
96
- getInitialByFullName() {
97
- let fullName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
96
+ getInitialByFullName(fullName = '') {
98
97
  fullName = (fullName || '').trim();
99
98
  let nameList = fullName.split(' ');
100
99
 
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import Avatar from '../Avatar';
3
4
  import renderer from 'react-test-renderer';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import AvatarTeam from '../AvatarTeam';
3
4
  import renderer from 'react-test-renderer';
@@ -6,7 +6,7 @@ export default class AvatarTeam__palette extends React.Component {
6
6
  render() {
7
7
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
8
8
  style: {
9
- background: 'var(--dot_bg_black)',
9
+ background: 'var(--dot_black)',
10
10
  display: 'inline-block'
11
11
  }
12
12
  }, /*#__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 Button from '../Button';
3
4
  import TestUtils from 'react-dom/test-utils';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/web.url.to-json";
1
2
  import React from 'react';
2
3
  import Buttongroup from '../Buttongroup';
3
4
  import Button from '../../Button/Button';
@@ -2,12 +2,12 @@
2
2
  position: relative;
3
3
  }
4
4
  .scroll {
5
- /* background: var(--dot_bg_white);
5
+ /* background: var(--dot_white);
6
6
  position: relative; */
7
7
  }
8
- /*
8
+ /*
9
9
  .scroll::after {
10
- box-shadow: 0 0 6px var(--zd_shadow_dark10);
10
+ box-shadow: 0 0 6px var(--zd_dark10);
11
11
  border-radius: 100px / 10px;
12
12
  content: '';
13
13
  left: var(--zd_size50);
@@ -12,15 +12,15 @@ export default class Card__Default extends Component {
12
12
  isScrollAttribute: true
13
13
  }, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(Box, {
14
14
  style: {
15
- color: 'var(--dot_text_white)',
16
- background: 'var(--dot_bg_black)'
15
+ color: 'var(--dot_white)',
16
+ background: 'var(--dot_black)'
17
17
  }
18
18
  }, "Header")), /*#__PURE__*/React.createElement(CardContent, {
19
19
  isScrollAttribute: true
20
20
  }, /*#__PURE__*/React.createElement(Box, null, "What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32. What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32. What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32.")), /*#__PURE__*/React.createElement(CardFooter, null, /*#__PURE__*/React.createElement(Box, {
21
21
  style: {
22
- color: 'var(--dot_text_white)',
23
- background: 'var(--dot_bg_black)'
22
+ color: 'var(--dot_white)',
23
+ background: 'var(--dot_black)'
24
24
  }
25
25
  }, "Footer")))));
26
26
  }
@@ -30,8 +30,8 @@ export default class Card__Scroll extends Component {
30
30
  fetchData: this.fetchData
31
31
  }, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(Box, {
32
32
  style: {
33
- color: 'var(--dot_text_white)',
34
- background: 'var(--dot_bg_black)'
33
+ color: 'var(--dot_white)',
34
+ background: 'var(--dot_black)'
35
35
  }
36
36
  }, "Header")), /*#__PURE__*/React.createElement(CardContent, null, data.map((val, index) => /*#__PURE__*/React.createElement("div", {
37
37
  key: index,
@@ -41,8 +41,8 @@ export default class Card__Scroll extends Component {
41
41
  }
42
42
  }, val))), /*#__PURE__*/React.createElement(CardFooter, null, /*#__PURE__*/React.createElement(Box, {
43
43
  style: {
44
- color: 'var(--dot_text_white)',
45
- background: 'var(--dot_bg_black)'
44
+ color: 'var(--dot_white)',
45
+ background: 'var(--dot_black)'
46
46
  }
47
47
  }, "Footer"))));
48
48
  }
@@ -16,8 +16,7 @@ import { getIsEmptyValue } from '../utils/Common';
16
16
  import { monthNamesDefault, monthNamesShortDefault, dayNamesDefault, dayNamesShortDefault, ampmTextDefault } from './constants';
17
17
  import { getHourDetails } from './dateFormatUtils';
18
18
 
19
- function title(date, year, month) {
20
- let monthNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
19
+ function title(date, year, month, monthNames = []) {
21
20
  const HeadingText = `${monthNames[month] || ''} ${year}`;
22
21
  return HeadingText;
23
22
  }
@@ -180,8 +179,7 @@ export default class DateTime extends React.PureComponent {
180
179
  return hours;
181
180
  }
182
181
 
183
- handleGetSelectedDate() {
184
- let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
182
+ handleGetSelectedDate(selectedInfo = {}) {
185
183
  const {
186
184
  min,
187
185
  max,
@@ -287,8 +285,7 @@ export default class DateTime extends React.PureComponent {
287
285
  }
288
286
  }
289
287
 
290
- handleChange() {
291
- let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
288
+ handleChange(selectedInfo = {}) {
292
289
  const {
293
290
  onError,
294
291
  onChange,
@@ -708,8 +708,7 @@ class DateWidgetComponent extends React.Component {
708
708
  }
709
709
  }
710
710
 
711
- handleSelection() {
712
- let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
711
+ handleSelection(focusOrder = 0) {
713
712
  const isAllowedDateType = this.handleGetAllowedType();
714
713
 
715
714
  if (isAllowedDateType) {
@@ -908,9 +907,7 @@ class DateWidgetComponent extends React.Component {
908
907
  });
909
908
  }
910
909
 
911
- handleBlurSelectionRange() {
912
- let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
913
- let oldFocusOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
910
+ handleBlurSelectionRange(focusOrder = '', oldFocusOrder = '') {
914
911
  const isAllowedDateType = this.handleGetAllowedType();
915
912
 
916
913
  if (isAllowedDateType) {
@@ -6,10 +6,6 @@
6
6
  .readOnly, .readOnly > input, .disabled {
7
7
  cursor: not-allowed;
8
8
  }
9
- .readOnly,
10
- .disabled {
11
- composes: readonly from '../common/common.module.css';
12
- }
13
9
  .enabled {
14
10
  cursor: pointer;
15
11
  }
@@ -185,12 +185,11 @@ export default class YearView extends React.PureComponent {
185
185
  onSelectYear && onSelectYear(year);
186
186
  }
187
187
 
188
- renderListItem(_ref) {
189
- let {
190
- index,
191
- style: virtualizerStyle,
192
- ref
193
- } = _ref;
188
+ renderListItem({
189
+ index,
190
+ style: virtualizerStyle,
191
+ ref
192
+ }) {
194
193
  const {
195
194
  years
196
195
  } = this;
@@ -1,16 +1,9 @@
1
- export function bind() {
2
- for (var _len = arguments.length, handlers = new Array(_len), _key = 0; _key < _len; _key++) {
3
- handlers[_key] = arguments[_key];
4
- }
5
-
1
+ export function bind(...handlers) {
6
2
  handlers.forEach(handler => {
7
3
  this[handler] = this[handler].bind(this);
8
4
  });
9
5
  }
10
- export function formatValue() {
11
- let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
12
- let valueField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'id';
13
- let textField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'name';
6
+ export function formatValue(values = [], valueField = 'id', textField = 'name') {
14
7
  return values && values.map(value => {
15
8
  let formattedValue = value;
16
9
 
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/es.string.replace";
2
+
1
3
  /* eslint-disable no-param-reassign */
2
4
 
3
5
  /** * Libraries ** */
@@ -12,9 +14,7 @@ import { formatDate } from '../../utils/datetime/common';
12
14
  import { defaultFormat, supportedPatterns, // patternChangeStr,
13
15
  patternSplitStr, INCONSTANT, flags } from '../constants';
14
16
 
15
- function getDateFormatString() {
16
- let dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
17
- let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
17
+ function getDateFormatString(dateFormatArr = [], datePatternArr = []) {
18
18
  return dateFormatArr.reduce((res, dateStr, index) => {
19
19
  const patternStr = datePatternArr[index] || '';
20
20
  res += dateStr + patternStr;
@@ -22,14 +22,8 @@ function getDateFormatString() {
22
22
  }, '');
23
23
  }
24
24
 
25
- function getIsValidPattern() {
26
- let dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
27
- let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
28
-
29
- const isValueInArray = function () {
30
- let possibleFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
31
- return possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
32
- };
25
+ function getIsValidPattern(dateFormatArr = [], datePatternArr = []) {
26
+ const isValueInArray = (possibleFormat = []) => possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
33
27
 
34
28
  const haveDay = isValueInArray(flags.day);
35
29
  const haveMonth = isValueInArray(flags.month);
@@ -38,14 +32,12 @@ function getIsValidPattern() {
38
32
  return haveDay && haveMonth && (haveYear || !haveYear) && isValidPattern;
39
33
  }
40
34
 
41
- export function getDateFormatDetails() {
42
- let dateFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
43
- let {
44
- isHideCurrentYear,
45
- value,
46
- timeZone,
47
- isDateTime
48
- } = arguments.length > 1 ? arguments[1] : undefined;
35
+ export function getDateFormatDetails(dateFormat = '', {
36
+ isHideCurrentYear,
37
+ value,
38
+ timeZone,
39
+ isDateTime
40
+ }) {
49
41
  let dayInfo = {};
50
42
  let monthInfo = {};
51
43
  let yearInfo = {};
@@ -126,11 +118,10 @@ export function getDateFormatDetails() {
126
118
  };
127
119
  }
128
120
 
129
- function getDisplayFormatValue(dateVal, formatVal) {
130
- let {
131
- i18nShortMonths = [],
132
- i18nMonths = []
133
- } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
121
+ function getDisplayFormatValue(dateVal, formatVal, {
122
+ i18nShortMonths = [],
123
+ i18nMonths = []
124
+ } = {}) {
134
125
  const {
135
126
  length,
136
127
  type
@@ -151,11 +142,10 @@ function getDisplayFormatValue(dateVal, formatVal) {
151
142
  return addZero(dateVal, length);
152
143
  }
153
144
 
154
- function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
155
- let {
156
- i18nShortMonths,
157
- i18nMonths
158
- } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
145
+ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder, {
146
+ i18nShortMonths,
147
+ i18nMonths
148
+ } = {}) {
159
149
  const dateString = dateFormatArr.reduce((res, formatVal, index) => {
160
150
  const {
161
151
  type: dateFormatVal = ''
@@ -172,15 +162,11 @@ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
172
162
  return dateString;
173
163
  }
174
164
 
175
- export function getDateTimeString() {
176
- let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
177
- let dateFormatDetails = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
178
- let isDateTime = arguments.length > 2 ? arguments[2] : undefined;
179
- let {
180
- i18nShortMonths,
181
- i18nMonths,
182
- is24Hour
183
- } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
165
+ export function getDateTimeString(values = {}, dateFormatDetails = {}, isDateTime, {
166
+ i18nShortMonths,
167
+ i18nMonths,
168
+ is24Hour
169
+ } = {}) {
184
170
  const {
185
171
  day,
186
172
  month,
@@ -213,10 +199,9 @@ export function getDateTimeString() {
213
199
 
214
200
  return `${dateString}${timeString}`;
215
201
  }
216
- export function getDateDetails(value, localValues, isDateTime, timeZone, _ref) {
217
- let {
218
- is24Hour
219
- } = _ref;
202
+ export function getDateDetails(value, localValues, isDateTime, timeZone, {
203
+ is24Hour
204
+ }) {
220
205
  const {
221
206
  day,
222
207
  month,
@@ -266,10 +251,9 @@ export function getDateDetails(value, localValues, isDateTime, timeZone, _ref) {
266
251
 
267
252
  return localValues;
268
253
  }
269
- export function getIsValidDate(values, isDateTime, _ref2) {
270
- let {
271
- is24Hour
272
- } = _ref2;
254
+ export function getIsValidDate(values, isDateTime, {
255
+ is24Hour
256
+ }) {
273
257
  const {
274
258
  day,
275
259
  month,
@@ -425,22 +409,20 @@ export function getSelectedDate(values, props) {
425
409
  };
426
410
  }
427
411
 
428
- function getDateFormatLength(type, length) {
429
- let formatVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
430
- let {
431
- i18nShortMonths,
432
- i18nMonths,
433
- selectedValue,
434
- day,
435
- month,
436
- year,
437
- hour,
438
- minute,
439
- noon,
440
- timeZone,
441
- isDateTime,
442
- is24Hour
443
- } = arguments.length > 3 ? arguments[3] : undefined;
412
+ function getDateFormatLength(type, length, formatVal = '', {
413
+ i18nShortMonths,
414
+ i18nMonths,
415
+ selectedValue,
416
+ day,
417
+ month,
418
+ year,
419
+ hour,
420
+ minute,
421
+ noon,
422
+ timeZone,
423
+ isDateTime,
424
+ is24Hour
425
+ }) {
444
426
  const {
445
427
  month: selectedMonth
446
428
  } = getDateDetails(selectedValue, {
@@ -467,20 +449,19 @@ function getDateFormatLength(type, length) {
467
449
  return length;
468
450
  }
469
451
 
470
- export function getDateFormatSelection(dateFormatDetails, isDateTime) {
471
- let {
472
- i18nShortMonths,
473
- i18nMonths,
474
- selectedValue,
475
- day,
476
- month,
477
- year,
478
- hour,
479
- minute,
480
- noon,
481
- timeZone,
482
- is24Hour
483
- } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
452
+ export function getDateFormatSelection(dateFormatDetails, isDateTime, {
453
+ i18nShortMonths,
454
+ i18nMonths,
455
+ selectedValue,
456
+ day,
457
+ month,
458
+ year,
459
+ hour,
460
+ minute,
461
+ noon,
462
+ timeZone,
463
+ is24Hour
464
+ } = {}) {
484
465
  const {
485
466
  dateFormatArr = [],
486
467
  patternArr = []
@@ -11,9 +11,7 @@ import { flags, INVALID_DATE } from '../constants';
11
11
  export function convertYearToTwoDigit(year) {
12
12
  return parseInt(year.toString().slice(-2));
13
13
  }
14
- export function addZero() {
15
- let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
16
- let length = arguments.length > 1 ? arguments[1] : undefined;
14
+ export function addZero(value = '', length) {
17
15
  let newValue = value.toString();
18
16
 
19
17
  for (let i = 0; i < length; i++) {
@@ -100,9 +98,7 @@ export function getYearDetails(yearLength) {
100
98
  currentYear: year
101
99
  };
102
100
  }
103
- export function convertTwoDigitToYear() {
104
- let digitValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
105
- let selectedYear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
101
+ export function convertTwoDigitToYear(digitValue = '', selectedYear = '') {
106
102
  const dateObj = new Date();
107
103
  let year = dateObj.getFullYear();
108
104
  const digitValueStr = addZero(digitValue.toString(), 2);
@@ -195,12 +191,11 @@ export function getIsEmptyYear(value, yearLength) {
195
191
  } = getYearDetails(yearLength);
196
192
  return getIsEmptyValue(value, startPoint, endPoint);
197
193
  }
198
- export function getIsCurrentYear(_ref) {
199
- let {
200
- isDateTime,
201
- value,
202
- timeZone
203
- } = _ref;
194
+ export function getIsCurrentYear({
195
+ isDateTime,
196
+ value,
197
+ timeZone
198
+ }) {
204
199
  let isCurrentYear = false;
205
200
 
206
201
  if (value && value !== INVALID_DATE) {
@@ -1,10 +1,9 @@
1
1
  /** * Methods ** */
2
2
  import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getHourDetails, getMinuteDetails, getNoonDetails, getIsNoonValueTyped, getIsEmptyHour } from './index';
3
3
  import { getIsEmptyValue } from '../../utils/Common';
4
- export function getChangedHour(values, event, focusOrders, keyActions) {
5
- let {
6
- is24Hour = false
7
- } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
4
+ export function getChangedHour(values, event, focusOrders, keyActions, {
5
+ is24Hour = false
6
+ } = {}) {
8
7
  const {
9
8
  keyCode,
10
9
  which
@@ -1,9 +1,8 @@
1
1
  /** * Methods ** */
2
2
  import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getDayEnd, convertYearToTwoDigit, getYearDetails, convertTwoDigitToYear, getIsEmptyYear } from './index';
3
- export function getChangedYear(values, event, focusOrders, keyActions, _ref) {
4
- let {
5
- yearInfo
6
- } = _ref;
3
+ export function getChangedYear(values, event, focusOrders, keyActions, {
4
+ yearInfo
5
+ }) {
7
6
  const {
8
7
  keyCode,
9
8
  which
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.string.replace";
1
2
  import typeChecker from './typeChecker';
2
3
  import { clone } from './objectUtils';
3
4
  const validator = {
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/web.url.to-json";
2
+
1
3
  /* eslint-disable no-undef */
2
4
  import React from 'react';
3
5
  import Label from '../Label';
@@ -40,7 +40,7 @@ export default class Layout__Hidden extends React.Component {
40
40
  hidden: ['xs']
41
41
  }, /*#__PURE__*/React.createElement("div", {
42
42
  style: {
43
- background: 'var(--dot_bg_black)',
43
+ background: 'var(--dot_black)',
44
44
  width: '45px',
45
45
  height: '100%'
46
46
  }
@@ -41,7 +41,7 @@ export default class Layout__four_Column extends React.Component {
41
41
  hidden: ['xs']
42
42
  }, /*#__PURE__*/React.createElement("div", {
43
43
  style: {
44
- background: 'var(--dot_bg_black)',
44
+ background: 'var(--dot_black)',
45
45
  width: '220px',
46
46
  height: '100%'
47
47
  }
@@ -40,7 +40,7 @@ export default class Layout__three_Column extends React.Component {
40
40
  hidden: ['xs']
41
41
  }, /*#__PURE__*/React.createElement("div", {
42
42
  style: {
43
- background: 'var(--dot_bg_black)',
43
+ background: 'var(--dot_black)',
44
44
  width: '220px',
45
45
  height: '100%'
46
46
  }
@@ -15,8 +15,7 @@ export function createProps(propTypes, props, classNames) {
15
15
  export function isInteger(value) {
16
16
  return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
17
17
  }
18
- export function setProps(childProps, props) {
19
- let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
18
+ export function setProps(childProps, props, values = {}) {
20
19
  Object.keys(values).map(value => {
21
20
  if (props[value]) {
22
21
  childProps[values[value]] = props[value];
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/es.string.replace";
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  /**** Libraries ****/