@zohodesk/dot 1.0.0-beta.234 → 1.0.0-beta.236

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 (738) hide show
  1. package/README.md +10 -0
  2. package/es/ActionButton/ActionButton.js +10 -48
  3. package/es/ActionButton/props/defaultProps.js +17 -0
  4. package/es/ActionButton/props/propTypes.js +31 -0
  5. package/es/AlphabeticList/AlphabeticList.js +6 -33
  6. package/es/AlphabeticList/props/defaultProps.js +11 -0
  7. package/es/AlphabeticList/props/propTypes.js +22 -0
  8. package/es/Attachment/Attachment.js +4 -21
  9. package/es/Attachment/props/defaultProps.js +6 -0
  10. package/es/Attachment/props/propTypes.js +15 -0
  11. package/es/AttachmentViewer/AttachmentImage.js +4 -15
  12. package/es/AttachmentViewer/AttachmentViewer.js +4 -27
  13. package/es/AttachmentViewer/props/defaultProps.js +10 -0
  14. package/es/AttachmentViewer/props/propTypes.js +31 -0
  15. package/es/ChannelIcon/ChannelIcon.js +4 -30
  16. package/es/ChannelIcon/props/defaultProps.js +6 -0
  17. package/es/ChannelIcon/props/propTypes.js +24 -0
  18. package/es/Drawer/Drawer.js +9 -69
  19. package/es/Drawer/props/defaultProps.js +20 -0
  20. package/es/Drawer/props/propTypes.js +49 -0
  21. package/es/ExternalLink/ExternalLink.js +4 -17
  22. package/es/ExternalLink/props/defaultProps.js +5 -0
  23. package/es/ExternalLink/props/propTypes.js +12 -0
  24. package/es/FlipCard/FlipCard.js +4 -42
  25. package/es/FlipCard/props/defaultProps.js +5 -0
  26. package/es/FlipCard/props/propTypes.js +37 -0
  27. package/es/FormAction/FormAction.js +5 -12
  28. package/es/FormAction/props/defaultProps.js +4 -0
  29. package/es/FormAction/props/propTypes.js +7 -0
  30. package/es/FreezeLayer/FreezeLayer.js +4 -25
  31. package/es/FreezeLayer/props/defaultProps.js +8 -0
  32. package/es/FreezeLayer/props/propTypes.js +17 -0
  33. package/es/IconButton/IconButton.js +4 -46
  34. package/es/IconButton/props/defaultProps.js +15 -0
  35. package/es/IconButton/props/propTypes.js +31 -0
  36. package/es/Image/Image.js +4 -17
  37. package/es/Image/props/defaultProps.js +4 -0
  38. package/es/Image/props/propTypes.js +13 -0
  39. package/es/ImportantNotes/ImportantNotes.js +4 -16
  40. package/es/ImportantNotes/props/defaultProps.js +6 -0
  41. package/es/ImportantNotes/props/propTypes.js +10 -0
  42. package/es/Link/Link.js +4 -19
  43. package/es/Link/props/defaultProps.js +5 -0
  44. package/es/Link/props/propTypes.js +14 -0
  45. package/es/Message/Message.js +4 -15
  46. package/es/Message/props/defaultProps.js +3 -0
  47. package/es/Message/props/propTypes.js +12 -0
  48. package/es/MessageBanner/MessageBanner.js +4 -18
  49. package/es/MessageBanner/props/defaultProps.js +6 -0
  50. package/es/MessageBanner/props/propTypes.js +12 -0
  51. package/es/NewStar/NewStar.js +4 -10
  52. package/es/NewStar/props/defaultProps.js +4 -0
  53. package/es/NewStar/props/propTypes.js +6 -0
  54. package/es/PlusIcon/PlusIcon.js +4 -19
  55. package/es/PlusIcon/props/defaultProps.js +8 -0
  56. package/es/PlusIcon/props/propTypes.js +11 -0
  57. package/es/ToastMessage/ToastMessage.js +4 -55
  58. package/es/ToastMessage/props/defaultProps.js +17 -0
  59. package/es/ToastMessage/props/propTypes.js +38 -0
  60. package/es/Upload/Upload.js +4 -22
  61. package/es/Upload/props/defaultProps.js +6 -0
  62. package/es/Upload/props/propTypes.js +16 -0
  63. package/es/actions/AutoClose.js +4 -10
  64. package/es/actions/props/defaultProps.js +3 -0
  65. package/es/actions/props/propTypes.js +7 -0
  66. package/es/alert/AlertHeader/AlertHeader.js +4 -23
  67. package/es/alert/AlertHeader/props/defaultProps.js +8 -0
  68. package/es/alert/AlertHeader/props/propTypes.js +15 -0
  69. package/es/alert/AlertLookup/AlertLookup.js +14 -50
  70. package/es/alert/AlertLookup/props/defaultProps.js +14 -0
  71. package/es/alert/AlertLookup/props/propTypes.js +36 -0
  72. package/es/avatar/AvatarClose/AvatarClose.js +4 -18
  73. package/es/avatar/AvatarClose/props/defaultProps.js +5 -0
  74. package/es/avatar/AvatarClose/props/propTypes.js +13 -0
  75. package/es/avatar/AvatarCollision/AvatarCollision.js +4 -23
  76. package/es/avatar/AvatarCollision/props/defaultProps.js +7 -0
  77. package/es/avatar/AvatarCollision/props/propTypes.js +16 -0
  78. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -32
  79. package/es/avatar/AvatarIcon/props/defaultProps.js +13 -0
  80. package/es/avatar/AvatarIcon/props/propTypes.js +19 -0
  81. package/es/avatar/AvatarStatus/AvatarStatus.js +4 -32
  82. package/es/avatar/AvatarStatus/props/defaultProps.js +9 -0
  83. package/es/avatar/AvatarStatus/props/propTypes.js +23 -0
  84. package/es/avatar/AvatarThread/AvatarThread.js +4 -37
  85. package/es/avatar/AvatarThread/props/defaultProps.js +8 -0
  86. package/es/avatar/AvatarThread/props/propTypes.js +29 -0
  87. package/es/avatar/AvatarUser/AvatarUser.js +4 -41
  88. package/es/avatar/AvatarUser/props/defaultProps.js +7 -0
  89. package/es/avatar/AvatarUser/props/propTypes.js +34 -0
  90. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +4 -30
  91. package/es/avatar/AvatarWithTeam/props/defaultProps.js +7 -0
  92. package/es/avatar/AvatarWithTeam/props/propTypes.js +23 -0
  93. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +4 -94
  94. package/es/dropdown/ToggleDropDown/props/defaultProps.js +24 -0
  95. package/es/dropdown/ToggleDropDown/props/propTypes.js +70 -0
  96. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +4 -31
  97. package/es/emptystate/CommonEmptyState/props/defaultProps.js +10 -0
  98. package/es/emptystate/CommonEmptyState/props/propTypes.js +21 -0
  99. package/es/emptystate/EditionPage/EditionPage.js +4 -12
  100. package/es/emptystate/EditionPage/props/defaultProps.js +5 -0
  101. package/es/emptystate/EditionPage/props/propTypes.js +7 -0
  102. package/es/errorstate/Inconvenience/Inconvenience.js +4 -15
  103. package/es/errorstate/Inconvenience/props/defaultProps.js +4 -0
  104. package/es/errorstate/Inconvenience/props/propTypes.js +11 -0
  105. package/es/errorstate/LinkText/LinkText.js +4 -12
  106. package/es/errorstate/LinkText/props/defaultProps.js +4 -0
  107. package/es/errorstate/LinkText/props/propTypes.js +8 -0
  108. package/es/errorstate/NoRequestFound/NoRequestFound.js +4 -15
  109. package/es/errorstate/NoRequestFound/props/defaultProps.js +4 -0
  110. package/es/errorstate/NoRequestFound/props/propTypes.js +11 -0
  111. package/es/errorstate/PermissionPlay/PermissionPlay.js +4 -15
  112. package/es/errorstate/PermissionPlay/props/defaultProps.js +4 -0
  113. package/es/errorstate/PermissionPlay/props/propTypes.js +11 -0
  114. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +4 -15
  115. package/es/errorstate/RequestUrlNotFound/props/defaultProps.js +4 -0
  116. package/es/errorstate/RequestUrlNotFound/props/propTypes.js +11 -0
  117. package/es/errorstate/UnableToProcess/UnableToProcess.js +4 -15
  118. package/es/errorstate/UnableToProcess/props/defaultProps.js +4 -0
  119. package/es/errorstate/UnableToProcess/props/propTypes.js +11 -0
  120. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -15
  121. package/es/errorstate/UnauthorizedLogin/props/defaultProps.js +4 -0
  122. package/es/errorstate/UnauthorizedLogin/props/propTypes.js +11 -0
  123. package/es/errorstate/WillBack/WillBack.js +4 -9
  124. package/es/errorstate/WillBack/props/defaultProps.js +4 -0
  125. package/es/errorstate/WillBack/props/propTypes.js +5 -0
  126. package/es/form/fields/CheckBoxField/CheckBoxField.js +4 -40
  127. package/es/form/fields/CheckBoxField/props/defaultProps.js +11 -0
  128. package/es/form/fields/CheckBoxField/props/propTypes.js +27 -0
  129. package/es/form/fields/CurrencyField/CurrencyField.js +4 -54
  130. package/es/form/fields/CurrencyField/props/defaultProps.js +16 -0
  131. package/es/form/fields/CurrencyField/props/propTypes.js +36 -0
  132. package/es/form/fields/DateField/DateField.js +4 -59
  133. package/es/form/fields/DateField/props/defaultProps.js +18 -0
  134. package/es/form/fields/DateField/props/propTypes.js +39 -0
  135. package/es/form/fields/FieldContainer/FieldContainer.js +4 -16
  136. package/es/form/fields/FieldContainer/props/defaultProps.js +5 -0
  137. package/es/form/fields/FieldContainer/props/propTypes.js +11 -0
  138. package/es/form/fields/MultiSelectField/MultiSelectField.js +4 -68
  139. package/es/form/fields/MultiSelectField/props/defaultProps.js +16 -0
  140. package/es/form/fields/MultiSelectField/props/propTypes.js +50 -0
  141. package/es/form/fields/PhoneField/PhoneField.js +4 -55
  142. package/es/form/fields/PhoneField/props/defaultProps.js +15 -0
  143. package/es/form/fields/PhoneField/props/propTypes.js +40 -0
  144. package/es/form/fields/RadioField/RadioField.js +4 -41
  145. package/es/form/fields/RadioField/props/defaultProps.js +11 -0
  146. package/es/form/fields/RadioField/props/propTypes.js +30 -0
  147. package/es/form/fields/SelectField/SelectField.js +4 -67
  148. package/es/form/fields/SelectField/props/defaultProps.js +17 -0
  149. package/es/form/fields/SelectField/props/propTypes.js +50 -0
  150. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -53
  151. package/es/form/fields/TagsMultiSelect/props/defaultProps.js +10 -0
  152. package/es/form/fields/TagsMultiSelect/props/propTypes.js +43 -0
  153. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -72
  154. package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +18 -0
  155. package/es/form/fields/TagsMultiSelectField/props/propTypes.js +52 -0
  156. package/es/form/fields/TextBoxField/TextBoxField.js +4 -55
  157. package/es/form/fields/TextBoxField/props/defaultProps.js +16 -0
  158. package/es/form/fields/TextBoxField/props/propTypes.js +37 -0
  159. package/es/form/fields/TextEditor/TextEditor.js +12 -56
  160. package/es/form/fields/TextEditor/props/defaultProps.js +12 -0
  161. package/es/form/fields/TextEditor/props/propTypes.js +40 -0
  162. package/es/form/fields/TextEditorField/TextEditorField.js +4 -63
  163. package/es/form/fields/TextEditorField/props/defaultProps.js +14 -0
  164. package/es/form/fields/TextEditorField/props/propTypes.js +47 -0
  165. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -47
  166. package/es/form/fields/TextEditorWrapper/props/defaultProps.js +8 -0
  167. package/es/form/fields/TextEditorWrapper/props/propTypes.js +39 -0
  168. package/es/form/fields/TextareaField/TextareaField.js +4 -50
  169. package/es/form/fields/TextareaField/props/defaultProps.js +14 -0
  170. package/es/form/fields/TextareaField/props/propTypes.js +34 -0
  171. package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -20
  172. package/es/form/fields/ValidationMessage/props/defaultProps.js +6 -0
  173. package/es/form/fields/ValidationMessage/props/propTypes.js +14 -0
  174. package/es/form/layout/Field/Field.js +4 -14
  175. package/es/form/layout/Field/props/defaultProps.js +4 -0
  176. package/es/form/layout/Field/props/propTypes.js +10 -0
  177. package/es/form/layout/Section/Section.js +2 -9
  178. package/es/form/layout/Section/props/propTypes.js +9 -0
  179. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +10 -51
  180. package/es/layout/SetupDetailLayout/props/defaultProps.js +18 -0
  181. package/es/layout/SetupDetailLayout/props/propTypes.js +33 -0
  182. package/es/layout/SubtabLayout/SubtabLayout.js +10 -65
  183. package/es/layout/SubtabLayout/props/defaultProps.js +25 -0
  184. package/es/layout/SubtabLayout/props/propTypes.js +40 -0
  185. package/es/list/AvatarFlip/AvatarFlip.js +4 -33
  186. package/es/list/AvatarFlip/props/defaultProps.js +5 -0
  187. package/es/list/AvatarFlip/props/propTypes.js +28 -0
  188. package/es/list/BluePrintStatus/BluePrintStatus.js +2 -4
  189. package/es/list/BluePrintStatus/props/propTypes.js +4 -0
  190. package/es/list/Comment/Comment.js +4 -12
  191. package/es/list/Comment/props/defaultProps.js +3 -0
  192. package/es/list/Comment/props/propTypes.js +9 -0
  193. package/es/list/DepartmentDropDown/DepartmentDropDown.js +4 -31
  194. package/es/list/DepartmentDropDown/props/defaultProps.js +7 -0
  195. package/es/list/DepartmentDropDown/props/propTypes.js +24 -0
  196. package/es/list/Dot/Dot.js +4 -9
  197. package/es/list/Dot/props/defaultProps.js +4 -0
  198. package/es/list/Dot/props/propTypes.js +5 -0
  199. package/es/list/DotNew/DotNew.js +4 -9
  200. package/es/list/DotNew/props/defaultProps.js +3 -0
  201. package/es/list/DotNew/props/propTypes.js +6 -0
  202. package/es/list/GridStencils/GridStencils.js +2 -7
  203. package/es/list/GridStencils/props/propTypes.js +7 -0
  204. package/es/list/Icons/AddNewIcon.js +2 -8
  205. package/es/list/Icons/CompleteIcon.js +2 -9
  206. package/es/list/Icons/DeleteIcon.js +2 -9
  207. package/es/list/Icons/EditIcon.js +2 -9
  208. package/es/list/Icons/FloatingIcons.js +4 -8
  209. package/es/list/Icons/Icons.module.css +1 -1
  210. package/es/list/Icons/ReadUnreadIcon.js +4 -14
  211. package/es/list/Icons/SmartIcon.js +2 -10
  212. package/es/list/Icons/props/defaultProps.js +6 -0
  213. package/es/list/Icons/props/propTypes.js +55 -0
  214. package/es/list/ListLayout/ListLayout.js +5 -39
  215. package/es/list/ListLayout/props/defaultProps.js +11 -0
  216. package/es/list/ListLayout/props/propTypes.js +28 -0
  217. package/es/list/ListStencils/ListStencils.js +4 -7
  218. package/es/list/ListStencils/props/defaultProps.js +3 -0
  219. package/es/list/ListStencils/props/propTypes.js +4 -0
  220. package/es/list/SecondaryText/AccountName.js +4 -28
  221. package/es/list/SecondaryText/ContactName.js +4 -37
  222. package/es/list/SecondaryText/DepartmentText.js +2 -8
  223. package/es/list/SecondaryText/Email.js +4 -21
  224. package/es/list/SecondaryText/HappinessRating.js +2 -7
  225. package/es/list/SecondaryText/PhoneNumber.js +4 -24
  226. package/es/list/SecondaryText/PriorityText.js +4 -12
  227. package/es/list/SecondaryText/SecondaryText.js +4 -14
  228. package/es/list/SecondaryText/StatusText.js +4 -14
  229. package/es/list/SecondaryText/TicketId.js +4 -21
  230. package/es/list/SecondaryText/Website.js +4 -13
  231. package/es/list/SecondaryText/props/defaultProps.js +44 -0
  232. package/es/list/SecondaryText/props/propTypes.js +143 -0
  233. package/es/list/SecondryPanel/SecondryPanel.js +10 -45
  234. package/es/list/SecondryPanel/props/defaultProps.js +18 -0
  235. package/es/list/SecondryPanel/props/propTypes.js +27 -0
  236. package/es/list/SentimentStatus/SentimentStatus.js +2 -5
  237. package/es/list/SentimentStatus/props/propTypes.js +5 -0
  238. package/es/list/Subject/Subject.js +4 -26
  239. package/es/list/Subject/props/defaultProps.js +7 -0
  240. package/es/list/Subject/props/propTypes.js +19 -0
  241. package/es/list/TagNew/TagNew.js +4 -12
  242. package/es/list/TagNew/props/defaultProps.js +4 -0
  243. package/es/list/TagNew/props/propTypes.js +8 -0
  244. package/es/list/Thread/Thread.js +4 -12
  245. package/es/list/Thread/props/defaultProps.js +4 -0
  246. package/es/list/Thread/props/propTypes.js +8 -0
  247. package/es/list/UserTime/UserTime.js +4 -17
  248. package/es/list/UserTime/props/defaultProps.js +3 -0
  249. package/es/list/UserTime/props/propTypes.js +14 -0
  250. package/es/list/status/StatusDropdown/StatusDropdown.js +4 -68
  251. package/es/list/status/StatusDropdown/props/defaultProps.js +18 -0
  252. package/es/list/status/StatusDropdown/props/propTypes.js +50 -0
  253. package/es/list/status/StatusListItem/StatusListItem.js +4 -42
  254. package/es/list/status/StatusListItem/props/defaultProps.js +14 -0
  255. package/es/list/status/StatusListItem/props/propTypes.js +28 -0
  256. package/es/lookup/EmptyPage/EmptyPage.js +4 -9
  257. package/es/lookup/EmptyPage/props/defaultProps.js +4 -0
  258. package/es/lookup/EmptyPage/props/propTypes.js +5 -0
  259. package/es/lookup/Lookup/Lookup.js +4 -23
  260. package/es/lookup/Lookup/props/defaultProps.js +6 -0
  261. package/es/lookup/Lookup/props/propTypes.js +17 -0
  262. package/es/lookup/Section/Section.js +2 -7
  263. package/es/lookup/Section/props/propTypes.js +6 -0
  264. package/es/lookup/header/Close/Close.js +4 -9
  265. package/es/lookup/header/Close/props/defaultProps.js +3 -0
  266. package/es/lookup/header/Close/props/propTypes.js +6 -0
  267. package/es/lookup/header/ModuleHeader/ModuleHeader.js +4 -20
  268. package/es/lookup/header/ModuleHeader/props/defaultProps.js +3 -0
  269. package/es/lookup/header/ModuleHeader/props/propTypes.js +17 -0
  270. package/es/lookup/header/Search/Search.js +5 -33
  271. package/es/lookup/header/Search/props/defaultProps.js +5 -0
  272. package/es/lookup/header/Search/props/propTypes.js +28 -0
  273. package/es/lookup/header/TicketHeader/TicketHeader.js +4 -24
  274. package/es/lookup/header/TicketHeader/props/defaultProps.js +4 -0
  275. package/es/lookup/header/TicketHeader/props/propTypes.js +20 -0
  276. package/es/lookup/header/Title/Title.js +4 -9
  277. package/es/lookup/header/Title/props/defaultProps.js +3 -0
  278. package/es/lookup/header/Title/props/propTypes.js +6 -0
  279. package/es/lookup/header/ViewDropDown/ViewDropDown.js +4 -34
  280. package/es/lookup/header/ViewDropDown/props/defaultProps.js +7 -0
  281. package/es/lookup/header/ViewDropDown/props/propTypes.js +27 -0
  282. package/es/setup/header/Button/Button.js +4 -11
  283. package/es/setup/header/Button/props/defaultProps.js +4 -0
  284. package/es/setup/header/Button/props/propTypes.js +7 -0
  285. package/es/setup/header/Link/Link.js +4 -12
  286. package/es/setup/header/Link/props/defaultProps.js +4 -0
  287. package/es/setup/header/Link/props/propTypes.js +8 -0
  288. package/es/setup/header/Search/Search.js +4 -16
  289. package/es/setup/header/Search/props/defaultProps.js +5 -0
  290. package/es/setup/header/Search/props/propTypes.js +11 -0
  291. package/es/setup/header/Views/Views.js +4 -15
  292. package/es/setup/header/Views/props/defaultProps.js +6 -0
  293. package/es/setup/header/Views/props/propTypes.js +9 -0
  294. package/es/setup/helptips/Description/Description.js +2 -4
  295. package/es/setup/helptips/Description/props/propTypes.js +4 -0
  296. package/es/setup/helptips/Link/Link.js +2 -7
  297. package/es/setup/helptips/Link/props/propTypes.js +7 -0
  298. package/es/setup/helptips/ListGroup/ListGroup.js +2 -5
  299. package/es/setup/helptips/ListGroup/props/propTypes.js +5 -0
  300. package/es/setup/helptips/Title/Title.js +2 -4
  301. package/es/setup/helptips/Title/props/propTypes.js +4 -0
  302. package/es/setup/table/Table/Table.js +4 -10
  303. package/es/setup/table/Table/props/defaultProps.js +4 -0
  304. package/es/setup/table/Table/props/propTypes.js +6 -0
  305. package/es/setup/table/TableBody/TableBody.js +4 -10
  306. package/es/setup/table/TableBody/props/defaultProps.js +3 -0
  307. package/es/setup/table/TableBody/props/propTypes.js +7 -0
  308. package/es/setup/table/TableData/TableData.js +4 -15
  309. package/es/setup/table/TableData/props/defaultProps.js +5 -0
  310. package/es/setup/table/TableData/props/propTypes.js +10 -0
  311. package/es/setup/table/TableHead/TableHead.js +4 -11
  312. package/es/setup/table/TableHead/props/defaultProps.js +4 -0
  313. package/es/setup/table/TableHead/props/propTypes.js +7 -0
  314. package/es/setup/table/TableRow/TableRow.js +4 -15
  315. package/es/setup/table/TableRow/props/defaultProps.js +4 -0
  316. package/es/setup/table/TableRow/props/propTypes.js +11 -0
  317. package/es/setup/table/Text/Text.js +4 -20
  318. package/es/setup/table/Text/props/defaultProps.js +7 -0
  319. package/es/setup/table/Text/props/propTypes.js +13 -0
  320. package/es/svg/PlusIcon.js +4 -11
  321. package/es/svg/SnippetIcon.js +4 -11
  322. package/es/svg/TemplateIcon.js +4 -11
  323. package/es/svg/props/defaultProps.js +15 -0
  324. package/es/svg/props/propTypes.js +16 -0
  325. package/es/version2/AlertClose/AlertClose.js +2 -8
  326. package/es/version2/AlertClose/props/propTypes.js +8 -0
  327. package/es/version2/GlobalNotification/GlobalNotification.js +4 -16
  328. package/es/version2/GlobalNotification/props/defaultProps.js +3 -0
  329. package/es/version2/GlobalNotification/props/propTypes.js +13 -0
  330. package/es/version2/alertIcons/AlarmAlertIcon.js +4 -8
  331. package/es/version2/alertIcons/AlertIcons.js +4 -9
  332. package/es/version2/alertIcons/DangerAlertIcon.js +4 -9
  333. package/es/version2/alertIcons/ErrorAlertIcon.js +4 -8
  334. package/es/version2/alertIcons/InfoAlertIcon.js +4 -8
  335. package/es/version2/alertIcons/NotificationAlertIcon.js +4 -8
  336. package/es/version2/alertIcons/SuccessAlertIcon.js +4 -8
  337. package/es/version2/alertIcons/WarningAlertIcon.js +4 -8
  338. package/es/version2/alertIcons/props/defaultProps.js +26 -0
  339. package/es/version2/alertIcons/props/propTypes.js +33 -0
  340. package/es/version2/errorstate/Inconvenience/Inconvenience.js +4 -24
  341. package/es/version2/errorstate/Inconvenience/props/defaultProps.js +8 -0
  342. package/es/version2/errorstate/Inconvenience/props/propTypes.js +16 -0
  343. package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +4 -24
  344. package/es/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +8 -0
  345. package/es/version2/errorstate/OopsSomethingMiss/props/propTypes.js +16 -0
  346. package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +4 -24
  347. package/es/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +8 -0
  348. package/es/version2/errorstate/UnableToProcessRequest/props/propTypes.js +16 -0
  349. package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -26
  350. package/es/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +9 -0
  351. package/es/version2/errorstate/UnauthorizedLogin/props/propTypes.js +17 -0
  352. package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +4 -24
  353. package/es/version2/errorstate/UrlNotFound/props/defaultProps.js +8 -0
  354. package/es/version2/errorstate/UrlNotFound/props/propTypes.js +16 -0
  355. package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +4 -24
  356. package/es/version2/errorstate/WillBeRightBack/props/defaultProps.js +8 -0
  357. package/es/version2/errorstate/WillBeRightBack/props/propTypes.js +16 -0
  358. package/es/version2/lookup/AlertHeader/AlertHeader.js +4 -18
  359. package/es/version2/lookup/AlertHeader/props/defaultProps.js +6 -0
  360. package/es/version2/lookup/AlertHeader/props/propTypes.js +12 -0
  361. package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -49
  362. package/es/version2/lookup/AlertLookup/props/defaultProps.js +13 -0
  363. package/es/version2/lookup/AlertLookup/props/propTypes.js +36 -0
  364. package/es/version2/notification/DesktopNotification/DesktopNotification.js +4 -50
  365. package/es/version2/notification/DesktopNotification/props/defaultProps.js +14 -0
  366. package/es/version2/notification/DesktopNotification/props/propTypes.js +36 -0
  367. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +4 -16
  368. package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -0
  369. package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +11 -0
  370. package/lib/ActionButton/ActionButton.js +11 -48
  371. package/lib/ActionButton/props/defaultProps.js +24 -0
  372. package/lib/ActionButton/props/propTypes.js +42 -0
  373. package/lib/AlphabeticList/AlphabeticList.js +8 -47
  374. package/lib/AlphabeticList/props/defaultProps.js +19 -0
  375. package/lib/AlphabeticList/props/propTypes.js +49 -0
  376. package/lib/Attachment/Attachment.js +5 -21
  377. package/lib/Attachment/props/defaultProps.js +13 -0
  378. package/lib/Attachment/props/propTypes.js +26 -0
  379. package/lib/AttachmentViewer/AttachmentImage.js +5 -15
  380. package/lib/AttachmentViewer/AttachmentViewer.js +5 -27
  381. package/lib/AttachmentViewer/props/defaultProps.js +18 -0
  382. package/lib/AttachmentViewer/props/propTypes.js +43 -0
  383. package/lib/ChannelIcon/ChannelIcon.js +5 -30
  384. package/lib/ChannelIcon/props/defaultProps.js +13 -0
  385. package/lib/ChannelIcon/props/propTypes.js +35 -0
  386. package/lib/Drawer/Drawer.js +10 -69
  387. package/lib/Drawer/props/defaultProps.js +29 -0
  388. package/lib/Drawer/props/propTypes.js +63 -0
  389. package/lib/ExternalLink/ExternalLink.js +5 -17
  390. package/lib/ExternalLink/props/defaultProps.js +12 -0
  391. package/lib/ExternalLink/props/propTypes.js +23 -0
  392. package/lib/FlipCard/FlipCard.js +5 -42
  393. package/lib/FlipCard/props/defaultProps.js +12 -0
  394. package/lib/FlipCard/props/propTypes.js +48 -0
  395. package/lib/FormAction/FormAction.js +6 -12
  396. package/lib/FormAction/props/defaultProps.js +11 -0
  397. package/lib/FormAction/props/propTypes.js +18 -0
  398. package/lib/FreezeLayer/FreezeLayer.js +5 -25
  399. package/lib/FreezeLayer/props/defaultProps.js +15 -0
  400. package/lib/FreezeLayer/props/propTypes.js +28 -0
  401. package/lib/IconButton/IconButton.js +5 -46
  402. package/lib/IconButton/props/defaultProps.js +22 -0
  403. package/lib/IconButton/props/propTypes.js +42 -0
  404. package/lib/Image/Image.js +5 -17
  405. package/lib/Image/props/defaultProps.js +11 -0
  406. package/lib/Image/props/propTypes.js +24 -0
  407. package/lib/ImportantNotes/ImportantNotes.js +5 -16
  408. package/lib/ImportantNotes/props/defaultProps.js +13 -0
  409. package/lib/ImportantNotes/props/propTypes.js +21 -0
  410. package/lib/Link/Link.js +5 -19
  411. package/lib/Link/props/defaultProps.js +12 -0
  412. package/lib/Link/props/propTypes.js +25 -0
  413. package/lib/Message/Message.js +5 -15
  414. package/lib/Message/props/defaultProps.js +10 -0
  415. package/lib/Message/props/propTypes.js +23 -0
  416. package/lib/MessageBanner/MessageBanner.js +5 -18
  417. package/lib/MessageBanner/props/defaultProps.js +13 -0
  418. package/lib/MessageBanner/props/propTypes.js +23 -0
  419. package/lib/NewStar/NewStar.js +5 -10
  420. package/lib/NewStar/props/defaultProps.js +11 -0
  421. package/lib/NewStar/props/propTypes.js +17 -0
  422. package/lib/PlusIcon/PlusIcon.js +5 -19
  423. package/lib/PlusIcon/props/defaultProps.js +15 -0
  424. package/lib/PlusIcon/props/propTypes.js +22 -0
  425. package/lib/ToastMessage/ToastMessage.js +5 -55
  426. package/lib/ToastMessage/props/defaultProps.js +24 -0
  427. package/lib/ToastMessage/props/propTypes.js +49 -0
  428. package/lib/Upload/Upload.js +5 -22
  429. package/lib/Upload/props/defaultProps.js +13 -0
  430. package/lib/Upload/props/propTypes.js +27 -0
  431. package/lib/actions/AutoClose.js +4 -11
  432. package/lib/actions/props/defaultProps.js +10 -0
  433. package/lib/actions/props/propTypes.js +18 -0
  434. package/lib/alert/AlertHeader/AlertHeader.js +5 -23
  435. package/lib/alert/AlertHeader/props/defaultProps.js +15 -0
  436. package/lib/alert/AlertHeader/props/propTypes.js +26 -0
  437. package/lib/alert/AlertLookup/AlertLookup.js +14 -50
  438. package/lib/alert/AlertLookup/props/defaultProps.js +21 -0
  439. package/lib/alert/AlertLookup/props/propTypes.js +47 -0
  440. package/lib/avatar/AvatarClose/AvatarClose.js +5 -18
  441. package/lib/avatar/AvatarClose/props/defaultProps.js +12 -0
  442. package/lib/avatar/AvatarClose/props/propTypes.js +24 -0
  443. package/lib/avatar/AvatarCollision/AvatarCollision.js +5 -23
  444. package/lib/avatar/AvatarCollision/props/defaultProps.js +14 -0
  445. package/lib/avatar/AvatarCollision/props/propTypes.js +27 -0
  446. package/lib/avatar/AvatarIcon/AvatarIcon.js +5 -32
  447. package/lib/avatar/AvatarIcon/props/defaultProps.js +20 -0
  448. package/lib/avatar/AvatarIcon/props/propTypes.js +30 -0
  449. package/lib/avatar/AvatarStatus/AvatarStatus.js +5 -32
  450. package/lib/avatar/AvatarStatus/props/defaultProps.js +16 -0
  451. package/lib/avatar/AvatarStatus/props/propTypes.js +34 -0
  452. package/lib/avatar/AvatarThread/AvatarThread.js +5 -37
  453. package/lib/avatar/AvatarThread/props/defaultProps.js +15 -0
  454. package/lib/avatar/AvatarThread/props/propTypes.js +40 -0
  455. package/lib/avatar/AvatarUser/AvatarUser.js +5 -41
  456. package/lib/avatar/AvatarUser/props/defaultProps.js +14 -0
  457. package/lib/avatar/AvatarUser/props/propTypes.js +45 -0
  458. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +5 -30
  459. package/lib/avatar/AvatarWithTeam/props/defaultProps.js +14 -0
  460. package/lib/avatar/AvatarWithTeam/props/propTypes.js +34 -0
  461. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -94
  462. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +31 -0
  463. package/lib/dropdown/ToggleDropDown/props/propTypes.js +81 -0
  464. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +5 -31
  465. package/lib/emptystate/CommonEmptyState/props/defaultProps.js +17 -0
  466. package/lib/emptystate/CommonEmptyState/props/propTypes.js +32 -0
  467. package/lib/emptystate/EditionPage/EditionPage.js +5 -12
  468. package/lib/emptystate/EditionPage/props/defaultProps.js +12 -0
  469. package/lib/emptystate/EditionPage/props/propTypes.js +18 -0
  470. package/lib/errorstate/Inconvenience/Inconvenience.js +5 -15
  471. package/lib/errorstate/Inconvenience/props/defaultProps.js +11 -0
  472. package/lib/errorstate/Inconvenience/props/propTypes.js +22 -0
  473. package/lib/errorstate/LinkText/LinkText.js +5 -12
  474. package/lib/errorstate/LinkText/props/defaultProps.js +11 -0
  475. package/lib/errorstate/LinkText/props/propTypes.js +19 -0
  476. package/lib/errorstate/NoRequestFound/NoRequestFound.js +5 -15
  477. package/lib/errorstate/NoRequestFound/props/defaultProps.js +11 -0
  478. package/lib/errorstate/NoRequestFound/props/propTypes.js +22 -0
  479. package/lib/errorstate/PermissionPlay/PermissionPlay.js +5 -15
  480. package/lib/errorstate/PermissionPlay/props/defaultProps.js +11 -0
  481. package/lib/errorstate/PermissionPlay/props/propTypes.js +22 -0
  482. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +5 -15
  483. package/lib/errorstate/RequestUrlNotFound/props/defaultProps.js +11 -0
  484. package/lib/errorstate/RequestUrlNotFound/props/propTypes.js +22 -0
  485. package/lib/errorstate/UnableToProcess/UnableToProcess.js +5 -15
  486. package/lib/errorstate/UnableToProcess/props/defaultProps.js +11 -0
  487. package/lib/errorstate/UnableToProcess/props/propTypes.js +22 -0
  488. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +5 -15
  489. package/lib/errorstate/UnauthorizedLogin/props/defaultProps.js +11 -0
  490. package/lib/errorstate/UnauthorizedLogin/props/propTypes.js +22 -0
  491. package/lib/errorstate/WillBack/WillBack.js +5 -9
  492. package/lib/errorstate/WillBack/props/defaultProps.js +11 -0
  493. package/lib/errorstate/WillBack/props/propTypes.js +16 -0
  494. package/lib/form/fields/CheckBoxField/CheckBoxField.js +5 -44
  495. package/lib/form/fields/CheckBoxField/props/defaultProps.js +26 -0
  496. package/lib/form/fields/CheckBoxField/props/propTypes.js +45 -0
  497. package/lib/form/fields/CurrencyField/CurrencyField.js +5 -58
  498. package/lib/form/fields/CurrencyField/props/defaultProps.js +31 -0
  499. package/lib/form/fields/CurrencyField/props/propTypes.js +54 -0
  500. package/lib/form/fields/DateField/DateField.js +5 -63
  501. package/lib/form/fields/DateField/props/defaultProps.js +33 -0
  502. package/lib/form/fields/DateField/props/propTypes.js +57 -0
  503. package/lib/form/fields/FieldContainer/FieldContainer.js +4 -23
  504. package/lib/form/fields/FieldContainer/props/defaultProps.js +21 -0
  505. package/lib/form/fields/FieldContainer/props/propTypes.js +30 -0
  506. package/lib/form/fields/MultiSelectField/MultiSelectField.js +5 -72
  507. package/lib/form/fields/MultiSelectField/props/defaultProps.js +31 -0
  508. package/lib/form/fields/MultiSelectField/props/propTypes.js +68 -0
  509. package/lib/form/fields/PhoneField/PhoneField.js +5 -55
  510. package/lib/form/fields/PhoneField/props/defaultProps.js +22 -0
  511. package/lib/form/fields/PhoneField/props/propTypes.js +51 -0
  512. package/lib/form/fields/RadioField/RadioField.js +5 -41
  513. package/lib/form/fields/RadioField/props/defaultProps.js +18 -0
  514. package/lib/form/fields/RadioField/props/propTypes.js +41 -0
  515. package/lib/form/fields/SelectField/SelectField.js +5 -73
  516. package/lib/form/fields/SelectField/props/defaultProps.js +32 -0
  517. package/lib/form/fields/SelectField/props/propTypes.js +68 -0
  518. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -53
  519. package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +17 -0
  520. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +54 -0
  521. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +5 -76
  522. package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +33 -0
  523. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +70 -0
  524. package/lib/form/fields/TextBoxField/TextBoxField.js +5 -59
  525. package/lib/form/fields/TextBoxField/props/defaultProps.js +31 -0
  526. package/lib/form/fields/TextBoxField/props/propTypes.js +55 -0
  527. package/lib/form/fields/TextEditor/TextEditor.js +12 -56
  528. package/lib/form/fields/TextEditor/props/defaultProps.js +19 -0
  529. package/lib/form/fields/TextEditor/props/propTypes.js +51 -0
  530. package/lib/form/fields/TextEditorField/TextEditorField.js +5 -67
  531. package/lib/form/fields/TextEditorField/props/defaultProps.js +29 -0
  532. package/lib/form/fields/TextEditorField/props/propTypes.js +65 -0
  533. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -47
  534. package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +15 -0
  535. package/lib/form/fields/TextEditorWrapper/props/propTypes.js +50 -0
  536. package/lib/form/fields/TextareaField/TextareaField.js +5 -54
  537. package/lib/form/fields/TextareaField/props/defaultProps.js +29 -0
  538. package/lib/form/fields/TextareaField/props/propTypes.js +52 -0
  539. package/lib/form/fields/ValidationMessage/ValidationMessage.js +5 -20
  540. package/lib/form/fields/ValidationMessage/props/defaultProps.js +13 -0
  541. package/lib/form/fields/ValidationMessage/props/propTypes.js +25 -0
  542. package/lib/form/layout/Field/Field.js +5 -14
  543. package/lib/form/layout/Field/props/defaultProps.js +11 -0
  544. package/lib/form/layout/Field/props/propTypes.js +21 -0
  545. package/lib/form/layout/Section/Section.js +2 -9
  546. package/lib/form/layout/Section/props/propTypes.js +20 -0
  547. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +11 -51
  548. package/lib/layout/SetupDetailLayout/props/defaultProps.js +28 -0
  549. package/lib/layout/SetupDetailLayout/props/propTypes.js +47 -0
  550. package/lib/layout/SubtabLayout/SubtabLayout.js +11 -65
  551. package/lib/layout/SubtabLayout/props/defaultProps.js +35 -0
  552. package/lib/layout/SubtabLayout/props/propTypes.js +54 -0
  553. package/lib/list/AvatarFlip/AvatarFlip.js +5 -33
  554. package/lib/list/AvatarFlip/props/defaultProps.js +12 -0
  555. package/lib/list/AvatarFlip/props/propTypes.js +39 -0
  556. package/lib/list/BluePrintStatus/BluePrintStatus.js +2 -4
  557. package/lib/list/BluePrintStatus/props/propTypes.js +15 -0
  558. package/lib/list/Comment/Comment.js +5 -12
  559. package/lib/list/Comment/props/defaultProps.js +10 -0
  560. package/lib/list/Comment/props/propTypes.js +20 -0
  561. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +5 -31
  562. package/lib/list/DepartmentDropDown/props/defaultProps.js +14 -0
  563. package/lib/list/DepartmentDropDown/props/propTypes.js +35 -0
  564. package/lib/list/Dot/Dot.js +5 -9
  565. package/lib/list/Dot/props/defaultProps.js +11 -0
  566. package/lib/list/Dot/props/propTypes.js +16 -0
  567. package/lib/list/DotNew/DotNew.js +5 -9
  568. package/lib/list/DotNew/props/defaultProps.js +10 -0
  569. package/lib/list/DotNew/props/propTypes.js +17 -0
  570. package/lib/list/GridStencils/GridStencils.js +2 -7
  571. package/lib/list/GridStencils/props/propTypes.js +18 -0
  572. package/lib/list/Icons/AddNewIcon.js +2 -8
  573. package/lib/list/Icons/CompleteIcon.js +2 -9
  574. package/lib/list/Icons/DeleteIcon.js +2 -9
  575. package/lib/list/Icons/EditIcon.js +2 -9
  576. package/lib/list/Icons/FloatingIcons.js +5 -8
  577. package/lib/list/Icons/Icons.module.css +1 -1
  578. package/lib/list/Icons/ReadUnreadIcon.js +5 -14
  579. package/lib/list/Icons/SmartIcon.js +2 -10
  580. package/lib/list/Icons/props/defaultProps.js +14 -0
  581. package/lib/list/Icons/props/propTypes.js +72 -0
  582. package/lib/list/ListLayout/ListLayout.js +6 -40
  583. package/lib/list/ListLayout/props/defaultProps.js +18 -0
  584. package/lib/list/ListLayout/props/propTypes.js +41 -0
  585. package/lib/list/ListStencils/ListStencils.js +5 -7
  586. package/lib/list/ListStencils/props/defaultProps.js +10 -0
  587. package/lib/list/ListStencils/props/propTypes.js +15 -0
  588. package/lib/list/SecondaryText/AccountName.js +5 -28
  589. package/lib/list/SecondaryText/ContactName.js +5 -37
  590. package/lib/list/SecondaryText/DepartmentText.js +2 -8
  591. package/lib/list/SecondaryText/Email.js +5 -21
  592. package/lib/list/SecondaryText/HappinessRating.js +2 -7
  593. package/lib/list/SecondaryText/PhoneNumber.js +5 -24
  594. package/lib/list/SecondaryText/PriorityText.js +5 -12
  595. package/lib/list/SecondaryText/SecondaryText.js +5 -14
  596. package/lib/list/SecondaryText/StatusText.js +5 -14
  597. package/lib/list/SecondaryText/TicketId.js +5 -21
  598. package/lib/list/SecondaryText/Website.js +5 -13
  599. package/lib/list/SecondaryText/props/defaultProps.js +59 -0
  600. package/lib/list/SecondaryText/props/propTypes.js +164 -0
  601. package/lib/list/SecondryPanel/SecondryPanel.js +11 -45
  602. package/lib/list/SecondryPanel/props/defaultProps.js +28 -0
  603. package/lib/list/SecondryPanel/props/propTypes.js +41 -0
  604. package/lib/list/SentimentStatus/SentimentStatus.js +2 -5
  605. package/lib/list/SentimentStatus/props/propTypes.js +16 -0
  606. package/lib/list/Subject/Subject.js +5 -26
  607. package/lib/list/Subject/props/defaultProps.js +14 -0
  608. package/lib/list/Subject/props/propTypes.js +30 -0
  609. package/lib/list/TagNew/TagNew.js +5 -12
  610. package/lib/list/TagNew/props/defaultProps.js +11 -0
  611. package/lib/list/TagNew/props/propTypes.js +19 -0
  612. package/lib/list/Thread/Thread.js +5 -12
  613. package/lib/list/Thread/props/defaultProps.js +11 -0
  614. package/lib/list/Thread/props/propTypes.js +19 -0
  615. package/lib/list/UserTime/UserTime.js +5 -17
  616. package/lib/list/UserTime/props/defaultProps.js +10 -0
  617. package/lib/list/UserTime/props/propTypes.js +25 -0
  618. package/lib/list/status/StatusDropdown/StatusDropdown.js +5 -41
  619. package/lib/list/status/StatusDropdown/props/defaultProps.js +25 -0
  620. package/lib/list/status/StatusDropdown/props/propTypes.js +34 -0
  621. package/lib/list/status/StatusListItem/StatusListItem.js +5 -42
  622. package/lib/list/status/StatusListItem/props/defaultProps.js +21 -0
  623. package/lib/list/status/StatusListItem/props/propTypes.js +39 -0
  624. package/lib/lookup/EmptyPage/EmptyPage.js +5 -9
  625. package/lib/lookup/EmptyPage/props/defaultProps.js +11 -0
  626. package/lib/lookup/EmptyPage/props/propTypes.js +16 -0
  627. package/lib/lookup/Lookup/Lookup.js +5 -23
  628. package/lib/lookup/Lookup/props/defaultProps.js +13 -0
  629. package/lib/lookup/Lookup/props/propTypes.js +28 -0
  630. package/lib/lookup/Section/Section.js +2 -7
  631. package/lib/lookup/Section/props/propTypes.js +17 -0
  632. package/lib/lookup/header/Close/Close.js +5 -9
  633. package/lib/lookup/header/Close/props/defaultProps.js +10 -0
  634. package/lib/lookup/header/Close/props/propTypes.js +17 -0
  635. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -20
  636. package/lib/lookup/header/ModuleHeader/props/defaultProps.js +10 -0
  637. package/lib/lookup/header/ModuleHeader/props/propTypes.js +28 -0
  638. package/lib/lookup/header/Search/Search.js +6 -33
  639. package/lib/lookup/header/Search/props/defaultProps.js +12 -0
  640. package/lib/lookup/header/Search/props/propTypes.js +40 -0
  641. package/lib/lookup/header/TicketHeader/TicketHeader.js +5 -24
  642. package/lib/lookup/header/TicketHeader/props/defaultProps.js +11 -0
  643. package/lib/lookup/header/TicketHeader/props/propTypes.js +31 -0
  644. package/lib/lookup/header/Title/Title.js +5 -9
  645. package/lib/lookup/header/Title/props/defaultProps.js +10 -0
  646. package/lib/lookup/header/Title/props/propTypes.js +17 -0
  647. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +5 -34
  648. package/lib/lookup/header/ViewDropDown/props/defaultProps.js +14 -0
  649. package/lib/lookup/header/ViewDropDown/props/propTypes.js +38 -0
  650. package/lib/setup/header/Button/Button.js +5 -11
  651. package/lib/setup/header/Button/props/defaultProps.js +11 -0
  652. package/lib/setup/header/Button/props/propTypes.js +18 -0
  653. package/lib/setup/header/Link/Link.js +5 -12
  654. package/lib/setup/header/Link/props/defaultProps.js +11 -0
  655. package/lib/setup/header/Link/props/propTypes.js +19 -0
  656. package/lib/setup/header/Search/Search.js +5 -16
  657. package/lib/setup/header/Search/props/defaultProps.js +12 -0
  658. package/lib/setup/header/Search/props/propTypes.js +22 -0
  659. package/lib/setup/header/Views/Views.js +5 -15
  660. package/lib/setup/header/Views/props/defaultProps.js +13 -0
  661. package/lib/setup/header/Views/props/propTypes.js +20 -0
  662. package/lib/setup/helptips/Description/Description.js +2 -4
  663. package/lib/setup/helptips/Description/props/propTypes.js +15 -0
  664. package/lib/setup/helptips/Link/Link.js +2 -7
  665. package/lib/setup/helptips/Link/props/propTypes.js +18 -0
  666. package/lib/setup/helptips/ListGroup/ListGroup.js +2 -5
  667. package/lib/setup/helptips/ListGroup/props/propTypes.js +16 -0
  668. package/lib/setup/helptips/Title/Title.js +2 -4
  669. package/lib/setup/helptips/Title/props/propTypes.js +15 -0
  670. package/lib/setup/table/Table/Table.js +5 -10
  671. package/lib/setup/table/Table/props/defaultProps.js +11 -0
  672. package/lib/setup/table/Table/props/propTypes.js +17 -0
  673. package/lib/setup/table/TableBody/TableBody.js +5 -10
  674. package/lib/setup/table/TableBody/props/defaultProps.js +10 -0
  675. package/lib/setup/table/TableBody/props/propTypes.js +18 -0
  676. package/lib/setup/table/TableData/TableData.js +5 -15
  677. package/lib/setup/table/TableData/props/defaultProps.js +12 -0
  678. package/lib/setup/table/TableData/props/propTypes.js +21 -0
  679. package/lib/setup/table/TableHead/TableHead.js +5 -11
  680. package/lib/setup/table/TableHead/props/defaultProps.js +11 -0
  681. package/lib/setup/table/TableHead/props/propTypes.js +18 -0
  682. package/lib/setup/table/TableRow/TableRow.js +5 -15
  683. package/lib/setup/table/TableRow/props/defaultProps.js +11 -0
  684. package/lib/setup/table/TableRow/props/propTypes.js +22 -0
  685. package/lib/setup/table/Text/Text.js +5 -20
  686. package/lib/setup/table/Text/props/defaultProps.js +14 -0
  687. package/lib/setup/table/Text/props/propTypes.js +24 -0
  688. package/lib/svg/PlusIcon.js +5 -11
  689. package/lib/svg/SnippetIcon.js +5 -11
  690. package/lib/svg/TemplateIcon.js +5 -11
  691. package/lib/svg/props/defaultProps.js +24 -0
  692. package/lib/svg/props/propTypes.js +29 -0
  693. package/lib/version2/AlertClose/AlertClose.js +2 -8
  694. package/lib/version2/AlertClose/props/propTypes.js +19 -0
  695. package/lib/version2/GlobalNotification/GlobalNotification.js +5 -16
  696. package/lib/version2/GlobalNotification/props/defaultProps.js +10 -0
  697. package/lib/version2/GlobalNotification/props/propTypes.js +24 -0
  698. package/lib/version2/alertIcons/AlarmAlertIcon.js +5 -8
  699. package/lib/version2/alertIcons/AlertIcons.js +5 -9
  700. package/lib/version2/alertIcons/DangerAlertIcon.js +5 -9
  701. package/lib/version2/alertIcons/ErrorAlertIcon.js +5 -8
  702. package/lib/version2/alertIcons/InfoAlertIcon.js +5 -8
  703. package/lib/version2/alertIcons/NotificationAlertIcon.js +5 -8
  704. package/lib/version2/alertIcons/SuccessAlertIcon.js +5 -8
  705. package/lib/version2/alertIcons/WarningAlertIcon.js +5 -8
  706. package/lib/version2/alertIcons/props/defaultProps.js +40 -0
  707. package/lib/version2/alertIcons/props/propTypes.js +51 -0
  708. package/lib/version2/errorstate/Inconvenience/Inconvenience.js +5 -24
  709. package/lib/version2/errorstate/Inconvenience/props/defaultProps.js +15 -0
  710. package/lib/version2/errorstate/Inconvenience/props/propTypes.js +27 -0
  711. package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +5 -24
  712. package/lib/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +15 -0
  713. package/lib/version2/errorstate/OopsSomethingMiss/props/propTypes.js +27 -0
  714. package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +5 -24
  715. package/lib/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +15 -0
  716. package/lib/version2/errorstate/UnableToProcessRequest/props/propTypes.js +27 -0
  717. package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +5 -26
  718. package/lib/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +16 -0
  719. package/lib/version2/errorstate/UnauthorizedLogin/props/propTypes.js +28 -0
  720. package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +5 -24
  721. package/lib/version2/errorstate/UrlNotFound/props/defaultProps.js +15 -0
  722. package/lib/version2/errorstate/UrlNotFound/props/propTypes.js +27 -0
  723. package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +5 -24
  724. package/lib/version2/errorstate/WillBeRightBack/props/defaultProps.js +15 -0
  725. package/lib/version2/errorstate/WillBeRightBack/props/propTypes.js +27 -0
  726. package/lib/version2/lookup/AlertHeader/AlertHeader.js +5 -18
  727. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +13 -0
  728. package/lib/version2/lookup/AlertHeader/props/propTypes.js +23 -0
  729. package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -49
  730. package/lib/version2/lookup/AlertLookup/props/defaultProps.js +20 -0
  731. package/lib/version2/lookup/AlertLookup/props/propTypes.js +47 -0
  732. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +5 -50
  733. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +21 -0
  734. package/lib/version2/notification/DesktopNotification/props/propTypes.js +47 -0
  735. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -16
  736. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +12 -0
  737. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +22 -0
  738. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.236
6
+
7
+ - Alertlookup and version2 Alertlookup -> didmount code added for Enter key functionality.
8
+ - TextEditor => htmlVersion !Doctype html added and handleChange function performance changes.
9
+
10
+ # 1.0.0-beta.235
11
+
12
+ - Action Button => innerClassName and popupGroup prop added.
13
+ - default props and proptype => removed from component file and made it as a separate file.
14
+
5
15
  # 1.0.0-beta.234
6
16
 
7
17
  - AlertLookup V1 => isHtmlContent prop added
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
3
4
  import Popup from '@zohodesk/components/lib/Popup/Popup';
4
5
  import Icon from '@zohodesk/icons/lib/Icon';
5
6
  import Button from '@zohodesk/components/lib/Button/Button';
@@ -47,7 +48,9 @@ export class ActionButton extends React.Component {
47
48
  isBoxPaddingNeed,
48
49
  getContainerRef,
49
50
  getTargetRef,
50
- removeChildrenTooltip
51
+ removeChildrenTooltip,
52
+ innerClassName,
53
+ popupGroup
51
54
  } = this.props;
52
55
  return /*#__PURE__*/React.createElement(Container, {
53
56
  alignBox: "row",
@@ -71,7 +74,7 @@ export class ActionButton extends React.Component {
71
74
  flexible: true,
72
75
  onClick: onClick,
73
76
  dataId: dataId,
74
- className: `${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} `,
77
+ className: `${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} ${innerClassName} `,
75
78
  "data-title": dataTitle
76
79
  }, /*#__PURE__*/React.createElement(Container, {
77
80
  align: "both"
@@ -114,7 +117,8 @@ export class ActionButton extends React.Component {
114
117
  customDropBoxWrap: dropBoxClass
115
118
  },
116
119
  isBoxPaddingNeed: isBoxPaddingNeed,
117
- getRef: getContainerRef
120
+ getRef: getContainerRef,
121
+ popupGroup: popupGroup
118
122
  }, /*#__PURE__*/React.createElement(Box, {
119
123
  flexible: true,
120
124
  shrink: true,
@@ -123,50 +127,8 @@ export class ActionButton extends React.Component {
123
127
  }
124
128
 
125
129
  }
126
- ActionButton.defaultProps = {
127
- size: 'medium',
128
- isArrow: false,
129
- arrowBoxDataId: 'arrowBox',
130
- dataId: 'actionButton',
131
- onHover: false,
132
- className: '',
133
- iconName: '',
134
- iconSize: '9',
135
- isDisabled: false,
136
- dropBoxClass: '',
137
- arrowBoxSize: 'medium',
138
- isBoxPaddingNeed: true,
139
- palette: 'primaryFilled',
140
- removeChildrenTooltip: false
141
- };
142
- ActionButton.propTypes = {
143
- arrowBoxDataId: PropTypes.string,
144
- arrowBoxSize: PropTypes.oneOf(['small', 'medium']),
145
- children: PropTypes.node,
146
- className: PropTypes.string,
147
- dataId: PropTypes.string,
148
- dataTitle: PropTypes.string,
149
- dropBoxClass: PropTypes.string,
150
- defaultPosition: PropTypes.string,
151
- position: PropTypes.string,
152
- iconName: PropTypes.string,
153
- iconSize: PropTypes.string,
154
- isArrow: PropTypes.bool,
155
- isBoxPaddingNeed: PropTypes.bool,
156
- isDisabled: PropTypes.bool,
157
- isLoading: PropTypes.bool,
158
- isPopupOpen: PropTypes.bool,
159
- onClick: PropTypes.func,
160
- onHover: PropTypes.bool,
161
- palette: PropTypes.oneOf('primaryFilled', 'primary'),
162
- removeClose: PropTypes.func,
163
- size: PropTypes.oneOf(['small', 'medium', 'large']),
164
- subText: PropTypes.string,
165
- text: PropTypes.string,
166
- getContainerRef: PropTypes.func,
167
- getTargetRef: PropTypes.func,
168
- removeChildrenTooltip: PropTypes.bool
169
- };
130
+ ActionButton.defaultProps = defaultProps;
131
+ ActionButton.propTypes = propTypes;
170
132
  ActionButton.docs = {
171
133
  componentGroup: 'Atom'
172
134
  };
@@ -0,0 +1,17 @@
1
+ export const defaultProps = {
2
+ size: 'medium',
3
+ isArrow: false,
4
+ arrowBoxDataId: 'arrowBox',
5
+ dataId: 'actionButton',
6
+ onHover: false,
7
+ className: '',
8
+ iconName: '',
9
+ iconSize: '9',
10
+ isDisabled: false,
11
+ dropBoxClass: '',
12
+ arrowBoxSize: 'medium',
13
+ isBoxPaddingNeed: true,
14
+ palette: 'primaryFilled',
15
+ removeChildrenTooltip: false,
16
+ innerClassName: ''
17
+ };
@@ -0,0 +1,31 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ arrowBoxDataId: PropTypes.string,
4
+ arrowBoxSize: PropTypes.oneOf(['small', 'medium']),
5
+ children: PropTypes.node,
6
+ className: PropTypes.string,
7
+ dataId: PropTypes.string,
8
+ dataTitle: PropTypes.string,
9
+ dropBoxClass: PropTypes.string,
10
+ defaultPosition: PropTypes.string,
11
+ position: PropTypes.string,
12
+ iconName: PropTypes.string,
13
+ iconSize: PropTypes.string,
14
+ isArrow: PropTypes.bool,
15
+ isBoxPaddingNeed: PropTypes.bool,
16
+ isDisabled: PropTypes.bool,
17
+ isLoading: PropTypes.bool,
18
+ isPopupOpen: PropTypes.bool,
19
+ onClick: PropTypes.func,
20
+ onHover: PropTypes.bool,
21
+ palette: PropTypes.oneOf('primaryFilled', 'primary'),
22
+ removeClose: PropTypes.func,
23
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
24
+ subText: PropTypes.string,
25
+ text: PropTypes.string,
26
+ getContainerRef: PropTypes.func,
27
+ getTargetRef: PropTypes.func,
28
+ removeChildrenTooltip: PropTypes.bool,
29
+ innerClassName: PropTypes.string,
30
+ popupGroup: PropTypes.string
31
+ };
@@ -1,13 +1,11 @@
1
1
  /*** Libraries ***/
2
2
  import React from 'react';
3
- import PropTypes from 'prop-types';
3
+ import { AlphabeticList_defaultProps, AlphabeticListItem_defaultProps } from './props/defaultProps';
4
+ import { AlphabeticList_propTypes, AlphabeticListItem_propTypes, AlphabeticCharacters, NumberList, AlphabeticCharactersWithHash } from './props/propTypes';
4
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
5
6
  /*** CSS ***/
6
7
 
7
8
  import style from './AlphabeticList.module.css';
8
- let AlphabeticCharacters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
9
- let AlphabeticCharactersWithHash = [...AlphabeticCharacters, '#'];
10
- let NumberList = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '#'];
11
9
  export default class AlphabeticList extends React.PureComponent {
12
10
  constructor(props) {
13
11
  super(props);
@@ -70,23 +68,8 @@ export default class AlphabeticList extends React.PureComponent {
70
68
  }
71
69
 
72
70
  }
73
- AlphabeticList.propTypes = {
74
- align: PropTypes.string,
75
- onSelect: PropTypes.func.isRequired,
76
- selectedCharacter: PropTypes.oneOf(['ALL', ...AlphabeticCharacters, ...NumberList, ...AlphabeticCharactersWithHash]),
77
- type: PropTypes.oneOf(['alphabetical', 'numeral', 'alphabeticalwithhash']),
78
- i18nKeys: PropTypes.shape({
79
- allTitle: PropTypes.string,
80
- allText: PropTypes.string
81
- }),
82
- dataId: PropTypes.string
83
- };
84
- AlphabeticList.defaultProps = {
85
- align: 'vertical',
86
- type: 'alphabetical',
87
- i18nKeys: {},
88
- dataId: 'Navi'
89
- };
71
+ AlphabeticList.propTypes = AlphabeticList_propTypes;
72
+ AlphabeticList.defaultProps = AlphabeticList_defaultProps;
90
73
  AlphabeticList.docs = {
91
74
  componentGroup: 'Atom'
92
75
  };
@@ -124,15 +107,5 @@ class AlphabeticListItem extends React.PureComponent {
124
107
 
125
108
  }
126
109
 
127
- AlphabeticListItem.propTypes = {
128
- id: PropTypes.string,
129
- isActive: PropTypes.bool,
130
- onClick: PropTypes.func,
131
- text: PropTypes.string,
132
- dataId: PropTypes.string
133
- };
134
- AlphabeticListItem.defaultProps = {
135
- isActive: false,
136
- text: '',
137
- dataId: 'Navi'
138
- };
110
+ AlphabeticListItem.propTypes = AlphabeticListItem_propTypes;
111
+ AlphabeticListItem.defaultProps = AlphabeticListItem_defaultProps;
@@ -0,0 +1,11 @@
1
+ export const AlphabeticList_defaultProps = {
2
+ align: 'vertical',
3
+ type: 'alphabetical',
4
+ i18nKeys: {},
5
+ dataId: 'Navi'
6
+ };
7
+ export const AlphabeticListItem_defaultProps = {
8
+ isActive: false,
9
+ text: '',
10
+ dataId: 'Navi'
11
+ };
@@ -0,0 +1,22 @@
1
+ import PropTypes from 'prop-types';
2
+ export const AlphabeticCharacters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
3
+ export const NumberList = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '#'];
4
+ export const AlphabeticCharactersWithHash = [...AlphabeticCharacters, '#'];
5
+ export const AlphabeticList_propTypes = {
6
+ align: PropTypes.string,
7
+ onSelect: PropTypes.func.isRequired,
8
+ selectedCharacter: PropTypes.oneOf(['ALL', ...AlphabeticCharacters, ...NumberList, ...AlphabeticCharactersWithHash]),
9
+ type: PropTypes.oneOf(['alphabetical', 'numeral', 'alphabeticalwithhash']),
10
+ i18nKeys: PropTypes.shape({
11
+ allTitle: PropTypes.string,
12
+ allText: PropTypes.string
13
+ }),
14
+ dataId: PropTypes.string
15
+ };
16
+ export const AlphabeticListItem_propTypes = {
17
+ id: PropTypes.string,
18
+ isActive: PropTypes.bool,
19
+ onClick: PropTypes.func,
20
+ text: PropTypes.string,
21
+ dataId: PropTypes.string
22
+ };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
3
4
  import Icon from '@zohodesk/icons/lib/Icon';
4
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
5
6
  import Link from '../Link/Link';
@@ -76,26 +77,8 @@ export default class Attachment extends React.Component {
76
77
  }
77
78
 
78
79
  }
79
- Attachment.propTypes = {
80
- dataId: PropTypes.string,
81
- downloadLink: PropTypes.string,
82
- fileInfo: PropTypes.string,
83
- fileName: PropTypes.string,
84
- fileSize: PropTypes.string,
85
- iconName: PropTypes.string,
86
- onClick: PropTypes.func,
87
- palette: PropTypes.oneOf(['transparent', 'default']),
88
- size: PropTypes.oneOf(['small', 'medium']),
89
- i18nKeys: PropTypes.shape({
90
- downloadTitle: PropTypes.string
91
- })
92
- };
93
- Attachment.defaultProps = {
94
- size: 'medium',
95
- palette: 'default',
96
- dataId: 'attachment',
97
- i18nKeys: {}
98
- };
80
+ Attachment.propTypes = propTypes;
81
+ Attachment.defaultProps = defaultProps;
99
82
 
100
83
  if (false) {
101
84
  Attachment.docs = {
@@ -0,0 +1,6 @@
1
+ export const defaultProps = {
2
+ size: 'medium',
3
+ palette: 'default',
4
+ dataId: 'attachment',
5
+ i18nKeys: {}
6
+ };
@@ -0,0 +1,15 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ dataId: PropTypes.string,
4
+ downloadLink: PropTypes.string,
5
+ fileInfo: PropTypes.string,
6
+ fileName: PropTypes.string,
7
+ fileSize: PropTypes.string,
8
+ iconName: PropTypes.string,
9
+ onClick: PropTypes.func,
10
+ palette: PropTypes.oneOf(['transparent', 'default']),
11
+ size: PropTypes.oneOf(['small', 'medium']),
12
+ i18nKeys: PropTypes.shape({
13
+ downloadTitle: PropTypes.string
14
+ })
15
+ };
@@ -2,7 +2,8 @@
2
2
 
3
3
  /** * Libraries ** */
4
4
  import React, { Component } from 'react';
5
- import PropTypes from 'prop-types';
5
+ import { AttachmentImage_defaultProps } from './props/defaultProps';
6
+ import { AttachmentImage_propTypes } from './props/propTypes';
6
7
  import Image from '../Image/Image';
7
8
  /** * CSS ** */
8
9
 
@@ -73,17 +74,5 @@ export default class AttachmentImage extends Component {
73
74
  }
74
75
 
75
76
  }
76
- AttachmentImage.propTypes = {
77
- alt: PropTypes.string,
78
- className: PropTypes.string,
79
- dataId: PropTypes.string,
80
- id: PropTypes.string,
81
- isCover: PropTypes.bool,
82
- isImage: PropTypes.string,
83
- onClick: PropTypes.func,
84
- onLoad: PropTypes.func,
85
- src: PropTypes.string
86
- };
87
- AttachmentImage.defaultProps = {
88
- dataId: 'AttachmentImage'
89
- };
77
+ AttachmentImage.propTypes = AttachmentImage_propTypes;
78
+ AttachmentImage.defaultProps = AttachmentImage_defaultProps;
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from "react";
2
- import PropTypes from "prop-types";
2
+ import { AttachmentViewer_defaultProps } from './props/defaultProps';
3
+ import { AttachmentViewer_propTypes } from './props/propTypes';
3
4
  import { Container, Box } from "@zohodesk/components/lib/Layout";
4
5
  import Icon from "@zohodesk/icons/lib/Icon";
5
6
  import Avatar from "@zohodesk/components/lib/Avatar/Avatar";
@@ -529,32 +530,8 @@ export default class AttachmentViewer extends Component {
529
530
  }
530
531
 
531
532
  }
532
- AttachmentViewer.propTypes = {
533
- hideAttachmentViewer: PropTypes.func,
534
- i18nKeys: PropTypes.shape({
535
- nextText: PropTypes.string,
536
- previousText: PropTypes.string,
537
- zoomOutText: PropTypes.string,
538
- zoomInText: PropTypes.string,
539
- newTabText: PropTypes.string,
540
- downloadText: PropTypes.string,
541
- closeText: PropTypes.string,
542
- hideText: PropTypes.string,
543
- showText: PropTypes.string
544
- }),
545
- needDownload: PropTypes.string,
546
- previewObj: PropTypes.object,
547
- responsiveId: PropTypes.string,
548
- maintainZoom: PropTypes.bool,
549
- isActive: PropTypes.bool
550
- };
551
- AttachmentViewer.defaultProps = {
552
- responsiveId: "Helmet",
553
- needDownload: true,
554
- i18nKeys: {},
555
- maintainZoom: false,
556
- isActive: false
557
- };
533
+ AttachmentViewer.propTypes = AttachmentViewer_propTypes;
534
+ AttachmentViewer.defaultProps = AttachmentViewer_defaultProps;
558
535
 
559
536
  if (false) {
560
537
  AttachmentViewer.docs = {
@@ -0,0 +1,10 @@
1
+ export const AttachmentImage_defaultProps = {
2
+ dataId: 'AttachmentImage'
3
+ };
4
+ export const AttachmentViewer_defaultProps = {
5
+ responsiveId: "Helmet",
6
+ needDownload: true,
7
+ i18nKeys: {},
8
+ maintainZoom: false,
9
+ isActive: false
10
+ };
@@ -0,0 +1,31 @@
1
+ import PropTypes from 'prop-types';
2
+ export const AttachmentImage_propTypes = {
3
+ alt: PropTypes.string,
4
+ className: PropTypes.string,
5
+ dataId: PropTypes.string,
6
+ id: PropTypes.string,
7
+ isCover: PropTypes.bool,
8
+ isImage: PropTypes.string,
9
+ onClick: PropTypes.func,
10
+ onLoad: PropTypes.func,
11
+ src: PropTypes.string
12
+ };
13
+ export const AttachmentViewer_propTypes = {
14
+ hideAttachmentViewer: PropTypes.func,
15
+ i18nKeys: PropTypes.shape({
16
+ nextText: PropTypes.string,
17
+ previousText: PropTypes.string,
18
+ zoomOutText: PropTypes.string,
19
+ zoomInText: PropTypes.string,
20
+ newTabText: PropTypes.string,
21
+ downloadText: PropTypes.string,
22
+ closeText: PropTypes.string,
23
+ hideText: PropTypes.string,
24
+ showText: PropTypes.string
25
+ }),
26
+ needDownload: PropTypes.string,
27
+ previewObj: PropTypes.object,
28
+ responsiveId: PropTypes.string,
29
+ maintainZoom: PropTypes.bool,
30
+ isActive: PropTypes.bool
31
+ };
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
3
4
  import Icon from '@zohodesk/icons/lib/Icon';
4
5
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
5
6
  import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
@@ -89,35 +90,8 @@ export default class ChannelIcon extends Component {
89
90
  }
90
91
 
91
92
  }
92
- ChannelIcon.defaultProps = {
93
- iconSize: '21',
94
- name: 'phone',
95
- needTopicBorder: true,
96
- renderIconOnly: false
97
- };
98
- ChannelIcon.propTypes = {
99
- action: PropTypes.string,
100
- className: PropTypes.string,
101
- customTextClass: PropTypes.string,
102
- dataId: PropTypes.string,
103
- iconClass: PropTypes.string,
104
- iconColor: PropTypes.string,
105
- iconName: PropTypes.string,
106
- iconSize: PropTypes.string,
107
- iconTitle: PropTypes.string,
108
- name: PropTypes.string,
109
- needTopicBorder: PropTypes.bool,
110
- palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
111
- renderIconOnly: PropTypes.bool,
112
- size: PropTypes.string,
113
- textPalette: PropTypes.oneOf(['white', 'black']),
114
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
115
- topicClass: PropTypes.string,
116
- topicIcon: PropTypes.string,
117
- topicIconColor: PropTypes.string,
118
- topicIconSize: PropTypes.string,
119
- topicIconTitle: PropTypes.string
120
- };
93
+ ChannelIcon.defaultProps = defaultProps;
94
+ ChannelIcon.propTypes = propTypes;
121
95
 
122
96
  if (false) {
123
97
  ChannelIcon.docs = {
@@ -0,0 +1,6 @@
1
+ export const defaultProps = {
2
+ iconSize: '21',
3
+ name: 'phone',
4
+ needTopicBorder: true,
5
+ renderIconOnly: false
6
+ };
@@ -0,0 +1,24 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ action: PropTypes.string,
4
+ className: PropTypes.string,
5
+ customTextClass: PropTypes.string,
6
+ dataId: PropTypes.string,
7
+ iconClass: PropTypes.string,
8
+ iconColor: PropTypes.string,
9
+ iconName: PropTypes.string,
10
+ iconSize: PropTypes.string,
11
+ iconTitle: PropTypes.string,
12
+ name: PropTypes.string,
13
+ needTopicBorder: PropTypes.bool,
14
+ palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
15
+ renderIconOnly: PropTypes.bool,
16
+ size: PropTypes.string,
17
+ textPalette: PropTypes.oneOf(['white', 'black']),
18
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
19
+ topicClass: PropTypes.string,
20
+ topicIcon: PropTypes.string,
21
+ topicIconColor: PropTypes.string,
22
+ topicIconSize: PropTypes.string,
23
+ topicIconTitle: PropTypes.string
24
+ };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
3
+ import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
3
4
  import FreezeLayer from '../FreezeLayer/FreezeLayer';
4
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
5
6
  import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
@@ -83,29 +84,8 @@ export class Header extends React.Component {
83
84
  }
84
85
 
85
86
  }
86
- Header.propTypes = {
87
- children: PropTypes.node,
88
- className: PropTypes.string,
89
- closeTitle: PropTypes.string,
90
- dataId: PropTypes.string,
91
- flexible: PropTypes.bool,
92
- getChildren: PropTypes.func,
93
- iconName: PropTypes.string,
94
- iconSize: PropTypes.string,
95
- iconTitle: PropTypes.string,
96
- isIconBold: PropTypes.bool,
97
- onClose: PropTypes.func,
98
- onIconClick: PropTypes.func,
99
- paddingSize: PropTypes.oneOf(['small', 'medium', 'large']),
100
- title: PropTypes.string,
101
- isBoxIcon: PropTypes.bool,
102
- getTitleChildren: PropTypes.func
103
- };
104
- Header.defaultProps = {
105
- flexible: false,
106
- paddingSize: 'small',
107
- isBoxIcon: true
108
- };
87
+ Header.propTypes = Header_propTypes;
88
+ Header.defaultProps = Header_defaultProps;
109
89
  export class Content extends React.Component {
110
90
  render() {
111
91
  let {
@@ -123,12 +103,7 @@ export class Content extends React.Component {
123
103
  }
124
104
 
125
105
  }
126
- Content.propTypes = {
127
- children: PropTypes.node,
128
- className: PropTypes.string,
129
- eleRef: PropTypes.func,
130
- paddingSize: PropTypes.oneOf(['small', 'medium', 'large'])
131
- };
106
+ Content.propTypes = Content_propTypes;
132
107
  export class Footer extends React.Component {
133
108
  render() {
134
109
  let {
@@ -145,15 +120,8 @@ export class Footer extends React.Component {
145
120
  }
146
121
 
147
122
  }
148
- Footer.propTypes = {
149
- children: PropTypes.node,
150
- paddingLeftSize: PropTypes.string,
151
- paddingRightClass: PropTypes.string,
152
- size: PropTypes.string
153
- };
154
- Footer.defaultProps = {
155
- size: 'small'
156
- };
123
+ Footer.propTypes = Footer_propTypes;
124
+ Footer.defaultProps = Footer_defaultProps;
157
125
  export default class Drawer extends React.Component {
158
126
  constructor(props) {
159
127
  super(props);
@@ -276,36 +244,8 @@ export default class Drawer extends React.Component {
276
244
  }
277
245
 
278
246
  }
279
- Drawer.propTypes = {
280
- children: PropTypes.node,
281
- customClass: PropTypes.string,
282
- forwardRef: PropTypes.object,
283
- isActive: PropTypes.bool,
284
- needAutoZindex: PropTypes.bool,
285
- needFreeze: PropTypes.bool,
286
- onBodyClick: PropTypes.func,
287
- onClose: PropTypes.func,
288
- paddingSize: PropTypes.oneOf(['small', 'medium', 'large']),
289
- palette: PropTypes.oneOf(['dark', 'default', 'darkLight', 'plain']),
290
- responsiveId: PropTypes.string,
291
- size: PropTypes.oneOf(['small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge', 'xxlarge', 'default']),
292
- subDrawerActive: PropTypes.bool,
293
- subDrawerChildren: PropTypes.func,
294
- subDrawerClass: PropTypes.string,
295
- subDrawerSize: PropTypes.oneOf(['xsmall', 'small', 'medium'])
296
- };
297
- Drawer.defaultProps = {
298
- isActive: false,
299
- palette: 'default',
300
- responsiveId: 'Helmet',
301
- size: 'small',
302
- subDrawerSize: 'small',
303
- subDrawerActive: false,
304
- subDrawerClass: '',
305
- customClass: '',
306
- needAutoZindex: true,
307
- onBodyClick: () => {}
308
- };
247
+ Drawer.propTypes = Drawer_propTypes;
248
+ Drawer.defaultProps = Drawer_defaultProps;
309
249
 
310
250
  if (false) {
311
251
  Drawer.docs = {
@@ -0,0 +1,20 @@
1
+ export const Header_defaultProps = {
2
+ flexible: false,
3
+ paddingSize: 'small',
4
+ isBoxIcon: true
5
+ };
6
+ export const Footer_defaultProps = {
7
+ size: 'small'
8
+ };
9
+ export const Drawer_defaultProps = {
10
+ isActive: false,
11
+ palette: 'default',
12
+ responsiveId: 'Helmet',
13
+ size: 'small',
14
+ subDrawerSize: 'small',
15
+ subDrawerActive: false,
16
+ subDrawerClass: '',
17
+ customClass: '',
18
+ needAutoZindex: true,
19
+ onBodyClick: () => {}
20
+ };