@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
@@ -0,0 +1,12 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ children: PropTypes.node,
4
+ delayClassName: PropTypes.string,
5
+ enterDuration: PropTypes.number,
6
+ exitDuration: PropTypes.number,
7
+ isActive: PropTypes.bool,
8
+ name: PropTypes.oneOf(['zoomIn', 'scaleIn', 'fadeIn', 'slideLeft', 'slideDown', 'skewIn', 'default', 'none']),
9
+ onEntered: PropTypes.func,
10
+ onExit: PropTypes.func,
11
+ unmountOnExit: PropTypes.bool
12
+ };
@@ -1,8 +1,8 @@
1
1
  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); }
2
2
 
3
3
  import React, { useEffect, useRef, useLayoutEffect } from 'react';
4
- import { defaultProps } from '../../AppContainer/props/defaultProps';
5
- import { propTypes } from '../../AppContainer/props/propTypes';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
6
6
  import { Container, Box } from '../Layout';
7
7
  import Tooltip from '../Tooltip/Tooltip';
8
8
  import '../../common/basic.module.css';
@@ -0,0 +1,10 @@
1
+ export const defaultProps = {
2
+ dataId: 'AppContainer',
3
+ tagName: 'div',
4
+ className: '',
5
+ tooltipClass: '',
6
+ tooltipParentClass: '',
7
+ customProps: {},
8
+ dataSelectorId: 'appContainer',
9
+ needTooltip: true
10
+ };
@@ -0,0 +1,17 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
4
+ dataId: PropTypes.string,
5
+ dataSelectorId: PropTypes.string,
6
+ eleRef: PropTypes.func,
7
+ tagName: PropTypes.string,
8
+ className: PropTypes.string,
9
+ needTooltip: PropTypes.bool,
10
+ tooltipClass: PropTypes.string,
11
+ tooltipParentClass: PropTypes.string,
12
+ customProps: PropTypes.shape({
13
+ ContainerProps: PropTypes.object,
14
+ TooltipProps: PropTypes.object,
15
+ ExtraProps: PropTypes.object
16
+ })
17
+ };
@@ -2,8 +2,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
5
- import { defaultProps } from '../../Avatar/props/defaultProps';
6
- import { propTypes } from '../../Avatar/props/propTypes';
5
+ import { defaultProps } from './props/defaultProps';
6
+ import { propTypes } from './props/propTypes';
7
7
  import { getInitial } from '../../utils/getInitial';
8
8
  import AvatarSize from '../../Provider/AvatarSize';
9
9
  import style from '../../Avatar/Avatar.module.css';
@@ -111,7 +111,8 @@ function Avatar(props) {
111
111
  "data-id": dataId,
112
112
  "data-test-id": dataId,
113
113
  onClick: onClick,
114
- "data-selector-id": dataSelectorId
114
+ "data-selector-id": dataSelectorId,
115
+ tabIndex: onClick ? 0 : null
115
116
  }, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/React.createElement("span", {
116
117
  className: `${style.initial}`,
117
118
  "data-id": `${dataId}_AvatarInitial`,
@@ -0,0 +1,17 @@
1
+ export const defaultProps = {
2
+ needTitle: true,
3
+ palette: 'primary',
4
+ shape: 'circle',
5
+ size: 'medium',
6
+ src: null,
7
+ title: null,
8
+ dataId: 'Avatar',
9
+ needBorder: true,
10
+ borderOnActive: false,
11
+ borderOnHover: false,
12
+ customProps: {},
13
+ isAnimate: true,
14
+ dataSelectorId: 'avatar',
15
+ needInnerBorder: false,
16
+ needDefaultBorder: false
17
+ };
@@ -0,0 +1,26 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ dataId: PropTypes.string,
4
+ dataSelectorId: PropTypes.string,
5
+ initial: PropTypes.string,
6
+ name: PropTypes.string.isRequired,
7
+ needBorder: PropTypes.bool,
8
+ needTitle: PropTypes.bool,
9
+ onClick: PropTypes.func,
10
+ palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
11
+ shape: PropTypes.oneOf(['circle', 'square']),
12
+ size: PropTypes.oneOf(['xxsmall', 'small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge']),
13
+ src: PropTypes.string,
14
+ textPalette: PropTypes.oneOf(['white', 'black']),
15
+ title: PropTypes.string,
16
+ customClass: PropTypes.string,
17
+ alternateSrc: PropTypes.string,
18
+ borderOnActive: PropTypes.bool,
19
+ borderOnHover: PropTypes.bool,
20
+ customProps: PropTypes.shape({
21
+ AvatarProps: PropTypes.object
22
+ }),
23
+ isAnimate: PropTypes.bool,
24
+ needInnerBorder: PropTypes.bool,
25
+ needDefaultBorder: PropTypes.bool
26
+ };
@@ -1,8 +1,8 @@
1
1
  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); }
2
2
 
3
3
  import React from 'react';
4
- import { defaultProps } from '../../AvatarTeam/props/defaultProps';
5
- import { propTypes } from '../../AvatarTeam/props/propTypes';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
6
6
  import Avatar from '../Avatar/Avatar';
7
7
  import style from '../../AvatarTeam/AvatarTeam.module.css';
8
8
  /* once avatar support firstname lastname and pattern
@@ -62,7 +62,7 @@ export default function AvatarTeam(props) {
62
62
  needBorder: needBorder,
63
63
  needDefaultBorder: needDefaultBorder
64
64
  }, AvatarProps)), /*#__PURE__*/React.createElement("span", {
65
- className: `${style.team} ${isFilled ? `${style[`${palette}Filled`]}` : style.nofill}
65
+ className: `${style.team} ${isFilled ? `${style[`${palette}Filled`]}` : style.nofill}
66
66
  ${style[`${size}team`]} ${customAvatarTeam}`
67
67
  }));
68
68
  }
@@ -0,0 +1,17 @@
1
+ export const defaultProps = {
2
+ isFilled: false,
3
+ palette: 'primary',
4
+ size: 'medium',
5
+ src: null,
6
+ title: null,
7
+ dataId: 'avatarTeamComp',
8
+ dataSelectorId: 'avatarTeam',
9
+ needTitle: true,
10
+ customClass: {},
11
+ borderOnActive: false,
12
+ borderOnHover: false,
13
+ customProps: {},
14
+ needInnerBorder: true,
15
+ needBorder: true,
16
+ needDefaultBorder: true
17
+ };
@@ -0,0 +1,27 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ dataId: PropTypes.string,
4
+ dataSelectorId: PropTypes.string,
5
+ isFilled: PropTypes.bool,
6
+ name: PropTypes.string.isRequired,
7
+ needTitle: PropTypes.bool,
8
+ onClick: PropTypes.func,
9
+ palette: PropTypes.oneOf(['primary', 'secondary', 'info']),
10
+ size: PropTypes.oneOf(['xxsmall', 'small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge']),
11
+ src: PropTypes.string,
12
+ textPalette: PropTypes.oneOf(['white', 'black']),
13
+ needBorder: PropTypes.bool,
14
+ title: PropTypes.string,
15
+ customClass: PropTypes.shape({
16
+ customAvatar: PropTypes.string,
17
+ customAvatarTeam: PropTypes.string
18
+ }),
19
+ borderOnActive: PropTypes.bool,
20
+ borderOnHover: PropTypes.bool,
21
+ needInnerBorder: PropTypes.bool,
22
+ needDefaultBorder: PropTypes.bool,
23
+ customProps: PropTypes.shape({
24
+ AvatarTeamProps: PropTypes.object,
25
+ AvatarProps: PropTypes.object
26
+ })
27
+ };
@@ -1,8 +1,8 @@
1
1
  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); }
2
2
 
3
3
  import React from 'react';
4
- import { defaultProps } from '../../Button/props/defaultProps';
5
- import { propTypes } from '../../Button/props/propTypes';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
6
6
  import cssJSLogic from '../../Button/css/cssJSLogic';
7
7
  import { mergeStyle } from '@zohodesk/utils';
8
8
  import style from '../../Button/css/Button.module.css';
@@ -0,0 +1,18 @@
1
+ import { dummyFunction } from '../../../utils/dummyFunction';
2
+ export const defaultProps = {
3
+ children: null,
4
+ dataId: 'buttonComp',
5
+ dataSelectorId: 'button',
6
+ disabled: false,
7
+ isBold: true,
8
+ needAppearance: true,
9
+ onClick: dummyFunction,
10
+ palette: 'primary',
11
+ rounded: false,
12
+ size: 'medium',
13
+ status: 'none',
14
+ text: 'Button',
15
+ customClass: {},
16
+ customProps: {},
17
+ a11y: {}
18
+ };
@@ -0,0 +1,27 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ children: PropTypes.node,
4
+ dataId: PropTypes.string,
5
+ dataSelectorId: PropTypes.string,
6
+ disabled: PropTypes.bool,
7
+ getRef: PropTypes.func,
8
+ isBold: PropTypes.bool,
9
+ needAppearance: PropTypes.bool,
10
+ onClick: PropTypes.func,
11
+ palette: PropTypes.oneOf(['plainPrimary', 'plainSecondary', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'successFilled', 'info', 'tertiaryFilled']),
12
+ rounded: PropTypes.bool,
13
+ size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
14
+ status: PropTypes.oneOf(['loading', 'success', 'none']),
15
+ text: PropTypes.string,
16
+ title: PropTypes.string,
17
+ customClass: PropTypes.shape({
18
+ customButton: PropTypes.string,
19
+ customStatus: PropTypes.string,
20
+ customStatusSize: PropTypes.string
21
+ }),
22
+ customStyle: PropTypes.object,
23
+ customProps: PropTypes.object,
24
+ id: PropTypes.string,
25
+ a11y: PropTypes.object
26
+ };
27
+ export default propTypes;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { defaultProps } from '../../Buttongroup/props/defaultProps';
3
- import { propTypes } from '../../Buttongroup/props/propTypes';
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  import style from '../../Buttongroup/Buttongroup.module.css';
5
5
  export default function Buttongroup(props) {
6
6
  const {
@@ -0,0 +1,6 @@
1
+ export const defaultProps = {
2
+ buttonPosition: 'left',
3
+ children: null,
4
+ dataId: 'ButtonGroup',
5
+ dataSelectorId: 'buttonGroup'
6
+ };
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ buttonPosition: PropTypes.oneOf(['left', 'right', 'center']),
4
+ children: PropTypes.node,
5
+ type: PropTypes.string.isRequired,
6
+ customClass: PropTypes.string,
7
+ dataId: PropTypes.string,
8
+ dataSelectorId: PropTypes.string
9
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
3
- import { CardHeader_propTypes, CardContent_propTypes, Card_propTypes, CardFooter_propTypes } from '../../Card/props/propTypes';
4
- import { Card_defaultProps, CardHeader_defaultProps, CardContent_defaultProps, CardFooter_defaultProps } from '../../Card/props/defaultProps';
3
+ import { CardHeader_propTypes, CardContent_propTypes, Card_propTypes, CardFooter_propTypes } from './props/propTypes';
4
+ import { Card_defaultProps, CardHeader_defaultProps, CardContent_defaultProps, CardFooter_defaultProps } from './props/defaultProps';
5
5
  import { Container, Box } from '../Layout';
6
6
  import { getLibraryConfig } from '../../Provider/Config';
7
7
  import style from '../../Card/Card.module.css';
@@ -0,0 +1,25 @@
1
+ export const Card_defaultProps = {
2
+ isScrollAttribute: false,
3
+ // isScrollShadow: true,
4
+ onClick: null,
5
+ scrollAt: '10',
6
+ a11y: {},
7
+ isPercentageScroll: false
8
+ };
9
+ export const CardHeader_defaultProps = {
10
+ dataId: 'CardHeader',
11
+ customClass: '',
12
+ dataSelectorId: 'cardHeader'
13
+ };
14
+ export const CardContent_defaultProps = {
15
+ isScrollAttribute: false,
16
+ scroll: 'vertical',
17
+ dataId: 'CardContent',
18
+ customClass: '',
19
+ dataSelectorId: 'cardContent'
20
+ };
21
+ export const CardFooter_defaultProps = {
22
+ dataId: 'CardFooter',
23
+ customClass: '',
24
+ dataSelectorId: 'cardFooter'
25
+ };
@@ -0,0 +1,48 @@
1
+ import PropTypes from 'prop-types';
2
+ export const CardHeader_propTypes = {
3
+ children: PropTypes.element,
4
+ dataId: PropTypes.string,
5
+ isScroll: PropTypes.bool,
6
+ customClass: PropTypes.string,
7
+ dataSelectorId: PropTypes.string
8
+ };
9
+ export const CardContent_propTypes = {
10
+ children: PropTypes.node,
11
+ dataId: PropTypes.string,
12
+ eleRef: PropTypes.func,
13
+ isScrollAttribute: PropTypes.bool,
14
+ onScroll: PropTypes.func,
15
+ scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
16
+ shrink: PropTypes.bool,
17
+ customClass: PropTypes.string,
18
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both']),
19
+ dataSelectorId: PropTypes.string
20
+ };
21
+ export const Card_propTypes = {
22
+ childTypes: PropTypes.object,
23
+ children: PropTypes.node,
24
+ dataId: PropTypes.string,
25
+ fetchData: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
26
+ from: PropTypes.number,
27
+ isScrollAttribute: PropTypes.bool,
28
+ // isScrollShadow: PropTypes.bool,
29
+ limit: PropTypes.number,
30
+ noMoreData: PropTypes.bool,
31
+ noNeedUpScroll: PropTypes.bool,
32
+ onClick: PropTypes.func,
33
+ onScroll: PropTypes.func,
34
+ scrollAt: PropTypes.string,
35
+ customClass: PropTypes.string,
36
+ htmlId: PropTypes.string,
37
+ a11y: PropTypes.shape({
38
+ role: PropTypes.string
39
+ }),
40
+ isPercentageScroll: PropTypes.bool,
41
+ eleRef: PropTypes.func
42
+ };
43
+ export const CardFooter_propTypes = {
44
+ children: PropTypes.node,
45
+ customClass: PropTypes.string,
46
+ dataId: PropTypes.string,
47
+ dataSelectorId: PropTypes.string
48
+ };
@@ -1,8 +1,8 @@
1
1
  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); }
2
2
 
3
3
  import React from 'react';
4
- import { propTypes } from '../../CheckBox/props/propTypes';
5
- import { defaultProps } from '../../CheckBox/props/defaultProps';
4
+ import { propTypes } from './props/propTypes';
5
+ import { defaultProps } from './props/defaultProps';
6
6
  import Label from '../Label/Label';
7
7
  import { Container, Box } from '../Layout';
8
8
  import CssProvider from '../../Provider/CssProvider';
@@ -67,7 +67,7 @@ const CheckBox = props => {
67
67
  isInline: text ? false : true,
68
68
  alignBox: "row",
69
69
  align: "vertical",
70
- className: `${style.container} ${accessMode} ${isReadOnly || disabled ? '' : `${style[palette]}`}
70
+ className: `${style.container} ${accessMode} ${isReadOnly || disabled ? '' : `${style[palette]}`}
71
71
  ${checked ? `${style[`checked${palette}`]}` : ''} ${customCheckBox}`,
72
72
  "data-title": toolTip,
73
73
  onClick: isReadOnly || disabled ? null : onChange,
@@ -139,7 +139,7 @@ const CheckBox = props => {
139
139
  clipped: isClipped,
140
140
  variant: variant,
141
141
  customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
142
- ${checked && active ? `${style[`checked${palette}Label`]}` : ''}
142
+ ${checked && active ? `${style[`checked${palette}Label`]}` : ''}
143
143
  ${accessMode} ${customLabel}`,
144
144
  title: toolTip ? toolTip : text
145
145
  }, LabelProps))));
@@ -0,0 +1,18 @@
1
+ export const defaultProps = {
2
+ checked: false,
3
+ disabled: false,
4
+ isReadOnly: false,
5
+ active: false,
6
+ labelPalette: 'default',
7
+ labelSize: 'medium',
8
+ palette: 'primary',
9
+ size: 'medium',
10
+ isFilled: true,
11
+ variant: 'default',
12
+ dataId: 'checkBox',
13
+ activeStyle: 'tick',
14
+ customClass: {},
15
+ a11y: {},
16
+ isClipped: true,
17
+ customProps: {}
18
+ };
@@ -0,0 +1,40 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ active: PropTypes.bool,
4
+ activeStyle: PropTypes.oneOf(['tick', 'minus']),
5
+ checked: PropTypes.bool,
6
+ dataId: PropTypes.string,
7
+ dataSelectorId: PropTypes.string,
8
+ disabled: PropTypes.bool,
9
+ disabledTitle: PropTypes.string,
10
+ getRef: PropTypes.func,
11
+ id: PropTypes.string,
12
+ isFilled: PropTypes.bool,
13
+ isClipped: PropTypes.bool,
14
+ isReadOnly: PropTypes.bool,
15
+ labelPalette: PropTypes.oneOf(['default', 'primary', 'secondary', 'danger', 'mandatory']),
16
+ labelSize: PropTypes.oneOf(['small', 'medium', 'large']),
17
+ name: PropTypes.string,
18
+ onChange: PropTypes.func,
19
+ palette: PropTypes.oneOf(['primary', 'danger']),
20
+ size: PropTypes.oneOf(['small', 'medium']),
21
+ text: PropTypes.string,
22
+ title: PropTypes.string,
23
+ variant: PropTypes.oneOf(['default', 'primary']),
24
+ customClass: PropTypes.shape({
25
+ customCheckBox: PropTypes.string,
26
+ customLabel: PropTypes.string,
27
+ customCBoxSize: PropTypes.string,
28
+ customTickSize: PropTypes.string
29
+ }),
30
+ a11y: PropTypes.shape({
31
+ ariaLabel: PropTypes.string,
32
+ ariaLabelledby: PropTypes.string,
33
+ ariaHidden: PropTypes.bool,
34
+ ariaChecked: PropTypes.bool
35
+ }),
36
+ customProps: PropTypes.shape({
37
+ CheckBoxProps: PropTypes.object,
38
+ LabelProps: PropTypes.object
39
+ })
40
+ };
@@ -7,8 +7,8 @@ import { getLibraryConfig } from '../../Provider/Config';
7
7
  import LibraryContext from '../../Provider/LibraryContextInit';
8
8
  import cssJSLogic from '../../DropBox/css/cssJSLogic';
9
9
  import DropBoxElement from './DropBoxElement/DropBoxElement';
10
- import { DropBoxDefaultProps } from '../../DropBox/props/defaultProps';
11
- import { DropBoxPropTypes } from '../../DropBox/props/propTypes';
10
+ import { DropBoxDefaultProps } from './props/defaultProps';
11
+ import { DropBoxPropTypes } from './props/propTypes';
12
12
  import { stopPropagation } from '../../utils/Common';
13
13
  import style from '../../DropBox/css/DropBox.module.css';
14
14
  export default function DropBox(props) {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import useDropboxPosCalc from '../../../DropBox/DropBoxElement/useDropboxPosCalc';
3
3
  import cssJSLogic from '../../../DropBox/DropBoxElement/css/cssJSLogic';
4
4
  import { positionMapping } from '../../../DropBox/DropBoxPositionMapping.json';
5
- import { DropBoxElementDefaultProps } from '../../../DropBox/DropBoxElement/props/defaultProps';
6
- import { DropBoxElementPropTypes } from '../../../DropBox/DropBoxElement/props/propTypes';
5
+ import { DropBoxElementDefaultProps } from './props/defaultProps';
6
+ import { DropBoxElementPropTypes } from './props/propTypes';
7
7
  import { mergeStyle } from '@zohodesk/utils';
8
8
  import style from '../../../DropBox/DropBoxElement/css/DropBoxElement.module.css';
9
9
  export default function DropBoxElement(props) {
@@ -0,0 +1,18 @@
1
+ export const DropBoxElementDefaultProps = {
2
+ animationStyle: 'default',
3
+ boxPosition: 'bottomLeft',
4
+ dataId: 'dropBox',
5
+ dataSelectorId: 'dropBox',
6
+ isActive: false,
7
+ isAnimate: false,
8
+ isArrow: true,
9
+ isRadius: true,
10
+ size: 'default',
11
+ isAbsolutePositioningNeeded: true,
12
+ isBoxPaddingNeed: false,
13
+ isPadding: true,
14
+ customClass: {},
15
+ a11y: {},
16
+ palette: 'default',
17
+ customInlineStyle: false
18
+ };
@@ -0,0 +1,51 @@
1
+ import PropTypes from 'prop-types';
2
+ export const DropBoxElementPropTypes = {
3
+ animationStyle: PropTypes.oneOf(['default', 'bounce', 'fadeIn', 'scaleIn']),
4
+ arrowBottom: PropTypes.number,
5
+ arrowLeft: PropTypes.number,
6
+ arrowPosition: PropTypes.oneOf(['start', 'mid', 'end']),
7
+ arrowRight: PropTypes.number,
8
+ arrowTop: PropTypes.number,
9
+ bottom: PropTypes.number,
10
+ boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
11
+ children: PropTypes.element,
12
+ dataId: PropTypes.string,
13
+ dataSelectorId: PropTypes.string,
14
+ forwardRef: PropTypes.object,
15
+ getRef: PropTypes.func,
16
+ isAbsolutePositioningNeeded: PropTypes.bool,
17
+ isActive: PropTypes.bool,
18
+ isAnimate: PropTypes.bool,
19
+ isArrow: PropTypes.bool,
20
+ isBoxPaddingNeed: PropTypes.bool,
21
+ isPadding: PropTypes.bool,
22
+ isRadius: PropTypes.bool,
23
+ left: PropTypes.number,
24
+ onClick: PropTypes.func,
25
+ right: PropTypes.number,
26
+ size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
27
+ top: PropTypes.number,
28
+ tourId: PropTypes.string,
29
+ htmlId: PropTypes.string,
30
+ tabIndex: PropTypes.number,
31
+ customClass: PropTypes.shape({
32
+ customDropBox: PropTypes.string,
33
+ customMobileDropBox: PropTypes.string,
34
+ customDropBoxWrap: PropTypes.string,
35
+ customMobileDropBoxWrap: PropTypes.string
36
+ }),
37
+ a11y: PropTypes.shape({
38
+ role: PropTypes.string,
39
+ ariaMultiselectable: PropTypes.bool,
40
+ ariaLabelledby: PropTypes.string
41
+ }),
42
+ palette: PropTypes.oneOf(['default', 'dark']),
43
+ customStyle: PropTypes.object,
44
+ customInlineStyle: PropTypes.bool,
45
+ isModel: PropTypes.bool,
46
+ direction: PropTypes.string,
47
+ positionsOffset: PropTypes.object,
48
+ targetOffset: PropTypes.object,
49
+ zIndexStyle: PropTypes.object,
50
+ subContainerRef: PropTypes.func
51
+ };
@@ -0,0 +1,14 @@
1
+ import { DropBoxElementDefaultProps } from '../DropBoxElement/props/defaultProps';
2
+ export const defaultProps = {
3
+ needResponsive: true,
4
+ portalId: 'portal1',
5
+ isActive: false,
6
+ isAbsolutePositioningNeeded: true,
7
+ isRestrictScroll: false,
8
+ needFocusScope: false,
9
+ needAutoZindex: true,
10
+ customProps: {}
11
+ };
12
+ export const DropBoxDefaultProps = { ...DropBoxElementDefaultProps,
13
+ ...defaultProps
14
+ };
@@ -0,0 +1,16 @@
1
+ import PropTypes from 'prop-types';
2
+ import { DropBoxElementPropTypes } from '../DropBoxElement/props/propTypes';
3
+ export const propTypes = {
4
+ needResponsive: PropTypes.bool,
5
+ portalId: PropTypes.string,
6
+ isActive: PropTypes.bool,
7
+ isAbsolutePositioningNeeded: PropTypes.bool,
8
+ isRestrictScroll: PropTypes.bool,
9
+ needFocusScope: PropTypes.bool,
10
+ needAutoZindex: PropTypes.bool,
11
+ customProps: PropTypes.object,
12
+ onClose: PropTypes.func
13
+ };
14
+ export const DropBoxPropTypes = { ...DropBoxElementPropTypes,
15
+ ...propTypes
16
+ };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { DropDown_propTypes, DropDownTarget_propTypes, DropDownContainer_propTypes, DropDownItemContainer_propTypes } from '../../DropDown/props/propTypes';
3
- import { DropDownItemContainer_defaultProps } from '../../DropDown/props/defaultProps';
2
+ import { DropDown_propTypes, DropDownTarget_propTypes, DropDownContainer_propTypes, DropDownItemContainer_propTypes } from './props/propTypes';
3
+ import { DropDownItemContainer_defaultProps } from './props/defaultProps';
4
4
  import style from '../../DropDown/DropDown.module.css';
5
5
  import PopOver, { PopOverTarget, PopOverContainer } from '../PopOver/PopOver';
6
6
  export default function DropDown(props) {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { DropDownHeading_propTypes } from '../../DropDown/props/propTypes';
3
- import { DropDownHeading_defaultProps } from '../../DropDown/props/defaultProps';
2
+ import { DropDownHeading_propTypes } from './props/propTypes';
3
+ import { DropDownHeading_defaultProps } from './props/defaultProps';
4
4
  import style from '../../DropDown/DropDownHeading.module.css';
5
5
  export default function DropDownHeading(props) {
6
6
  let {
@@ -1,6 +1,6 @@
1
1
  import React, { useRef } from 'react';
2
- import { DropDownItem_propTypes } from '../../DropDown/props/propTypes';
3
- import { DropDownItem_defaultProps } from '../../DropDown/props/defaultProps';
2
+ import { DropDownItem_propTypes } from './props/propTypes';
3
+ import { DropDownItem_defaultProps } from './props/defaultProps';
4
4
  import style from '../../DropDown/DropDownItem.module.css';
5
5
  export default function DropDownItem(props) {
6
6
  let {
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { DropDownSearch_propTypes } from '../../DropDown/props/propTypes';
3
- import { DropDownSearch_defaultProps } from '../../DropDown/props/defaultProps';
2
+ import { DropDownSearch_propTypes } from './props/propTypes';
3
+ import { DropDownSearch_defaultProps } from './props/defaultProps';
4
4
  import TextBox from '../TextBox/TextBox';
5
5
  import style from '../../DropDown/DropDownSearch.module.css';
6
6
  export default function DropDownSearch(props) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DropDownSeparator_propTypes } from '../../DropDown/props/propTypes';
2
+ import { DropDownSeparator_propTypes } from './props/propTypes';
3
3
  import style from '../../DropDown/DropDownSeparator.module.css';
4
4
  export default function DropDownSeparator(props) {
5
5
  let {