@zohodesk/components 1.1.1 → 1.2.0-temp-195

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 (767) hide show
  1. package/.cli/MissedPropType_Keys.html +101 -0
  2. package/.cli/PropLessFiles.html +101 -0
  3. package/.cli/PropUnificationExcludeFilesArray.js +231 -0
  4. package/.cli/PropValidationExcludeFilesArray.js +1 -0
  5. package/.cli/ThemeValidationExcludeFiles.js +1 -0
  6. package/.cli/UnValidatedFiles.html +101 -0
  7. package/.cli/propValidation_report.html +182 -0
  8. package/.cli/stringContains.js +1 -0
  9. package/PropValidationExcludeFilesArray.js +1 -0
  10. package/README.md +1418 -1270
  11. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +174 -169
  12. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +465 -450
  13. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +31 -30
  14. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +465 -450
  15. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +31 -30
  16. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +465 -450
  17. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +31 -30
  18. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +465 -450
  19. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +31 -30
  20. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +465 -450
  21. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +31 -30
  22. package/assets/Appearance/light/mode/Component_LightMode.module.css +173 -168
  23. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +465 -450
  24. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +31 -30
  25. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +465 -450
  26. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +31 -30
  27. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +465 -450
  28. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +31 -30
  29. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +465 -450
  30. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +31 -30
  31. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +465 -450
  32. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +31 -30
  33. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +174 -169
  34. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +465 -450
  35. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +31 -30
  36. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +465 -450
  37. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +31 -30
  38. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +465 -450
  39. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +31 -30
  40. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +465 -450
  41. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +31 -30
  42. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +465 -450
  43. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +31 -30
  44. package/assets/Contrast/darkContrastLightness.module.css +34 -34
  45. package/assets/Contrast/lightContrastLightness.module.css +34 -34
  46. package/assets/Contrast/pureDarkContrastLightness.module.css +34 -34
  47. package/es/Animation/Animation.js +4 -86
  48. package/es/Animation/utils.js +83 -0
  49. package/es/AppContainer/AppContainer.js +13 -9
  50. package/es/AppContainer/AppContainer.module.css +18 -18
  51. package/es/Avatar/Avatar.js +14 -14
  52. package/es/Avatar/Avatar.module.css +175 -175
  53. package/es/Avatar/__tests__/Avatar.spec.js +181 -0
  54. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  55. package/es/AvatarTeam/AvatarTeam.js +14 -14
  56. package/es/AvatarTeam/AvatarTeam.module.css +189 -189
  57. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +138 -0
  58. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -0
  59. package/es/Button/Button.js +14 -11
  60. package/es/Button/__tests__/Button.spec.js +122 -61
  61. package/es/Button/css/Button.module.css +528 -526
  62. package/es/Button/css/cssJSLogic.js +1 -1
  63. package/es/Button/props/defaultProps.js +2 -1
  64. package/es/Button/props/propTypes.js +3 -2
  65. package/es/Buttongroup/Buttongroup.js +1 -1
  66. package/es/Buttongroup/Buttongroup.module.css +104 -105
  67. package/es/Buttongroup/__tests__/Buttongroup.spec.js +37 -0
  68. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -0
  69. package/es/Card/Card.js +4 -4
  70. package/es/Card/Card.module.css +20 -20
  71. package/es/Card/props/propTypes.js +9 -4
  72. package/es/CheckBox/CheckBox.js +18 -8
  73. package/es/CheckBox/CheckBox.module.css +157 -157
  74. package/es/CheckBox/props/propTypes.js +1 -2
  75. package/es/DateTime/CalendarView.js +0 -0
  76. package/es/DateTime/DateTime.js +2 -29
  77. package/es/DateTime/DateTime.module.css +248 -235
  78. package/es/DateTime/DateTimePopupFooter.js +5 -1
  79. package/es/DateTime/DateTimePopupHeader.js +3 -1
  80. package/es/DateTime/DateWidget.js +17 -12
  81. package/es/DateTime/DateWidget.module.css +38 -38
  82. package/es/DateTime/DaysRow.js +3 -1
  83. package/es/DateTime/Time.js +4 -0
  84. package/es/DateTime/YearView.js +0 -1
  85. package/es/DateTime/YearView.module.css +98 -98
  86. package/es/DateTime/common.js +0 -0
  87. package/es/DateTime/dateFormatUtils/dateFormat.js +14 -2
  88. package/es/DateTime/dateFormatUtils/dayChange.js +2 -1
  89. package/es/DateTime/dateFormatUtils/index.js +3 -5
  90. package/es/DateTime/dateFormatUtils/monthChange.js +2 -1
  91. package/es/DateTime/dateFormatUtils/timeChange.js +4 -4
  92. package/es/DateTime/dateFormatUtils/yearChange.js +2 -1
  93. package/es/DateTime/index.js +0 -0
  94. package/es/DateTime/objectUtils.js +0 -0
  95. package/es/DateTime/props/defaultProps.js +6 -0
  96. package/es/DateTime/props/propTypes.js +58 -6
  97. package/es/DateTime/typeChecker.js +0 -0
  98. package/es/DateTime/validator.js +0 -0
  99. package/es/DropBox/DropBox.js +24 -35
  100. package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -2
  101. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -434
  102. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  103. package/es/DropBox/DropBoxElement/props/propTypes.js +7 -1
  104. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  105. package/es/DropBox/css/DropBox.module.css +58 -58
  106. package/es/DropBox/props/propTypes.js +2 -1
  107. package/es/DropBox/utils/isMobilePopover.js +17 -0
  108. package/es/DropDown/DropDown.js +3 -8
  109. package/es/DropDown/DropDown.module.css +5 -5
  110. package/es/DropDown/DropDownHeading.js +0 -0
  111. package/es/DropDown/DropDownHeading.module.css +53 -53
  112. package/es/DropDown/DropDownItem.js +0 -0
  113. package/es/DropDown/DropDownItem.module.css +94 -94
  114. package/es/DropDown/DropDownSearch.js +0 -0
  115. package/es/DropDown/DropDownSearch.module.css +14 -14
  116. package/es/DropDown/DropDownSeparator.js +0 -0
  117. package/es/DropDown/DropDownSeparator.module.css +7 -7
  118. package/es/DropDown/props/propTypes.js +5 -18
  119. package/es/Heading/Heading.module.css +4 -4
  120. package/es/Label/Label.js +9 -4
  121. package/es/Label/Label.module.css +57 -52
  122. package/es/Label/LabelColors.module.css +20 -20
  123. package/es/Label/__tests__/Label.spec.js +99 -0
  124. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  125. package/es/Label/props/propTypes.js +5 -1
  126. package/es/Layout/Box.js +2 -1
  127. package/es/Layout/Container.js +2 -1
  128. package/es/Layout/Layout.module.css +335 -335
  129. package/es/Layout/utils.js +0 -0
  130. package/es/ListItem/ListContainer.js +8 -6
  131. package/es/ListItem/ListItem.js +4 -5
  132. package/es/ListItem/ListItem.module.css +205 -216
  133. package/es/ListItem/ListItemWithAvatar.js +4 -5
  134. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  135. package/es/ListItem/ListItemWithIcon.js +4 -5
  136. package/es/ListItem/ListItemWithRadio.js +4 -5
  137. package/es/ListItem/props/propTypes.js +9 -4
  138. package/es/Modal/Modal.js +4 -5
  139. package/es/Modal/props/propTypes.js +2 -1
  140. package/es/MultiSelect/AdvancedGroupMultiSelect.js +12 -10
  141. package/es/MultiSelect/AdvancedMultiSelect.js +12 -13
  142. package/es/MultiSelect/MobileHeader/MobileHeader.js +50 -0
  143. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
  144. package/es/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
  145. package/es/MultiSelect/MobileHeader/props/propTypes.js +7 -0
  146. package/es/MultiSelect/MultiSelect.js +183 -179
  147. package/es/MultiSelect/MultiSelect.module.css +204 -207
  148. package/es/MultiSelect/MultiSelectHeader.js +1 -2
  149. package/es/MultiSelect/MultiSelectWithAvatar.js +75 -190
  150. package/es/MultiSelect/SelectedOptions.js +6 -8
  151. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  152. package/es/MultiSelect/Suggestions.js +8 -9
  153. package/es/MultiSelect/props/defaultProps.js +6 -2
  154. package/es/MultiSelect/props/propTypes.js +149 -211
  155. package/es/PopOver/PopOver.js +1 -9
  156. package/es/PopOver/PopOver.module.css +9 -8
  157. package/es/Popup/Popup.js +3 -4
  158. package/es/Popup/PositionMapping.json +73 -73
  159. package/es/Radio/Radio.js +26 -12
  160. package/es/Radio/Radio.module.css +115 -112
  161. package/es/Radio/__tests__/Radio.spec.js +241 -0
  162. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  163. package/es/Radio/props/defaultProps.js +1 -0
  164. package/es/Radio/props/propTypes.js +10 -2
  165. package/es/Responsive/CustomResponsive.js +0 -0
  166. package/es/Responsive/RefWrapper.js +2 -1
  167. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  168. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  169. package/es/ResponsiveDropBox/props/propTypes.js +2 -1
  170. package/es/Ribbon/Ribbon.js +0 -0
  171. package/es/Ribbon/Ribbon.module.css +499 -454
  172. package/es/Ribbon/__tests__/Ribbon.spec.js +52 -0
  173. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  174. package/es/RippleEffect/RippleEffect.js +3 -2
  175. package/es/RippleEffect/RippleEffect.module.css +92 -92
  176. package/es/RippleEffect/__tests__/RippleEffect.spec.js +69 -0
  177. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  178. package/es/RippleEffect/props/defaultProps.js +1 -0
  179. package/es/RippleEffect/props/propTypes.js +1 -0
  180. package/es/Select/GroupSelect.js +14 -11
  181. package/es/Select/Select.js +20 -16
  182. package/es/Select/Select.module.css +134 -108
  183. package/es/Select/SelectWithAvatar.js +2 -1
  184. package/es/Select/SelectWithIcon.js +5 -2
  185. package/es/Select/props/defaultProps.js +1 -0
  186. package/es/Select/props/propTypes.js +20 -7
  187. package/es/Stencils/Stencils.js +0 -0
  188. package/es/Stencils/Stencils.module.css +96 -96
  189. package/es/Stencils/__tests__/Stencils.spec.js +46 -0
  190. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  191. package/es/Switch/Switch.js +10 -10
  192. package/es/Switch/Switch.module.css +127 -127
  193. package/es/Switch/__tests__/Switch.spec.js +156 -0
  194. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  195. package/es/Tab/Tab.js +4 -5
  196. package/es/Tab/Tab.module.css +100 -100
  197. package/es/Tab/TabContent.module.css +4 -4
  198. package/es/Tab/TabContentWrapper.js +6 -2
  199. package/es/Tab/TabWrapper.js +2 -4
  200. package/es/Tab/Tabs.js +33 -33
  201. package/es/Tab/Tabs.module.css +136 -136
  202. package/es/Tab/props/defaultProps.js +2 -1
  203. package/es/Tab/props/propTypes.js +3 -2
  204. package/es/Tag/Tag.js +12 -11
  205. package/es/Tag/Tag.module.css +253 -254
  206. package/es/Tag/props/propTypes.js +2 -1
  207. package/es/TextBox/TextBox.js +16 -9
  208. package/es/TextBox/TextBox.module.css +197 -158
  209. package/es/TextBox/props/defaultProps.js +1 -1
  210. package/es/TextBox/props/propTypes.js +3 -1
  211. package/es/TextBoxIcon/TextBoxIcon.js +4 -4
  212. package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
  213. package/es/TextBoxIcon/props/defaultProps.js +1 -0
  214. package/es/TextBoxIcon/props/propTypes.js +3 -1
  215. package/es/Textarea/Textarea.js +4 -6
  216. package/es/Textarea/Textarea.module.css +140 -139
  217. package/es/Textarea/props/propTypes.js +0 -1
  218. package/es/Tooltip/Tooltip.js +4 -2
  219. package/es/Tooltip/Tooltip.module.css +140 -140
  220. package/es/Tooltip/props/propTypes.js +0 -3
  221. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  222. package/es/common/a11y.module.css +3 -3
  223. package/es/common/animation.module.css +624 -624
  224. package/es/common/avatarsizes.module.css +48 -48
  225. package/es/common/basic.module.css +33 -33
  226. package/es/common/basicReset.module.css +40 -40
  227. package/es/common/boxShadow.module.css +33 -33
  228. package/es/common/common.module.css +524 -524
  229. package/es/common/customscroll.module.css +142 -91
  230. package/es/common/reset.module.css +13 -13
  231. package/es/common/transition.module.css +146 -146
  232. package/es/deprecated/PortalLayer/PortalLayer.js +11 -8
  233. package/es/deprecated/PortalLayer/props/propTypes.js +10 -1
  234. package/es/index.js +2 -1
  235. package/es/semantic/Button/props/propTypes.js +1 -5
  236. package/es/semantic/Button/semanticButton.module.css +9 -9
  237. package/es/utils/Common.js +3 -0
  238. package/es/utils/dropDownUtils.js +0 -0
  239. package/es/utils/index.js +0 -2
  240. package/es/v1/Accordion/Accordion.js +66 -0
  241. package/es/v1/Accordion/AccordionItem.js +57 -0
  242. package/es/v1/Accordion/index.js +2 -0
  243. package/es/v1/Accordion/props/defaultProps.js +12 -0
  244. package/es/v1/Accordion/props/propTypes.js +33 -0
  245. package/es/v1/Animation/Animation.js +45 -0
  246. package/es/v1/Animation/props/defaultProps.js +7 -0
  247. package/es/v1/Animation/props/propTypes.js +12 -0
  248. package/es/v1/Animation/utils.js +83 -0
  249. package/es/v1/AppContainer/AppContainer.js +121 -0
  250. package/es/v1/AppContainer/props/defaultProps.js +10 -0
  251. package/es/v1/AppContainer/props/propTypes.js +17 -0
  252. package/es/v1/Avatar/Avatar.js +139 -0
  253. package/es/v1/Avatar/props/defaultProps.js +17 -0
  254. package/es/v1/Avatar/props/propTypes.js +26 -0
  255. package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
  256. package/es/v1/AvatarTeam/props/defaultProps.js +17 -0
  257. package/es/v1/AvatarTeam/props/propTypes.js +27 -0
  258. package/es/v1/Button/Button.js +67 -0
  259. package/es/v1/Button/props/defaultProps.js +18 -0
  260. package/es/v1/Button/props/propTypes.js +27 -0
  261. package/es/v1/Buttongroup/Buttongroup.js +31 -0
  262. package/es/v1/Buttongroup/props/defaultProps.js +6 -0
  263. package/es/v1/Buttongroup/props/propTypes.js +9 -0
  264. package/es/v1/Card/Card.js +237 -0
  265. package/es/v1/Card/index.js +4 -0
  266. package/es/v1/Card/props/defaultProps.js +25 -0
  267. package/es/v1/Card/props/propTypes.js +48 -0
  268. package/es/v1/CheckBox/CheckBox.js +161 -0
  269. package/es/v1/CheckBox/props/defaultProps.js +18 -0
  270. package/es/v1/CheckBox/props/propTypes.js +41 -0
  271. package/es/v1/DateTime/CalendarView.js +251 -0
  272. package/es/v1/DateTime/DateTime.js +760 -0
  273. package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
  274. package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
  275. package/es/v1/DateTime/DateWidget.js +1107 -0
  276. package/es/v1/DateTime/DaysRow.js +31 -0
  277. package/es/v1/DateTime/Time.js +166 -0
  278. package/es/v1/DateTime/YearView.js +264 -0
  279. package/es/v1/DateTime/index.js +1 -0
  280. package/es/v1/DateTime/props/defaultProps.js +57 -0
  281. package/es/v1/DateTime/props/propTypes.js +195 -0
  282. package/es/v1/DropBox/DropBox.js +79 -0
  283. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +133 -0
  284. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +18 -0
  285. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +51 -0
  286. package/es/v1/DropBox/props/defaultProps.js +14 -0
  287. package/es/v1/DropBox/props/propTypes.js +16 -0
  288. package/es/v1/DropBox/utils/isMobilePopover.js +17 -0
  289. package/es/v1/DropDown/DropDown.js +53 -0
  290. package/es/v1/DropDown/DropDownHeading.js +36 -0
  291. package/es/v1/DropDown/DropDownItem.js +56 -0
  292. package/es/v1/DropDown/DropDownSearch.js +55 -0
  293. package/es/v1/DropDown/DropDownSeparator.js +12 -0
  294. package/es/v1/DropDown/props/defaultProps.js +20 -0
  295. package/es/v1/DropDown/props/propTypes.js +65 -0
  296. package/es/v1/Heading/Heading.js +32 -0
  297. package/es/v1/Heading/props/defaultProps.js +5 -0
  298. package/es/v1/Heading/props/propTypes.js +11 -0
  299. package/es/v1/Label/Label.js +40 -0
  300. package/es/v1/Label/props/defaultProps.js +11 -0
  301. package/es/v1/Label/props/propTypes.js +19 -0
  302. package/es/v1/Layout/Box.js +115 -0
  303. package/es/v1/Layout/Container.js +132 -0
  304. package/es/v1/Layout/index.js +2 -0
  305. package/es/v1/Layout/props/defaultProps.js +16 -0
  306. package/es/v1/Layout/props/propTypes.js +46 -0
  307. package/es/v1/ListItem/ListContainer.js +104 -0
  308. package/es/v1/ListItem/ListItem.js +123 -0
  309. package/es/v1/ListItem/ListItemWithAvatar.js +143 -0
  310. package/es/v1/ListItem/ListItemWithCheckBox.js +103 -0
  311. package/es/v1/ListItem/ListItemWithIcon.js +126 -0
  312. package/es/v1/ListItem/ListItemWithRadio.js +104 -0
  313. package/es/v1/ListItem/index.js +6 -0
  314. package/es/v1/ListItem/props/defaultProps.js +97 -0
  315. package/es/v1/ListItem/props/propTypes.js +202 -0
  316. package/es/v1/Modal/Modal.js +125 -0
  317. package/es/v1/Modal/props/defaultProps.js +3 -0
  318. package/es/v1/Modal/props/propTypes.js +7 -0
  319. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1079 -0
  320. package/es/v1/MultiSelect/AdvancedMultiSelect.js +567 -0
  321. package/es/v1/MultiSelect/EmptyState.js +64 -0
  322. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
  323. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
  324. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +7 -0
  325. package/es/v1/MultiSelect/MultiSelect.js +1103 -0
  326. package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
  327. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +199 -0
  328. package/es/v1/MultiSelect/SelectedOptions.js +80 -0
  329. package/es/v1/MultiSelect/Suggestions.js +141 -0
  330. package/es/v1/MultiSelect/index.js +4 -0
  331. package/es/v1/MultiSelect/props/defaultProps.js +155 -0
  332. package/es/v1/MultiSelect/props/propTypes.js +312 -0
  333. package/es/v1/PopOver/PopOver.js +176 -0
  334. package/es/v1/PopOver/props/defaultProps.js +7 -0
  335. package/es/v1/PopOver/props/propTypes.js +53 -0
  336. package/es/v1/Popup/Popup.js +644 -0
  337. package/es/v1/Radio/Radio.js +130 -0
  338. package/es/v1/Radio/props/defaultProps.js +15 -0
  339. package/es/v1/Radio/props/propTypes.js +40 -0
  340. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +56 -0
  341. package/es/v1/ResponsiveDropBox/props/defaultProps.js +4 -0
  342. package/es/v1/ResponsiveDropBox/props/propTypes.js +8 -0
  343. package/es/v1/Ribbon/Ribbon.js +33 -0
  344. package/es/v1/Ribbon/props/defaultProps.js +9 -0
  345. package/es/v1/Ribbon/props/propTypes.js +11 -0
  346. package/es/v1/RippleEffect/RippleEffect.js +25 -0
  347. package/es/v1/RippleEffect/props/defaultProps.js +10 -0
  348. package/es/v1/RippleEffect/props/propTypes.js +12 -0
  349. package/es/v1/Select/GroupSelect.js +805 -0
  350. package/es/v1/Select/Select.js +973 -0
  351. package/es/v1/Select/SelectWithAvatar.js +344 -0
  352. package/es/v1/Select/SelectWithIcon.js +535 -0
  353. package/es/v1/Select/index.js +4 -0
  354. package/es/v1/Select/props/defaultProps.js +120 -0
  355. package/es/v1/Select/props/propTypes.js +288 -0
  356. package/es/v1/Stencils/Stencils.js +26 -0
  357. package/es/v1/Stencils/props/defaultProps.js +6 -0
  358. package/es/v1/Stencils/props/propTypes.js +7 -0
  359. package/es/v1/Switch/Switch.js +94 -0
  360. package/es/v1/Switch/props/defaultProps.js +11 -0
  361. package/es/v1/Switch/props/propTypes.js +28 -0
  362. package/es/v1/Tab/Tab.js +106 -0
  363. package/es/v1/Tab/TabContent.js +30 -0
  364. package/es/v1/Tab/TabContentWrapper.js +33 -0
  365. package/es/v1/Tab/TabWrapper.js +55 -0
  366. package/es/v1/Tab/Tabs.js +523 -0
  367. package/es/v1/Tab/index.js +5 -0
  368. package/es/v1/Tab/props/defaultProps.js +45 -0
  369. package/es/v1/Tab/props/propTypes.js +108 -0
  370. package/es/v1/Tab/v1Tab.module.css +100 -0
  371. package/es/v1/Tab/v1TabContent.module.css +4 -0
  372. package/es/v1/Tab/v1Tabs.module.css +137 -0
  373. package/es/v1/Tag/Tag.js +138 -0
  374. package/es/v1/Tag/props/defaultProps.js +14 -0
  375. package/es/v1/Tag/props/propTypes.js +35 -0
  376. package/es/v1/TextBox/TextBox.js +160 -0
  377. package/es/v1/TextBox/props/defaultProps.js +20 -0
  378. package/es/v1/TextBox/props/propTypes.js +56 -0
  379. package/es/v1/TextBoxIcon/TextBoxIcon.js +158 -0
  380. package/es/v1/TextBoxIcon/props/defaultProps.js +23 -0
  381. package/es/v1/TextBoxIcon/props/propTypes.js +52 -0
  382. package/es/v1/Textarea/Textarea.js +100 -0
  383. package/es/v1/Textarea/props/defaultProps.js +17 -0
  384. package/es/v1/Textarea/props/propTypes.js +31 -0
  385. package/es/v1/Tooltip/Tooltip.js +520 -0
  386. package/es/v1/Tooltip/props/defaultProps.js +4 -0
  387. package/es/v1/Tooltip/props/propTypes.js +5 -0
  388. package/es/v1/Typography/Typography.js +38 -0
  389. package/es/v1/Typography/css/Typography.module.css +380 -0
  390. package/es/v1/Typography/css/cssJSLogic.js +56 -0
  391. package/es/v1/Typography/props/defaultProps.js +8 -0
  392. package/es/v1/Typography/props/propTypes.js +27 -0
  393. package/es/v1/Typography/utils/index.js +50 -0
  394. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
  395. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
  396. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
  397. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +99 -0
  398. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
  399. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
  400. package/es/v1/semantic/Button/Button.js +53 -0
  401. package/es/v1/semantic/Button/props/defaultProps.js +12 -0
  402. package/es/v1/semantic/Button/props/propTypes.js +22 -0
  403. package/es/v1/semantic/index.js +1 -0
  404. package/install.md +10 -10
  405. package/lib/Animation/Animation.js +4 -86
  406. package/lib/Animation/utils.js +94 -0
  407. package/lib/AppContainer/AppContainer.js +5 -0
  408. package/lib/AppContainer/AppContainer.module.css +18 -18
  409. package/lib/Avatar/Avatar.js +11 -10
  410. package/lib/Avatar/Avatar.module.css +175 -175
  411. package/lib/Avatar/__tests__/Avatar.spec.js +188 -0
  412. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  413. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  414. package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
  415. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +145 -0
  416. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -0
  417. package/lib/Button/Button.js +11 -7
  418. package/lib/Button/__tests__/Button.spec.js +129 -62
  419. package/lib/Button/css/Button.module.css +528 -526
  420. package/lib/Button/css/cssJSLogic.js +1 -1
  421. package/lib/Button/props/defaultProps.js +2 -1
  422. package/lib/Button/props/propTypes.js +3 -2
  423. package/lib/Buttongroup/Buttongroup.js +1 -1
  424. package/lib/Buttongroup/Buttongroup.module.css +104 -105
  425. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +44 -0
  426. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -0
  427. package/lib/Card/Card.js +4 -4
  428. package/lib/Card/Card.module.css +20 -20
  429. package/lib/Card/props/propTypes.js +9 -4
  430. package/lib/CheckBox/CheckBox.js +34 -24
  431. package/lib/CheckBox/CheckBox.module.css +157 -157
  432. package/lib/CheckBox/props/propTypes.js +1 -2
  433. package/lib/DateTime/CalendarView.js +0 -0
  434. package/lib/DateTime/DateTime.js +3 -30
  435. package/lib/DateTime/DateTime.module.css +248 -235
  436. package/lib/DateTime/DateTimePopupFooter.js +7 -1
  437. package/lib/DateTime/DateTimePopupHeader.js +4 -1
  438. package/lib/DateTime/DateWidget.js +24 -19
  439. package/lib/DateTime/DateWidget.module.css +38 -38
  440. package/lib/DateTime/DaysRow.js +4 -1
  441. package/lib/DateTime/Time.js +6 -0
  442. package/lib/DateTime/YearView.js +0 -1
  443. package/lib/DateTime/YearView.module.css +98 -98
  444. package/lib/DateTime/common.js +0 -0
  445. package/lib/DateTime/dateFormatUtils/dateFormat.js +16 -2
  446. package/lib/DateTime/dateFormatUtils/dayChange.js +3 -1
  447. package/lib/DateTime/dateFormatUtils/index.js +3 -7
  448. package/lib/DateTime/dateFormatUtils/monthChange.js +3 -1
  449. package/lib/DateTime/dateFormatUtils/timeChange.js +3 -3
  450. package/lib/DateTime/dateFormatUtils/yearChange.js +3 -1
  451. package/lib/DateTime/index.js +0 -0
  452. package/lib/DateTime/objectUtils.js +0 -0
  453. package/lib/DateTime/props/defaultProps.js +10 -2
  454. package/lib/DateTime/props/propTypes.js +64 -8
  455. package/lib/DateTime/typeChecker.js +0 -0
  456. package/lib/DateTime/validator.js +0 -0
  457. package/lib/DropBox/DropBox.js +18 -28
  458. package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -2
  459. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -434
  460. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  461. package/lib/DropBox/DropBoxElement/props/propTypes.js +7 -1
  462. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  463. package/lib/DropBox/css/DropBox.module.css +58 -58
  464. package/lib/DropBox/props/propTypes.js +2 -1
  465. package/lib/DropBox/utils/isMobilePopover.js +25 -0
  466. package/lib/DropDown/DropDown.js +1 -6
  467. package/lib/DropDown/DropDown.module.css +5 -5
  468. package/lib/DropDown/DropDownHeading.js +0 -0
  469. package/lib/DropDown/DropDownHeading.module.css +53 -53
  470. package/lib/DropDown/DropDownItem.js +0 -0
  471. package/lib/DropDown/DropDownItem.module.css +94 -94
  472. package/lib/DropDown/DropDownSearch.js +0 -0
  473. package/lib/DropDown/DropDownSearch.module.css +14 -14
  474. package/lib/DropDown/DropDownSeparator.js +0 -0
  475. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  476. package/lib/DropDown/props/propTypes.js +11 -19
  477. package/lib/Heading/Heading.module.css +4 -4
  478. package/lib/Label/Label.js +6 -2
  479. package/lib/Label/Label.module.css +57 -52
  480. package/lib/Label/LabelColors.module.css +20 -20
  481. package/lib/Label/__tests__/Label.spec.js +106 -0
  482. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  483. package/lib/Label/props/propTypes.js +5 -1
  484. package/lib/Layout/Box.js +0 -1
  485. package/lib/Layout/Container.js +0 -1
  486. package/lib/Layout/Layout.module.css +335 -335
  487. package/lib/Layout/utils.js +0 -0
  488. package/lib/ListItem/ListContainer.js +10 -2
  489. package/lib/ListItem/ListItem.js +0 -0
  490. package/lib/ListItem/ListItem.module.css +205 -216
  491. package/lib/ListItem/props/propTypes.js +9 -4
  492. package/lib/Modal/props/propTypes.js +2 -1
  493. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +12 -11
  494. package/lib/MultiSelect/AdvancedMultiSelect.js +4 -4
  495. package/lib/MultiSelect/MobileHeader/MobileHeader.js +62 -0
  496. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
  497. package/lib/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
  498. package/lib/MultiSelect/MobileHeader/props/propTypes.js +18 -0
  499. package/lib/MultiSelect/MultiSelect.js +183 -180
  500. package/lib/MultiSelect/MultiSelect.module.css +204 -207
  501. package/lib/MultiSelect/MultiSelectHeader.js +1 -2
  502. package/lib/MultiSelect/MultiSelectWithAvatar.js +76 -188
  503. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  504. package/lib/MultiSelect/Suggestions.js +2 -1
  505. package/lib/MultiSelect/props/defaultProps.js +6 -2
  506. package/lib/MultiSelect/props/propTypes.js +163 -215
  507. package/lib/PopOver/PopOver.js +1 -8
  508. package/lib/PopOver/PopOver.module.css +9 -8
  509. package/lib/Popup/Popup.js +0 -0
  510. package/lib/Popup/PositionMapping.json +73 -73
  511. package/lib/Radio/Radio.js +46 -32
  512. package/lib/Radio/Radio.module.css +115 -112
  513. package/lib/Radio/__tests__/Radio.spec.js +250 -0
  514. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  515. package/lib/Radio/props/defaultProps.js +1 -0
  516. package/lib/Radio/props/propTypes.js +10 -2
  517. package/lib/Responsive/CustomResponsive.js +0 -0
  518. package/lib/Responsive/RefWrapper.js +2 -1
  519. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  520. package/lib/ResponsiveDropBox/props/propTypes.js +11 -2
  521. package/lib/Ribbon/Ribbon.js +0 -0
  522. package/lib/Ribbon/Ribbon.module.css +499 -454
  523. package/lib/Ribbon/__tests__/Ribbon.spec.js +59 -0
  524. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  525. package/lib/RippleEffect/RippleEffect.js +5 -4
  526. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  527. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +76 -0
  528. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  529. package/lib/RippleEffect/props/defaultProps.js +1 -0
  530. package/lib/RippleEffect/props/propTypes.js +1 -0
  531. package/lib/Select/GroupSelect.js +13 -8
  532. package/lib/Select/Select.js +19 -9
  533. package/lib/Select/Select.module.css +134 -108
  534. package/lib/Select/SelectWithAvatar.js +2 -1
  535. package/lib/Select/SelectWithIcon.js +5 -3
  536. package/lib/Select/props/defaultProps.js +1 -0
  537. package/lib/Select/props/propTypes.js +29 -8
  538. package/lib/Stencils/Stencils.js +0 -0
  539. package/lib/Stencils/Stencils.module.css +96 -96
  540. package/lib/Stencils/__tests__/Stencils.spec.js +53 -0
  541. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  542. package/lib/Switch/Switch.js +2 -2
  543. package/lib/Switch/Switch.module.css +127 -127
  544. package/lib/Switch/__tests__/Switch.spec.js +163 -0
  545. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  546. package/lib/Tab/Tab.module.css +100 -100
  547. package/lib/Tab/TabContent.module.css +4 -4
  548. package/lib/Tab/TabContentWrapper.js +9 -4
  549. package/lib/Tab/Tabs.js +11 -11
  550. package/lib/Tab/Tabs.module.css +136 -136
  551. package/lib/Tab/props/defaultProps.js +2 -1
  552. package/lib/Tab/props/propTypes.js +3 -2
  553. package/lib/Tag/Tag.js +12 -11
  554. package/lib/Tag/Tag.module.css +253 -254
  555. package/lib/Tag/props/propTypes.js +2 -1
  556. package/lib/TextBox/TextBox.js +19 -11
  557. package/lib/TextBox/TextBox.module.css +197 -158
  558. package/lib/TextBox/props/defaultProps.js +1 -1
  559. package/lib/TextBox/props/propTypes.js +1 -1
  560. package/lib/TextBoxIcon/TextBoxIcon.js +2 -0
  561. package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
  562. package/lib/TextBoxIcon/props/defaultProps.js +1 -0
  563. package/lib/TextBoxIcon/props/propTypes.js +12 -2
  564. package/lib/Textarea/Textarea.js +0 -0
  565. package/lib/Textarea/Textarea.module.css +140 -139
  566. package/lib/Textarea/props/propTypes.js +0 -1
  567. package/lib/Tooltip/Tooltip.js +4 -2
  568. package/lib/Tooltip/Tooltip.module.css +140 -140
  569. package/lib/Tooltip/props/propTypes.js +0 -3
  570. package/lib/common/a11y.module.css +3 -3
  571. package/lib/common/animation.module.css +624 -624
  572. package/lib/common/avatarsizes.module.css +48 -48
  573. package/lib/common/basic.module.css +33 -33
  574. package/lib/common/basicReset.module.css +40 -40
  575. package/lib/common/boxShadow.module.css +33 -33
  576. package/lib/common/common.module.css +524 -524
  577. package/lib/common/customscroll.module.css +142 -91
  578. package/lib/common/reset.module.css +13 -13
  579. package/lib/common/transition.module.css +146 -146
  580. package/lib/deprecated/PortalLayer/PortalLayer.js +2 -1
  581. package/lib/deprecated/PortalLayer/props/propTypes.js +13 -3
  582. package/lib/index.js +10 -1
  583. package/lib/semantic/Button/props/propTypes.js +1 -5
  584. package/lib/semantic/Button/semanticButton.module.css +9 -9
  585. package/lib/utils/Common.js +5 -0
  586. package/lib/utils/dropDownUtils.js +0 -0
  587. package/lib/utils/index.js +1 -19
  588. package/lib/v1/Accordion/Accordion.js +98 -0
  589. package/lib/v1/Accordion/AccordionItem.js +68 -0
  590. package/lib/v1/Accordion/index.js +23 -0
  591. package/lib/v1/Accordion/props/defaultProps.js +20 -0
  592. package/lib/v1/Accordion/props/propTypes.js +45 -0
  593. package/lib/v1/Animation/Animation.js +61 -0
  594. package/lib/v1/Animation/props/defaultProps.js +14 -0
  595. package/lib/v1/Animation/props/propTypes.js +23 -0
  596. package/lib/v1/Animation/utils.js +94 -0
  597. package/lib/v1/AppContainer/AppContainer.js +158 -0
  598. package/lib/v1/AppContainer/props/defaultProps.js +17 -0
  599. package/lib/v1/AppContainer/props/propTypes.js +28 -0
  600. package/lib/v1/Avatar/Avatar.js +191 -0
  601. package/lib/v1/Avatar/props/defaultProps.js +24 -0
  602. package/lib/v1/Avatar/props/propTypes.js +37 -0
  603. package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
  604. package/lib/v1/AvatarTeam/props/defaultProps.js +24 -0
  605. package/lib/v1/AvatarTeam/props/propTypes.js +38 -0
  606. package/lib/v1/Button/Button.js +82 -0
  607. package/lib/v1/Button/props/defaultProps.js +27 -0
  608. package/lib/v1/Button/props/propTypes.js +39 -0
  609. package/lib/v1/Buttongroup/Buttongroup.js +44 -0
  610. package/lib/v1/Buttongroup/props/defaultProps.js +13 -0
  611. package/lib/v1/Buttongroup/props/propTypes.js +20 -0
  612. package/lib/v1/Card/Card.js +269 -0
  613. package/lib/v1/Card/index.js +37 -0
  614. package/lib/v1/Card/props/defaultProps.js +35 -0
  615. package/lib/v1/Card/props/propTypes.js +62 -0
  616. package/lib/v1/CheckBox/CheckBox.js +172 -0
  617. package/lib/v1/CheckBox/props/defaultProps.js +25 -0
  618. package/lib/v1/CheckBox/props/propTypes.js +52 -0
  619. package/lib/v1/DateTime/CalendarView.js +319 -0
  620. package/lib/v1/DateTime/DateTime.js +849 -0
  621. package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
  622. package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
  623. package/lib/v1/DateTime/DateWidget.js +1134 -0
  624. package/lib/v1/DateTime/DaysRow.js +80 -0
  625. package/lib/v1/DateTime/Time.js +254 -0
  626. package/lib/v1/DateTime/YearView.js +325 -0
  627. package/lib/v1/DateTime/index.js +15 -0
  628. package/lib/v1/DateTime/props/defaultProps.js +70 -0
  629. package/lib/v1/DateTime/props/propTypes.js +227 -0
  630. package/lib/v1/DropBox/DropBox.js +109 -0
  631. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +146 -0
  632. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +25 -0
  633. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +62 -0
  634. package/lib/v1/DropBox/props/defaultProps.js +30 -0
  635. package/lib/v1/DropBox/props/propTypes.js +35 -0
  636. package/lib/v1/DropBox/utils/isMobilePopover.js +25 -0
  637. package/lib/v1/DropDown/DropDown.js +74 -0
  638. package/lib/v1/DropDown/DropDownHeading.js +47 -0
  639. package/lib/v1/DropDown/DropDownItem.js +75 -0
  640. package/lib/v1/DropDown/DropDownSearch.js +74 -0
  641. package/lib/v1/DropDown/DropDownSeparator.js +24 -0
  642. package/lib/v1/DropDown/props/defaultProps.js +30 -0
  643. package/lib/v1/DropDown/props/propTypes.js +87 -0
  644. package/lib/v1/Heading/Heading.js +49 -0
  645. package/lib/v1/Heading/props/defaultProps.js +12 -0
  646. package/lib/v1/Heading/props/propTypes.js +22 -0
  647. package/lib/v1/Label/Label.js +51 -0
  648. package/lib/v1/Label/props/defaultProps.js +18 -0
  649. package/lib/v1/Label/props/propTypes.js +30 -0
  650. package/lib/v1/Layout/Box.js +128 -0
  651. package/lib/v1/Layout/Container.js +145 -0
  652. package/lib/v1/Layout/index.js +23 -0
  653. package/lib/v1/Layout/props/defaultProps.js +24 -0
  654. package/lib/v1/Layout/props/propTypes.js +58 -0
  655. package/lib/v1/ListItem/ListContainer.js +128 -0
  656. package/lib/v1/ListItem/ListItem.js +138 -0
  657. package/lib/v1/ListItem/ListItemWithAvatar.js +167 -0
  658. package/lib/v1/ListItem/ListItemWithCheckBox.js +125 -0
  659. package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
  660. package/lib/v1/ListItem/ListItemWithRadio.js +126 -0
  661. package/lib/v1/ListItem/index.js +55 -0
  662. package/lib/v1/ListItem/props/defaultProps.js +109 -0
  663. package/lib/v1/ListItem/props/propTypes.js +196 -0
  664. package/lib/v1/Modal/Modal.js +166 -0
  665. package/lib/v1/Modal/props/defaultProps.js +10 -0
  666. package/lib/v1/Modal/props/propTypes.js +18 -0
  667. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1167 -0
  668. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +634 -0
  669. package/lib/v1/MultiSelect/EmptyState.js +112 -0
  670. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
  671. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
  672. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +18 -0
  673. package/lib/v1/MultiSelect/MultiSelect.js +1186 -0
  674. package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
  675. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +253 -0
  676. package/lib/v1/MultiSelect/SelectedOptions.js +126 -0
  677. package/lib/v1/MultiSelect/Suggestions.js +196 -0
  678. package/lib/v1/MultiSelect/index.js +39 -0
  679. package/lib/v1/MultiSelect/props/defaultProps.js +171 -0
  680. package/lib/v1/MultiSelect/props/propTypes.js +340 -0
  681. package/lib/v1/PopOver/PopOver.js +197 -0
  682. package/lib/v1/PopOver/props/defaultProps.js +15 -0
  683. package/lib/v1/PopOver/props/propTypes.js +66 -0
  684. package/lib/v1/Popup/Popup.js +715 -0
  685. package/lib/v1/Radio/Radio.js +141 -0
  686. package/lib/v1/Radio/props/defaultProps.js +22 -0
  687. package/lib/v1/Radio/props/propTypes.js +51 -0
  688. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
  689. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +11 -0
  690. package/lib/v1/ResponsiveDropBox/props/propTypes.js +27 -0
  691. package/lib/v1/Ribbon/Ribbon.js +44 -0
  692. package/lib/v1/Ribbon/props/defaultProps.js +16 -0
  693. package/lib/v1/Ribbon/props/propTypes.js +22 -0
  694. package/lib/v1/RippleEffect/RippleEffect.js +40 -0
  695. package/lib/v1/RippleEffect/props/defaultProps.js +17 -0
  696. package/lib/v1/RippleEffect/props/propTypes.js +23 -0
  697. package/lib/v1/Select/GroupSelect.js +881 -0
  698. package/lib/v1/Select/Select.js +1023 -0
  699. package/lib/v1/Select/SelectWithAvatar.js +394 -0
  700. package/lib/v1/Select/SelectWithIcon.js +597 -0
  701. package/lib/v1/Select/index.js +39 -0
  702. package/lib/v1/Select/props/defaultProps.js +121 -0
  703. package/lib/v1/Select/props/propTypes.js +310 -0
  704. package/lib/v1/Stencils/Stencils.js +43 -0
  705. package/lib/v1/Stencils/props/defaultProps.js +13 -0
  706. package/lib/v1/Stencils/props/propTypes.js +18 -0
  707. package/lib/v1/Switch/Switch.js +108 -0
  708. package/lib/v1/Switch/props/defaultProps.js +18 -0
  709. package/lib/v1/Switch/props/propTypes.js +39 -0
  710. package/lib/v1/Tab/Tab.js +132 -0
  711. package/lib/v1/Tab/TabContent.js +42 -0
  712. package/lib/v1/Tab/TabContentWrapper.js +47 -0
  713. package/lib/v1/Tab/TabWrapper.js +89 -0
  714. package/lib/v1/Tab/Tabs.js +591 -0
  715. package/lib/v1/Tab/index.js +47 -0
  716. package/lib/v1/Tab/props/defaultProps.js +56 -0
  717. package/lib/v1/Tab/props/propTypes.js +123 -0
  718. package/lib/v1/Tab/v1Tab.module.css +100 -0
  719. package/lib/v1/Tab/v1TabContent.module.css +4 -0
  720. package/lib/v1/Tab/v1Tabs.module.css +137 -0
  721. package/lib/v1/Tag/Tag.js +157 -0
  722. package/lib/v1/Tag/props/defaultProps.js +21 -0
  723. package/lib/v1/Tag/props/propTypes.js +46 -0
  724. package/lib/v1/TextBox/TextBox.js +175 -0
  725. package/lib/v1/TextBox/props/defaultProps.js +27 -0
  726. package/lib/v1/TextBox/props/propTypes.js +62 -0
  727. package/lib/v1/TextBoxIcon/TextBoxIcon.js +198 -0
  728. package/lib/v1/TextBoxIcon/props/defaultProps.js +30 -0
  729. package/lib/v1/TextBoxIcon/props/propTypes.js +71 -0
  730. package/lib/v1/Textarea/Textarea.js +118 -0
  731. package/lib/v1/Textarea/props/defaultProps.js +24 -0
  732. package/lib/v1/Textarea/props/propTypes.js +42 -0
  733. package/lib/v1/Tooltip/Tooltip.js +588 -0
  734. package/lib/v1/Tooltip/props/defaultProps.js +11 -0
  735. package/lib/v1/Tooltip/props/propTypes.js +16 -0
  736. package/lib/v1/Typography/Typography.js +56 -0
  737. package/lib/v1/Typography/css/Typography.module.css +380 -0
  738. package/lib/v1/Typography/css/cssJSLogic.js +48 -0
  739. package/lib/v1/Typography/props/defaultProps.js +15 -0
  740. package/lib/v1/Typography/props/propTypes.js +38 -0
  741. package/lib/v1/Typography/utils/index.js +59 -0
  742. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
  743. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
  744. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
  745. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
  746. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
  747. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
  748. package/lib/v1/semantic/Button/Button.js +63 -0
  749. package/lib/v1/semantic/Button/props/defaultProps.js +19 -0
  750. package/lib/v1/semantic/Button/props/propTypes.js +33 -0
  751. package/lib/v1/semantic/index.js +15 -0
  752. package/package.json +98 -122
  753. package/postPublish.js +8 -8
  754. package/prePublish.js +70 -70
  755. package/propValidationArg.json +12 -0
  756. package/react-cli.config.js +24 -0
  757. package/result.json +1 -1
  758. package/es/deprecated/AdvancedMultiSelect.module.css +0 -127
  759. package/es/deprecated/advancedMultiSelectVariableJson.js +0 -80
  760. package/es/utils/css/compileClassNames.js +0 -28
  761. package/es/utils/css/mergeStyle.js +0 -57
  762. package/es/utils/css/utils.js +0 -24
  763. package/lib/deprecated/AdvancedMultiSelect.module.css +0 -127
  764. package/lib/deprecated/advancedMultiSelectVariableJson.js +0 -82
  765. package/lib/utils/css/compileClassNames.js +0 -37
  766. package/lib/utils/css/mergeStyle.js +0 -69
  767. package/lib/utils/css/utils.js +0 -41
@@ -0,0 +1,588 @@
1
+ "use strict";
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); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _defaultProps = require("./props/defaultProps");
13
+
14
+ var _propTypes = require("./props/propTypes");
15
+
16
+ var _Config = require("../../Provider/Config");
17
+
18
+ var _TooltipModule = _interopRequireDefault(require("../../Tooltip/Tooltip.module.css"));
19
+
20
+ var _ResizeObserver = _interopRequireDefault(require("../../Responsive/ResizeObserver"));
21
+
22
+ var _selectn = _interopRequireDefault(require("selectn"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
+
28
+ 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); } }
29
+
30
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
+
32
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+
34
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
+
36
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
+
38
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
39
+
40
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
+
42
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
43
+
44
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
+
46
+ var Tooltip = /*#__PURE__*/function (_React$Component) {
47
+ _inherits(Tooltip, _React$Component);
48
+
49
+ var _super = _createSuper(Tooltip);
50
+
51
+ function Tooltip(props) {
52
+ var _this;
53
+
54
+ _classCallCheck(this, Tooltip);
55
+
56
+ _this = _super.call(this, props);
57
+ _this.state = {
58
+ title: null,
59
+ left: 0,
60
+ top: 0,
61
+ arrowLeft: 0,
62
+ isArrowRight: null,
63
+ isHtml: false
64
+ };
65
+ _this.handleOver = _this.handleOver.bind(_assertThisInitialized(_this));
66
+ _this.getToolTipDOM = _this.getToolTipDOM.bind(_assertThisInitialized(_this));
67
+ _this.reset = _this.reset.bind(_assertThisInitialized(_this));
68
+ _this.getDirection = document.getElementsByTagName('html')[0];
69
+ _this.leftRightScreenEdge = _this.leftRightScreenEdge.bind(_assertThisInitialized(_this));
70
+ _this.topBottomScreenEdge = _this.topBottomScreenEdge.bind(_assertThisInitialized(_this));
71
+ _this.observer = new _ResizeObserver["default"](_this.onResize);
72
+ _this.isResized = true;
73
+ _this.tooltipContainerClientRect = {};
74
+ _this.tooltipContainerEl = {};
75
+ return _this;
76
+ }
77
+
78
+ _createClass(Tooltip, [{
79
+ key: "onResize",
80
+ value: function onResize(sizeOfObservedEl, observedEl) {
81
+ this.isResized = true;
82
+ }
83
+ }, {
84
+ key: "observeElement",
85
+ value: function observeElement() {
86
+ this.tooltipContainerEl = this.getToolTipContainerEl();
87
+ this.observer.observe(this.tooltipContainerEl);
88
+ }
89
+ }, {
90
+ key: "unObserveElement",
91
+ value: function unObserveElement() {
92
+ this.observer.disconnect();
93
+ }
94
+ }, {
95
+ key: "getClientRectOfContEl",
96
+ value: function getClientRectOfContEl(el) {
97
+ if (this.isResized) {
98
+ return this.setClientRectOfContEl(el);
99
+ }
100
+
101
+ return this.tooltipContainerClientRect;
102
+ }
103
+ }, {
104
+ key: "setClientRectOfContEl",
105
+ value: function setClientRectOfContEl(containerEl) {
106
+ this.isResized = false;
107
+ this.tooltipContainerClientRect = containerEl.getBoundingClientRect();
108
+ return this.tooltipContainerClientRect;
109
+ }
110
+ }, {
111
+ key: "getToolTipContainerEl",
112
+ value: function getToolTipContainerEl() {
113
+ var getTooltipContainer = (0, _Config.getLibraryConfig)('getTooltipContainer');
114
+ var tooltipContainer = typeof getTooltipContainer === 'function' ? getTooltipContainer() : null;
115
+ return tooltipContainer ? tooltipContainer : document.body;
116
+ }
117
+ }, {
118
+ key: "getToolTipDOM",
119
+ value: function getToolTipDOM(el) {
120
+ this.toolTip = el;
121
+ }
122
+ }, {
123
+ key: "reset",
124
+ value: function reset() {
125
+ var title = this.state.title;
126
+
127
+ if (title !== null) {
128
+ this.setState({
129
+ title: null,
130
+ top: 0,
131
+ left: 0
132
+ });
133
+ }
134
+ }
135
+ /* left and right screen edge check for top and bottom tooltip position */
136
+
137
+ }, {
138
+ key: "leftRightScreenEdge",
139
+ value: function leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft) {
140
+ if (tLeft - bodyLeft <= 1) {
141
+ // top & bottom position left side screen edge case
142
+ tLeft = bodyLeft + 2;
143
+ toolTipArrowLeft = parseInt(thisLeft - bodyLeft + thisWidth / 2 - 6);
144
+ } else if (tLeft - bodyLeft + tooltipoffsetWidth > bodyWidth) {
145
+ // top & bottom position right side screen edge case
146
+ rightEdge = tLeft + tooltipoffsetWidth - bodyWidth + 2;
147
+ tLeft = tLeft + bodyLeft - rightEdge;
148
+ toolTipArrowLeft = toolTipArrowLeft - bodyLeft + rightEdge;
149
+ } else if (tLeft + tooltipoffsetWidth + tooltipoffsetWidth >= bodyWidth - 2) {
150
+ // top & bottom center screen tooltip collide with right edge screen
151
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2);
152
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 4);
153
+ }
154
+
155
+ return {
156
+ tLeft: tLeft,
157
+ toolTipArrowLeft: toolTipArrowLeft,
158
+ thisLeft: thisLeft,
159
+ thisWidth: thisWidth,
160
+ tooltipoffsetWidth: tooltipoffsetWidth,
161
+ bodyWidth: bodyWidth,
162
+ rightEdge: rightEdge
163
+ };
164
+ }
165
+ /* top and bottom screen edge check for left and right tooltip position */
166
+
167
+ }, {
168
+ key: "topBottomScreenEdge",
169
+ value: function topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge) {
170
+ if (tTop <= 1) {
171
+ tTop = 2;
172
+ toolTipArrowTop = parseInt(thisTop + thisHeight / 2);
173
+ } else if (tTop + tooltipoffsetHeight > bodyHeight) {
174
+ bottomEdge = tTop + tooltipoffsetHeight - bodyHeight + 2;
175
+ tTop -= bottomEdge;
176
+ toolTipArrowTop += bottomEdge;
177
+ }
178
+
179
+ return {
180
+ tTop: tTop,
181
+ toolTipArrowTop: toolTipArrowTop,
182
+ thisTop: thisTop,
183
+ thisHeight: thisHeight,
184
+ tooltipoffsetHeight: tooltipoffsetHeight,
185
+ bodyHeight: bodyHeight,
186
+ bottomEdge: bottomEdge
187
+ };
188
+ }
189
+ }, {
190
+ key: "handleOver",
191
+ value: function handleOver(e, targetElement) {
192
+ var _this2 = this;
193
+
194
+ var containerElement = this.tooltipContainerEl;
195
+ var element = e.target;
196
+ var titleDiv = element.hasAttribute('data-title') || element.hasAttribute('title') ? element : element.closest('[data-title]') || element.closest('[title]');
197
+
198
+ if (titleDiv) {
199
+ var title = titleDiv.getAttribute('data-title') || titleDiv.getAttribute('title');
200
+ /* if data-title-position is left or right change right and left in rtl case */
201
+
202
+ var isPosition = titleDiv.getAttribute('data-title-position');
203
+ var elem = this.getDirection;
204
+
205
+ if (elem.getAttribute('dir') == 'rtl') {
206
+ if (isPosition == 'left') {
207
+ isPosition = 'right';
208
+ } else if (isPosition == 'right') {
209
+ isPosition = 'left';
210
+ }
211
+ }
212
+
213
+ if (title !== '' && title) {
214
+ titleDiv.setAttribute('data-title', title);
215
+ titleDiv.removeAttribute('title');
216
+ var isInputElementType = element.type === 'text';
217
+ var elementText = isInputElementType ? element.value : element.innerText;
218
+
219
+ if (element.nodeName !== 'I' && elementText && elementText.trim() !== '') {
220
+ var isContentDotted = '';
221
+
222
+ if (element.scrollWidth !== 0) {
223
+ isContentDotted = element.offsetWidth < element.scrollWidth;
224
+
225
+ if (!isContentDotted) {
226
+ isContentDotted = element.offsetHeight < element.scrollHeight;
227
+ } // if (!isContentDotted) {Need to check the code Sivanesh
228
+ // isContentDotted = element.offsetHeight < element.scrollHeight;
229
+ // }
230
+
231
+ } else {
232
+ var offWidth = (0, _selectn["default"])('parentElement.offsetWidth', element) || 0;
233
+ var scrollWidth = (0, _selectn["default"])('parentElement.scrollWidth', element) || 0;
234
+ isContentDotted = offWidth < scrollWidth;
235
+ }
236
+
237
+ var originText = elementText.replace(/\s/g, '').toLowerCase();
238
+ var tooltipText = title.replace(/\s/g, '').toLowerCase();
239
+ var isDefaultTooltip = element.hasAttribute('data-istitle') || element.hasAttribute('istitle') ? element.getAttribute('data-istitle') || element.getAttribute('istitle') : 'false';
240
+ isDefaultTooltip = isDefaultTooltip === 'true';
241
+ var isSameText = originText.indexOf(tooltipText) !== -1 ? true : false;
242
+
243
+ if (!isContentDotted && isSameText && !isDefaultTooltip) {
244
+ return false;
245
+ }
246
+
247
+ if (isContentDotted && titleDiv.getAttribute('data-dottedTitle')) {
248
+ title = titleDiv.getAttribute('data-dottedTitle');
249
+ }
250
+ }
251
+
252
+ var isHtml = titleDiv.getAttribute('data-ishtml');
253
+ var dataTooltipnoArrow = titleDiv.getAttribute('data-tooltip-noarrow') === 'true' ? true : false;
254
+ var dataTooltipWrap = titleDiv.getAttribute('data-title-wrap') === 'true' ? true : false;
255
+ var clientRect = titleDiv.getBoundingClientRect();
256
+ var boxLayout = this.getClientRectOfContEl(containerElement);
257
+ this.setState({
258
+ title: title,
259
+ isHtml: isHtml,
260
+ dataTooltipnoArrow: dataTooltipnoArrow,
261
+ dataTooltipWrap: dataTooltipWrap
262
+ }, function () {
263
+ var tooltip = _this2.toolTip;
264
+
265
+ if (tooltip) {
266
+ /* element top, left, height, width */
267
+ var thisTop = clientRect.top;
268
+ var thisLeft = clientRect.left;
269
+ var thisHeight = clientRect.height;
270
+ var thisWidth = clientRect.width;
271
+ /* box layout left spacing */
272
+
273
+ var bodyLeft = boxLayout.left; // let checkTop = thisTop + thisHeight;
274
+
275
+ /* element left plus element width */
276
+
277
+ var checkLeft = thisLeft + thisWidth;
278
+ var tTop;
279
+ var tLeft;
280
+ var toolTipArrowTop;
281
+ var toolTipArrowLeft;
282
+ var rightEdge;
283
+ var bottomEdge;
284
+ var tooltipLeft;
285
+ /* offset width, height of body */
286
+
287
+ var bodyWidth = containerElement.offsetWidth;
288
+ var bodyHeight = containerElement.offsetHeight;
289
+ var isArrowHorizontal = false;
290
+ var isArrowDown = false;
291
+ var isArrowRight = false;
292
+ var tWidth = '';
293
+ /* overall body height minus element top + element height */
294
+
295
+ var thisBottom = bodyHeight - (thisTop + thisHeight);
296
+ /* overall body width minus element left + element width */
297
+
298
+ var thisRight = bodyWidth - (thisLeft + thisWidth);
299
+ /* tooltip width and height */
300
+
301
+ var tooltipoffsetWidth = tooltip.offsetWidth;
302
+ var tooltipoffsetHeight = tooltip.offsetHeight;
303
+
304
+ if (isPosition) {
305
+ if (isPosition == 'top') {
306
+ /* if top does not have enough space show tooltip in bottom area */
307
+ if (thisTop <= tooltipoffsetHeight + 5) {
308
+ /* if top space is larger than bottom space show tooltip in top area */
309
+ if (thisTop > thisBottom) {
310
+ tTop = parseInt(thisTop - (tooltipoffsetHeight + 10));
311
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
312
+ toolTipArrowTop = parseInt(tooltipoffsetHeight - 4);
313
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
314
+ isArrowDown = true;
315
+ } else {
316
+ /* bottom position */
317
+ tTop = parseInt(thisTop + (thisHeight + 10));
318
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
319
+ toolTipArrowTop = -4;
320
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
321
+ isArrowDown = false;
322
+ }
323
+ } else {
324
+ /* if top have enough space show tooltip in top area */
325
+ tTop = parseInt(thisTop - (tooltipoffsetHeight + 10));
326
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
327
+ toolTipArrowTop = parseInt(tooltipoffsetHeight - 4);
328
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
329
+ isArrowDown = true;
330
+ }
331
+ /* top tooltip left and right corner edge case */
332
+
333
+
334
+ var values = _this2.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
335
+
336
+ tLeft = values.tLeft, toolTipArrowLeft = values.toolTipArrowLeft, thisLeft = values.thisLeft, thisWidth = values.thisWidth, tooltipoffsetWidth = values.tooltipoffsetWidth, bodyWidth = values.bodyWidth, rightEdge = values.rightEdge;
337
+ } else if (isPosition == 'bottom') {
338
+ /* if bottom does not have enough space show tooltip in top area */
339
+ if (thisBottom <= tooltipoffsetHeight + 5) {
340
+ /* if bottom space is larger than top space show tooltip in bottom area */
341
+ if (thisTop > thisBottom) {
342
+ tTop = parseInt(thisTop - (tooltipoffsetHeight + 10));
343
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
344
+ toolTipArrowTop = parseInt(tooltipoffsetHeight - 4);
345
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
346
+ isArrowDown = true;
347
+ } else {
348
+ /* top position */
349
+ tTop = parseInt(thisTop + (thisHeight + 10));
350
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
351
+ toolTipArrowTop = -4;
352
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
353
+ isArrowDown = false;
354
+ }
355
+ } else {
356
+ /* if bottom have enough space show tooltip in bottom area */
357
+ tTop = parseInt(thisTop + (thisHeight + 10));
358
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2 + 2);
359
+ toolTipArrowTop = -4;
360
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth / 2 - 6);
361
+ isArrowDown = false;
362
+ }
363
+ /* bottom tooltip left and right corner edge case */
364
+
365
+
366
+ var _values = _this2.leftRightScreenEdge(tLeft, toolTipArrowLeft, thisLeft, thisWidth, tooltipoffsetWidth, bodyWidth, rightEdge, bodyLeft);
367
+
368
+ tLeft = _values.tLeft, toolTipArrowLeft = _values.toolTipArrowLeft, thisLeft = _values.thisLeft, thisWidth = _values.thisWidth, tooltipoffsetWidth = _values.tooltipoffsetWidth, bodyWidth = _values.bodyWidth, rightEdge = _values.rightEdge;
369
+ } else if (isPosition == 'left') {
370
+ isArrowHorizontal = true;
371
+
372
+ if (thisLeft - bodyLeft <= tooltipoffsetWidth) {
373
+ if (thisLeft - bodyLeft <= thisRight) {
374
+ /* if left does not have enough space show tooltip in right area */
375
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
376
+ tLeft = parseInt(thisLeft + thisWidth + 10);
377
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
378
+ toolTipArrowLeft = -1;
379
+ isArrowRight = false;
380
+ } else {
381
+ /* if left space is larger than right space show tooltip in left (default) area */
382
+ if (bodyLeft + tooltipoffsetWidth >= thisLeft) {
383
+ /* if tooltip width is greater than left space, set left space width to tooltip */
384
+ tWidth = thisLeft;
385
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
386
+ tLeft = parseInt(thisLeft - tWidth - 7);
387
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
388
+ toolTipArrowLeft = parseInt(tWidth - 2);
389
+ isArrowRight = true;
390
+ }
391
+ }
392
+ } else {
393
+ /* if left have enough space show tooltip in left area */
394
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
395
+ tLeft = parseInt(thisLeft - tooltipoffsetWidth - 7);
396
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
397
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth - 2);
398
+ isArrowRight = true;
399
+ }
400
+ /* left tooltip top and bottom corner edge case */
401
+
402
+
403
+ var _values2 = _this2.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
404
+
405
+ tTop = _values2.tTop, toolTipArrowTop = _values2.toolTipArrowTop, thisTop = _values2.thisTop, thisHeight = _values2.thisHeight, tooltipoffsetHeight = _values2.tooltipoffsetHeight, bodyHeight = _values2.bodyHeight, bottomEdge = _values2.bottomEdge;
406
+ } else if (isPosition == 'right') {
407
+ isArrowHorizontal = true;
408
+
409
+ if (thisRight + bodyLeft <= tooltipoffsetWidth) {
410
+ if (thisLeft + bodyLeft <= thisRight) {
411
+ /* if right space is larger than left space show tooltip in right (default) area */
412
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
413
+ tLeft = parseInt(thisLeft + thisWidth + 7);
414
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
415
+ toolTipArrowLeft = -1;
416
+ isArrowRight = false;
417
+ } else {
418
+ /* if right does not have enough space show tooltip in left area */
419
+ if (tooltipoffsetWidth >= thisLeft) {
420
+ /* if tooltip width is greater than left space, set left space width to tooltip */
421
+ tWidth = thisLeft;
422
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
423
+ tLeft = parseInt(thisLeft - tWidth - 7);
424
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
425
+ toolTipArrowLeft = parseInt(tWidth - 2);
426
+ isArrowRight = true;
427
+ } else {
428
+ /* show tooltip in left area without setting left space width to tooltip */
429
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
430
+ tLeft = parseInt(thisLeft - tooltipoffsetWidth - 7);
431
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
432
+ toolTipArrowLeft = parseInt(tooltipoffsetWidth - 2);
433
+ isArrowRight = true;
434
+ }
435
+ }
436
+ } else {
437
+ /* if right have enough space show tooltip in right area */
438
+ tTop = parseInt(thisTop + (thisHeight / 2 - tooltipoffsetHeight / 2));
439
+ tLeft = parseInt(thisLeft + thisWidth + 7);
440
+ toolTipArrowTop = parseInt(tooltipoffsetHeight / 2 - 1);
441
+ toolTipArrowLeft = -1;
442
+ isArrowRight = false;
443
+ }
444
+ /* right tooltip left and right corner edge case */
445
+
446
+
447
+ var _values3 = _this2.topBottomScreenEdge(tTop, toolTipArrowTop, thisTop, thisHeight, tooltipoffsetHeight, bodyHeight, bottomEdge);
448
+
449
+ tTop = _values3.tTop, toolTipArrowTop = _values3.toolTipArrowTop, thisTop = _values3.thisTop, thisHeight = _values3.thisHeight, tooltipoffsetHeight = _values3.tooltipoffsetHeight, bodyHeight = _values3.bodyHeight, bottomEdge = _values3.bottomEdge;
450
+ }
451
+
452
+ _this2.setState({
453
+ top: tTop,
454
+ left: tLeft,
455
+ arrowTop: toolTipArrowTop,
456
+ arrowLeft: toolTipArrowLeft,
457
+ isArrowHorizontal: isArrowHorizontal,
458
+ isArrowDown: isArrowDown,
459
+ isArrowRight: isArrowRight,
460
+ width: tWidth
461
+ });
462
+ } else {
463
+ _this2.setState({
464
+ isArrowRight: null
465
+ });
466
+
467
+ tTop = parseInt(thisTop + thisHeight + 10);
468
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth / 2 - thisWidth / 2) + 2);
469
+ tooltipLeft = parseInt(tooltipoffsetWidth / 2 - 6);
470
+
471
+ if (tLeft - bodyLeft <= 1) {
472
+ // default left side screen edge case
473
+ tooltipLeft = parseInt(thisLeft - bodyLeft + thisWidth / 2 - 6);
474
+ tLeft = bodyLeft + 2;
475
+ } else if (tLeft - bodyLeft + tooltipoffsetWidth > bodyWidth) {
476
+ checkLeft = tLeft + tooltipoffsetWidth - bodyWidth + 2;
477
+ tooltipLeft = tooltipLeft - bodyLeft + checkLeft;
478
+ tLeft = tLeft + bodyLeft - checkLeft;
479
+ } else if (tLeft + tooltipoffsetWidth >= bodyWidth - 2) {
480
+ // default center screen tooltip collide with right edge screen
481
+ tLeft = parseInt(thisLeft - (tooltipoffsetWidth - thisWidth) / 2);
482
+ tooltipLeft = parseInt(tooltipoffsetWidth / 2 - 4);
483
+ }
484
+
485
+ isArrowDown = false;
486
+
487
+ if (tTop + tooltipoffsetHeight > bodyHeight) {
488
+ /* if bottom does not have enough space show tooltip in top area */
489
+ if (thisTop > thisBottom) {
490
+ isArrowDown = true;
491
+ tTop -= tooltipoffsetHeight + thisHeight + 20;
492
+ }
493
+ }
494
+
495
+ if (isArrowDown) {
496
+ var arrowTop = tooltipoffsetHeight - 4;
497
+
498
+ _this2.setState({
499
+ top: tTop,
500
+ left: tLeft,
501
+ arrowLeft: tooltipLeft,
502
+ arrowTop: arrowTop,
503
+ isArrowDown: true,
504
+ isArrowHorizontal: isArrowHorizontal
505
+ });
506
+ } else {
507
+ _this2.setState({
508
+ top: tTop,
509
+ left: tLeft,
510
+ arrowLeft: tooltipLeft,
511
+ arrowTop: -4,
512
+ isArrowDown: false,
513
+ isArrowHorizontal: isArrowHorizontal
514
+ });
515
+ }
516
+ }
517
+ }
518
+ });
519
+ titleDiv.addEventListener('click', this.reset);
520
+ titleDiv.addEventListener('mouseup', this.reset);
521
+ titleDiv.addEventListener('mouseleave', this.reset);
522
+ }
523
+ } else {
524
+ this.reset();
525
+ }
526
+ }
527
+ }, {
528
+ key: "render",
529
+ value: function render() {
530
+ var _this$state = this.state,
531
+ title = _this$state.title,
532
+ left = _this$state.left,
533
+ top = _this$state.top,
534
+ arrowLeft = _this$state.arrowLeft,
535
+ arrowTop = _this$state.arrowTop,
536
+ isArrowDown = _this$state.isArrowDown,
537
+ isArrowRight = _this$state.isArrowRight,
538
+ isArrowHorizontal = _this$state.isArrowHorizontal,
539
+ width = _this$state.width,
540
+ isHtml = _this$state.isHtml,
541
+ dataTooltipnoArrow = _this$state.dataTooltipnoArrow,
542
+ dataTooltipWrap = _this$state.dataTooltipWrap;
543
+ var _this$props = this.props,
544
+ dataId = _this$props.dataId,
545
+ customClass = _this$props.customClass;
546
+ var arrowStyle = isArrowHorizontal ? isArrowRight ? _TooltipModule["default"].arrowRight : _TooltipModule["default"].arrowLeft : isArrowDown ? _TooltipModule["default"].arrowDown : _TooltipModule["default"].arrowUp;
547
+ title = title ? title.trim() : null;
548
+ var tooltipCss = "".concat(_TooltipModule["default"].tooltipcont, " ").concat(dataTooltipWrap ? _TooltipModule["default"].tooltipWrapCont : _TooltipModule["default"].tooltipNormalCont);
549
+ return title ? /*#__PURE__*/_react["default"].createElement("div", {
550
+ className: "".concat(customClass, " ").concat(_TooltipModule["default"].tooltiptext),
551
+ style: {
552
+ left: left,
553
+ top: top,
554
+ width: width
555
+ },
556
+ ref: this.getToolTipDOM,
557
+ "data-id": dataId,
558
+ "data-test-id": dataId
559
+ }, !dataTooltipnoArrow ? /*#__PURE__*/_react["default"].createElement("span", {
560
+ className: "".concat(_TooltipModule["default"].tooltiparrow, " ").concat(arrowStyle),
561
+ style: {
562
+ left: arrowLeft,
563
+ top: arrowTop
564
+ }
565
+ }) : null, isHtml ? /*#__PURE__*/_react["default"].createElement("div", {
566
+ className: tooltipCss,
567
+ dangerouslySetInnerHTML: {
568
+ __html: title
569
+ }
570
+ }) : /*#__PURE__*/_react["default"].createElement("div", {
571
+ className: tooltipCss
572
+ }, title)) : null;
573
+ }
574
+ }]);
575
+
576
+ return Tooltip;
577
+ }(_react["default"].Component);
578
+
579
+ exports["default"] = Tooltip;
580
+ Tooltip.propTypes = _propTypes.propTypes;
581
+ Tooltip.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
582
+ // Tooltip.docs = {
583
+ // componentGroup: 'Atom',
584
+ // folderName: 'Style Guide',
585
+ // description: ' ',
586
+ // external: true
587
+ // };
588
+ // }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultProps = void 0;
7
+ var defaultProps = {
8
+ dataId: 'toolTip',
9
+ customClass: ''
10
+ };
11
+ exports.defaultProps = defaultProps;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.propTypes = void 0;
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var propTypes = {
13
+ dataId: _propTypes["default"].string,
14
+ customClass: _propTypes["default"].string
15
+ };
16
+ exports.propTypes = propTypes;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("./props/defaultProps");
11
+
12
+ var _propTypes = require("./props/propTypes");
13
+
14
+ var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
15
+
16
+ var _utils = require("@zohodesk/utils");
17
+
18
+ var _TypographyModule = _interopRequireDefault(require("./css/Typography.module.css"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
+
24
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
+
26
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
+
28
+ var Typography = function Typography(props) {
29
+ var children = props.children,
30
+ $ui_tagName = props.$ui_tagName,
31
+ $i18n_dataTitle = props.$i18n_dataTitle,
32
+ testId = props.testId,
33
+ customId = props.customId,
34
+ $tagAttributes_text = props.$tagAttributes_text,
35
+ $a11yAttributes_text = props.$a11yAttributes_text,
36
+ customStyle = props.customStyle;
37
+ var style = (0, _utils.mergeStyle)(_TypographyModule["default"], customStyle);
38
+
39
+ var _cssJSLogic = (0, _cssJSLogic2["default"])({
40
+ props: props,
41
+ style: style
42
+ }),
43
+ typographyClass = _cssJSLogic.typographyClass;
44
+
45
+ return /*#__PURE__*/_react["default"].createElement($ui_tagName, _objectSpread(_objectSpread({
46
+ className: typographyClass,
47
+ 'data-title': $i18n_dataTitle,
48
+ 'data-id': customId,
49
+ 'data-test-id': testId
50
+ }, $tagAttributes_text), $a11yAttributes_text), children);
51
+ };
52
+
53
+ Typography.propTypes = _propTypes.propTypes;
54
+ Typography.defaultProps = _defaultProps.defaultProps;
55
+ var _default = Typography;
56
+ exports["default"] = _default;