@zohodesk/components 1.2.18 → 1.2.20

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 (356) hide show
  1. package/.cli/AppearanceThemeValidationExcludeFiles.js +1 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/PropUnificationExcludeFilesArray.js +231 -0
  4. package/.cli/propValidation_report.html +24 -2
  5. package/PropValidationExcludeFilesArray.js +1 -0
  6. package/README.md +10 -0
  7. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +3 -0
  8. package/assets/Appearance/light/mode/Component_LightMode.module.css +3 -0
  9. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +3 -0
  10. package/es/Avatar/Avatar.js +2 -1
  11. package/es/Avatar/Avatar.module.css +12 -0
  12. package/es/AvatarTeam/AvatarTeam.module.css +2 -0
  13. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +1 -0
  14. package/es/Button/css/Button.module.css +9 -1
  15. package/es/Buttongroup/Buttongroup.module.css +2 -0
  16. package/es/CheckBox/CheckBox.module.css +2 -0
  17. package/es/DateTime/DateTime.module.css +1 -0
  18. package/es/DateTime/dateFormatUtils/dateFormat.js +6 -1
  19. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  20. package/es/DropBox/css/DropBox.module.css +1 -0
  21. package/es/DropDown/DropDownHeading.module.css +6 -0
  22. package/es/DropDown/DropDownItem.module.css +3 -0
  23. package/es/Label/Label.module.css +1 -0
  24. package/es/ListItem/ListContainer.js +3 -2
  25. package/es/ListItem/ListItem.module.css +21 -0
  26. package/es/MultiSelect/Suggestions.js +2 -1
  27. package/es/PopOver/PopOver.module.css +1 -0
  28. package/es/Radio/Radio.module.css +1 -0
  29. package/es/Ribbon/Ribbon.module.css +4 -0
  30. package/es/Select/Select.js +3 -2
  31. package/es/Switch/Switch.js +2 -2
  32. package/es/Switch/Switch.module.css +2 -0
  33. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +22 -22
  34. package/es/Tag/Tag.module.css +6 -0
  35. package/es/TextBox/TextBox.module.css +20 -0
  36. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -0
  37. package/es/Textarea/Textarea.module.css +6 -0
  38. package/es/Tooltip/Tooltip.module.css +4 -0
  39. package/es/common/customscroll.module.css +37 -0
  40. package/es/v1/Accordion/Accordion.js +2 -2
  41. package/es/v1/Accordion/AccordionItem.js +2 -2
  42. package/es/v1/Accordion/props/defaultProps.js +12 -0
  43. package/es/v1/Accordion/props/propTypes.js +33 -0
  44. package/es/v1/Animation/Animation.js +2 -2
  45. package/es/v1/Animation/props/defaultProps.js +7 -0
  46. package/es/v1/Animation/props/propTypes.js +12 -0
  47. package/es/v1/AppContainer/AppContainer.js +2 -2
  48. package/es/v1/AppContainer/props/defaultProps.js +10 -0
  49. package/es/v1/AppContainer/props/propTypes.js +17 -0
  50. package/es/v1/Avatar/Avatar.js +4 -3
  51. package/es/v1/Avatar/props/defaultProps.js +17 -0
  52. package/es/v1/Avatar/props/propTypes.js +26 -0
  53. package/es/v1/AvatarTeam/AvatarTeam.js +3 -3
  54. package/es/v1/AvatarTeam/props/defaultProps.js +17 -0
  55. package/es/v1/AvatarTeam/props/propTypes.js +27 -0
  56. package/es/v1/Button/Button.js +2 -2
  57. package/es/v1/Button/props/defaultProps.js +18 -0
  58. package/es/v1/Button/props/propTypes.js +27 -0
  59. package/es/v1/Buttongroup/Buttongroup.js +2 -2
  60. package/es/v1/Buttongroup/props/defaultProps.js +6 -0
  61. package/es/v1/Buttongroup/props/propTypes.js +9 -0
  62. package/es/v1/Card/Card.js +2 -2
  63. package/es/v1/Card/props/defaultProps.js +25 -0
  64. package/es/v1/Card/props/propTypes.js +48 -0
  65. package/es/v1/CheckBox/CheckBox.js +4 -4
  66. package/es/v1/CheckBox/props/defaultProps.js +18 -0
  67. package/es/v1/CheckBox/props/propTypes.js +40 -0
  68. package/es/v1/DropBox/DropBox.js +2 -2
  69. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -2
  70. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +18 -0
  71. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +51 -0
  72. package/es/v1/DropBox/props/defaultProps.js +14 -0
  73. package/es/v1/DropBox/props/propTypes.js +16 -0
  74. package/es/v1/DropDown/DropDown.js +2 -2
  75. package/es/v1/DropDown/DropDownHeading.js +2 -2
  76. package/es/v1/DropDown/DropDownItem.js +2 -2
  77. package/es/v1/DropDown/DropDownSearch.js +2 -2
  78. package/es/v1/DropDown/DropDownSeparator.js +1 -1
  79. package/es/v1/DropDown/props/defaultProps.js +20 -0
  80. package/es/v1/DropDown/props/propTypes.js +65 -0
  81. package/es/v1/Heading/Heading.js +2 -2
  82. package/es/v1/Heading/props/defaultProps.js +5 -0
  83. package/es/v1/Heading/props/propTypes.js +11 -0
  84. package/es/v1/Label/Label.js +2 -2
  85. package/es/v1/Label/props/defaultProps.js +11 -0
  86. package/es/v1/Label/props/propTypes.js +19 -0
  87. package/es/v1/Layout/Box.js +2 -2
  88. package/es/v1/Layout/Container.js +2 -2
  89. package/es/v1/Layout/props/defaultProps.js +16 -0
  90. package/es/v1/Layout/props/propTypes.js +46 -0
  91. package/es/v1/ListItem/ListContainer.js +5 -4
  92. package/es/v1/ListItem/ListItem.js +2 -2
  93. package/es/v1/ListItem/ListItemWithAvatar.js +2 -2
  94. package/es/v1/ListItem/ListItemWithCheckBox.js +2 -2
  95. package/es/v1/ListItem/ListItemWithIcon.js +2 -2
  96. package/es/v1/ListItem/ListItemWithRadio.js +2 -2
  97. package/es/v1/ListItem/props/defaultProps.js +97 -0
  98. package/es/v1/ListItem/props/propTypes.js +202 -0
  99. package/es/v1/Modal/Modal.js +88 -116
  100. package/es/v1/Modal/props/defaultProps.js +3 -0
  101. package/es/v1/Modal/props/propTypes.js +7 -0
  102. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
  103. package/es/v1/MultiSelect/AdvancedMultiSelect.js +2 -2
  104. package/es/v1/MultiSelect/EmptyState.js +2 -2
  105. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +2 -2
  106. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
  107. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +7 -0
  108. package/es/v1/MultiSelect/MultiSelect.js +3 -3
  109. package/es/v1/MultiSelect/MultiSelectHeader.js +2 -2
  110. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +3 -3
  111. package/es/v1/MultiSelect/SelectedOptions.js +2 -2
  112. package/es/v1/MultiSelect/Suggestions.js +4 -3
  113. package/es/v1/MultiSelect/props/defaultProps.js +153 -0
  114. package/es/v1/MultiSelect/props/propTypes.js +312 -0
  115. package/es/v1/PopOver/PopOver.js +2 -2
  116. package/es/v1/PopOver/props/defaultProps.js +7 -0
  117. package/es/v1/PopOver/props/propTypes.js +53 -0
  118. package/es/v1/Radio/Radio.js +4 -4
  119. package/es/v1/Radio/props/defaultProps.js +14 -0
  120. package/es/v1/Radio/props/propTypes.js +33 -0
  121. package/es/v1/Responsive/CustomResponsive.js +2 -2
  122. package/es/v1/Responsive/Responsive.js +2 -2
  123. package/es/v1/Responsive/props/defaultProps.js +13 -0
  124. package/es/v1/Responsive/props/propTypes.js +25 -0
  125. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -2
  126. package/es/v1/ResponsiveDropBox/props/defaultProps.js +4 -0
  127. package/es/v1/ResponsiveDropBox/props/propTypes.js +8 -0
  128. package/es/v1/Ribbon/Ribbon.js +3 -3
  129. package/es/v1/Ribbon/props/defaultProps.js +9 -0
  130. package/es/v1/Ribbon/props/propTypes.js +11 -0
  131. package/es/v1/RippleEffect/RippleEffect.js +2 -2
  132. package/es/v1/RippleEffect/props/defaultProps.js +9 -0
  133. package/es/v1/RippleEffect/props/propTypes.js +11 -0
  134. package/es/v1/Select/GroupSelect.js +2 -2
  135. package/es/v1/Select/Select.js +5 -4
  136. package/es/v1/Select/SelectWithAvatar.js +2 -2
  137. package/es/v1/Select/SelectWithIcon.js +2 -2
  138. package/es/v1/Select/props/defaultProps.js +119 -0
  139. package/es/v1/Select/props/propTypes.js +288 -0
  140. package/es/v1/Stencils/Stencils.js +2 -2
  141. package/es/v1/Stencils/props/defaultProps.js +6 -0
  142. package/es/v1/Stencils/props/propTypes.js +7 -0
  143. package/es/v1/Switch/Switch.js +4 -4
  144. package/es/v1/Switch/props/defaultProps.js +11 -0
  145. package/es/v1/Switch/props/propTypes.js +28 -0
  146. package/es/v1/Tab/Tab.js +2 -2
  147. package/es/v1/Tab/TabContent.js +2 -2
  148. package/es/v1/Tab/TabContentWrapper.js +2 -2
  149. package/es/v1/Tab/TabWrapper.js +2 -2
  150. package/es/v1/Tab/Tabs.js +2 -2
  151. package/es/v1/Tab/props/defaultProps.js +44 -0
  152. package/es/v1/Tab/props/propTypes.js +106 -0
  153. package/es/v1/Tag/Tag.js +2 -2
  154. package/es/v1/Tag/props/defaultProps.js +14 -0
  155. package/es/v1/Tag/props/propTypes.js +35 -0
  156. package/es/v1/TextBox/TextBox.js +2 -2
  157. package/es/v1/TextBox/props/defaultProps.js +19 -0
  158. package/es/v1/TextBox/props/propTypes.js +55 -0
  159. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -2
  160. package/es/v1/TextBoxIcon/props/defaultProps.js +22 -0
  161. package/es/v1/TextBoxIcon/props/propTypes.js +51 -0
  162. package/es/v1/Textarea/Textarea.js +2 -2
  163. package/es/v1/Textarea/props/defaultProps.js +17 -0
  164. package/es/v1/Textarea/props/propTypes.js +31 -0
  165. package/es/v1/Tooltip/Tooltip.js +2 -2
  166. package/es/v1/Tooltip/props/defaultProps.js +4 -0
  167. package/es/v1/Tooltip/props/propTypes.js +5 -0
  168. package/es/v1/Typography/css/Typography.module.css +83 -112
  169. package/es/v1/Typography/css/cssJSLogic.js +6 -2
  170. package/es/v1/Typography/props/propTypes.js +2 -2
  171. package/es/v1/Typography/utils/index.js +50 -0
  172. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  173. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
  174. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
  175. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +2 -2
  176. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
  177. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
  178. package/es/v1/semantic/Button/Button.js +2 -2
  179. package/es/v1/semantic/Button/props/defaultProps.js +12 -0
  180. package/es/v1/semantic/Button/props/propTypes.js +22 -0
  181. package/lib/Avatar/Avatar.js +2 -1
  182. package/lib/Avatar/Avatar.module.css +12 -0
  183. package/lib/AvatarTeam/AvatarTeam.module.css +2 -0
  184. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +1 -0
  185. package/lib/Button/css/Button.module.css +9 -1
  186. package/lib/Buttongroup/Buttongroup.module.css +2 -0
  187. package/lib/CheckBox/CheckBox.module.css +2 -0
  188. package/lib/DateTime/DateTime.module.css +1 -0
  189. package/lib/DateTime/dateFormatUtils/dateFormat.js +6 -1
  190. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  191. package/lib/DropBox/css/DropBox.module.css +1 -0
  192. package/lib/DropDown/DropDownHeading.module.css +6 -0
  193. package/lib/DropDown/DropDownItem.module.css +3 -0
  194. package/lib/Label/Label.module.css +1 -0
  195. package/lib/ListItem/ListContainer.js +10 -2
  196. package/lib/ListItem/ListItem.module.css +21 -0
  197. package/lib/MultiSelect/Suggestions.js +2 -1
  198. package/lib/PopOver/PopOver.module.css +1 -0
  199. package/lib/Radio/Radio.module.css +1 -0
  200. package/lib/Ribbon/Ribbon.module.css +4 -0
  201. package/lib/Select/Select.js +3 -2
  202. package/lib/Switch/Switch.js +2 -2
  203. package/lib/Switch/Switch.module.css +2 -0
  204. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +22 -22
  205. package/lib/Tag/Tag.module.css +6 -0
  206. package/lib/TextBox/TextBox.module.css +20 -0
  207. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -0
  208. package/lib/Textarea/Textarea.module.css +6 -0
  209. package/lib/Tooltip/Tooltip.module.css +4 -0
  210. package/lib/common/customscroll.module.css +37 -0
  211. package/lib/v1/Accordion/Accordion.js +2 -2
  212. package/lib/v1/Accordion/AccordionItem.js +2 -2
  213. package/lib/v1/Accordion/props/defaultProps.js +20 -0
  214. package/lib/v1/Accordion/props/propTypes.js +45 -0
  215. package/lib/v1/Animation/Animation.js +2 -2
  216. package/lib/v1/Animation/props/defaultProps.js +14 -0
  217. package/lib/v1/Animation/props/propTypes.js +23 -0
  218. package/lib/v1/AppContainer/AppContainer.js +2 -2
  219. package/lib/v1/AppContainer/props/defaultProps.js +17 -0
  220. package/lib/v1/AppContainer/props/propTypes.js +28 -0
  221. package/lib/v1/Avatar/Avatar.js +4 -3
  222. package/lib/v1/Avatar/props/defaultProps.js +24 -0
  223. package/lib/v1/Avatar/props/propTypes.js +37 -0
  224. package/lib/v1/AvatarTeam/AvatarTeam.js +3 -3
  225. package/lib/v1/AvatarTeam/props/defaultProps.js +24 -0
  226. package/lib/v1/AvatarTeam/props/propTypes.js +38 -0
  227. package/lib/v1/Button/Button.js +2 -2
  228. package/lib/v1/Button/props/defaultProps.js +27 -0
  229. package/lib/v1/Button/props/propTypes.js +39 -0
  230. package/lib/v1/Buttongroup/Buttongroup.js +2 -2
  231. package/lib/v1/Buttongroup/props/defaultProps.js +13 -0
  232. package/lib/v1/Buttongroup/props/propTypes.js +20 -0
  233. package/lib/v1/Card/Card.js +2 -2
  234. package/lib/v1/Card/props/defaultProps.js +35 -0
  235. package/lib/v1/Card/props/propTypes.js +62 -0
  236. package/lib/v1/CheckBox/CheckBox.js +4 -4
  237. package/lib/v1/CheckBox/props/defaultProps.js +25 -0
  238. package/lib/v1/CheckBox/props/propTypes.js +51 -0
  239. package/lib/v1/DropBox/DropBox.js +2 -2
  240. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -2
  241. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +25 -0
  242. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +62 -0
  243. package/lib/v1/DropBox/props/defaultProps.js +30 -0
  244. package/lib/v1/DropBox/props/propTypes.js +35 -0
  245. package/lib/v1/DropDown/DropDown.js +2 -2
  246. package/lib/v1/DropDown/DropDownHeading.js +2 -2
  247. package/lib/v1/DropDown/DropDownItem.js +2 -2
  248. package/lib/v1/DropDown/DropDownSearch.js +2 -2
  249. package/lib/v1/DropDown/DropDownSeparator.js +1 -1
  250. package/lib/v1/DropDown/props/defaultProps.js +30 -0
  251. package/lib/v1/DropDown/props/propTypes.js +87 -0
  252. package/lib/v1/Heading/Heading.js +2 -2
  253. package/lib/v1/Heading/props/defaultProps.js +12 -0
  254. package/lib/v1/Heading/props/propTypes.js +22 -0
  255. package/lib/v1/Label/Label.js +2 -2
  256. package/lib/v1/Label/props/defaultProps.js +18 -0
  257. package/lib/v1/Label/props/propTypes.js +30 -0
  258. package/lib/v1/Layout/Box.js +2 -2
  259. package/lib/v1/Layout/Container.js +2 -2
  260. package/lib/v1/Layout/props/defaultProps.js +24 -0
  261. package/lib/v1/Layout/props/propTypes.js +58 -0
  262. package/lib/v1/ListItem/ListContainer.js +12 -4
  263. package/lib/v1/ListItem/ListItem.js +2 -2
  264. package/lib/v1/ListItem/ListItemWithAvatar.js +2 -2
  265. package/lib/v1/ListItem/ListItemWithCheckBox.js +2 -2
  266. package/lib/v1/ListItem/ListItemWithIcon.js +2 -2
  267. package/lib/v1/ListItem/ListItemWithRadio.js +2 -2
  268. package/lib/v1/ListItem/props/defaultProps.js +109 -0
  269. package/lib/v1/ListItem/props/propTypes.js +196 -0
  270. package/lib/v1/Modal/Modal.js +120 -166
  271. package/lib/v1/Modal/props/defaultProps.js +10 -0
  272. package/lib/v1/Modal/props/propTypes.js +18 -0
  273. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
  274. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +2 -2
  275. package/lib/v1/MultiSelect/EmptyState.js +2 -2
  276. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +2 -2
  277. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
  278. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +18 -0
  279. package/lib/v1/MultiSelect/MultiSelect.js +3 -3
  280. package/lib/v1/MultiSelect/MultiSelectHeader.js +2 -2
  281. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +3 -3
  282. package/lib/v1/MultiSelect/SelectedOptions.js +2 -2
  283. package/lib/v1/MultiSelect/Suggestions.js +4 -3
  284. package/lib/v1/MultiSelect/props/defaultProps.js +169 -0
  285. package/lib/v1/MultiSelect/props/propTypes.js +340 -0
  286. package/lib/v1/PopOver/PopOver.js +2 -2
  287. package/lib/v1/PopOver/props/defaultProps.js +15 -0
  288. package/lib/v1/PopOver/props/propTypes.js +66 -0
  289. package/lib/v1/Radio/Radio.js +4 -4
  290. package/lib/v1/Radio/props/defaultProps.js +21 -0
  291. package/lib/v1/Radio/props/propTypes.js +44 -0
  292. package/lib/v1/Responsive/CustomResponsive.js +2 -2
  293. package/lib/v1/Responsive/Responsive.js +2 -2
  294. package/lib/v1/Responsive/props/defaultProps.js +23 -0
  295. package/lib/v1/Responsive/props/propTypes.js +39 -0
  296. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -2
  297. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +11 -0
  298. package/lib/v1/ResponsiveDropBox/props/propTypes.js +27 -0
  299. package/lib/v1/Ribbon/Ribbon.js +3 -3
  300. package/lib/v1/Ribbon/props/defaultProps.js +16 -0
  301. package/lib/v1/Ribbon/props/propTypes.js +22 -0
  302. package/lib/v1/RippleEffect/RippleEffect.js +2 -2
  303. package/lib/v1/RippleEffect/props/defaultProps.js +16 -0
  304. package/lib/v1/RippleEffect/props/propTypes.js +22 -0
  305. package/lib/v1/Select/GroupSelect.js +2 -2
  306. package/lib/v1/Select/Select.js +5 -4
  307. package/lib/v1/Select/SelectWithAvatar.js +2 -2
  308. package/lib/v1/Select/SelectWithIcon.js +2 -2
  309. package/lib/v1/Select/props/defaultProps.js +120 -0
  310. package/lib/v1/Select/props/propTypes.js +310 -0
  311. package/lib/v1/Stencils/Stencils.js +2 -2
  312. package/lib/v1/Stencils/props/defaultProps.js +13 -0
  313. package/lib/v1/Stencils/props/propTypes.js +18 -0
  314. package/lib/v1/Switch/Switch.js +4 -4
  315. package/lib/v1/Switch/props/defaultProps.js +18 -0
  316. package/lib/v1/Switch/props/propTypes.js +39 -0
  317. package/lib/v1/Tab/Tab.js +2 -2
  318. package/lib/v1/Tab/TabContent.js +2 -2
  319. package/lib/v1/Tab/TabContentWrapper.js +2 -2
  320. package/lib/v1/Tab/TabWrapper.js +2 -2
  321. package/lib/v1/Tab/Tabs.js +2 -2
  322. package/lib/v1/Tab/props/defaultProps.js +55 -0
  323. package/lib/v1/Tab/props/propTypes.js +121 -0
  324. package/lib/v1/Tag/Tag.js +2 -2
  325. package/lib/v1/Tag/props/defaultProps.js +21 -0
  326. package/lib/v1/Tag/props/propTypes.js +46 -0
  327. package/lib/v1/TextBox/TextBox.js +2 -2
  328. package/lib/v1/TextBox/props/defaultProps.js +26 -0
  329. package/lib/v1/TextBox/props/propTypes.js +62 -0
  330. package/lib/v1/TextBoxIcon/TextBoxIcon.js +2 -2
  331. package/lib/v1/TextBoxIcon/props/defaultProps.js +29 -0
  332. package/lib/v1/TextBoxIcon/props/propTypes.js +70 -0
  333. package/lib/v1/Textarea/Textarea.js +2 -2
  334. package/lib/v1/Textarea/props/defaultProps.js +24 -0
  335. package/lib/v1/Textarea/props/propTypes.js +42 -0
  336. package/lib/v1/Tooltip/Tooltip.js +2 -2
  337. package/lib/v1/Tooltip/props/defaultProps.js +11 -0
  338. package/lib/v1/Tooltip/props/propTypes.js +16 -0
  339. package/lib/v1/Typography/css/Typography.module.css +83 -112
  340. package/lib/v1/Typography/css/cssJSLogic.js +7 -3
  341. package/lib/v1/Typography/props/propTypes.js +2 -2
  342. package/lib/v1/Typography/utils/index.js +59 -0
  343. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  344. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
  345. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
  346. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +2 -2
  347. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
  348. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
  349. package/lib/v1/semantic/Button/Button.js +2 -2
  350. package/lib/v1/semantic/Button/props/defaultProps.js +19 -0
  351. package/lib/v1/semantic/Button/props/propTypes.js +33 -0
  352. package/package.json +12 -10
  353. package/propValidationArg.json +8 -0
  354. package/result.json +1 -1
  355. package/es/v1/Typography/css/letterSpacingMap.js +0 -12
  356. package/lib/v1/Typography/css/letterSpacingMap.js +0 -20
@@ -5,208 +5,162 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = Modal;
9
9
 
10
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _reactDom = _interopRequireDefault(require("react-dom"));
13
13
 
14
- var _defaultProps = require("../../Modal/props/defaultProps");
14
+ var _useEffectCallOnlyAfterState = _interopRequireDefault(require("@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState"));
15
+
16
+ var _defaultProps = require("./props/defaultProps");
15
17
 
16
- var _propTypes = require("../../Modal/props/propTypes");
18
+ var _propTypes = require("./props/propTypes");
17
19
 
18
20
  var _AppContainerModule = _interopRequireDefault(require("../../AppContainer/AppContainer.module.css"));
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
23
 
22
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
25
 
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
27
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
31
29
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
31
 
34
- 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); }; }
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
33
 
36
- 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); }
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
35
 
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
36
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
37
 
40
- 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; } }
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
41
39
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
41
 
44
42
  var createdPortalIds = [];
45
43
  var newPortalPrefix = 'CPortal';
46
44
  var portalChildrenTopIndexValues;
47
45
 
48
- var Modal = /*#__PURE__*/function (_React$Component) {
49
- _inherits(Modal, _React$Component);
50
-
51
- var _super = _createSuper(Modal);
52
-
53
- function Modal(props) {
54
- var _this;
55
-
56
- _classCallCheck(this, Modal);
57
-
58
- _this = _super.call(this, props);
59
- _this.handleAddPortalId = _this.handleAddPortalId.bind(_assertThisInitialized(_this));
60
- _this.handleRemovePortalId = _this.handleRemovePortalId.bind(_assertThisInitialized(_this));
61
- _this.handleInsertPortalDiv = _this.handleInsertPortalDiv.bind(_assertThisInitialized(_this));
62
- _this.getPortalDiv = _this.getPortalDiv.bind(_assertThisInitialized(_this));
63
- _this.state = {
64
- isMounted: false
65
- };
66
- _this.portalId = props.portalId;
67
- _this.setRef = _this.setRef.bind(_assertThisInitialized(_this));
68
- _this.ref = null; // this.portalDiv = document.createDocumentFragment();
46
+ function Modal(props) {
47
+ var children = props.children,
48
+ isActive = props.isActive,
49
+ autoZIndexNeeded = props.autoZIndexNeeded,
50
+ propPortalId = props.portalId;
51
+
52
+ var _useState = (0, _react.useState)(false),
53
+ _useState2 = _slicedToArray(_useState, 2),
54
+ isMounted = _useState2[0],
55
+ setMounted = _useState2[1];
56
+
57
+ var portalId = (0, _react.useRef)(propPortalId);
58
+ var ref = (0, _react.useRef)(null);
59
+ var isZIndexAppendNeeded = (0, _react.useRef)();
60
+ var zIndex = (0, _react.useRef)();
61
+ var modalRoot = (0, _react.useRef)();
62
+ var newModalRoot = (0, _react.useRef)();
63
+ var containerDiv = (0, _react.useRef)();
64
+ var portalDiv = (0, _react.useRef)(); // document.createDocumentFragment()
65
+
66
+ var isCustomPortalId = (0, _react.useRef)();
67
+ var setRef = (0, _react.useCallback)(function (ele) {
68
+ ref.current = ele;
69
+
70
+ if (isZIndexAppendNeeded.current) {
71
+ ref.current.style.zIndex = zIndex.current;
72
+ isZIndexAppendNeeded.current = false;
73
+ }
74
+ }, []);
75
+
76
+ function getPortalDiv() {
77
+ modalRoot.current = propPortalId ? document.querySelector("[data-portal=".concat(propPortalId, "]")) : "";
78
+
79
+ if (!modalRoot.current) {
80
+ portalId.current = handleAddPortalId();
81
+ newModalRoot.current = document.createElement('div');
82
+ newModalRoot.current.className = _AppContainerModule["default"].container;
83
+ newModalRoot.current.setAttribute('data-portal', portalId.current);
84
+ containerDiv.current && containerDiv.current.appendChild(newModalRoot.current);
85
+ modalRoot.current = newModalRoot.current;
86
+ }
69
87
 
70
- return _this;
88
+ return modalRoot.current;
71
89
  }
72
90
 
73
- _createClass(Modal, [{
74
- key: "setRef",
75
- value: function setRef(ele) {
76
- this.ref = ele;
77
-
78
- if (this.isZIndexAppendNeeded) {
79
- this.ref.style.zIndex = this.zIndex;
80
- this.isZIndexAppendNeeded = false;
81
- }
82
- }
83
- }, {
84
- key: "getPortalDiv",
85
- value: function getPortalDiv() {
86
- this.modalRoot = this.props.portalId ? document.querySelector("[data-portal=".concat(this.props.portalId, "]")) : '';
87
-
88
- if (!this.modalRoot) {
89
- this.portalId = this.handleAddPortalId();
90
- this.newModalRoot = document.createElement('div');
91
- this.newModalRoot.className = _AppContainerModule["default"].container;
92
- this.newModalRoot.setAttribute('data-portal', this.portalId);
93
- this.containerDiv && this.containerDiv.appendChild(this.newModalRoot);
94
- this.modalRoot = this.newModalRoot;
91
+ (0, _react.useEffect)(function () {
92
+ containerDiv.current = document.getElementsByTagName("desk")[0] ? document.getElementsByTagName('desk')[0] : document.getElementsByTagName('body')[0];
93
+ portalDiv.current = getPortalDiv();
94
+ setMounted(true);
95
+ setTimeout(function () {
96
+ handleInsertPortalDiv();
97
+ });
98
+ return function () {
99
+ // modalRoot.current && modalRoot.current.removeChild(portalDiv.current);
100
+ if (newModalRoot.current) {
101
+ containerDiv.current && containerDiv.current.removeChild(newModalRoot.current);
102
+ handleRemovePortalId();
95
103
  }
96
104
 
97
- return this.modalRoot;
98
- }
99
- }, {
100
- key: "componentDidMount",
101
- value: function componentDidMount() {
102
- var _this2 = this;
103
-
104
- this.containerDiv = document.getElementsByTagName('desk')[0] ? document.getElementsByTagName('desk')[0] : document.getElementsByTagName('body')[0];
105
- this.portalDiv = this.getPortalDiv();
106
- this.setState({
107
- isMounted: true
108
- }, function () {
109
- _this2.handleInsertPortalDiv();
110
- });
111
- }
112
- }, {
113
- key: "componentWillUnmount",
114
- value: function componentWillUnmount() {
115
- //this.modalRoot && this.modalRoot.removeChild(this.portalDiv);
116
- if (this.newModalRoot) {
117
- this.containerDiv && this.containerDiv.removeChild(this.newModalRoot);
118
- this.handleRemovePortalId();
119
- }
120
-
121
- if (this.zIndex && portalChildrenTopIndexValues === this.zIndex) {
105
+ if (zIndex.current && portalChildrenTopIndexValues === zIndex.current) {
122
106
  portalChildrenTopIndexValues -= 1;
123
107
  }
108
+ };
109
+ }, []);
110
+ (0, _useEffectCallOnlyAfterState["default"])(function () {
111
+ if (isActive) {
112
+ handleInsertPortalDiv();
113
+ } else if (zIndex.current && portalChildrenTopIndexValues === zIndex.current) {
114
+ portalChildrenTopIndexValues -= 1;
124
115
  }
125
- }, {
126
- key: "componentDidUpdate",
127
- value: function componentDidUpdate(prevProps) {
128
- if (prevProps.isActive != this.props.isActive) {
129
- if (this.props.isActive) {
130
- this.handleInsertPortalDiv();
131
- } else if (this.zIndex && portalChildrenTopIndexValues === this.zIndex) {
132
- portalChildrenTopIndexValues -= 1;
133
- }
134
- }
135
- }
136
- }, {
137
- key: "handleInsertPortalDiv",
138
- value: function handleInsertPortalDiv() {
139
- var autoZIndexNeeded = this.props.autoZIndexNeeded;
140
-
141
- if (autoZIndexNeeded) {
142
- var isActive = this.props.isActive;
143
-
144
- if (isActive) {
145
- var newHighValue = Number(portalChildrenTopIndexValues || 10) + 1;
146
- portalChildrenTopIndexValues = newHighValue;
147
- this.zIndex = newHighValue;
148
-
149
- if (this.ref) {
150
- this.ref.style.zIndex = newHighValue;
151
- } else {
152
- this.isZIndexAppendNeeded = true;
153
- }
154
- }
116
+ }, [isActive]);
117
+
118
+ function handleInsertPortalDiv() {
119
+ if (autoZIndexNeeded && isActive) {
120
+ var newHighValue = Number(portalChildrenTopIndexValues || 10) + 1;
121
+ portalChildrenTopIndexValues = newHighValue;
122
+ zIndex.current = newHighValue;
123
+
124
+ if (ref.current) {
125
+ ref.current.style.zIndex = newHighValue;
126
+ } else {
127
+ isZIndexAppendNeeded.current = true;
155
128
  }
156
129
  }
157
- }, {
158
- key: "handleAddPortalId",
159
- value: function handleAddPortalId() {
160
- var createdPortalIdsLen = createdPortalIds.length;
161
- var newPortalId = createdPortalIdsLen ? createdPortalIds[createdPortalIdsLen - 1] + 1 : 1;
162
- createdPortalIds.push(newPortalId);
163
- this.portalId = newPortalId;
164
- this.isCustomPortalId = true;
165
- return "".concat(newPortalPrefix).concat(newPortalId);
166
- }
167
- }, {
168
- key: "handleRemovePortalId",
169
- value: function handleRemovePortalId() {
170
- var _this3 = this;
171
-
172
- if (this.isCustomPortalId) {
173
- createdPortalIds = createdPortalIds.filter(function (id) {
174
- return id !== _this3.portalId;
175
- });
176
- }
130
+ }
131
+
132
+ function handleAddPortalId() {
133
+ var createdPortalIdsLen = createdPortalIds.length;
134
+ var newPortalId = createdPortalIdsLen ? createdPortalIds[createdPortalIdsLen - 1] + 1 : 1;
135
+ createdPortalIds.push(newPortalId);
136
+ portalId.current = newPortalId;
137
+ isCustomPortalId.current = true;
138
+ return "".concat(newPortalPrefix).concat(newPortalId);
139
+ }
140
+
141
+ function handleRemovePortalId() {
142
+ if (isCustomPortalId.current) {
143
+ createdPortalIds = createdPortalIds.filter(function (id) {
144
+ return id !== portalId.current;
145
+ });
177
146
  }
178
- }, {
179
- key: "render",
180
- value: function render() {
181
- var children = this.props.children,
182
- isMounted = this.state.isMounted;
183
- var Element = children.type,
184
- elementProps = children.props;
185
-
186
- if (isMounted) {
187
- if (Element) {
188
- return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(Element, _extends({
189
- ref: this.setRef
190
- }, elementProps)), this.portalDiv);
191
- }
192
-
193
- return null;
194
- }
147
+ }
195
148
 
196
- return null;
149
+ var Element = children.type,
150
+ elementProps = children.props;
151
+
152
+ if (isMounted) {
153
+ if (Element) {
154
+ return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(Element, _extends({
155
+ ref: setRef
156
+ }, elementProps)), portalDiv.current);
197
157
  }
198
- }]);
199
158
 
200
- return Modal;
201
- }(_react["default"].Component);
159
+ return null;
160
+ }
161
+
162
+ return null;
163
+ }
202
164
 
203
- exports["default"] = Modal;
204
165
  Modal.defaultProps = _defaultProps.defaultProps;
205
- Modal.propTypes = _propTypes.propTypes; // if (__DOCS__) {
206
- // Modal.docs = {
207
- // componentGroup: 'Atom',
208
- // folderName: 'Style Guide',
209
- // external: false,
210
- // description: ' '
211
- // };
212
- // }
166
+ Modal.propTypes = _propTypes.propTypes;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultProps = void 0;
7
+ var defaultProps = {
8
+ portalId: 'portal1'
9
+ };
10
+ exports.defaultProps = defaultProps;
@@ -0,0 +1,18 @@
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
+ autoZIndexNeeded: _propTypes["default"].bool,
14
+ children: _propTypes["default"].node,
15
+ portalId: _propTypes["default"].string,
16
+ isActive: _propTypes["default"].bool
17
+ };
18
+ exports.propTypes = propTypes;
@@ -9,9 +9,9 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/Loader/Loader"));
17
17
 
@@ -9,9 +9,9 @@ exports["default"] = exports.AdvancedMultiSelectComponent = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _MultiSelect = require("./MultiSelect");
17
17
 
@@ -9,9 +9,9 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _MultiSelectModule = _interopRequireDefault(require("../../MultiSelect/MultiSelect.module.css"));
17
17
 
@@ -11,9 +11,9 @@ var _Button = _interopRequireDefault(require("../../Button/Button"));
11
11
 
12
12
  var _Layout = require("../../Layout");
13
13
 
14
- var _defaultProps = require("../../../MultiSelect/MobileHeader/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
- var _propTypes = require("../../../MultiSelect/MobileHeader/props/propTypes");
16
+ var _propTypes = require("./props/propTypes");
17
17
 
18
18
  var _MobileHeaderModule = _interopRequireDefault(require("../../../MultiSelect/MobileHeader/MobileHeader.module.css"));
19
19
 
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultProps = void 0;
7
+ var defaultProps = {
8
+ selectedOptions: [],
9
+ i18nKeys: {
10
+ mobilePrimaryButtonText: 'Done',
11
+ mobileSecondaryButtonText: 'Close'
12
+ }
13
+ };
14
+ exports.defaultProps = defaultProps;
@@ -0,0 +1,18 @@
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
+ i18nKeys: _propTypes["default"].object,
14
+ onClick: _propTypes["default"].func,
15
+ selectedOptions: _propTypes["default"].array,
16
+ children: _propTypes["default"].node
17
+ };
18
+ exports.propTypes = propTypes;
@@ -9,11 +9,11 @@ exports["default"] = exports.MultiSelectComponent = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
- var _defaultProps2 = require("../../MultiSelect/MobileHeader/props/defaultProps");
16
+ var _defaultProps2 = require("./MobileHeader/props/defaultProps");
17
17
 
18
18
  var _Popup = _interopRequireDefault(require("../Popup/Popup"));
19
19
 
@@ -9,9 +9,9 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _ListItemWithIcon = _interopRequireDefault(require("../ListItem/ListItemWithIcon"));
17
17
 
@@ -9,11 +9,11 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
- var _defaultProps2 = require("../../MultiSelect/MobileHeader/props/defaultProps");
16
+ var _defaultProps2 = require("./MobileHeader/props/defaultProps");
17
17
 
18
18
  var _MultiSelect = require("./MultiSelect");
19
19
 
@@ -9,9 +9,9 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _Tag = _interopRequireDefault(require("../Tag/Tag"));
17
17
 
@@ -9,9 +9,9 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _propTypes = require("../../MultiSelect/props/propTypes");
12
+ var _propTypes = require("./props/propTypes");
13
13
 
14
- var _defaultProps = require("../../MultiSelect/props/defaultProps");
14
+ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _ListItem = _interopRequireDefault(require("../ListItem/ListItem"));
17
17
 
@@ -110,7 +110,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
110
110
  var isHighlight = hoverOption === index || id === hoverId ? true : false;
111
111
  var list_a11y = Object.assign({}, a11y, {
112
112
  ariaSelected: isActive,
113
- ariaLabel: value
113
+ ariaLabel: value,
114
+ 'data-a11y-list-active': isHighlight
114
115
  });
115
116
 
116
117
  var commonProps = _objectSpread({