@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
@@ -0,0 +1,37 @@
1
+ import { FieldCommonPropTypes } from '../../props/FieldCommonPropTypes';
2
+ import PropTypes from 'prop-types';
3
+ export const propTypes = {
4
+ borderColor: PropTypes.oneOf(['transparent', 'default']),
5
+ errorType: PropTypes.oneOf(['primary', 'secondary']),
6
+ fieldSize: PropTypes.oneOf(['small', 'medium']),
7
+ getRef: PropTypes.func,
8
+ id: PropTypes.string,
9
+ // isFocusOnLabelClick: PropTypes.bool,
10
+ labelCustomClass: PropTypes.string,
11
+ labelName: PropTypes.string.isRequired,
12
+ labelPalette: PropTypes.string,
13
+ maxLength: PropTypes.number,
14
+ onBlur: PropTypes.func,
15
+ onChange: PropTypes.func,
16
+ onKeyDown: PropTypes.func,
17
+ placeHolder: PropTypes.string,
18
+ textBoxSize: PropTypes.string,
19
+ textBoxType: PropTypes.string,
20
+ textBoxVariant: PropTypes.string,
21
+ title: PropTypes.string,
22
+ validationMessage: PropTypes.string,
23
+ validationPalette: PropTypes.string,
24
+ validationRuleMessage: PropTypes.string,
25
+ validationRulePalette: PropTypes.string,
26
+ value: PropTypes.string,
27
+ isClickable: PropTypes.bool,
28
+ needReadOnlyStyle: PropTypes.bool,
29
+ children: PropTypes.node,
30
+ customProps: PropTypes.shape({
31
+ LabelProps: PropTypes.object,
32
+ TextBoxIconProps: PropTypes.object,
33
+ ValidationMessageProps1: PropTypes.object,
34
+ ValidationMessageProps2: PropTypes.object
35
+ }),
36
+ ...FieldCommonPropTypes()
37
+ };
@@ -1,6 +1,7 @@
1
1
  /***** Libraries *****/
2
2
  import React, { Component } from 'react';
3
- import PropTypes from 'prop-types';
3
+ import { defaultProps } from './props/defaultProps';
4
+ import { propTypes } from './props/propTypes';
4
5
  import selectn from 'selectn';
5
6
  import { Container, Box } from '@zohodesk/components/lib/Layout';
6
7
  /***** Methods *****/
@@ -85,7 +86,8 @@ export default class TextEditor extends Component {
85
86
  hookOnInsertHTML: validateEditorContentOnInsertHtml,
86
87
  needCustomPaste: function (event, editorObj) {
87
88
  return true; // By default reply editor needs customPaste, so returning true.
88
- }
89
+ },
90
+ htmlVersion: "<!Doctype html>"
89
91
  };
90
92
 
91
93
  if (!ZohoDeskEditor_Init.init) {
@@ -190,8 +192,11 @@ export default class TextEditor extends Component {
190
192
  onChange,
191
193
  id
192
194
  } = this.props;
193
- let content = this.handleGetContent();
194
- onChange && onChange(content, id);
195
+
196
+ if (onChange) {
197
+ let content = this.handleGetContent();
198
+ onChange(content, id);
199
+ }
195
200
  }
196
201
 
197
202
  editorCallback(editorObj) {
@@ -385,7 +390,7 @@ export default class TextEditor extends Component {
385
390
  } = this.state;
386
391
  let editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
387
392
  return /*#__PURE__*/React.createElement(Container, {
388
- className: `${styles.textEditor} ${styles[type]} ${styles[border]}
393
+ className: `${styles.textEditor} ${styles[type]} ${styles[border]}
389
394
  ${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${!isEditorShow ? styles.editorHide : ''}`,
390
395
  dataId: dataId,
391
396
  "data-isEditor": true
@@ -401,57 +406,8 @@ export default class TextEditor extends Component {
401
406
  }
402
407
 
403
408
  }
404
- TextEditor.defaultProps = {
405
- border: 'borderTop',
406
- type: 'large',
407
- changeEditorContent: false,
408
- fontFamily: 'Lato',
409
- fontSize: '16',
410
- shouldUpdateContent: true,
411
- i18nKeys: {},
412
- needInlineAttachment: false,
413
- isNightMode: false,
414
- isReadOnly: false
415
- };
416
- TextEditor.propTypes = {
417
- ImgLazyLoad: PropTypes.node,
418
- blurCallback: PropTypes.func,
419
- border: PropTypes.oneOf(['borderTop', 'borderAll', 'borderNone']),
420
- changeEditorContent: PropTypes.bool,
421
- dataId: PropTypes.string,
422
- editorCallback: PropTypes.func,
423
- editorMode: PropTypes.string,
424
- editorOptions: PropTypes.object,
425
- fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
426
- fontSize: PropTypes.string,
427
- getRef: PropTypes.func,
428
- handleAlertMessage: PropTypes.func,
429
- handleDropUpload: PropTypes.func,
430
- i18nKeys: PropTypes.shape({
431
- fileUploadError: PropTypes.string,
432
- fileNotSupported: PropTypes.string,
433
- fileEmptyError: PropTypes.string,
434
- fileNameLimitExceed: PropTypes.string,
435
- fileSizeLimitExceed: PropTypes.string
436
- }),
437
- id: PropTypes.string,
438
- initCallback: PropTypes.func.isRequired,
439
- isCustomScroll: PropTypes.bool,
440
- loadingComponent: PropTypes.node,
441
- mode: PropTypes.string,
442
- needEditorFocus: PropTypes.bool,
443
- onChange: PropTypes.func,
444
- onFocus: PropTypes.func,
445
- onUpload: PropTypes.func,
446
- plainTextSwitchCallback: PropTypes.func,
447
- setInlineAttachmentInProgress: PropTypes.func,
448
- shouldUpdateContent: PropTypes.bool,
449
- type: PropTypes.oneOf(['large', 'xlarge', 'medium', 'small', 'mini', 'default']),
450
- value: PropTypes.string,
451
- needInlineAttachment: PropTypes.bool,
452
- isNightMode: PropTypes.bool,
453
- isReadOnly: PropTypes.bool
454
- };
409
+ TextEditor.defaultProps = defaultProps;
410
+ TextEditor.propTypes = propTypes;
455
411
 
456
412
  if (false) {
457
413
  TextEditor.docs = {
@@ -0,0 +1,12 @@
1
+ export const defaultProps = {
2
+ border: 'borderTop',
3
+ type: 'large',
4
+ changeEditorContent: false,
5
+ fontFamily: 'Lato',
6
+ fontSize: '16',
7
+ shouldUpdateContent: true,
8
+ i18nKeys: {},
9
+ needInlineAttachment: false,
10
+ isNightMode: false,
11
+ isReadOnly: false
12
+ };
@@ -0,0 +1,40 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ ImgLazyLoad: PropTypes.node,
4
+ blurCallback: PropTypes.func,
5
+ border: PropTypes.oneOf(['borderTop', 'borderAll', 'borderNone']),
6
+ changeEditorContent: PropTypes.bool,
7
+ dataId: PropTypes.string,
8
+ editorCallback: PropTypes.func,
9
+ editorMode: PropTypes.string,
10
+ editorOptions: PropTypes.object,
11
+ fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
12
+ fontSize: PropTypes.string,
13
+ getRef: PropTypes.func,
14
+ handleAlertMessage: PropTypes.func,
15
+ handleDropUpload: PropTypes.func,
16
+ i18nKeys: PropTypes.shape({
17
+ fileUploadError: PropTypes.string,
18
+ fileNotSupported: PropTypes.string,
19
+ fileEmptyError: PropTypes.string,
20
+ fileNameLimitExceed: PropTypes.string,
21
+ fileSizeLimitExceed: PropTypes.string
22
+ }),
23
+ id: PropTypes.string,
24
+ initCallback: PropTypes.func.isRequired,
25
+ isCustomScroll: PropTypes.bool,
26
+ loadingComponent: PropTypes.node,
27
+ mode: PropTypes.string,
28
+ needEditorFocus: PropTypes.bool,
29
+ onChange: PropTypes.func,
30
+ onFocus: PropTypes.func,
31
+ onUpload: PropTypes.func,
32
+ plainTextSwitchCallback: PropTypes.func,
33
+ setInlineAttachmentInProgress: PropTypes.func,
34
+ shouldUpdateContent: PropTypes.bool,
35
+ type: PropTypes.oneOf(['large', 'xlarge', 'medium', 'small', 'mini', 'default']),
36
+ value: PropTypes.string,
37
+ needInlineAttachment: PropTypes.bool,
38
+ isNightMode: PropTypes.bool,
39
+ isReadOnly: PropTypes.bool
40
+ };
@@ -2,17 +2,14 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  /**** Libraries ****/
4
4
  import React, { PureComponent } from 'react';
5
- import PropTypes from 'prop-types';
5
+ import { defaultProps } from './props/defaultProps';
6
+ import { propTypes } from './props/propTypes';
6
7
  /**** Components ****/
7
8
 
8
9
  import Label from '@zohodesk/components/lib/Label/Label';
9
10
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
10
11
  import TextEditorWrapper from '../TextEditorWrapper/TextEditorWrapper';
11
12
  import FieldContainer from '../FieldContainer/FieldContainer';
12
- /**** props ****/
13
-
14
- import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
15
- import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
16
13
  /** Css */
17
14
 
18
15
  import style from '../Fields.module.css';
@@ -171,64 +168,8 @@ export default class TextEditorField extends PureComponent {
171
168
  }
172
169
 
173
170
  }
174
- TextEditorField.propTypes = {
175
- dataId: PropTypes.string,
176
- fieldSize: PropTypes.oneOf(['small', 'medium']),
177
- getRef: PropTypes.func,
178
- id: PropTypes.string,
179
- isFocusOnLabelClick: PropTypes.bool,
180
- labelCustomClass: PropTypes.string,
181
- labelName: PropTypes.string,
182
- labelPalette: PropTypes.string,
183
- needEditor: PropTypes.bool,
184
- onAttachmentUpload: PropTypes.func,
185
- onChange: PropTypes.func,
186
- textBoxSize: PropTypes.string,
187
- textBoxVariant: PropTypes.string,
188
- validationMessage: PropTypes.string,
189
- validationPalette: PropTypes.string,
190
- value: PropTypes.string,
191
- errorType: PropTypes.string,
192
- EDITORURL: PropTypes.string,
193
- editorMode: PropTypes.string,
194
- isCustomScroll: PropTypes.bool,
195
- initCallback: PropTypes.func,
196
- className: PropTypes.string,
197
- loadingComponent: PropTypes.node,
198
- handleAlertMessage: PropTypes.func,
199
- editorCallback: PropTypes.func,
200
- i18nKeys: PropTypes.object,
201
- ImgLazyLoad: PropTypes.node,
202
- editorOptions: PropTypes.object,
203
- editorBlurCallback: PropTypes.func,
204
- onFocus: PropTypes.func,
205
- isEditorDefaultOpen: PropTypes.bool,
206
- changeEditorContent: PropTypes.bool,
207
- shouldEditorUpdateContent: PropTypes.bool,
208
- setInlineAttachmentInProgress: PropTypes.func,
209
- handleEditorDropUpload: PropTypes.func,
210
- children: PropTypes.node,
211
- needInlineAttachment: PropTypes.bool,
212
- customProps: PropTypes.shape({
213
- LabelProps: PropTypes.object,
214
- TextEditorWrapperProps: PropTypes.object,
215
- ValidationMessageProps: PropTypes.object
216
- }),
217
- ...FieldCommonPropTypes()
218
- };
219
- TextEditorField.defaultProps = {
220
- errorType: 'primary',
221
- needEditor: true,
222
- isFocusOnLabelClick: true,
223
- fieldSize: 'medium',
224
- textBoxSize: 'xsmall',
225
- textBoxVariant: 'primary',
226
- labelPalette: 'default',
227
- labelCustomClass: '',
228
- className: '',
229
- customProps: {},
230
- ...FieldCommonDefaultProps()
231
- };
171
+ TextEditorField.propTypes = propTypes;
172
+ TextEditorField.defaultProps = defaultProps;
232
173
 
233
174
  if (false) {
234
175
  TextEditorField.docs = {
@@ -0,0 +1,14 @@
1
+ import { FieldCommonDefaultProps } from '../../props/FieldCommonDefaultProps';
2
+ export const defaultProps = {
3
+ errorType: 'primary',
4
+ needEditor: true,
5
+ isFocusOnLabelClick: true,
6
+ fieldSize: 'medium',
7
+ textBoxSize: 'xsmall',
8
+ textBoxVariant: 'primary',
9
+ labelPalette: 'default',
10
+ labelCustomClass: '',
11
+ className: '',
12
+ customProps: {},
13
+ ...FieldCommonDefaultProps()
14
+ };
@@ -0,0 +1,47 @@
1
+ import PropTypes from 'prop-types';
2
+ import { FieldCommonPropTypes } from '../../props/FieldCommonPropTypes';
3
+ export const propTypes = {
4
+ dataId: PropTypes.string,
5
+ fieldSize: PropTypes.oneOf(['small', 'medium']),
6
+ getRef: PropTypes.func,
7
+ id: PropTypes.string,
8
+ isFocusOnLabelClick: PropTypes.bool,
9
+ labelCustomClass: PropTypes.string,
10
+ labelName: PropTypes.string,
11
+ labelPalette: PropTypes.string,
12
+ needEditor: PropTypes.bool,
13
+ onAttachmentUpload: PropTypes.func,
14
+ onChange: PropTypes.func,
15
+ textBoxSize: PropTypes.string,
16
+ textBoxVariant: PropTypes.string,
17
+ validationMessage: PropTypes.string,
18
+ validationPalette: PropTypes.string,
19
+ value: PropTypes.string,
20
+ errorType: PropTypes.string,
21
+ EDITORURL: PropTypes.string,
22
+ editorMode: PropTypes.string,
23
+ isCustomScroll: PropTypes.bool,
24
+ initCallback: PropTypes.func,
25
+ className: PropTypes.string,
26
+ loadingComponent: PropTypes.node,
27
+ handleAlertMessage: PropTypes.func,
28
+ editorCallback: PropTypes.func,
29
+ i18nKeys: PropTypes.object,
30
+ ImgLazyLoad: PropTypes.node,
31
+ editorOptions: PropTypes.object,
32
+ editorBlurCallback: PropTypes.func,
33
+ onFocus: PropTypes.func,
34
+ isEditorDefaultOpen: PropTypes.bool,
35
+ changeEditorContent: PropTypes.bool,
36
+ shouldEditorUpdateContent: PropTypes.bool,
37
+ setInlineAttachmentInProgress: PropTypes.func,
38
+ handleEditorDropUpload: PropTypes.func,
39
+ children: PropTypes.node,
40
+ needInlineAttachment: PropTypes.bool,
41
+ customProps: PropTypes.shape({
42
+ LabelProps: PropTypes.object,
43
+ TextEditorWrapperProps: PropTypes.object,
44
+ ValidationMessageProps: PropTypes.object
45
+ }),
46
+ ...FieldCommonPropTypes()
47
+ };
@@ -1,7 +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, { Component } from 'react';
4
- import PropTypes from 'prop-types';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
5
6
  /**** Components ****/
6
7
 
7
8
  import TextEditor from '../TextEditor/TextEditor';
@@ -196,49 +197,5 @@ export default class TextEditorWrapper extends Component {
196
197
  }
197
198
 
198
199
  }
199
- TextEditorWrapper.propTypes = {
200
- dataId: PropTypes.string,
201
- getRef: PropTypes.func,
202
- id: PropTypes.string,
203
- isDisabled: PropTypes.bool,
204
- isReadOnly: PropTypes.bool,
205
- needEditor: PropTypes.bool,
206
- onAttachmentUpload: PropTypes.func,
207
- onChange: PropTypes.func,
208
- textBoxSize: PropTypes.oneOf(['xsmall', 'small', 'xmedium', 'medium', 'large']),
209
- textBoxVariant: PropTypes.string,
210
- value: PropTypes.string,
211
- editorMode: PropTypes.string,
212
- editorSize: PropTypes.string,
213
- editorBorder: PropTypes.string,
214
- EDITORURL: PropTypes.string,
215
- isCustomScroll: PropTypes.bool,
216
- initCallback: PropTypes.func,
217
- loadingComponent: PropTypes.node,
218
- handleAlertMessage: PropTypes.func,
219
- editorCallback: PropTypes.func,
220
- i18nKeys: PropTypes.object,
221
- ImgLazyLoad: PropTypes.node,
222
- editorBlurCallback: PropTypes.func,
223
- editorOptions: PropTypes.object,
224
- isEditorDefaultOpen: PropTypes.bool,
225
- changeEditorContent: PropTypes.bool,
226
- shouldEditorUpdateContent: PropTypes.bool,
227
- setInlineAttachmentInProgress: PropTypes.func,
228
- handleEditorDropUpload: PropTypes.func,
229
- onFocus: PropTypes.func,
230
- needInlineAttachment: PropTypes.bool,
231
- customProps: PropTypes.shape({
232
- Textarea1Props: PropTypes.object,
233
- TextEditorProps: PropTypes.object,
234
- Textarea2Props: PropTypes.object
235
- })
236
- };
237
- TextEditorWrapper.defaultProps = {
238
- textBoxSize: 'small',
239
- textBoxVariant: 'primary',
240
- editorSize: 'large',
241
- editorBorder: 'borderAll',
242
- isEditorDefaultOpen: false,
243
- customProps: {}
244
- };
200
+ TextEditorWrapper.propTypes = propTypes;
201
+ TextEditorWrapper.defaultProps = defaultProps;
@@ -0,0 +1,8 @@
1
+ export const defaultProps = {
2
+ textBoxSize: 'small',
3
+ textBoxVariant: 'primary',
4
+ editorSize: 'large',
5
+ editorBorder: 'borderAll',
6
+ isEditorDefaultOpen: false,
7
+ customProps: {}
8
+ };
@@ -0,0 +1,39 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ dataId: PropTypes.string,
4
+ getRef: PropTypes.func,
5
+ id: PropTypes.string,
6
+ isDisabled: PropTypes.bool,
7
+ isReadOnly: PropTypes.bool,
8
+ needEditor: PropTypes.bool,
9
+ onAttachmentUpload: PropTypes.func,
10
+ onChange: PropTypes.func,
11
+ textBoxSize: PropTypes.oneOf(['xsmall', 'small', 'xmedium', 'medium', 'large']),
12
+ textBoxVariant: PropTypes.string,
13
+ value: PropTypes.string,
14
+ editorMode: PropTypes.string,
15
+ editorSize: PropTypes.string,
16
+ editorBorder: PropTypes.string,
17
+ EDITORURL: PropTypes.string,
18
+ isCustomScroll: PropTypes.bool,
19
+ initCallback: PropTypes.func,
20
+ loadingComponent: PropTypes.node,
21
+ handleAlertMessage: PropTypes.func,
22
+ editorCallback: PropTypes.func,
23
+ i18nKeys: PropTypes.object,
24
+ ImgLazyLoad: PropTypes.node,
25
+ editorBlurCallback: PropTypes.func,
26
+ editorOptions: PropTypes.object,
27
+ isEditorDefaultOpen: PropTypes.bool,
28
+ changeEditorContent: PropTypes.bool,
29
+ shouldEditorUpdateContent: PropTypes.bool,
30
+ setInlineAttachmentInProgress: PropTypes.func,
31
+ handleEditorDropUpload: PropTypes.func,
32
+ onFocus: PropTypes.func,
33
+ needInlineAttachment: PropTypes.bool,
34
+ customProps: PropTypes.shape({
35
+ Textarea1Props: PropTypes.object,
36
+ TextEditorProps: PropTypes.object,
37
+ Textarea2Props: PropTypes.object
38
+ })
39
+ };
@@ -2,7 +2,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  /**** Libraries ****/
4
4
  import React, { PureComponent } from 'react';
5
- import PropTypes from 'prop-types';
5
+ import { defaultProps } from './props/defaultProps';
6
+ import { propTypes } from './props/propTypes';
6
7
  /**** Components ****/
7
8
 
8
9
  import Label from '@zohodesk/components/lib/Label/Label';
@@ -10,10 +11,6 @@ import Textarea from '@zohodesk/components/lib/Textarea/Textarea';
10
11
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
11
12
  import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
12
13
  import FieldContainer from '../FieldContainer/FieldContainer';
13
- /**** props ****/
14
-
15
- import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
16
- import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
17
14
  /**** CSS ****/
18
15
 
19
16
  import style from '../Fields.module.css';
@@ -149,51 +146,8 @@ export default class TextareaField extends PureComponent {
149
146
  }
150
147
 
151
148
  }
152
- TextareaField.propTypes = {
153
- animated: PropTypes.bool,
154
- borderColor: PropTypes.oneOf(['transparent', 'default']),
155
- errorType: PropTypes.oneOf(['primary', 'secondary']),
156
- fieldSize: PropTypes.oneOf(['small', 'medium']),
157
- getRef: PropTypes.func,
158
- id: PropTypes.string,
159
- // isFocusOnLabelClick: PropTypes.bool,
160
- labelCustomClass: PropTypes.string,
161
- labelName: PropTypes.string,
162
- labelPalette: PropTypes.string,
163
- maxLength: PropTypes.number,
164
- onBlur: PropTypes.func,
165
- onChange: PropTypes.func,
166
- onKeyDown: PropTypes.func,
167
- placeHolder: PropTypes.string,
168
- textBoxSize: PropTypes.string,
169
- textBoxVariant: PropTypes.string,
170
- title: PropTypes.string,
171
- validationMessage: PropTypes.string,
172
- validationPalette: PropTypes.string,
173
- validationRuleMessage: PropTypes.string,
174
- validationRulePalette: PropTypes.string,
175
- value: PropTypes.string,
176
- customProps: PropTypes.shape({
177
- LabelProps: PropTypes.object,
178
- TextareaProps: PropTypes.object,
179
- ValidationMessageProps1: PropTypes.object,
180
- ValidationMessageProps2: PropTypes.object
181
- }),
182
- ...FieldCommonPropTypes()
183
- };
184
- TextareaField.defaultProps = {
185
- textBoxSize: 'xsmall',
186
- textBoxVariant: 'primary',
187
- animated: true,
188
- errorType: 'primary',
189
- borderColor: 'default',
190
- fieldSize: 'medium',
191
- // isFocusOnLabelClick: true,
192
- labelPalette: 'default',
193
- labelCustomClass: '',
194
- customProps: {},
195
- ...FieldCommonDefaultProps()
196
- };
149
+ TextareaField.propTypes = propTypes;
150
+ TextareaField.defaultProps = defaultProps;
197
151
 
198
152
  if (false) {
199
153
  TextareaField.docs = {
@@ -0,0 +1,14 @@
1
+ import { FieldCommonDefaultProps } from '../../props/FieldCommonDefaultProps';
2
+ export const defaultProps = {
3
+ textBoxSize: 'xsmall',
4
+ textBoxVariant: 'primary',
5
+ animated: true,
6
+ errorType: 'primary',
7
+ borderColor: 'default',
8
+ fieldSize: 'medium',
9
+ // isFocusOnLabelClick: true,
10
+ labelPalette: 'default',
11
+ labelCustomClass: '',
12
+ customProps: {},
13
+ ...FieldCommonDefaultProps()
14
+ };
@@ -0,0 +1,34 @@
1
+ import PropTypes from 'prop-types';
2
+ import { FieldCommonPropTypes } from '../../props/FieldCommonPropTypes';
3
+ export const propTypes = {
4
+ animated: PropTypes.bool,
5
+ borderColor: PropTypes.oneOf(['transparent', 'default']),
6
+ errorType: PropTypes.oneOf(['primary', 'secondary']),
7
+ fieldSize: PropTypes.oneOf(['small', 'medium']),
8
+ getRef: PropTypes.func,
9
+ id: PropTypes.string,
10
+ // isFocusOnLabelClick: PropTypes.bool,
11
+ labelCustomClass: PropTypes.string,
12
+ labelName: PropTypes.string,
13
+ labelPalette: PropTypes.string,
14
+ maxLength: PropTypes.number,
15
+ onBlur: PropTypes.func,
16
+ onChange: PropTypes.func,
17
+ onKeyDown: PropTypes.func,
18
+ placeHolder: PropTypes.string,
19
+ textBoxSize: PropTypes.string,
20
+ textBoxVariant: PropTypes.string,
21
+ title: PropTypes.string,
22
+ validationMessage: PropTypes.string,
23
+ validationPalette: PropTypes.string,
24
+ validationRuleMessage: PropTypes.string,
25
+ validationRulePalette: PropTypes.string,
26
+ value: PropTypes.string,
27
+ customProps: PropTypes.shape({
28
+ LabelProps: PropTypes.object,
29
+ TextareaProps: PropTypes.object,
30
+ ValidationMessageProps1: PropTypes.object,
31
+ ValidationMessageProps2: PropTypes.object
32
+ }),
33
+ ...FieldCommonPropTypes()
34
+ };
@@ -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 Label from '@zohodesk/components/lib/Label/Label';
4
5
  import colors from '@zohodesk/components/lib/Label/LabelColors.module.css';
5
6
  import style from './ValidationMessage.module.css';
@@ -45,25 +46,8 @@ export default class ValidationMessage extends React.Component {
45
46
  }
46
47
 
47
48
  }
48
- ValidationMessage.propTypes = {
49
- clipped: PropTypes.bool,
50
- id: PropTypes.string,
51
- onClick: PropTypes.func,
52
- palette: PropTypes.oneOf(['primary', 'mandatory', 'danger']),
53
- size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large']),
54
- text: PropTypes.string,
55
- type: PropTypes.oneOf(['primary', 'secondary']),
56
- a11y: PropTypes.shape({
57
- role: PropTypes.string
58
- }),
59
- tooltip: PropTypes.string
60
- };
61
- ValidationMessage.defaultProps = {
62
- palette: 'mandatory',
63
- size: 'xsmall',
64
- type: 'primary',
65
- a11y: {}
66
- };
49
+ ValidationMessage.propTypes = propTypes;
50
+ ValidationMessage.defaultProps = defaultProps;
67
51
 
68
52
  if (false) {
69
53
  ValidationMessage.docs = {
@@ -0,0 +1,6 @@
1
+ export const defaultProps = {
2
+ palette: 'mandatory',
3
+ size: 'xsmall',
4
+ type: 'primary',
5
+ a11y: {}
6
+ };
@@ -0,0 +1,14 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ clipped: PropTypes.bool,
4
+ id: PropTypes.string,
5
+ onClick: PropTypes.func,
6
+ palette: PropTypes.oneOf(['primary', 'mandatory', 'danger']),
7
+ size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large']),
8
+ text: PropTypes.string,
9
+ type: PropTypes.oneOf(['primary', 'secondary']),
10
+ a11y: PropTypes.shape({
11
+ role: PropTypes.string
12
+ }),
13
+ tooltip: PropTypes.string
14
+ };
@@ -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 style from './Field.module.css';
4
5
  export default class Field extends Component {
5
6
  render() {
@@ -23,19 +24,8 @@ export default class Field extends Component {
23
24
  }
24
25
 
25
26
  }
26
- Field.propTypes = {
27
- children: PropTypes.any,
28
- className: PropTypes.string,
29
- column: PropTypes.string,
30
- containerClass: PropTypes.string,
31
- dataId: PropTypes.string,
32
- rowBreak: PropTypes.bool,
33
- width: PropTypes.oneOf(['full', 'half'])
34
- };
35
- Field.defaultProps = {
36
- width: 'half',
37
- rowBreak: false
38
- };
27
+ Field.propTypes = propTypes;
28
+ Field.defaultProps = defaultProps;
39
29
 
40
30
  if (false) {
41
31
  Field.docs = {
@@ -0,0 +1,4 @@
1
+ export const defaultProps = {
2
+ width: 'half',
3
+ rowBreak: false
4
+ };