@zohodesk/dot 1.0.0-beta.25 → 1.0.0-beta.251

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 (1537) hide show
  1. package/README.md +1122 -11
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +541 -0
  3. package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +16 -0
  4. package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +16 -0
  5. package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +16 -0
  6. package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +16 -0
  7. package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +16 -0
  8. package/assets/Appearance/default/mode/dotDefaultMode.module.css +541 -0
  9. package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +16 -0
  10. package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +16 -0
  11. package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +16 -0
  12. package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +16 -0
  13. package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +16 -0
  14. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +541 -0
  15. package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +16 -0
  16. package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +16 -0
  17. package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +16 -0
  18. package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +16 -0
  19. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +16 -0
  20. package/dubFinder.js +7 -4
  21. package/es/ActionButton/ActionButton.js +141 -0
  22. package/es/ActionButton/ActionButton.module.css +139 -0
  23. package/es/ActionButton/props/defaultProps.js +17 -0
  24. package/es/ActionButton/props/propTypes.js +31 -0
  25. package/es/AlphabeticList/AlphabeticList.js +103 -0
  26. package/es/AlphabeticList/AlphabeticList.module.css +57 -0
  27. package/es/AlphabeticList/props/defaultProps.js +12 -0
  28. package/es/AlphabeticList/props/propTypes.js +23 -0
  29. package/es/Attachment/Attachment.js +88 -0
  30. package/es/Attachment/Attachment.module.css +158 -0
  31. package/es/Attachment/props/defaultProps.js +7 -0
  32. package/es/Attachment/props/propTypes.js +16 -0
  33. package/es/AttachmentViewer/Attachment.js +16 -0
  34. package/es/AttachmentViewer/AttachmentImage.js +72 -0
  35. package/es/AttachmentViewer/AttachmentViewer.js +507 -0
  36. package/es/AttachmentViewer/AttachmentViewer.module.css +354 -0
  37. package/es/AttachmentViewer/props/defaultProps.js +10 -0
  38. package/es/AttachmentViewer/props/propTypes.js +31 -0
  39. package/es/AttachmentViewer/utils.js +90 -0
  40. package/es/ChannelIcon/ChannelIcon.js +90 -111
  41. package/es/ChannelIcon/ChannelIcon.module.css +68 -59
  42. package/es/ChannelIcon/props/defaultProps.js +7 -0
  43. package/es/ChannelIcon/props/propTypes.js +25 -0
  44. package/es/Drawer/Drawer.js +257 -333
  45. package/es/Drawer/Drawer.module.css +71 -123
  46. package/es/Drawer/index.js +1 -0
  47. package/es/Drawer/props/defaultProps.js +21 -0
  48. package/es/Drawer/props/propTypes.js +50 -0
  49. package/es/ExternalLink/ExternalLink.js +42 -79
  50. package/es/ExternalLink/ExternalLink.module.css +3 -3
  51. package/es/ExternalLink/__tests__/ExternalLink.spec.js +17 -26
  52. package/es/ExternalLink/props/defaultProps.js +5 -0
  53. package/es/ExternalLink/props/propTypes.js +12 -0
  54. package/es/FlipCard/FlipCard.js +127 -168
  55. package/es/FlipCard/FlipCard.module.css +15 -6
  56. package/es/FlipCard/props/defaultProps.js +5 -0
  57. package/es/FlipCard/props/propTypes.js +37 -0
  58. package/es/FormAction/FormAction.js +67 -116
  59. package/es/FormAction/FormAction.module.css +9 -4
  60. package/es/FormAction/props/defaultProps.js +5 -0
  61. package/es/FormAction/props/propTypes.js +8 -0
  62. package/es/FreezeLayer/FreezeLayer.js +72 -141
  63. package/es/FreezeLayer/css/FreezeLayer.module.css +42 -0
  64. package/es/FreezeLayer/css/cssJSLogic.js +23 -0
  65. package/es/FreezeLayer/index.js +2 -0
  66. package/es/FreezeLayer/props/defaultProps.js +9 -0
  67. package/es/FreezeLayer/props/propTypes.js +18 -0
  68. package/es/FreezeLayer/useFreezeLayer.js +50 -0
  69. package/es/IconButton/IconButton.js +137 -81
  70. package/es/IconButton/IconButton.module.css +13 -28
  71. package/es/IconButton/props/defaultProps.js +17 -0
  72. package/es/IconButton/props/propTypes.js +33 -0
  73. package/es/Image/Image.js +35 -63
  74. package/es/Image/props/defaultProps.js +4 -0
  75. package/es/Image/props/propTypes.js +13 -0
  76. package/es/ImportantNotes/ImportantNotes.js +48 -0
  77. package/es/ImportantNotes/ImportantNotes.module.css +20 -0
  78. package/es/ImportantNotes/props/defaultProps.js +6 -0
  79. package/es/ImportantNotes/props/propTypes.js +10 -0
  80. package/es/Link/Link.js +86 -126
  81. package/es/Link/LinkContext.js +2 -4
  82. package/es/Link/props/defaultProps.js +5 -0
  83. package/es/Link/props/propTypes.js +14 -0
  84. package/es/Loader/Loader.js +25 -0
  85. package/es/Loader/Loader.module.css +46 -0
  86. package/es/Message/Message.js +107 -0
  87. package/es/Message/Message.module.css +103 -0
  88. package/es/Message/props/defaultProps.js +4 -0
  89. package/es/Message/props/propTypes.js +13 -0
  90. package/es/MessageBanner/MessageBanner.js +62 -0
  91. package/es/MessageBanner/MessageBanner.module.css +46 -0
  92. package/es/MessageBanner/props/defaultProps.js +7 -0
  93. package/es/MessageBanner/props/propTypes.js +13 -0
  94. package/es/NewStar/NewStar.js +70 -0
  95. package/es/NewStar/NewStar.module.css +175 -0
  96. package/es/NewStar/props/defaultProps.js +4 -0
  97. package/es/NewStar/props/propTypes.js +6 -0
  98. package/es/PlusIcon/PlusIcon.js +39 -81
  99. package/es/PlusIcon/PlusIcon.module.css +11 -2
  100. package/es/PlusIcon/props/defaultProps.js +8 -0
  101. package/es/PlusIcon/props/propTypes.js +11 -0
  102. package/es/Provider/Config.js +12 -0
  103. package/es/Separator/Separator.js +57 -0
  104. package/es/Separator/Separator.module.css +34 -0
  105. package/es/Separator/props/defaultProps.js +12 -0
  106. package/es/Separator/props/propTypes.js +11 -0
  107. package/es/ToastMessage/ToastMessage.js +197 -338
  108. package/es/ToastMessage/ToastMessage.module.css +57 -62
  109. package/es/ToastMessage/props/defaultProps.js +18 -0
  110. package/es/ToastMessage/props/propTypes.js +39 -0
  111. package/es/Upload/Upload.js +75 -0
  112. package/es/Upload/Upload.module.css +125 -0
  113. package/es/Upload/props/defaultProps.js +7 -0
  114. package/es/Upload/props/propTypes.js +17 -0
  115. package/es/actions/AutoClose.js +42 -0
  116. package/es/actions/index.js +12 -10
  117. package/es/actions/props/defaultProps.js +3 -0
  118. package/es/actions/props/propTypes.js +7 -0
  119. package/es/alert/AlertHeader/AlertHeader.js +67 -126
  120. package/es/alert/AlertHeader/AlertHeader.module.css +14 -13
  121. package/es/alert/AlertHeader/props/defaultProps.js +8 -0
  122. package/es/alert/AlertHeader/props/propTypes.js +15 -0
  123. package/es/alert/AlertLookup/AlertLookup.js +94 -184
  124. package/es/alert/AlertLookup/AlertLookup.module.css +7 -3
  125. package/es/alert/AlertLookup/props/defaultProps.js +14 -0
  126. package/es/alert/AlertLookup/props/propTypes.js +36 -0
  127. package/es/alert/index.js +2 -0
  128. package/es/avatar/AvatarClose/AvatarClose.js +47 -66
  129. package/es/avatar/AvatarClose/AvatarClose.module.css +4 -4
  130. package/es/avatar/AvatarClose/props/defaultProps.js +6 -0
  131. package/es/avatar/AvatarClose/props/propTypes.js +14 -0
  132. package/es/avatar/AvatarCollision/AvatarCollision.js +55 -86
  133. package/es/avatar/AvatarCollision/AvatarCollision.module.css +9 -9
  134. package/es/avatar/AvatarCollision/props/defaultProps.js +8 -0
  135. package/es/avatar/AvatarCollision/props/propTypes.js +17 -0
  136. package/es/avatar/AvatarIcon/AvatarIcon.js +49 -85
  137. package/es/avatar/AvatarIcon/AvatarIcon.module.css +32 -10
  138. package/es/avatar/AvatarIcon/props/defaultProps.js +14 -0
  139. package/es/avatar/AvatarIcon/props/propTypes.js +20 -0
  140. package/es/avatar/AvatarStatus/AvatarStatus.js +66 -72
  141. package/es/avatar/AvatarStatus/AvatarStatus.module.css +87 -34
  142. package/es/avatar/AvatarStatus/props/defaultProps.js +12 -0
  143. package/es/avatar/AvatarStatus/props/propTypes.js +26 -0
  144. package/es/avatar/AvatarThread/AvatarThread.js +73 -102
  145. package/es/avatar/AvatarThread/AvatarThread.module.css +119 -17
  146. package/es/avatar/AvatarThread/props/defaultProps.js +9 -0
  147. package/es/avatar/AvatarThread/props/propTypes.js +30 -0
  148. package/es/avatar/AvatarUser/AvatarUser.js +101 -113
  149. package/es/avatar/AvatarUser/AvatarUser.module.css +95 -25
  150. package/es/avatar/AvatarUser/props/defaultProps.js +8 -0
  151. package/es/avatar/AvatarUser/props/propTypes.js +35 -0
  152. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +90 -75
  153. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +5 -5
  154. package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +43 -44
  155. package/es/avatar/AvatarWithTeam/props/defaultProps.js +9 -0
  156. package/es/avatar/AvatarWithTeam/props/propTypes.js +25 -0
  157. package/es/avatar/index.js +7 -0
  158. package/es/common/dot_animation.module.css +27 -0
  159. package/es/common/dot_common.module.css +4 -0
  160. package/es/deprecated/FreezeLayer/FreezeLayer.js +128 -0
  161. package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -0
  162. package/es/deprecated/FreezeLayer/props/defaultProps.js +8 -0
  163. package/es/deprecated/FreezeLayer/props/propTypes.js +17 -0
  164. package/es/deprecated/SelectDropdown/SelectDropdown.js +145 -0
  165. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -0
  166. package/es/deprecated/utils/General.js +17 -0
  167. package/es/deprecated/utils/KeyboardApi.js +253 -0
  168. package/es/docs/formDocs.js +15 -0
  169. package/es/docs/generalDocs.js +22 -77
  170. package/es/docs/lookupDocs.js +9 -24
  171. package/es/docs/setupDocs.js +1 -17
  172. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +787 -536
  173. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +40 -14
  174. package/es/dropdown/ToggleDropDown/props/defaultProps.js +26 -0
  175. package/es/dropdown/ToggleDropDown/props/propTypes.js +72 -0
  176. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +61 -124
  177. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +66 -15
  178. package/es/emptystate/CommonEmptyState/props/defaultProps.js +10 -0
  179. package/es/emptystate/CommonEmptyState/props/propTypes.js +21 -0
  180. package/es/emptystate/EditionPage/EditionPage.css +5 -5
  181. package/es/emptystate/EditionPage/EditionPage.js +52 -97
  182. package/es/emptystate/EditionPage/props/defaultProps.js +5 -0
  183. package/es/emptystate/EditionPage/props/propTypes.js +7 -0
  184. package/es/errorstate/EmptyStates.module.css +56 -13
  185. package/es/errorstate/Inconvenience/Inconvenience.js +71 -76
  186. package/es/errorstate/Inconvenience/Inconvenience.module.css +0 -2
  187. package/es/errorstate/Inconvenience/props/defaultProps.js +4 -0
  188. package/es/errorstate/Inconvenience/props/propTypes.js +11 -0
  189. package/es/errorstate/LinkText/LinkText.js +25 -50
  190. package/es/errorstate/LinkText/LinkText.module.css +2 -2
  191. package/es/errorstate/LinkText/props/defaultProps.js +4 -0
  192. package/es/errorstate/LinkText/props/propTypes.js +8 -0
  193. package/es/errorstate/NoRequestFound/NoRequestFound.js +76 -81
  194. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +0 -2
  195. package/es/errorstate/NoRequestFound/props/defaultProps.js +4 -0
  196. package/es/errorstate/NoRequestFound/props/propTypes.js +11 -0
  197. package/es/errorstate/PermissionPlay/PermissionPlay.js +75 -89
  198. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +10 -9
  199. package/es/errorstate/PermissionPlay/props/defaultProps.js +4 -0
  200. package/es/errorstate/PermissionPlay/props/propTypes.js +11 -0
  201. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +76 -81
  202. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -2
  203. package/es/errorstate/RequestUrlNotFound/props/defaultProps.js +4 -0
  204. package/es/errorstate/RequestUrlNotFound/props/propTypes.js +11 -0
  205. package/es/errorstate/UnableToProcess/UnableToProcess.js +71 -76
  206. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +0 -15
  207. package/es/errorstate/UnableToProcess/props/defaultProps.js +4 -0
  208. package/es/errorstate/UnableToProcess/props/propTypes.js +11 -0
  209. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +76 -81
  210. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -15
  211. package/es/errorstate/UnauthorizedLogin/props/defaultProps.js +4 -0
  212. package/es/errorstate/UnauthorizedLogin/props/propTypes.js +11 -0
  213. package/es/errorstate/WillBack/WillBack.js +68 -74
  214. package/es/errorstate/WillBack/WillBack.module.css +23 -10
  215. package/es/errorstate/WillBack/props/defaultProps.js +4 -0
  216. package/es/errorstate/WillBack/props/propTypes.js +5 -0
  217. package/es/errorstate/index.js +8 -0
  218. package/es/form/fields/CheckBoxField/CheckBoxField.js +137 -0
  219. package/es/form/fields/CheckBoxField/props/defaultProps.js +12 -0
  220. package/es/form/fields/CheckBoxField/props/propTypes.js +27 -0
  221. package/es/form/fields/CurrencyField/CurrencyField.js +176 -0
  222. package/es/form/fields/CurrencyField/props/defaultProps.js +17 -0
  223. package/es/form/fields/CurrencyField/props/propTypes.js +36 -0
  224. package/es/form/fields/DateField/DateField.js +185 -0
  225. package/es/form/fields/DateField/props/defaultProps.js +19 -0
  226. package/es/form/fields/DateField/props/propTypes.js +39 -0
  227. package/es/form/fields/FieldContainer/FieldContainer.js +68 -0
  228. package/es/form/fields/FieldContainer/props/defaultProps.js +7 -0
  229. package/es/form/fields/FieldContainer/props/propTypes.js +12 -0
  230. package/es/form/fields/Fields.module.css +183 -0
  231. package/es/form/fields/MultiSelectField/MultiSelectField.js +210 -0
  232. package/es/form/fields/MultiSelectField/props/defaultProps.js +17 -0
  233. package/es/form/fields/MultiSelectField/props/propTypes.js +50 -0
  234. package/es/form/fields/PhoneField/PhoneField.js +181 -0
  235. package/es/form/fields/PhoneField/props/defaultProps.js +16 -0
  236. package/es/form/fields/PhoneField/props/propTypes.js +40 -0
  237. package/es/form/fields/RadioField/RadioField.js +113 -0
  238. package/es/form/fields/RadioField/props/defaultProps.js +12 -0
  239. package/es/form/fields/RadioField/props/propTypes.js +30 -0
  240. package/es/form/fields/SelectField/SelectField.js +183 -0
  241. package/es/form/fields/SelectField/props/defaultProps.js +18 -0
  242. package/es/form/fields/SelectField/props/propTypes.js +50 -0
  243. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +280 -0
  244. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
  245. package/es/form/fields/TagsMultiSelect/props/defaultProps.js +11 -0
  246. package/es/form/fields/TagsMultiSelect/props/propTypes.js +43 -0
  247. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +242 -0
  248. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
  249. package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +19 -0
  250. package/es/form/fields/TagsMultiSelectField/props/propTypes.js +52 -0
  251. package/es/form/fields/TextBoxField/TextBoxField.js +163 -0
  252. package/es/form/fields/TextBoxField/props/defaultProps.js +17 -0
  253. package/es/form/fields/TextBoxField/props/propTypes.js +37 -0
  254. package/es/form/fields/TextEditor/TextEditor.js +366 -0
  255. package/es/form/fields/TextEditor/TextEditor.module.css +666 -0
  256. package/es/form/fields/TextEditor/props/defaultProps.js +13 -0
  257. package/es/form/fields/TextEditor/props/propTypes.js +40 -0
  258. package/es/form/fields/TextEditorField/TextEditorField.js +172 -0
  259. package/es/form/fields/TextEditorField/props/defaultProps.js +15 -0
  260. package/es/form/fields/TextEditorField/props/propTypes.js +47 -0
  261. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +195 -0
  262. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -0
  263. package/es/form/fields/TextEditorWrapper/props/defaultProps.js +9 -0
  264. package/es/form/fields/TextEditorWrapper/props/propTypes.js +39 -0
  265. package/es/form/fields/TextareaField/TextareaField.js +160 -0
  266. package/es/form/fields/TextareaField/props/defaultProps.js +15 -0
  267. package/es/form/fields/TextareaField/props/propTypes.js +34 -0
  268. package/es/form/fields/ValidationMessage/ValidationMessage.js +58 -0
  269. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
  270. package/es/form/fields/ValidationMessage/props/defaultProps.js +7 -0
  271. package/es/form/fields/ValidationMessage/props/propTypes.js +14 -0
  272. package/es/form/fields/index.js +16 -0
  273. package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
  274. package/es/form/fields/props/FieldCommonPropTypes.js +23 -0
  275. package/es/form/layout/Field/Field.js +33 -0
  276. package/es/form/layout/Field/Field.module.css +22 -0
  277. package/es/form/layout/Field/props/defaultProps.js +4 -0
  278. package/es/form/layout/Field/props/propTypes.js +10 -0
  279. package/es/form/layout/Section/ModuleFormSection.module.css +3 -0
  280. package/es/form/layout/Section/Section.js +34 -0
  281. package/es/form/layout/Section/props/propTypes.js +9 -0
  282. package/es/form/layout/index.js +2 -0
  283. package/es/index.js +51 -14
  284. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +184 -320
  285. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +20 -20
  286. package/es/layout/SetupDetailLayout/props/defaultProps.js +18 -0
  287. package/es/layout/SetupDetailLayout/props/propTypes.js +33 -0
  288. package/es/layout/SubtabLayout/SubtabLayout.js +132 -218
  289. package/es/layout/SubtabLayout/SubtabLayout.module.css +72 -16
  290. package/es/layout/SubtabLayout/index.js +2 -1
  291. package/es/layout/SubtabLayout/props/defaultProps.js +25 -0
  292. package/es/layout/SubtabLayout/props/propTypes.js +40 -0
  293. package/es/list/AvatarFlip/AvatarFlip.js +72 -104
  294. package/es/list/AvatarFlip/AvatarFlip.module.css +1 -13
  295. package/es/list/AvatarFlip/props/defaultProps.js +6 -0
  296. package/es/list/AvatarFlip/props/propTypes.js +29 -0
  297. package/es/list/BluePrintStatus/BluePrintStatus.js +25 -47
  298. package/es/list/BluePrintStatus/BluePrintStatus.module.css +8 -6
  299. package/es/list/BluePrintStatus/props/propTypes.js +4 -0
  300. package/es/list/Comment/Comment.js +41 -77
  301. package/es/list/Comment/Comment.module.css +12 -5
  302. package/es/list/Comment/props/defaultProps.js +3 -0
  303. package/es/list/Comment/props/propTypes.js +9 -0
  304. package/es/list/DepartmentDropDown/DepartmentDropDown.js +87 -96
  305. package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +6 -80
  306. package/es/list/DepartmentDropDown/props/defaultProps.js +7 -0
  307. package/es/list/DepartmentDropDown/props/propTypes.js +24 -0
  308. package/es/list/Dot/Dot.js +17 -44
  309. package/es/list/Dot/Dot.module.css +7 -5
  310. package/es/list/Dot/props/defaultProps.js +4 -0
  311. package/es/list/Dot/props/propTypes.js +5 -0
  312. package/es/list/DotNew/DotNew.js +26 -38
  313. package/es/list/DotNew/DotNew.module.css +14 -11
  314. package/es/list/DotNew/props/defaultProps.js +3 -0
  315. package/es/list/DotNew/props/propTypes.js +6 -0
  316. package/es/list/GridStencils/GridStencils.js +32 -62
  317. package/es/list/GridStencils/GridStencils.module.css +23 -68
  318. package/es/list/GridStencils/props/propTypes.js +7 -0
  319. package/es/list/Icons/AddNewIcon.js +22 -66
  320. package/es/list/Icons/CompleteIcon.js +23 -55
  321. package/es/list/Icons/DeleteIcon.js +24 -75
  322. package/es/list/Icons/EditIcon.js +23 -74
  323. package/es/list/Icons/FloatingIcons.js +27 -55
  324. package/es/list/Icons/Icons.module.css +5 -4
  325. package/es/list/Icons/ReadUnreadIcon.js +31 -0
  326. package/es/list/Icons/SmartIcon.js +23 -45
  327. package/es/list/Icons/index.js +7 -0
  328. package/es/list/Icons/props/defaultProps.js +6 -0
  329. package/es/list/Icons/props/propTypes.js +55 -0
  330. package/es/list/ListLayout/ListLayout.js +73 -134
  331. package/es/list/ListLayout/ListLayout.module.css +38 -7
  332. package/es/list/ListLayout/props/defaultProps.js +11 -0
  333. package/es/list/ListLayout/props/propTypes.js +28 -0
  334. package/es/list/ListStencils/ListStencils.js +39 -55
  335. package/es/list/ListStencils/ListStencils.module.css +48 -8
  336. package/es/list/ListStencils/props/defaultProps.js +3 -0
  337. package/es/list/ListStencils/props/propTypes.js +4 -0
  338. package/es/list/SecondaryText/AccountName.js +72 -90
  339. package/es/list/SecondaryText/ContactName.js +78 -121
  340. package/es/list/SecondaryText/DepartmentText.js +26 -51
  341. package/es/list/SecondaryText/Email.js +44 -80
  342. package/es/list/SecondaryText/HappinessRating.js +26 -58
  343. package/es/list/SecondaryText/PhoneNumber.js +48 -83
  344. package/es/list/SecondaryText/PriorityText.js +29 -59
  345. package/es/list/SecondaryText/SecondaryText.js +35 -57
  346. package/es/list/SecondaryText/SecondaryText.module.css +53 -21
  347. package/es/list/SecondaryText/StatusText.js +30 -62
  348. package/es/list/SecondaryText/TicketId.js +47 -72
  349. package/es/list/SecondaryText/Website.js +33 -77
  350. package/es/list/SecondaryText/props/defaultProps.js +44 -0
  351. package/es/list/SecondaryText/props/propTypes.js +143 -0
  352. package/es/list/SecondryPanel/SecondryPanel.js +93 -187
  353. package/es/list/SecondryPanel/SecondryPanel.module.css +1 -22
  354. package/es/list/SecondryPanel/props/defaultProps.js +18 -0
  355. package/es/list/SecondryPanel/props/propTypes.js +27 -0
  356. package/es/list/SentimentStatus/SentimentStatus.js +31 -50
  357. package/es/list/SentimentStatus/SentimentStatus.module.css +1 -1
  358. package/es/list/SentimentStatus/props/propTypes.js +5 -0
  359. package/es/list/Subject/Subject.js +51 -85
  360. package/es/list/Subject/Subject.module.css +21 -3
  361. package/es/list/Subject/props/defaultProps.js +7 -0
  362. package/es/list/Subject/props/propTypes.js +19 -0
  363. package/es/list/TagNew/TagNew.js +29 -55
  364. package/es/list/TagNew/TagNew.module.css +5 -5
  365. package/es/list/TagNew/props/defaultProps.js +4 -0
  366. package/es/list/TagNew/props/propTypes.js +8 -0
  367. package/es/list/Thread/Thread.js +40 -60
  368. package/es/list/Thread/Thread.module.css +30 -7
  369. package/es/list/Thread/props/defaultProps.js +4 -0
  370. package/es/list/Thread/props/propTypes.js +8 -0
  371. package/es/list/UserTime/UserTime.js +76 -106
  372. package/es/list/UserTime/UserTime.module.css +23 -14
  373. package/es/list/UserTime/props/defaultProps.js +3 -0
  374. package/es/list/UserTime/props/propTypes.js +14 -0
  375. package/es/list/index.js +17 -0
  376. package/es/list/listCommon.module.css +19 -51
  377. package/es/list/status/StatusDropdown/StatusDropdown.js +425 -0
  378. package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -0
  379. package/es/list/status/StatusDropdown/props/defaultProps.js +19 -0
  380. package/es/list/status/StatusDropdown/props/propTypes.js +51 -0
  381. package/es/list/status/StatusListItem/StatusListItem.js +114 -0
  382. package/es/list/status/StatusListItem/StatusListItem.module.css +107 -0
  383. package/es/list/status/StatusListItem/props/defaultProps.js +15 -0
  384. package/es/list/status/StatusListItem/props/propTypes.js +29 -0
  385. package/es/list/status/index.js +2 -0
  386. package/es/lookup/EmptyPage/EmptyPage.js +52 -83
  387. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
  388. package/es/lookup/EmptyPage/props/defaultProps.js +4 -0
  389. package/es/lookup/EmptyPage/props/propTypes.js +5 -0
  390. package/es/lookup/Lookup/Lookup.js +86 -86
  391. package/es/lookup/Lookup/Lookup.module.css +12 -8
  392. package/es/lookup/Lookup/props/defaultProps.js +7 -0
  393. package/es/lookup/Lookup/props/propTypes.js +18 -0
  394. package/es/lookup/Section/LookupSection.module.css +3 -2
  395. package/es/lookup/Section/Section.js +18 -48
  396. package/es/lookup/Section/props/propTypes.js +6 -0
  397. package/es/lookup/header/Close/Close.js +25 -53
  398. package/es/lookup/header/Close/LookupClose.module.css +5 -5
  399. package/es/lookup/header/Close/props/defaultProps.js +3 -0
  400. package/es/lookup/header/Close/props/propTypes.js +6 -0
  401. package/es/lookup/header/ModuleHeader/ModuleHeader.js +62 -90
  402. package/es/lookup/header/ModuleHeader/props/defaultProps.js +3 -0
  403. package/es/lookup/header/ModuleHeader/props/propTypes.js +17 -0
  404. package/es/lookup/header/Search/LookupSearch.module.css +52 -9
  405. package/es/lookup/header/Search/Search.js +210 -129
  406. package/es/lookup/header/Search/props/defaultProps.js +5 -0
  407. package/es/lookup/header/Search/props/propTypes.js +28 -0
  408. package/es/lookup/header/TicketHeader/TicketHeader.js +80 -115
  409. package/es/lookup/header/TicketHeader/TicketHeader.module.css +3 -2
  410. package/es/lookup/header/TicketHeader/props/defaultProps.js +4 -0
  411. package/es/lookup/header/TicketHeader/props/propTypes.js +20 -0
  412. package/es/lookup/header/Title/LookupTitle.module.css +4 -4
  413. package/es/lookup/header/Title/Title.js +22 -54
  414. package/es/lookup/header/Title/props/defaultProps.js +3 -0
  415. package/es/lookup/header/Title/props/propTypes.js +6 -0
  416. package/es/lookup/header/ViewDropDown/ViewDropDown.js +149 -195
  417. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +9 -11
  418. package/es/lookup/header/ViewDropDown/props/defaultProps.js +7 -0
  419. package/es/lookup/header/ViewDropDown/props/propTypes.js +26 -0
  420. package/es/lookup/header/index.js +5 -0
  421. package/es/lookup/header/lookupHeaderCommon.module.css +13 -5
  422. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +1 -1
  423. package/es/lookup/index.js +5 -0
  424. package/es/setup/header/Button/Button.js +32 -59
  425. package/es/setup/header/Button/props/defaultProps.js +4 -0
  426. package/es/setup/header/Button/props/propTypes.js +7 -0
  427. package/es/setup/header/Link/HeaderLink.module.css +4 -5
  428. package/es/setup/header/Link/Link.js +39 -70
  429. package/es/setup/header/Link/props/defaultProps.js +4 -0
  430. package/es/setup/header/Link/props/propTypes.js +8 -0
  431. package/es/setup/header/Search/Search.js +71 -96
  432. package/es/setup/header/Search/Search.module.css +13 -12
  433. package/es/setup/header/Search/props/defaultProps.js +5 -0
  434. package/es/setup/header/Search/props/propTypes.js +11 -0
  435. package/es/setup/header/Views/Views.js +43 -77
  436. package/es/setup/header/Views/Views.module.css +4 -4
  437. package/es/setup/header/Views/props/defaultProps.js +6 -0
  438. package/es/setup/header/Views/props/propTypes.js +9 -0
  439. package/es/setup/header/index.js +4 -0
  440. package/es/setup/helptips/Description/Description.js +21 -42
  441. package/es/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  442. package/es/setup/helptips/Description/props/propTypes.js +4 -0
  443. package/es/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  444. package/es/setup/helptips/Link/Link.js +34 -57
  445. package/es/setup/helptips/Link/props/propTypes.js +7 -0
  446. package/es/setup/helptips/ListGroup/ListGroup.js +33 -63
  447. package/es/setup/helptips/ListGroup/ListGroup.module.css +2 -2
  448. package/es/setup/helptips/ListGroup/props/propTypes.js +5 -0
  449. package/es/setup/helptips/Title/HelpTipsTitle.module.css +2 -2
  450. package/es/setup/helptips/Title/Title.js +21 -42
  451. package/es/setup/helptips/Title/props/propTypes.js +4 -0
  452. package/es/setup/helptips/index.js +4 -0
  453. package/es/setup/index.js +6 -0
  454. package/es/setup/table/Table/Table.js +23 -50
  455. package/es/setup/table/Table/props/defaultProps.js +4 -0
  456. package/es/setup/table/Table/props/propTypes.js +6 -0
  457. package/es/setup/table/TableBody/TableBody.js +27 -50
  458. package/es/setup/table/TableBody/props/defaultProps.js +3 -0
  459. package/es/setup/table/TableBody/props/propTypes.js +7 -0
  460. package/es/setup/table/TableData/TableData.js +33 -65
  461. package/es/setup/table/TableData/props/defaultProps.js +5 -0
  462. package/es/setup/table/TableData/props/propTypes.js +10 -0
  463. package/es/setup/table/TableHead/SetupTableHead.module.css +12 -0
  464. package/es/setup/table/TableHead/TableHead.js +35 -69
  465. package/es/setup/table/TableHead/props/defaultProps.js +4 -0
  466. package/es/setup/table/TableHead/props/propTypes.js +7 -0
  467. package/es/setup/table/TableRow/SetupTableRow.module.css +14 -0
  468. package/es/setup/table/TableRow/TableRow.js +40 -75
  469. package/es/setup/table/TableRow/props/defaultProps.js +4 -0
  470. package/es/setup/table/TableRow/props/propTypes.js +11 -0
  471. package/es/setup/table/Text/TableText.module.css +37 -0
  472. package/es/setup/table/Text/Text.js +48 -100
  473. package/es/setup/table/Text/props/defaultProps.js +7 -0
  474. package/es/setup/table/Text/props/propTypes.js +13 -0
  475. package/es/setup/table/index.js +5 -0
  476. package/es/svg/PlusIcon.js +31 -66
  477. package/es/svg/SnippetIcon.js +33 -69
  478. package/es/svg/TemplateIcon.js +34 -64
  479. package/es/svg/index.js +3 -0
  480. package/es/svg/props/defaultProps.js +15 -0
  481. package/es/svg/props/propTypes.js +16 -0
  482. package/es/utils/ChannelIconMapping.js +101 -84
  483. package/es/utils/General.js +25 -6
  484. package/es/utils/editorUtils.js +169 -0
  485. package/es/version2/AlertClose/AlertClose.js +40 -0
  486. package/es/version2/AlertClose/AlertClose.module.css +43 -0
  487. package/es/version2/AlertClose/props/propTypes.js +8 -0
  488. package/es/version2/GlobalNotification/GlobalNotification.js +134 -0
  489. package/es/version2/GlobalNotification/GlobalNotification.module.css +125 -0
  490. package/es/version2/GlobalNotification/props/defaultProps.js +4 -0
  491. package/es/version2/GlobalNotification/props/propTypes.js +14 -0
  492. package/es/version2/alertIcons/AlarmAlertIcon.js +67 -0
  493. package/es/version2/alertIcons/AlertIcons.js +61 -0
  494. package/es/version2/alertIcons/AlertIcons.module.css +67 -0
  495. package/es/version2/alertIcons/DangerAlertIcon.js +67 -0
  496. package/es/version2/alertIcons/ErrorAlertIcon.js +72 -0
  497. package/es/version2/alertIcons/InfoAlertIcon.js +76 -0
  498. package/es/version2/alertIcons/NotificationAlertIcon.js +72 -0
  499. package/es/version2/alertIcons/SuccessAlertIcon.js +67 -0
  500. package/es/version2/alertIcons/WarningAlertIcon.js +67 -0
  501. package/es/version2/alertIcons/index.js +8 -0
  502. package/es/version2/alertIcons/props/defaultProps.js +27 -0
  503. package/es/version2/alertIcons/props/propTypes.js +34 -0
  504. package/es/version2/errorstate/Inconvenience/Inconvenience.js +70 -0
  505. package/es/version2/errorstate/Inconvenience/props/defaultProps.js +8 -0
  506. package/es/version2/errorstate/Inconvenience/props/propTypes.js +16 -0
  507. package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +71 -0
  508. package/es/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +8 -0
  509. package/es/version2/errorstate/OopsSomethingMiss/props/propTypes.js +16 -0
  510. package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +70 -0
  511. package/es/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +8 -0
  512. package/es/version2/errorstate/UnableToProcessRequest/props/propTypes.js +16 -0
  513. package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +72 -0
  514. package/es/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +9 -0
  515. package/es/version2/errorstate/UnauthorizedLogin/props/propTypes.js +17 -0
  516. package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +70 -0
  517. package/es/version2/errorstate/UrlNotFound/props/defaultProps.js +8 -0
  518. package/es/version2/errorstate/UrlNotFound/props/propTypes.js +16 -0
  519. package/es/version2/errorstate/V2_ErrorStates.module.css +46 -0
  520. package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +70 -0
  521. package/es/version2/errorstate/WillBeRightBack/props/defaultProps.js +8 -0
  522. package/es/version2/errorstate/WillBeRightBack/props/propTypes.js +16 -0
  523. package/es/version2/errorstate/index.js +6 -0
  524. package/es/version2/index.js +12 -0
  525. package/es/version2/lookup/AlertHeader/AlertHeader.js +63 -0
  526. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -0
  527. package/es/version2/lookup/AlertHeader/props/defaultProps.js +6 -0
  528. package/es/version2/lookup/AlertHeader/props/propTypes.js +12 -0
  529. package/es/version2/lookup/AlertLookup/AlertLookup.js +197 -0
  530. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
  531. package/es/version2/lookup/AlertLookup/props/defaultProps.js +13 -0
  532. package/es/version2/lookup/AlertLookup/props/propTypes.js +36 -0
  533. package/es/version2/lookup/alertLookupCommonNew.module.css +33 -0
  534. package/es/version2/lookup/index.js +2 -0
  535. package/es/version2/notification/DesktopNotification/DesktopNotification.js +161 -0
  536. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -0
  537. package/es/version2/notification/DesktopNotification/props/defaultProps.js +15 -0
  538. package/es/version2/notification/DesktopNotification/props/propTypes.js +37 -0
  539. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +61 -0
  540. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
  541. package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -0
  542. package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +11 -0
  543. package/es/version2/notification/index.js +3 -0
  544. package/images/audio_thumbnail.png +0 -0
  545. package/install.md +12 -0
  546. package/lib/ActionButton/ActionButton.js +172 -0
  547. package/lib/ActionButton/ActionButton.module.css +139 -0
  548. package/lib/ActionButton/props/defaultProps.js +24 -0
  549. package/lib/ActionButton/props/propTypes.js +39 -0
  550. package/lib/AlphabeticList/AlphabeticList.js +144 -0
  551. package/lib/AlphabeticList/AlphabeticList.module.css +57 -0
  552. package/lib/AlphabeticList/props/defaultProps.js +20 -0
  553. package/lib/AlphabeticList/props/propTypes.js +41 -0
  554. package/lib/Attachment/Attachment.js +117 -0
  555. package/lib/Attachment/Attachment.module.css +158 -0
  556. package/lib/Attachment/props/defaultProps.js +14 -0
  557. package/lib/Attachment/props/propTypes.js +24 -0
  558. package/lib/AttachmentViewer/Attachment.js +24 -0
  559. package/lib/AttachmentViewer/AttachmentImage.js +97 -0
  560. package/lib/AttachmentViewer/AttachmentViewer.js +559 -0
  561. package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -0
  562. package/lib/AttachmentViewer/props/defaultProps.js +18 -0
  563. package/lib/AttachmentViewer/props/propTypes.js +40 -0
  564. package/lib/AttachmentViewer/utils.js +113 -0
  565. package/lib/ChannelIcon/ChannelIcon.js +105 -126
  566. package/lib/ChannelIcon/ChannelIcon.module.css +68 -59
  567. package/lib/ChannelIcon/props/defaultProps.js +14 -0
  568. package/lib/ChannelIcon/props/propTypes.js +33 -0
  569. package/lib/Drawer/Drawer.js +278 -335
  570. package/lib/Drawer/Drawer.module.css +71 -123
  571. package/lib/Drawer/index.js +33 -0
  572. package/lib/Drawer/props/defaultProps.js +30 -0
  573. package/lib/Drawer/props/propTypes.js +61 -0
  574. package/lib/ExternalLink/ExternalLink.js +59 -87
  575. package/lib/ExternalLink/ExternalLink.module.css +3 -3
  576. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +13 -31
  577. package/lib/ExternalLink/props/defaultProps.js +12 -0
  578. package/lib/ExternalLink/props/propTypes.js +20 -0
  579. package/lib/FlipCard/FlipCard.js +139 -183
  580. package/lib/FlipCard/FlipCard.module.css +15 -6
  581. package/lib/FlipCard/props/defaultProps.js +12 -0
  582. package/lib/FlipCard/props/propTypes.js +45 -0
  583. package/lib/FormAction/FormAction.js +78 -114
  584. package/lib/FormAction/FormAction.module.css +9 -4
  585. package/lib/FormAction/props/defaultProps.js +12 -0
  586. package/lib/FormAction/props/propTypes.js +16 -0
  587. package/lib/FreezeLayer/FreezeLayer.js +74 -164
  588. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -0
  589. package/lib/FreezeLayer/css/cssJSLogic.js +25 -0
  590. package/lib/FreezeLayer/index.js +20 -0
  591. package/lib/FreezeLayer/props/defaultProps.js +16 -0
  592. package/lib/FreezeLayer/props/propTypes.js +26 -0
  593. package/lib/FreezeLayer/useFreezeLayer.js +73 -0
  594. package/lib/IconButton/IconButton.js +160 -98
  595. package/lib/IconButton/IconButton.module.css +13 -28
  596. package/lib/IconButton/props/defaultProps.js +24 -0
  597. package/lib/IconButton/props/propTypes.js +41 -0
  598. package/lib/Image/Image.js +51 -68
  599. package/lib/Image/props/defaultProps.js +11 -0
  600. package/lib/Image/props/propTypes.js +21 -0
  601. package/lib/ImportantNotes/ImportantNotes.js +75 -0
  602. package/lib/ImportantNotes/ImportantNotes.module.css +20 -0
  603. package/lib/ImportantNotes/props/defaultProps.js +13 -0
  604. package/lib/ImportantNotes/props/propTypes.js +18 -0
  605. package/lib/Link/Link.js +78 -108
  606. package/lib/Link/LinkContext.js +7 -10
  607. package/lib/Link/props/defaultProps.js +12 -0
  608. package/lib/Link/props/propTypes.js +22 -0
  609. package/lib/Loader/Loader.js +53 -0
  610. package/lib/Loader/Loader.module.css +46 -0
  611. package/lib/Message/Message.js +136 -0
  612. package/lib/Message/Message.module.css +103 -0
  613. package/lib/Message/props/defaultProps.js +11 -0
  614. package/lib/Message/props/propTypes.js +21 -0
  615. package/lib/MessageBanner/MessageBanner.js +92 -0
  616. package/lib/MessageBanner/MessageBanner.module.css +46 -0
  617. package/lib/MessageBanner/props/defaultProps.js +14 -0
  618. package/lib/MessageBanner/props/propTypes.js +21 -0
  619. package/lib/NewStar/NewStar.js +100 -0
  620. package/lib/NewStar/NewStar.module.css +175 -0
  621. package/lib/NewStar/props/defaultProps.js +11 -0
  622. package/lib/NewStar/props/propTypes.js +14 -0
  623. package/lib/PlusIcon/PlusIcon.js +56 -93
  624. package/lib/PlusIcon/PlusIcon.module.css +11 -2
  625. package/lib/PlusIcon/props/defaultProps.js +15 -0
  626. package/lib/PlusIcon/props/propTypes.js +19 -0
  627. package/lib/Provider/Config.js +19 -0
  628. package/lib/Separator/Separator.js +84 -0
  629. package/lib/Separator/Separator.module.css +34 -0
  630. package/lib/Separator/props/defaultProps.js +19 -0
  631. package/lib/Separator/props/propTypes.js +19 -0
  632. package/lib/ToastMessage/ToastMessage.js +213 -360
  633. package/lib/ToastMessage/ToastMessage.module.css +57 -62
  634. package/lib/ToastMessage/props/defaultProps.js +25 -0
  635. package/lib/ToastMessage/props/propTypes.js +47 -0
  636. package/lib/Upload/Upload.js +104 -0
  637. package/lib/Upload/Upload.module.css +125 -0
  638. package/lib/Upload/props/defaultProps.js +14 -0
  639. package/lib/Upload/props/propTypes.js +25 -0
  640. package/lib/actions/AutoClose.js +58 -0
  641. package/lib/actions/index.js +8 -3
  642. package/lib/actions/props/defaultProps.js +10 -0
  643. package/lib/actions/props/propTypes.js +15 -0
  644. package/lib/alert/AlertHeader/AlertHeader.js +86 -142
  645. package/lib/alert/AlertHeader/AlertHeader.module.css +14 -13
  646. package/lib/alert/AlertHeader/props/defaultProps.js +15 -0
  647. package/lib/alert/AlertHeader/props/propTypes.js +23 -0
  648. package/lib/alert/AlertLookup/AlertLookup.js +122 -219
  649. package/lib/alert/AlertLookup/AlertLookup.module.css +7 -3
  650. package/lib/alert/AlertLookup/props/defaultProps.js +21 -0
  651. package/lib/alert/AlertLookup/props/propTypes.js +44 -0
  652. package/lib/alert/index.js +20 -0
  653. package/lib/avatar/AvatarClose/AvatarClose.js +64 -81
  654. package/lib/avatar/AvatarClose/AvatarClose.module.css +4 -4
  655. package/lib/avatar/AvatarClose/props/defaultProps.js +13 -0
  656. package/lib/avatar/AvatarClose/props/propTypes.js +22 -0
  657. package/lib/avatar/AvatarCollision/AvatarCollision.js +72 -102
  658. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +9 -9
  659. package/lib/avatar/AvatarCollision/props/defaultProps.js +15 -0
  660. package/lib/avatar/AvatarCollision/props/propTypes.js +25 -0
  661. package/lib/avatar/AvatarIcon/AvatarIcon.js +68 -99
  662. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +32 -10
  663. package/lib/avatar/AvatarIcon/props/defaultProps.js +21 -0
  664. package/lib/avatar/AvatarIcon/props/propTypes.js +28 -0
  665. package/lib/avatar/AvatarStatus/AvatarStatus.js +84 -85
  666. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +87 -34
  667. package/lib/avatar/AvatarStatus/props/defaultProps.js +19 -0
  668. package/lib/avatar/AvatarStatus/props/propTypes.js +33 -0
  669. package/lib/avatar/AvatarThread/AvatarThread.js +93 -118
  670. package/lib/avatar/AvatarThread/AvatarThread.module.css +119 -17
  671. package/lib/avatar/AvatarThread/props/defaultProps.js +16 -0
  672. package/lib/avatar/AvatarThread/props/propTypes.js +38 -0
  673. package/lib/avatar/AvatarUser/AvatarUser.js +124 -135
  674. package/lib/avatar/AvatarUser/AvatarUser.module.css +95 -25
  675. package/lib/avatar/AvatarUser/props/defaultProps.js +15 -0
  676. package/lib/avatar/AvatarUser/props/propTypes.js +43 -0
  677. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +116 -92
  678. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +5 -5
  679. package/lib/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +42 -51
  680. package/lib/avatar/AvatarWithTeam/props/defaultProps.js +16 -0
  681. package/lib/avatar/AvatarWithTeam/props/propTypes.js +33 -0
  682. package/lib/avatar/index.js +55 -0
  683. package/lib/common/dot_animation.module.css +27 -0
  684. package/lib/common/dot_common.module.css +4 -0
  685. package/lib/deprecated/FreezeLayer/FreezeLayer.js +163 -0
  686. package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -0
  687. package/lib/deprecated/FreezeLayer/props/defaultProps.js +15 -0
  688. package/lib/deprecated/FreezeLayer/props/propTypes.js +25 -0
  689. package/lib/deprecated/SelectDropdown/SelectDropdown.js +175 -0
  690. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -0
  691. package/lib/deprecated/utils/General.js +24 -0
  692. package/lib/deprecated/utils/KeyboardApi.js +258 -0
  693. package/lib/docs/formDocs.js +111 -0
  694. package/lib/docs/generalDocs.js +179 -631
  695. package/lib/docs/lookupDocs.js +50 -128
  696. package/lib/docs/setupDocs.js +35 -175
  697. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +798 -556
  698. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +40 -14
  699. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +33 -0
  700. package/lib/dropdown/ToggleDropDown/props/propTypes.js +80 -0
  701. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +83 -140
  702. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +66 -15
  703. package/lib/emptystate/CommonEmptyState/props/defaultProps.js +17 -0
  704. package/lib/emptystate/CommonEmptyState/props/propTypes.js +29 -0
  705. package/lib/emptystate/EditionPage/EditionPage.css +5 -5
  706. package/lib/emptystate/EditionPage/EditionPage.js +69 -105
  707. package/lib/emptystate/EditionPage/props/defaultProps.js +12 -0
  708. package/lib/emptystate/EditionPage/props/propTypes.js +15 -0
  709. package/lib/errorstate/EmptyStates.module.css +56 -13
  710. package/lib/errorstate/Inconvenience/Inconvenience.js +91 -98
  711. package/lib/errorstate/Inconvenience/Inconvenience.module.css +0 -2
  712. package/lib/errorstate/Inconvenience/props/defaultProps.js +11 -0
  713. package/lib/errorstate/Inconvenience/props/propTypes.js +19 -0
  714. package/lib/errorstate/LinkText/LinkText.js +45 -62
  715. package/lib/errorstate/LinkText/LinkText.module.css +2 -2
  716. package/lib/errorstate/LinkText/props/defaultProps.js +11 -0
  717. package/lib/errorstate/LinkText/props/propTypes.js +16 -0
  718. package/lib/errorstate/NoRequestFound/NoRequestFound.js +96 -103
  719. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +0 -2
  720. package/lib/errorstate/NoRequestFound/props/defaultProps.js +11 -0
  721. package/lib/errorstate/NoRequestFound/props/propTypes.js +19 -0
  722. package/lib/errorstate/PermissionPlay/PermissionPlay.js +95 -111
  723. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +10 -9
  724. package/lib/errorstate/PermissionPlay/props/defaultProps.js +11 -0
  725. package/lib/errorstate/PermissionPlay/props/propTypes.js +19 -0
  726. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +96 -103
  727. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -2
  728. package/lib/errorstate/RequestUrlNotFound/props/defaultProps.js +11 -0
  729. package/lib/errorstate/RequestUrlNotFound/props/propTypes.js +19 -0
  730. package/lib/errorstate/UnableToProcess/UnableToProcess.js +91 -98
  731. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +0 -15
  732. package/lib/errorstate/UnableToProcess/props/defaultProps.js +11 -0
  733. package/lib/errorstate/UnableToProcess/props/propTypes.js +19 -0
  734. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +96 -103
  735. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -15
  736. package/lib/errorstate/UnauthorizedLogin/props/defaultProps.js +11 -0
  737. package/lib/errorstate/UnauthorizedLogin/props/propTypes.js +19 -0
  738. package/lib/errorstate/WillBack/WillBack.js +87 -92
  739. package/lib/errorstate/WillBack/WillBack.module.css +23 -10
  740. package/lib/errorstate/WillBack/props/defaultProps.js +11 -0
  741. package/lib/errorstate/WillBack/props/propTypes.js +13 -0
  742. package/lib/errorstate/index.js +62 -0
  743. package/lib/form/fields/CheckBoxField/CheckBoxField.js +167 -0
  744. package/lib/form/fields/CheckBoxField/props/defaultProps.js +24 -0
  745. package/lib/form/fields/CheckBoxField/props/propTypes.js +40 -0
  746. package/lib/form/fields/CurrencyField/CurrencyField.js +204 -0
  747. package/lib/form/fields/CurrencyField/props/defaultProps.js +29 -0
  748. package/lib/form/fields/CurrencyField/props/propTypes.js +49 -0
  749. package/lib/form/fields/DateField/DateField.js +216 -0
  750. package/lib/form/fields/DateField/props/defaultProps.js +31 -0
  751. package/lib/form/fields/DateField/props/propTypes.js +52 -0
  752. package/lib/form/fields/FieldContainer/FieldContainer.js +94 -0
  753. package/lib/form/fields/FieldContainer/props/defaultProps.js +19 -0
  754. package/lib/form/fields/FieldContainer/props/propTypes.js +25 -0
  755. package/lib/form/fields/Fields.module.css +183 -0
  756. package/lib/form/fields/MultiSelectField/MultiSelectField.js +242 -0
  757. package/lib/form/fields/MultiSelectField/props/defaultProps.js +29 -0
  758. package/lib/form/fields/MultiSelectField/props/propTypes.js +63 -0
  759. package/lib/form/fields/PhoneField/PhoneField.js +206 -0
  760. package/lib/form/fields/PhoneField/props/defaultProps.js +23 -0
  761. package/lib/form/fields/PhoneField/props/propTypes.js +48 -0
  762. package/lib/form/fields/RadioField/RadioField.js +141 -0
  763. package/lib/form/fields/RadioField/props/defaultProps.js +19 -0
  764. package/lib/form/fields/RadioField/props/propTypes.js +38 -0
  765. package/lib/form/fields/SelectField/SelectField.js +210 -0
  766. package/lib/form/fields/SelectField/props/defaultProps.js +30 -0
  767. package/lib/form/fields/SelectField/props/propTypes.js +63 -0
  768. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +308 -0
  769. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
  770. package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +18 -0
  771. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +51 -0
  772. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
  773. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
  774. package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +31 -0
  775. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +65 -0
  776. package/lib/form/fields/TextBoxField/TextBoxField.js +192 -0
  777. package/lib/form/fields/TextBoxField/props/defaultProps.js +29 -0
  778. package/lib/form/fields/TextBoxField/props/propTypes.js +50 -0
  779. package/lib/form/fields/TextEditor/TextEditor.js +399 -0
  780. package/lib/form/fields/TextEditor/TextEditor.module.css +666 -0
  781. package/lib/form/fields/TextEditor/props/defaultProps.js +20 -0
  782. package/lib/form/fields/TextEditor/props/propTypes.js +48 -0
  783. package/lib/form/fields/TextEditorField/TextEditorField.js +202 -0
  784. package/lib/form/fields/TextEditorField/props/defaultProps.js +27 -0
  785. package/lib/form/fields/TextEditorField/props/propTypes.js +60 -0
  786. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +224 -0
  787. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -0
  788. package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +16 -0
  789. package/lib/form/fields/TextEditorWrapper/props/propTypes.js +47 -0
  790. package/lib/form/fields/TextareaField/TextareaField.js +189 -0
  791. package/lib/form/fields/TextareaField/props/defaultProps.js +27 -0
  792. package/lib/form/fields/TextareaField/props/propTypes.js +47 -0
  793. package/lib/form/fields/ValidationMessage/ValidationMessage.js +87 -0
  794. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
  795. package/lib/form/fields/ValidationMessage/props/defaultProps.js +14 -0
  796. package/lib/form/fields/ValidationMessage/props/propTypes.js +22 -0
  797. package/lib/form/fields/index.js +118 -0
  798. package/lib/form/fields/props/FieldCommonDefaultProps.js +17 -0
  799. package/lib/form/fields/props/FieldCommonPropTypes.js +31 -0
  800. package/lib/form/layout/Field/Field.js +65 -0
  801. package/lib/form/layout/Field/Field.module.css +22 -0
  802. package/lib/form/layout/Field/props/defaultProps.js +11 -0
  803. package/lib/form/layout/Field/props/propTypes.js +18 -0
  804. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -0
  805. package/lib/form/layout/Section/Section.js +63 -0
  806. package/lib/form/layout/Section/props/propTypes.js +17 -0
  807. package/lib/form/layout/index.js +20 -0
  808. package/lib/index.js +258 -56
  809. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +191 -304
  810. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +20 -20
  811. package/lib/layout/SetupDetailLayout/index.js +12 -13
  812. package/lib/layout/SetupDetailLayout/props/defaultProps.js +28 -0
  813. package/lib/layout/SetupDetailLayout/props/propTypes.js +44 -0
  814. package/lib/layout/SubtabLayout/SubtabLayout.js +171 -225
  815. package/lib/layout/SubtabLayout/SubtabLayout.module.css +72 -16
  816. package/lib/layout/SubtabLayout/index.js +16 -11
  817. package/lib/layout/SubtabLayout/props/defaultProps.js +35 -0
  818. package/lib/layout/SubtabLayout/props/propTypes.js +51 -0
  819. package/lib/list/AvatarFlip/AvatarFlip.js +74 -96
  820. package/lib/list/AvatarFlip/AvatarFlip.module.css +1 -13
  821. package/lib/list/AvatarFlip/props/defaultProps.js +13 -0
  822. package/lib/list/AvatarFlip/props/propTypes.js +37 -0
  823. package/lib/list/BluePrintStatus/BluePrintStatus.js +40 -58
  824. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +8 -6
  825. package/lib/list/BluePrintStatus/props/propTypes.js +12 -0
  826. package/lib/list/Comment/Comment.js +57 -86
  827. package/lib/list/Comment/Comment.module.css +12 -5
  828. package/lib/list/Comment/props/defaultProps.js +10 -0
  829. package/lib/list/Comment/props/propTypes.js +17 -0
  830. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +94 -90
  831. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +6 -80
  832. package/lib/list/DepartmentDropDown/props/defaultProps.js +14 -0
  833. package/lib/list/DepartmentDropDown/props/propTypes.js +33 -0
  834. package/lib/list/Dot/Dot.js +34 -51
  835. package/lib/list/Dot/Dot.module.css +7 -5
  836. package/lib/list/Dot/props/defaultProps.js +11 -0
  837. package/lib/list/Dot/props/propTypes.js +13 -0
  838. package/lib/list/DotNew/DotNew.js +43 -45
  839. package/lib/list/DotNew/DotNew.module.css +14 -11
  840. package/lib/list/DotNew/props/defaultProps.js +10 -0
  841. package/lib/list/DotNew/props/propTypes.js +14 -0
  842. package/lib/list/GridStencils/GridStencils.js +51 -70
  843. package/lib/list/GridStencils/GridStencils.module.css +23 -68
  844. package/lib/list/GridStencils/props/propTypes.js +15 -0
  845. package/lib/list/Icons/AddNewIcon.js +46 -83
  846. package/lib/list/Icons/CompleteIcon.js +52 -75
  847. package/lib/list/Icons/DeleteIcon.js +44 -89
  848. package/lib/list/Icons/EditIcon.js +48 -93
  849. package/lib/list/Icons/FloatingIcons.js +47 -60
  850. package/lib/list/Icons/Icons.module.css +5 -4
  851. package/lib/list/Icons/ReadUnreadIcon.js +61 -0
  852. package/lib/list/Icons/SmartIcon.js +53 -63
  853. package/lib/list/Icons/index.js +55 -0
  854. package/lib/list/Icons/props/defaultProps.js +14 -0
  855. package/lib/list/Icons/props/propTypes.js +69 -0
  856. package/lib/list/ListLayout/ListLayout.js +89 -138
  857. package/lib/list/ListLayout/ListLayout.module.css +38 -7
  858. package/lib/list/ListLayout/props/defaultProps.js +18 -0
  859. package/lib/list/ListLayout/props/propTypes.js +39 -0
  860. package/lib/list/ListStencils/ListStencils.js +59 -69
  861. package/lib/list/ListStencils/ListStencils.module.css +48 -8
  862. package/lib/list/ListStencils/props/defaultProps.js +10 -0
  863. package/lib/list/ListStencils/props/propTypes.js +12 -0
  864. package/lib/list/SecondaryText/AccountName.js +97 -112
  865. package/lib/list/SecondaryText/ContactName.js +103 -142
  866. package/lib/list/SecondaryText/DepartmentText.js +43 -58
  867. package/lib/list/SecondaryText/Email.js +65 -99
  868. package/lib/list/SecondaryText/HappinessRating.js +46 -69
  869. package/lib/list/SecondaryText/PhoneNumber.js +69 -102
  870. package/lib/list/SecondaryText/PriorityText.js +46 -66
  871. package/lib/list/SecondaryText/SecondaryText.js +50 -64
  872. package/lib/list/SecondaryText/SecondaryText.module.css +53 -21
  873. package/lib/list/SecondaryText/StatusText.js +47 -69
  874. package/lib/list/SecondaryText/TicketId.js +65 -83
  875. package/lib/list/SecondaryText/Website.js +54 -96
  876. package/lib/list/SecondaryText/index.js +35 -58
  877. package/lib/list/SecondaryText/props/defaultProps.js +59 -0
  878. package/lib/list/SecondaryText/props/propTypes.js +161 -0
  879. package/lib/list/SecondryPanel/SecondryPanel.js +117 -182
  880. package/lib/list/SecondryPanel/SecondryPanel.module.css +1 -22
  881. package/lib/list/SecondryPanel/props/defaultProps.js +28 -0
  882. package/lib/list/SecondryPanel/props/propTypes.js +38 -0
  883. package/lib/list/SentimentStatus/SentimentStatus.js +42 -56
  884. package/lib/list/SentimentStatus/SentimentStatus.module.css +1 -1
  885. package/lib/list/SentimentStatus/props/propTypes.js +13 -0
  886. package/lib/list/Subject/Subject.js +69 -95
  887. package/lib/list/Subject/Subject.module.css +21 -3
  888. package/lib/list/Subject/props/defaultProps.js +14 -0
  889. package/lib/list/Subject/props/propTypes.js +27 -0
  890. package/lib/list/TagNew/TagNew.js +46 -62
  891. package/lib/list/TagNew/TagNew.module.css +5 -5
  892. package/lib/list/TagNew/props/defaultProps.js +11 -0
  893. package/lib/list/TagNew/props/propTypes.js +16 -0
  894. package/lib/list/Thread/Thread.js +56 -69
  895. package/lib/list/Thread/Thread.module.css +30 -7
  896. package/lib/list/Thread/props/defaultProps.js +11 -0
  897. package/lib/list/Thread/props/propTypes.js +16 -0
  898. package/lib/list/UserTime/UserTime.js +96 -120
  899. package/lib/list/UserTime/UserTime.module.css +23 -14
  900. package/lib/list/UserTime/props/defaultProps.js +10 -0
  901. package/lib/list/UserTime/props/propTypes.js +22 -0
  902. package/lib/list/index.js +152 -0
  903. package/lib/list/listCommon.module.css +19 -51
  904. package/lib/list/status/StatusDropdown/StatusDropdown.js +475 -0
  905. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -0
  906. package/lib/list/status/StatusDropdown/props/defaultProps.js +26 -0
  907. package/lib/list/status/StatusDropdown/props/propTypes.js +32 -0
  908. package/lib/list/status/StatusListItem/StatusListItem.js +142 -0
  909. package/lib/list/status/StatusListItem/StatusListItem.module.css +107 -0
  910. package/lib/list/status/StatusListItem/props/defaultProps.js +22 -0
  911. package/lib/list/status/StatusListItem/props/propTypes.js +37 -0
  912. package/lib/list/status/index.js +20 -0
  913. package/lib/lookup/EmptyPage/EmptyPage.js +61 -92
  914. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
  915. package/lib/lookup/EmptyPage/props/defaultProps.js +11 -0
  916. package/lib/lookup/EmptyPage/props/propTypes.js +13 -0
  917. package/lib/lookup/Lookup/Lookup.js +112 -111
  918. package/lib/lookup/Lookup/Lookup.module.css +12 -8
  919. package/lib/lookup/Lookup/props/defaultProps.js +14 -0
  920. package/lib/lookup/Lookup/props/propTypes.js +26 -0
  921. package/lib/lookup/Section/LookupSection.module.css +3 -2
  922. package/lib/lookup/Section/Section.js +36 -57
  923. package/lib/lookup/Section/props/propTypes.js +14 -0
  924. package/lib/lookup/header/Close/Close.js +42 -61
  925. package/lib/lookup/header/Close/LookupClose.module.css +5 -5
  926. package/lib/lookup/header/Close/props/defaultProps.js +10 -0
  927. package/lib/lookup/header/Close/props/propTypes.js +14 -0
  928. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +92 -126
  929. package/lib/lookup/header/ModuleHeader/props/defaultProps.js +10 -0
  930. package/lib/lookup/header/ModuleHeader/props/propTypes.js +25 -0
  931. package/lib/lookup/header/Search/LookupSearch.module.css +52 -9
  932. package/lib/lookup/header/Search/Search.js +213 -120
  933. package/lib/lookup/header/Search/props/defaultProps.js +12 -0
  934. package/lib/lookup/header/Search/props/propTypes.js +37 -0
  935. package/lib/lookup/header/TicketHeader/TicketHeader.js +107 -159
  936. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +3 -2
  937. package/lib/lookup/header/TicketHeader/props/defaultProps.js +11 -0
  938. package/lib/lookup/header/TicketHeader/props/propTypes.js +28 -0
  939. package/lib/lookup/header/Title/LookupTitle.module.css +4 -4
  940. package/lib/lookup/header/Title/Title.js +42 -65
  941. package/lib/lookup/header/Title/props/defaultProps.js +10 -0
  942. package/lib/lookup/header/Title/props/propTypes.js +14 -0
  943. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +168 -239
  944. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +9 -11
  945. package/lib/lookup/header/ViewDropDown/props/defaultProps.js +14 -0
  946. package/lib/lookup/header/ViewDropDown/props/propTypes.js +34 -0
  947. package/lib/lookup/header/index.js +41 -0
  948. package/lib/lookup/header/lookupHeaderCommon.module.css +13 -5
  949. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +1 -1
  950. package/lib/lookup/index.js +33 -0
  951. package/lib/setup/header/Button/Button.js +49 -71
  952. package/lib/setup/header/Button/props/defaultProps.js +11 -0
  953. package/lib/setup/header/Button/props/propTypes.js +15 -0
  954. package/lib/setup/header/Link/HeaderLink.module.css +4 -5
  955. package/lib/setup/header/Link/Link.js +57 -87
  956. package/lib/setup/header/Link/props/defaultProps.js +11 -0
  957. package/lib/setup/header/Link/props/propTypes.js +16 -0
  958. package/lib/setup/header/Search/Search.js +73 -98
  959. package/lib/setup/header/Search/Search.module.css +13 -12
  960. package/lib/setup/header/Search/props/defaultProps.js +12 -0
  961. package/lib/setup/header/Search/props/propTypes.js +19 -0
  962. package/lib/setup/header/Views/Views.js +59 -88
  963. package/lib/setup/header/Views/Views.module.css +4 -4
  964. package/lib/setup/header/Views/props/defaultProps.js +13 -0
  965. package/lib/setup/header/Views/props/propTypes.js +17 -0
  966. package/lib/setup/header/index.js +34 -0
  967. package/lib/setup/helptips/Description/Description.js +35 -49
  968. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  969. package/lib/setup/helptips/Description/props/propTypes.js +12 -0
  970. package/lib/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  971. package/lib/setup/helptips/Link/Link.js +49 -67
  972. package/lib/setup/helptips/Link/props/propTypes.js +15 -0
  973. package/lib/setup/helptips/ListGroup/ListGroup.js +52 -70
  974. package/lib/setup/helptips/ListGroup/ListGroup.module.css +2 -2
  975. package/lib/setup/helptips/ListGroup/props/propTypes.js +13 -0
  976. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +2 -2
  977. package/lib/setup/helptips/Title/Title.js +35 -49
  978. package/lib/setup/helptips/Title/props/propTypes.js +12 -0
  979. package/lib/setup/helptips/index.js +34 -0
  980. package/lib/setup/index.js +15 -0
  981. package/lib/setup/table/Table/Table.js +42 -56
  982. package/lib/setup/table/Table/props/defaultProps.js +11 -0
  983. package/lib/setup/table/Table/props/propTypes.js +14 -0
  984. package/lib/setup/table/TableBody/TableBody.js +47 -56
  985. package/lib/setup/table/TableBody/props/defaultProps.js +10 -0
  986. package/lib/setup/table/TableBody/props/propTypes.js +15 -0
  987. package/lib/setup/table/TableData/TableData.js +49 -74
  988. package/lib/setup/table/TableData/props/defaultProps.js +12 -0
  989. package/lib/setup/table/TableData/props/propTypes.js +18 -0
  990. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -0
  991. package/lib/setup/table/TableHead/TableHead.js +51 -78
  992. package/lib/setup/table/TableHead/props/defaultProps.js +11 -0
  993. package/lib/setup/table/TableHead/props/propTypes.js +15 -0
  994. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -0
  995. package/lib/setup/table/TableRow/TableRow.js +56 -84
  996. package/lib/setup/table/TableRow/props/defaultProps.js +11 -0
  997. package/lib/setup/table/TableRow/props/propTypes.js +19 -0
  998. package/lib/setup/table/Text/TableText.module.css +37 -0
  999. package/lib/setup/table/Text/Text.js +62 -105
  1000. package/lib/setup/table/Text/props/defaultProps.js +14 -0
  1001. package/lib/setup/table/Text/props/propTypes.js +21 -0
  1002. package/lib/setup/table/index.js +41 -0
  1003. package/lib/svg/PlusIcon.js +48 -72
  1004. package/lib/svg/SnippetIcon.js +50 -75
  1005. package/lib/svg/TemplateIcon.js +52 -71
  1006. package/lib/svg/index.js +27 -0
  1007. package/lib/svg/props/defaultProps.js +24 -0
  1008. package/lib/svg/props/propTypes.js +26 -0
  1009. package/lib/utils/ChannelIconMapping.js +103 -85
  1010. package/lib/utils/General.js +26 -5
  1011. package/lib/utils/editorUtils.js +188 -0
  1012. package/lib/version2/AlertClose/AlertClose.js +71 -0
  1013. package/lib/version2/AlertClose/AlertClose.module.css +43 -0
  1014. package/lib/version2/AlertClose/props/propTypes.js +16 -0
  1015. package/lib/version2/GlobalNotification/GlobalNotification.js +165 -0
  1016. package/lib/version2/GlobalNotification/GlobalNotification.module.css +125 -0
  1017. package/lib/version2/GlobalNotification/props/defaultProps.js +11 -0
  1018. package/lib/version2/GlobalNotification/props/propTypes.js +22 -0
  1019. package/lib/version2/alertIcons/AlarmAlertIcon.js +99 -0
  1020. package/lib/version2/alertIcons/AlertIcons.js +93 -0
  1021. package/lib/version2/alertIcons/AlertIcons.module.css +67 -0
  1022. package/lib/version2/alertIcons/DangerAlertIcon.js +99 -0
  1023. package/lib/version2/alertIcons/ErrorAlertIcon.js +104 -0
  1024. package/lib/version2/alertIcons/InfoAlertIcon.js +108 -0
  1025. package/lib/version2/alertIcons/NotificationAlertIcon.js +104 -0
  1026. package/lib/version2/alertIcons/SuccessAlertIcon.js +99 -0
  1027. package/lib/version2/alertIcons/WarningAlertIcon.js +99 -0
  1028. package/lib/version2/alertIcons/index.js +62 -0
  1029. package/lib/version2/alertIcons/props/defaultProps.js +41 -0
  1030. package/lib/version2/alertIcons/props/propTypes.js +49 -0
  1031. package/lib/version2/errorstate/Inconvenience/Inconvenience.js +101 -0
  1032. package/lib/version2/errorstate/Inconvenience/props/defaultProps.js +15 -0
  1033. package/lib/version2/errorstate/Inconvenience/props/propTypes.js +24 -0
  1034. package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +102 -0
  1035. package/lib/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +15 -0
  1036. package/lib/version2/errorstate/OopsSomethingMiss/props/propTypes.js +24 -0
  1037. package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +101 -0
  1038. package/lib/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +15 -0
  1039. package/lib/version2/errorstate/UnableToProcessRequest/props/propTypes.js +24 -0
  1040. package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +103 -0
  1041. package/lib/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +16 -0
  1042. package/lib/version2/errorstate/UnauthorizedLogin/props/propTypes.js +25 -0
  1043. package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +101 -0
  1044. package/lib/version2/errorstate/UrlNotFound/props/defaultProps.js +15 -0
  1045. package/lib/version2/errorstate/UrlNotFound/props/propTypes.js +24 -0
  1046. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -0
  1047. package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +101 -0
  1048. package/lib/version2/errorstate/WillBeRightBack/props/defaultProps.js +15 -0
  1049. package/lib/version2/errorstate/WillBeRightBack/props/propTypes.js +24 -0
  1050. package/lib/version2/errorstate/index.js +48 -0
  1051. package/lib/version2/index.js +44 -0
  1052. package/lib/version2/lookup/AlertHeader/AlertHeader.js +95 -0
  1053. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -0
  1054. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +13 -0
  1055. package/lib/version2/lookup/AlertHeader/props/propTypes.js +20 -0
  1056. package/lib/version2/lookup/AlertLookup/AlertLookup.js +226 -0
  1057. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
  1058. package/lib/version2/lookup/AlertLookup/props/defaultProps.js +20 -0
  1059. package/lib/version2/lookup/AlertLookup/props/propTypes.js +44 -0
  1060. package/lib/version2/lookup/alertLookupCommonNew.module.css +33 -0
  1061. package/lib/version2/lookup/index.js +20 -0
  1062. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +169 -0
  1063. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -0
  1064. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +22 -0
  1065. package/lib/version2/notification/DesktopNotification/props/propTypes.js +45 -0
  1066. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +91 -0
  1067. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
  1068. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +12 -0
  1069. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +19 -0
  1070. package/lib/version2/notification/index.js +29 -0
  1071. package/package.json +82 -24
  1072. package/__testUtils__/globals.js +0 -0
  1073. package/es/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -97
  1074. package/es/Drawer/docs/Drawer__default.docs.js +0 -73
  1075. package/es/Drawer/docs/Drawer__noFreeze.docs.js +0 -43
  1076. package/es/ExternalLink/docs/ExternalLink__default.docs.js +0 -40
  1077. package/es/FlipCard/docs/FlipCard__default.docs.js +0 -105
  1078. package/es/FormAction/docs/FormAction__default.docs.js +0 -199
  1079. package/es/FreezeLayer/FreezeLayer.module.css +0 -41
  1080. package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -77
  1081. package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -76
  1082. package/es/IconButton/docs/IconButton__default.docs.js +0 -81
  1083. package/es/Image/docs/Image__default.docs.js +0 -40
  1084. package/es/Link/docs/Link__default.docs.js +0 -64
  1085. package/es/PlusIcon/docs/PlusIcon__default.docs.js +0 -40
  1086. package/es/ToastMessage/docs/ToastMessage__custom.docs.js +0 -132
  1087. package/es/ToastMessage/docs/ToastMessage__information.docs.js +0 -80
  1088. package/es/ToastMessage/docs/ToastMessage__primary.docs.js +0 -172
  1089. package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -64
  1090. package/es/ToastMessage/docs/ToastMessage__success.docs.js +0 -94
  1091. package/es/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -91
  1092. package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -170
  1093. package/es/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -44
  1094. package/es/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -58
  1095. package/es/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -54
  1096. package/es/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -49
  1097. package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -52
  1098. package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -75
  1099. package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -69
  1100. package/es/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -146
  1101. package/es/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -45
  1102. package/es/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -78
  1103. package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -85
  1104. package/es/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -42
  1105. package/es/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -39
  1106. package/es/errorstate/LinkText/docs/LinkText__default.docs.js +0 -35
  1107. package/es/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -39
  1108. package/es/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -40
  1109. package/es/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -39
  1110. package/es/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -39
  1111. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -40
  1112. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -39
  1113. package/es/errorstate/WillBack/docs/WillBack__default.docs.js +0 -41
  1114. package/es/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -79
  1115. package/es/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -191
  1116. package/es/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -308
  1117. package/es/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -36
  1118. package/es/list/Comment/docs/Comment__default.docs.js +0 -40
  1119. package/es/list/DotNew/docs/DotNew__default.docs.js +0 -36
  1120. package/es/list/GridStencils/docs/GridStencils__default.docs.js +0 -50
  1121. package/es/list/Icons/docs/FloatingIcons__default.docs.js +0 -56
  1122. package/es/list/ListLayout/docs/ListLayout__default.docs.js +0 -131
  1123. package/es/list/ListStencils/docs/ListStencils__default.docs.js +0 -36
  1124. package/es/list/SecondaryText/docs/ContactName__default.docs.js +0 -36
  1125. package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
  1126. package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -131
  1127. package/es/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -36
  1128. package/es/list/StatusDropdown/StatusDropdown.js +0 -205
  1129. package/es/list/StatusDropdown/StatusDropdown.module.css +0 -65
  1130. package/es/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -76
  1131. package/es/list/Subject/docs/Subject__default.docs.js +0 -49
  1132. package/es/list/TagNew/docs/TagNew__default.docs.js +0 -36
  1133. package/es/list/Thread/docs/Thread__default.docs.js +0 -36
  1134. package/es/list/TimeInfo/TimeInfo.js +0 -171
  1135. package/es/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -49
  1136. package/es/list/UserTime/docs/UserTime__default.docs.js +0 -172
  1137. package/es/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -38
  1138. package/es/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -38
  1139. package/es/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -37
  1140. package/es/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -38
  1141. package/es/lookup/Lookup/docs/Lookup__contact.docs.js +0 -212
  1142. package/es/lookup/Lookup/docs/Lookup__default.docs.js +0 -90
  1143. package/es/lookup/header/Close/docs/Close__default.docs.js +0 -35
  1144. package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -58
  1145. package/es/lookup/header/Search/docs/Search__default.docs.js +0 -62
  1146. package/es/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -74
  1147. package/es/lookup/header/Title/docs/Title__default.docs.js +0 -35
  1148. package/es/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -64
  1149. package/es/setup/header/Button/docs/Button__default.docs.js +0 -37
  1150. package/es/setup/header/Link/docs/Link__default.docs.js +0 -36
  1151. package/es/setup/header/Search/docs/Search__default.docs.js +0 -54
  1152. package/es/setup/header/SelectDropdown/SelectDropdown.js +0 -162
  1153. package/es/setup/header/SelectDropdown/SelectDropdown.module.css +0 -43
  1154. package/es/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -44
  1155. package/es/setup/header/Views/docs/Views__default.docs.js +0 -40
  1156. package/es/setup/helptips/Description/docs/Description__default.docs.js +0 -42
  1157. package/es/setup/helptips/Link/docs/Link__default.docs.js +0 -43
  1158. package/es/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -46
  1159. package/es/setup/helptips/Title/docs/Title__default.docs.js +0 -40
  1160. package/es/setup/table/Table/docs/Table__default.docs.js +0 -193
  1161. package/es/setup/table/TableHead/TableHead.css +0 -12
  1162. package/es/setup/table/TableRow/TableRow.css +0 -14
  1163. package/es/setup/table/Text/Text.css +0 -37
  1164. package/es/setup/table/Text/docs/Text__default.docs.js +0 -69
  1165. package/es/svg/docs/SVG__default.docs.js +0 -87
  1166. package/es/utils/KeyboardApi.js +0 -254
  1167. package/es/utils/Ticket.js +0 -3
  1168. package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -114
  1169. package/lib/Drawer/docs/Drawer__default.docs.js +0 -95
  1170. package/lib/Drawer/docs/Drawer__noFreeze.docs.js +0 -59
  1171. package/lib/ExternalLink/docs/ExternalLink__default.docs.js +0 -56
  1172. package/lib/FlipCard/docs/FlipCard__default.docs.js +0 -124
  1173. package/lib/FormAction/docs/FormAction__default.docs.js +0 -221
  1174. package/lib/FreezeLayer/FreezeLayer.module.css +0 -41
  1175. package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -96
  1176. package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -95
  1177. package/lib/IconButton/docs/IconButton__default.docs.js +0 -97
  1178. package/lib/Image/docs/Image__default.docs.js +0 -59
  1179. package/lib/Link/docs/Link__default.docs.js +0 -80
  1180. package/lib/PlusIcon/docs/PlusIcon__default.docs.js +0 -59
  1181. package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +0 -157
  1182. package/lib/ToastMessage/docs/ToastMessage__information.docs.js +0 -99
  1183. package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +0 -191
  1184. package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -83
  1185. package/lib/ToastMessage/docs/ToastMessage__success.docs.js +0 -113
  1186. package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -107
  1187. package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -189
  1188. package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -63
  1189. package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -77
  1190. package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -76
  1191. package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -71
  1192. package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -74
  1193. package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -97
  1194. package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -91
  1195. package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -168
  1196. package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -64
  1197. package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -94
  1198. package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -110
  1199. package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -58
  1200. package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -58
  1201. package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +0 -54
  1202. package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -55
  1203. package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -59
  1204. package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -58
  1205. package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -58
  1206. package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -59
  1207. package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -58
  1208. package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +0 -60
  1209. package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -99
  1210. package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -205
  1211. package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -327
  1212. package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -54
  1213. package/lib/list/Comment/docs/Comment__default.docs.js +0 -59
  1214. package/lib/list/DotNew/docs/DotNew__default.docs.js +0 -55
  1215. package/lib/list/GridStencils/docs/GridStencils__default.docs.js +0 -72
  1216. package/lib/list/Icons/docs/FloatingIcons__default.docs.js +0 -81
  1217. package/lib/list/ListLayout/docs/ListLayout__default.docs.js +0 -150
  1218. package/lib/list/ListStencils/docs/ListStencils__default.docs.js +0 -55
  1219. package/lib/list/SecondaryText/docs/ContactName__default.docs.js +0 -55
  1220. package/lib/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
  1221. package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -152
  1222. package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -54
  1223. package/lib/list/StatusDropdown/StatusDropdown.js +0 -243
  1224. package/lib/list/StatusDropdown/StatusDropdown.module.css +0 -65
  1225. package/lib/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -96
  1226. package/lib/list/Subject/docs/Subject__default.docs.js +0 -68
  1227. package/lib/list/TagNew/docs/TagNew__default.docs.js +0 -55
  1228. package/lib/list/Thread/docs/Thread__default.docs.js +0 -55
  1229. package/lib/list/TimeInfo/TimeInfo.js +0 -191
  1230. package/lib/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -69
  1231. package/lib/list/UserTime/docs/UserTime__default.docs.js +0 -192
  1232. package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -55
  1233. package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -55
  1234. package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -54
  1235. package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -55
  1236. package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +0 -234
  1237. package/lib/lookup/Lookup/docs/Lookup__default.docs.js +0 -113
  1238. package/lib/lookup/header/Close/docs/Close__default.docs.js +0 -54
  1239. package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -75
  1240. package/lib/lookup/header/Search/docs/Search__default.docs.js +0 -79
  1241. package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -91
  1242. package/lib/lookup/header/Title/docs/Title__default.docs.js +0 -54
  1243. package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -81
  1244. package/lib/setup/header/Button/docs/Button__default.docs.js +0 -55
  1245. package/lib/setup/header/Link/docs/Link__default.docs.js +0 -55
  1246. package/lib/setup/header/Search/docs/Search__default.docs.js +0 -73
  1247. package/lib/setup/header/SelectDropdown/SelectDropdown.js +0 -200
  1248. package/lib/setup/header/SelectDropdown/SelectDropdown.module.css +0 -43
  1249. package/lib/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -63
  1250. package/lib/setup/header/Views/docs/Views__default.docs.js +0 -59
  1251. package/lib/setup/helptips/Description/docs/Description__default.docs.js +0 -61
  1252. package/lib/setup/helptips/Link/docs/Link__default.docs.js +0 -62
  1253. package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -65
  1254. package/lib/setup/helptips/Title/docs/Title__default.docs.js +0 -59
  1255. package/lib/setup/table/Table/docs/Table__default.docs.js +0 -228
  1256. package/lib/setup/table/TableHead/TableHead.css +0 -12
  1257. package/lib/setup/table/TableRow/TableRow.css +0 -14
  1258. package/lib/setup/table/Text/Text.css +0 -37
  1259. package/lib/setup/table/Text/docs/Text__default.docs.js +0 -85
  1260. package/lib/svg/docs/SVG__default.docs.js +0 -110
  1261. package/lib/utils/KeyboardApi.js +0 -262
  1262. package/lib/utils/Ticket.js +0 -8
  1263. package/postpublish.js +0 -100
  1264. package/src/ChannelIcon/ChannelIcon.js +0 -120
  1265. package/src/ChannelIcon/ChannelIcon.module.css +0 -187
  1266. package/src/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -63
  1267. package/src/Drawer/Drawer.js +0 -271
  1268. package/src/Drawer/Drawer.module.css +0 -140
  1269. package/src/Drawer/docs/Drawer__default.docs.js +0 -45
  1270. package/src/Drawer/docs/Drawer__noFreeze.docs.js +0 -21
  1271. package/src/ExternalLink/ExternalLink.js +0 -57
  1272. package/src/ExternalLink/ExternalLink.module.css +0 -4
  1273. package/src/ExternalLink/__tests__/ExternalLink.spec.js +0 -28
  1274. package/src/ExternalLink/docs/ExternalLink__default.docs.js +0 -24
  1275. package/src/FlipCard/FlipCard.js +0 -159
  1276. package/src/FlipCard/FlipCard.module.css +0 -35
  1277. package/src/FlipCard/docs/FlipCard__default.docs.js +0 -76
  1278. package/src/FormAction/FormAction.js +0 -120
  1279. package/src/FormAction/FormAction.module.css +0 -52
  1280. package/src/FormAction/docs/FormAction__default.docs.js +0 -94
  1281. package/src/FreezeLayer/FreezeLayer.js +0 -130
  1282. package/src/FreezeLayer/FreezeLayer.module.css +0 -37
  1283. package/src/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -53
  1284. package/src/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -51
  1285. package/src/IconButton/IconButton.js +0 -70
  1286. package/src/IconButton/IconButton.module.css +0 -38
  1287. package/src/IconButton/docs/IconButton__default.docs.js +0 -49
  1288. package/src/Image/Image.js +0 -41
  1289. package/src/Image/Image.module.css +0 -11
  1290. package/src/Image/docs/Image__default.docs.js +0 -18
  1291. package/src/Link/Link.js +0 -115
  1292. package/src/Link/Link.module.css +0 -4
  1293. package/src/Link/LinkContext.js +0 -9
  1294. package/src/Link/docs/Link__default.docs.js +0 -91
  1295. package/src/PlusIcon/PlusIcon.js +0 -68
  1296. package/src/PlusIcon/PlusIcon.module.css +0 -7
  1297. package/src/PlusIcon/docs/PlusIcon__default.docs.js +0 -18
  1298. package/src/ToastMessage/ToastMessage.js +0 -289
  1299. package/src/ToastMessage/ToastMessage.module.css +0 -260
  1300. package/src/ToastMessage/docs/ToastMessage__custom.docs.js +0 -97
  1301. package/src/ToastMessage/docs/ToastMessage__information.docs.js +0 -55
  1302. package/src/ToastMessage/docs/ToastMessage__primary.docs.js +0 -135
  1303. package/src/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -40
  1304. package/src/ToastMessage/docs/ToastMessage__success.docs.js +0 -68
  1305. package/src/actions/index.js +0 -22
  1306. package/src/alert/AlertHeader/AlertHeader.js +0 -115
  1307. package/src/alert/AlertHeader/AlertHeader.module.css +0 -62
  1308. package/src/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -72
  1309. package/src/alert/AlertLookup/AlertLookup.js +0 -174
  1310. package/src/alert/AlertLookup/AlertLookup.module.css +0 -20
  1311. package/src/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -123
  1312. package/src/avatar/AvatarClose/AvatarClose.js +0 -43
  1313. package/src/avatar/AvatarClose/AvatarClose.module.css +0 -31
  1314. package/src/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -26
  1315. package/src/avatar/AvatarCollision/AvatarCollision.js +0 -72
  1316. package/src/avatar/AvatarCollision/AvatarCollision.module.css +0 -55
  1317. package/src/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -40
  1318. package/src/avatar/AvatarIcon/AvatarIcon.js +0 -83
  1319. package/src/avatar/AvatarIcon/AvatarIcon.module.css +0 -36
  1320. package/src/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -35
  1321. package/src/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -36
  1322. package/src/avatar/AvatarStatus/AvatarStatus.js +0 -50
  1323. package/src/avatar/AvatarStatus/AvatarStatus.module.css +0 -64
  1324. package/src/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -34
  1325. package/src/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -63
  1326. package/src/avatar/AvatarThread/AvatarThread.js +0 -88
  1327. package/src/avatar/AvatarThread/AvatarThread.module.css +0 -58
  1328. package/src/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -45
  1329. package/src/avatar/AvatarUser/AvatarUser.js +0 -103
  1330. package/src/avatar/AvatarUser/AvatarUser.module.css +0 -61
  1331. package/src/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -111
  1332. package/src/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -57
  1333. package/src/avatar/AvatarWithTeam/AvatarWithTeam.module.css +0 -16
  1334. package/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +0 -50
  1335. package/src/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -28
  1336. package/src/docs/generalDocs.js +0 -118
  1337. package/src/docs/lookupDocs.js +0 -33
  1338. package/src/docs/setupDocs.js +0 -27
  1339. package/src/dropdown/ToggleDropDown/ToggleDropDown.js +0 -598
  1340. package/src/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -65
  1341. package/src/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -75
  1342. package/src/emptystate/CommonEmptyState/CommonEmptyState.js +0 -117
  1343. package/src/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -31
  1344. package/src/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -53
  1345. package/src/emptystate/EditionPage/EditionPage.css +0 -37
  1346. package/src/emptystate/EditionPage/EditionPage.js +0 -69
  1347. package/src/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -23
  1348. package/src/errorstate/EmptyStates.module.css +0 -40
  1349. package/src/errorstate/Inconvenience/Inconvenience.js +0 -42
  1350. package/src/errorstate/Inconvenience/Inconvenience.module.css +0 -6
  1351. package/src/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -19
  1352. package/src/errorstate/LinkText/LinkText.js +0 -28
  1353. package/src/errorstate/LinkText/LinkText.module.css +0 -6
  1354. package/src/errorstate/LinkText/docs/LinkText__default.docs.js +0 -13
  1355. package/src/errorstate/NoRequestFound/NoRequestFound.js +0 -42
  1356. package/src/errorstate/NoRequestFound/NoRequestFound.module.css +0 -5
  1357. package/src/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -19
  1358. package/src/errorstate/PermissionPlay/PermissionPlay.js +0 -46
  1359. package/src/errorstate/PermissionPlay/PermissionPlay.module.css +0 -33
  1360. package/src/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -20
  1361. package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -42
  1362. package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -5
  1363. package/src/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -19
  1364. package/src/errorstate/UnableToProcess/UnableToProcess.js +0 -42
  1365. package/src/errorstate/UnableToProcess/UnableToProcess.module.css +0 -14
  1366. package/src/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -19
  1367. package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -42
  1368. package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -14
  1369. package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -20
  1370. package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -19
  1371. package/src/errorstate/WillBack/WillBack.js +0 -40
  1372. package/src/errorstate/WillBack/WillBack.module.css +0 -21
  1373. package/src/errorstate/WillBack/docs/WillBack__default.docs.js +0 -21
  1374. package/src/index.js +0 -14
  1375. package/src/layout/SetupDetailLayout/SetupDetailLayout.js +0 -248
  1376. package/src/layout/SetupDetailLayout/SetupDetailLayout.module.css +0 -116
  1377. package/src/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -35
  1378. package/src/layout/SetupDetailLayout/index.js +0 -4
  1379. package/src/layout/SubtabLayout/SubtabLayout.js +0 -166
  1380. package/src/layout/SubtabLayout/SubtabLayout.module.css +0 -66
  1381. package/src/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -72
  1382. package/src/layout/SubtabLayout/index.js +0 -3
  1383. package/src/list/AvatarFlip/AvatarFlip.js +0 -89
  1384. package/src/list/AvatarFlip/AvatarFlip.module.css +0 -15
  1385. package/src/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -207
  1386. package/src/list/BluePrintStatus/BluePrintStatus.js +0 -31
  1387. package/src/list/BluePrintStatus/BluePrintStatus.module.css +0 -13
  1388. package/src/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -20
  1389. package/src/list/Comment/Comment.js +0 -54
  1390. package/src/list/Comment/Comment.module.css +0 -17
  1391. package/src/list/Comment/docs/Comment__default.docs.js +0 -22
  1392. package/src/list/DepartmentDropDown/DepartmentDropDown.js +0 -78
  1393. package/src/list/DepartmentDropDown/DepartmentDropDown.module.css +0 -62
  1394. package/src/list/Dot/Dot.js +0 -28
  1395. package/src/list/Dot/Dot.module.css +0 -13
  1396. package/src/list/DotNew/DotNew.js +0 -24
  1397. package/src/list/DotNew/DotNew.module.css +0 -16
  1398. package/src/list/DotNew/docs/DotNew__default.docs.js +0 -18
  1399. package/src/list/GridStencils/GridStencils.js +0 -46
  1400. package/src/list/GridStencils/GridStencils.module.css +0 -131
  1401. package/src/list/GridStencils/docs/GridStencils__default.docs.js +0 -30
  1402. package/src/list/Icons/AddNewIcon.js +0 -53
  1403. package/src/list/Icons/CompleteIcon.js +0 -54
  1404. package/src/list/Icons/DeleteIcon.js +0 -61
  1405. package/src/list/Icons/EditIcon.js +0 -61
  1406. package/src/list/Icons/FloatingIcons.js +0 -32
  1407. package/src/list/Icons/Icons.module.css +0 -15
  1408. package/src/list/Icons/SmartIcon.js +0 -40
  1409. package/src/list/Icons/docs/FloatingIcons__default.docs.js +0 -37
  1410. package/src/list/ListLayout/ListLayout.js +0 -105
  1411. package/src/list/ListLayout/ListLayout.module.css +0 -30
  1412. package/src/list/ListLayout/docs/ListLayout__default.docs.js +0 -54
  1413. package/src/list/ListStencils/ListStencils.js +0 -34
  1414. package/src/list/ListStencils/ListStencils.module.css +0 -24
  1415. package/src/list/ListStencils/docs/ListStencils__default.docs.js +0 -18
  1416. package/src/list/SecondaryText/AccountName.js +0 -80
  1417. package/src/list/SecondaryText/ContactName.js +0 -107
  1418. package/src/list/SecondaryText/DepartmentText.js +0 -32
  1419. package/src/list/SecondaryText/Email.js +0 -69
  1420. package/src/list/SecondaryText/HappinessRating.js +0 -37
  1421. package/src/list/SecondaryText/PhoneNumber.js +0 -72
  1422. package/src/list/SecondaryText/PriorityText.js +0 -40
  1423. package/src/list/SecondaryText/SecondaryText.js +0 -36
  1424. package/src/list/SecondaryText/SecondaryText.module.css +0 -94
  1425. package/src/list/SecondaryText/StatusText.js +0 -49
  1426. package/src/list/SecondaryText/TicketId.js +0 -53
  1427. package/src/list/SecondaryText/Website.js +0 -58
  1428. package/src/list/SecondaryText/docs/ContactName__default.docs.js +0 -18
  1429. package/src/list/SecondaryText/index.js +0 -11
  1430. package/src/list/SecondryPanel/SecondryPanel.js +0 -120
  1431. package/src/list/SecondryPanel/SecondryPanel.module.css +0 -27
  1432. package/src/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
  1433. package/src/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -66
  1434. package/src/list/SentimentStatus/SentimentStatus.js +0 -32
  1435. package/src/list/SentimentStatus/SentimentStatus.module.css +0 -9
  1436. package/src/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -20
  1437. package/src/list/StatusDropdown/StatusDropdown.js +0 -174
  1438. package/src/list/StatusDropdown/StatusDropdown.module.css +0 -51
  1439. package/src/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -72
  1440. package/src/list/Subject/Subject.js +0 -71
  1441. package/src/list/Subject/Subject.module.css +0 -9
  1442. package/src/list/Subject/docs/Subject__default.docs.js +0 -27
  1443. package/src/list/TagNew/TagNew.js +0 -37
  1444. package/src/list/TagNew/TagNew.module.css +0 -108
  1445. package/src/list/TagNew/docs/TagNew__default.docs.js +0 -18
  1446. package/src/list/Thread/Thread.js +0 -36
  1447. package/src/list/Thread/Thread.module.css +0 -15
  1448. package/src/list/Thread/docs/Thread__default.docs.js +0 -18
  1449. package/src/list/TimeInfo/TimeInfo.js +0 -156
  1450. package/src/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -26
  1451. package/src/list/UserTime/UserTime.js +0 -130
  1452. package/src/list/UserTime/UserTime.module.css +0 -42
  1453. package/src/list/UserTime/docs/UserTime__default.docs.js +0 -122
  1454. package/src/list/listCommon.module.css +0 -84
  1455. package/src/lookup/EmptyPage/EmptyPage.js +0 -62
  1456. package/src/lookup/EmptyPage/LookupEmptyPage.module.css +0 -12
  1457. package/src/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -17
  1458. package/src/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -17
  1459. package/src/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -16
  1460. package/src/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -17
  1461. package/src/lookup/Lookup/Lookup.js +0 -80
  1462. package/src/lookup/Lookup/Lookup.module.css +0 -22
  1463. package/src/lookup/Lookup/docs/Lookup__contact.docs.js +0 -189
  1464. package/src/lookup/Lookup/docs/Lookup__default.docs.js +0 -59
  1465. package/src/lookup/Section/LookupSection.module.css +0 -7
  1466. package/src/lookup/Section/Section.js +0 -27
  1467. package/src/lookup/header/Close/Close.js +0 -36
  1468. package/src/lookup/header/Close/LookupClose.module.css +0 -15
  1469. package/src/lookup/header/Close/docs/Close__default.docs.js +0 -17
  1470. package/src/lookup/header/ModuleHeader/ModuleHeader.js +0 -76
  1471. package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -39
  1472. package/src/lookup/header/Search/LookupSearch.module.css +0 -14
  1473. package/src/lookup/header/Search/Search.js +0 -104
  1474. package/src/lookup/header/Search/docs/Search__default.docs.js +0 -41
  1475. package/src/lookup/header/TicketHeader/TicketHeader.js +0 -105
  1476. package/src/lookup/header/TicketHeader/TicketHeader.module.css +0 -19
  1477. package/src/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -63
  1478. package/src/lookup/header/Title/LookupTitle.module.css +0 -20
  1479. package/src/lookup/header/Title/Title.js +0 -37
  1480. package/src/lookup/header/Title/docs/Title__default.docs.js +0 -17
  1481. package/src/lookup/header/ViewDropDown/ViewDropDown.js +0 -185
  1482. package/src/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -50
  1483. package/src/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -54
  1484. package/src/lookup/header/lookupHeaderCommon.module.css +0 -21
  1485. package/src/lookup/header/lookupHeaderCommonResponsive.module.css +0 -15
  1486. package/src/setup/header/Button/Button.js +0 -40
  1487. package/src/setup/header/Button/HeaderButton.module.css +0 -3
  1488. package/src/setup/header/Button/docs/Button__default.docs.js +0 -21
  1489. package/src/setup/header/Link/HeaderLink.module.css +0 -16
  1490. package/src/setup/header/Link/Link.js +0 -48
  1491. package/src/setup/header/Link/docs/Link__default.docs.js +0 -20
  1492. package/src/setup/header/Search/Search.js +0 -74
  1493. package/src/setup/header/Search/Search.module.css +0 -56
  1494. package/src/setup/header/Search/docs/Search__default.docs.js +0 -32
  1495. package/src/setup/header/SelectDropdown/SelectDropdown.js +0 -122
  1496. package/src/setup/header/SelectDropdown/SelectDropdown.module.css +0 -35
  1497. package/src/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -31
  1498. package/src/setup/header/Views/Views.js +0 -62
  1499. package/src/setup/header/Views/Views.module.css +0 -27
  1500. package/src/setup/header/Views/docs/Views__default.docs.js +0 -20
  1501. package/src/setup/helptips/Description/Description.js +0 -22
  1502. package/src/setup/helptips/Description/HelpTipsDescription.module.css +0 -6
  1503. package/src/setup/helptips/Description/docs/Description__default.docs.js +0 -24
  1504. package/src/setup/helptips/Link/HelpTipsLink.module.css +0 -6
  1505. package/src/setup/helptips/Link/Link.js +0 -40
  1506. package/src/setup/helptips/Link/docs/Link__default.docs.js +0 -27
  1507. package/src/setup/helptips/ListGroup/ListGroup.js +0 -42
  1508. package/src/setup/helptips/ListGroup/ListGroup.module.css +0 -17
  1509. package/src/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -37
  1510. package/src/setup/helptips/Title/HelpTipsTitle.module.css +0 -5
  1511. package/src/setup/helptips/Title/Title.js +0 -22
  1512. package/src/setup/helptips/Title/docs/Title__default.docs.js +0 -22
  1513. package/src/setup/table/Table/Table.js +0 -25
  1514. package/src/setup/table/Table/docs/Table__default.docs.js +0 -115
  1515. package/src/setup/table/TableBody/TableBody.js +0 -27
  1516. package/src/setup/table/TableData/TableData.css +0 -36
  1517. package/src/setup/table/TableData/TableData.js +0 -45
  1518. package/src/setup/table/TableData/hover.css +0 -6
  1519. package/src/setup/table/TableHead/TableHead.css +0 -8
  1520. package/src/setup/table/TableHead/TableHead.js +0 -53
  1521. package/src/setup/table/TableRow/TableRow.css +0 -10
  1522. package/src/setup/table/TableRow/TableRow.js +0 -60
  1523. package/src/setup/table/Text/Text.css +0 -37
  1524. package/src/setup/table/Text/Text.js +0 -81
  1525. package/src/setup/table/Text/docs/Text__default.docs.js +0 -38
  1526. package/src/svg/PlusIcon.js +0 -43
  1527. package/src/svg/SnippetIcon.js +0 -50
  1528. package/src/svg/TemplateIcon.js +0 -46
  1529. package/src/svg/docs/SVG__default.docs.js +0 -46
  1530. package/src/utils/ChannelIconMapping.js +0 -112
  1531. package/src/utils/General.js +0 -18
  1532. package/src/utils/KeyboardApi.js +0 -280
  1533. package/src/utils/Ticket.js +0 -10
  1534. /package/es/setup/table/TableData/{TableData.css → SetupTableData.module.css} +0 -0
  1535. /package/es/setup/table/TableData/{hover.css → Tablehover.module.css} +0 -0
  1536. /package/lib/setup/table/TableData/{TableData.css → SetupTableData.module.css} +0 -0
  1537. /package/lib/setup/table/TableData/{hover.css → Tablehover.module.css} +0 -0
@@ -1,588 +1,839 @@
1
- import _defineProperty from 'babel-runtime/helpers/defineProperty';
2
- import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
3
- import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
4
- import _createClass from 'babel-runtime/helpers/createClass';
5
- import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
6
- import _inherits from 'babel-runtime/helpers/inherits';
7
-
8
- var _ToggleDropDown$propT;
9
-
10
- import React from 'react';
11
- import PropTypes from 'prop-types';
12
- import Icon from '@zohodesk/icons/lib/Icon';
13
- import DropBox from '@zohodesk/components/lib/DropBox/DropBox';
14
- import commonStyle from '@zohodesk/components/lib/common/common.module.css';
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
+ import React, { Component, Fragment } from 'react';
3
+ import { defaultProps } from './props/defaultProps';
4
+ import { propTypes } from './props/propTypes';
5
+ import { Icon } from '@zohodesk/icons';
15
6
  import Popup from '@zohodesk/components/lib/Popup/Popup';
16
7
  import { Box, Container } from '@zohodesk/components/lib/Layout';
17
8
  import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
18
9
  import ListItemWithIcon from '@zohodesk/components/lib/ListItem/ListItemWithIcon';
19
10
  import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
20
11
  import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
21
- import Loader from '@zohodesk/svg/lib/svg/Loader';
12
+ import Loader from '@zohodesk/svg/lib/Loader/Loader';
22
13
  import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
23
- import EmptySearch from '@zohodesk/svg/lib/svg/EmptySearch';
24
- import { scrollTo } from '@zohodesk/components/lib/utils/Common.js';
25
- import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
14
+ import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
15
+ import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
16
+ import { scrollTo, findScrollEnd } from '@zohodesk/components/lib/utils/Common';
17
+ import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
18
+ import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
19
+ import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
20
+ import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
21
+ import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
26
22
  import style from './ToggleDropDown.module.css';
27
-
28
- export var ToggleDropDown = function (_React$Component) {
29
- _inherits(ToggleDropDown, _React$Component);
30
-
31
- function ToggleDropDown(props) {
32
- _classCallCheck(this, ToggleDropDown);
33
-
34
- var _this = _possibleConstructorReturn(this, (ToggleDropDown.__proto__ || _Object$getPrototypeOf(ToggleDropDown)).call(this, props));
35
-
36
- _this.state = {
37
- searchString: '',
38
- selectedIndex: 0,
23
+ export class ToggleDropDown extends Component {
24
+ constructor(props) {
25
+ super(props);
26
+ this.state = {
27
+ searchValue: '',
28
+ selectedIndex: -1,
39
29
  options: props.options,
40
- seperatedOptions: props.seperatedOptions
30
+ isFetchingOptions: false
41
31
  };
42
- _this.handleChange = _this.handleChange.bind(_this);
43
- _this.handleKeyDown = _this.handleKeyDown.bind(_this);
44
- _this.onSelect = _this.onSelect.bind(_this);
45
- _this.handleTogglePopup = _this.handleTogglePopup.bind(_this);
46
- _this.onSearchClear = _this.onSearchClear.bind(_this);
47
- _this.searchList = _this.searchList.bind(_this);
48
- _this.scrollContentRef = _this.scrollContentRef.bind(_this);
49
- _this.handleMouseEnter = _this.handleMouseEnter.bind(_this);
50
- _this.searchInputRef = _this.searchInputRef.bind(_this);
51
- _this.itemRef = _this.itemRef.bind(_this);
52
- _this.inputRef = _this.inputRef.bind(_this);
53
- _this.handleScroll = _this.handleScroll.bind(_this);
54
- return _this;
32
+ this._isMounted = false;
33
+ this.handleChange = this.handleChange.bind(this);
34
+ this.handleKeyDown = this.handleKeyDown.bind(this);
35
+ this.onSelect = this.onSelect.bind(this);
36
+ this.handleTogglePopup = this.handleTogglePopup.bind(this);
37
+ this.showTogglePopup = this.showTogglePopup.bind(this);
38
+ this.hideTogglePopup = this.hideTogglePopup.bind(this);
39
+ this.onSearchAPI = this.onSearchAPI.bind(this);
40
+ this.onSearchClear = this.onSearchClear.bind(this);
41
+ this.handleFilterSuggestions = this.handleFilterSuggestions.bind(this);
42
+ this.scrollContentRef = this.scrollContentRef.bind(this);
43
+ this.handleMouseEnter = this.handleMouseEnter.bind(this);
44
+ this.searchInputRef = this.searchInputRef.bind(this);
45
+ this.itemRef = this.itemRef.bind(this);
46
+ this.inputRef = this.inputRef.bind(this);
47
+ this.handleScroll = this.handleScroll.bind(this);
48
+ this.getOptionsArray = this.getOptionsArray.bind(this);
49
+ this.emptySearchSVG = this.emptySearchSVG.bind(this);
50
+ this.getAriaId = getUniqueId(this);
51
+ this.getSelectedIndex = this.getSelectedIndex.bind(this);
52
+ this.handleGetNextOptions = this.handleGetNextOptions.bind(this);
53
+ this.handleFetchOptions = this.handleFetchOptions.bind(this);
55
54
  }
56
-
57
- _createClass(ToggleDropDown, [{
58
- key: 'inputRef',
59
- value: function inputRef(el) {
60
- this.hiddenInput = el;
61
- }
62
- }, {
63
- key: 'itemRef',
64
- value: function itemRef(ele, index, id) {
65
- this['suggestion_' + id] = ele;
55
+ componentDidMount() {
56
+ this._isMounted = true;
57
+ }
58
+ componentWillUnmount() {
59
+ this._isMounted = false;
60
+ }
61
+ emptySearchSVG() {
62
+ return /*#__PURE__*/React.createElement(EmptySearch, {
63
+ size: "small"
64
+ });
65
+ }
66
+ inputRef(el) {
67
+ this.hiddenInput = el;
68
+ }
69
+ itemRef(ele, index, id) {
70
+ this[`suggestion_${id}`] = ele;
71
+ }
72
+ searchInputRef(el) {
73
+ this.searchInput = el;
74
+ }
75
+ handleTogglePopup(e) {
76
+ const {
77
+ togglePopup,
78
+ boxPosition,
79
+ onSelectLabel,
80
+ isPopupOpen,
81
+ removeClose
82
+ } = this.props;
83
+ removeClose && removeClose(e);
84
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
85
+ togglePopup(e, boxPosition);
86
+ }
87
+ showTogglePopup(e) {
88
+ const {
89
+ togglePopup,
90
+ boxPosition,
91
+ onSelectLabel,
92
+ isPopupOpen
93
+ } = this.props;
94
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
95
+ !isPopupOpen && togglePopup(e, boxPosition);
96
+ }
97
+ hideTogglePopup(e) {
98
+ const {
99
+ togglePopup,
100
+ boxPosition,
101
+ onSelectLabel,
102
+ isPopupOpen
103
+ } = this.props;
104
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
105
+ isPopupOpen && togglePopup(e, boxPosition);
106
+ }
107
+ scrollContentRef(el) {
108
+ const {
109
+ isPopupOpen
110
+ } = this.props;
111
+ if (isPopupOpen) {
112
+ this.optionsContainer = el;
66
113
  }
67
- }, {
68
- key: 'searchInputRef',
69
- value: function searchInputRef(el) {
70
- this.searchInput = el;
114
+ }
115
+ UNSAFE_componentWillReceiveProps(nextProps) {
116
+ this.setState({
117
+ options: nextProps.options
118
+ });
119
+ }
120
+ onSelect(element, e) {
121
+ const {
122
+ onClick,
123
+ togglePopup,
124
+ preventPopupClose
125
+ } = this.props;
126
+ onClick && onClick(e, element);
127
+ !preventPopupClose && togglePopup(e);
128
+ }
129
+ componentDidUpdate(prevProps) {
130
+ const {
131
+ isPopupOpen,
132
+ isPopupReady,
133
+ isSearch,
134
+ idName,
135
+ options,
136
+ onDropDownOpen,
137
+ onDropDownClose
138
+ } = this.props;
139
+ const {
140
+ selectedIndex,
141
+ searchValue
142
+ } = this.state;
143
+ if (prevProps.isPopupReady !== isPopupReady) {
144
+ setTimeout(() => {
145
+ isPopupReady ? isSearch ? this.searchInput.focus({
146
+ preventScroll: true
147
+ }) : this.hiddenInput.focus({
148
+ preventScroll: true
149
+ }) : this.hiddenInput.focus({
150
+ preventScroll: true
151
+ });
152
+ }, 10);
71
153
  }
72
- }, {
73
- key: 'handleTogglePopup',
74
- value: function handleTogglePopup(e) {
75
- var _props = this.props,
76
- togglePopup = _props.togglePopup,
77
- boxPosition = _props.boxPosition,
78
- onSelectLabel = _props.onSelectLabel,
79
- isPopupOpen = _props.isPopupOpen;
80
-
81
- !isPopupOpen && onSelectLabel && onSelectLabel(e);
82
- togglePopup(e, boxPosition);
154
+ const optionsArr = this.getOptionsArray();
155
+ const option = optionsArr[selectedIndex];
156
+ const id = option && option[idName] || {};
157
+ const selSuggestion = this[`suggestion_${id}`];
158
+ if (isPopupOpen) {
159
+ this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
83
160
  }
84
- }, {
85
- key: 'scrollContentRef',
86
- value: function scrollContentRef(el) {
87
- var isPopupOpen = this.props.isPopupOpen;
88
-
89
- if (isPopupOpen) {
90
- this.optionsContainer = el;
91
- }
161
+ if (!prevProps.isPopupOpen && isPopupOpen && searchValue.length) {
162
+ this.onSearchClear();
92
163
  }
93
- }, {
94
- key: 'componentWillReceiveProps',
95
- value: function componentWillReceiveProps(nextProps) {
96
- if (nextProps.options.length != this.props.options.length) {
164
+ if (this.props.from == 'activityFilter') {
165
+ //Temproary
166
+ const results = this.props.options.filter(_ref => {
167
+ let {
168
+ isDisabled: id1
169
+ } = _ref;
170
+ return !prevProps.options.some(_ref2 => {
171
+ let {
172
+ isDisabled: id2
173
+ } = _ref2;
174
+ return id2 === id1;
175
+ });
176
+ });
177
+ if (results.length > 0) {
97
178
  this.setState({
98
- options: nextProps.options
179
+ options: options
99
180
  });
100
181
  }
101
182
  }
102
- }, {
103
- key: 'onSelect',
104
- value: function onSelect(element, e) {
105
- var _props2 = this.props,
106
- onClick = _props2.onClick,
107
- togglePopup = _props2.togglePopup;
108
-
109
- onClick && onClick(e, element);
110
- togglePopup(e);
183
+ if (prevProps.isPopupOpen !== isPopupOpen) {
184
+ if (isPopupOpen) {
185
+ onDropDownOpen && onDropDownOpen();
186
+ } else {
187
+ onDropDownClose && onDropDownClose();
188
+ }
189
+ this.getSelectedIndex(optionsArr);
111
190
  }
112
- }, {
113
- key: 'componentDidUpdate',
114
- value: function componentDidUpdate(prevProps) {
115
- var _this2 = this;
116
-
117
- var _props3 = this.props,
118
- isPopupOpen = _props3.isPopupOpen,
119
- isSearch = _props3.isSearch,
120
- idName = _props3.idName;
121
- var _state = this.state,
122
- selectedIndex = _state.selectedIndex,
123
- options = _state.options,
124
- seperatedOptions = _state.seperatedOptions;
125
-
126
- if (prevProps.isPopupOpen != isPopupOpen) {
127
- setTimeout(function () {
128
- isPopupOpen ? isSearch ? _this2.searchInput.focus() : _this2.hiddenInput.focus() : _this2.hiddenInput.focus();
129
- }, 10);
191
+ }
192
+ handleFilterSuggestions(searchValue) {
193
+ const {
194
+ options,
195
+ keyName,
196
+ isGroupDropDown,
197
+ groupOptionsKey,
198
+ groupNameKey
199
+ } = this.props;
200
+ searchValue = searchValue.trim().toLowerCase();
201
+ let result = [];
202
+ if (isGroupDropDown) {
203
+ const filteredGroups = [];
204
+ options.map(group => {
205
+ const {
206
+ needDivider
207
+ } = group;
208
+ const name = group[groupNameKey];
209
+ const groupOptions = group[groupOptionsKey];
210
+ const datas = groupOptions.filter(list => {
211
+ const value = list[keyName];
212
+ return value.toLowerCase().includes(searchValue);
213
+ });
214
+ if (datas.length) {
215
+ filteredGroups.push({
216
+ [groupNameKey]: name,
217
+ [groupOptionsKey]: datas,
218
+ needDivider
219
+ });
220
+ }
221
+ });
222
+ result = filteredGroups;
223
+ } else {
224
+ let filteredOptions = options.filter((item, i) => {
225
+ if (item.needDivider) {
226
+ return true;
227
+ }
228
+ return item[keyName].toLowerCase().includes(searchValue);
229
+ });
230
+ if (filteredOptions.length) {
231
+ // to avoid more than one dividers consecutively comes as one by one
232
+ let needDividerCount = 0;
233
+ const orderedOptions = filteredOptions.filter(item => {
234
+ if (item.needDivider && needDividerCount === 0) {
235
+ needDividerCount++;
236
+ return true;
237
+ } else if (!item.needDivider) {
238
+ needDividerCount = 0;
239
+ return true;
240
+ }
241
+ });
242
+ // remove divider if it placed in first or last index
243
+ filteredOptions = [];
244
+ filteredOptions = orderedOptions.filter((item, i) => {
245
+ if (i == 0 || i == orderedOptions.length - 1) {
246
+ if (!item.needDivider) {
247
+ return true;
248
+ }
249
+ } else {
250
+ return true;
251
+ }
252
+ });
253
+ result = filteredOptions;
130
254
  }
131
- var mergeOptions = seperatedOptions ? options.concat(seperatedOptions) : options;
132
- var option = mergeOptions[selectedIndex];
133
- var id = option && option[idName] || {};
134
- var selSuggestion = this['suggestion_' + id];
135
- if (isPopupOpen) {
136
- this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
255
+ }
256
+ return result;
257
+ }
258
+ getOptionsArray() {
259
+ const {
260
+ searchValue
261
+ } = this.state;
262
+ const {
263
+ isGroupDropDown,
264
+ groupOptionsKey
265
+ } = this.props;
266
+ const options = searchValue.length ? this.handleFilterSuggestions(searchValue) : this.props.options;
267
+ let optionsArr = [];
268
+ if (isGroupDropDown) {
269
+ for (let i = 0; i < options.length; i++) {
270
+ const groupOptions = options[i][groupOptionsKey];
271
+ Array.prototype.push.apply(optionsArr, groupOptions);
137
272
  }
273
+ } else {
274
+ optionsArr = options.filter(item => !item.needDivider);
275
+ }
276
+ return optionsArr;
277
+ }
278
+ handleKeyDown(e) {
279
+ const {
280
+ keyCode
281
+ } = e;
282
+ const {
283
+ selectedIndex,
284
+ searchValue
285
+ } = this.state;
286
+ const optionsArr = this.getOptionsArray();
287
+ const totalIndex = optionsArr.length;
288
+ const {
289
+ togglePopup,
290
+ onClick,
291
+ boxPosition,
292
+ isPopupReady,
293
+ value,
294
+ keyName,
295
+ idName,
296
+ preventPopupClose,
297
+ isSearch
298
+ } = this.props;
299
+ if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
300
+ e.preventDefault(); //prevent body scroll
138
301
  }
139
- }, {
140
- key: 'handleKeyDown',
141
- value: function handleKeyDown(e) {
142
- var keyCode = e.keyCode;
143
- var _state2 = this.state,
144
- selectedIndex = _state2.selectedIndex,
145
- options = _state2.options,
146
- seperatedOptions = _state2.seperatedOptions;
147
-
148
- var totalIndex = seperatedOptions ? options.length + seperatedOptions.length : options.length;
149
- var mergeOptions = seperatedOptions ? options.concat(seperatedOptions) : options;
150
- var _props4 = this.props,
151
- togglePopup = _props4.togglePopup,
152
- onClick = _props4.onClick,
153
- boxPosition = _props4.boxPosition,
154
- isPopupOpen = _props4.isPopupOpen,
155
- isNextOptions = _props4.isNextOptions,
156
- getNextOptions = _props4.getNextOptions;
157
302
 
158
- if (isPopupOpen && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
159
- e.preventDefault(); //prevent body scroll
160
- }
303
+ if (isPopupReady) {
161
304
  switch (keyCode) {
162
305
  case 40:
163
306
  if (selectedIndex === totalIndex - 1) {
164
- this.setState({ selectedIndex: 0 });
307
+ this.setState({
308
+ selectedIndex: 0
309
+ });
165
310
  } else {
166
311
  if (selectedIndex === totalIndex - 3) {
167
- isNextOptions && getNextOptions && getNextOptions();
312
+ this.handleGetNextOptions();
168
313
  }
169
- this.setState({ selectedIndex: selectedIndex + 1 });
314
+ this.setState({
315
+ selectedIndex: selectedIndex + 1
316
+ });
170
317
  }
171
318
  break;
172
319
  case 38:
173
320
  if (selectedIndex === 0) {
174
- this.setState({ selectedIndex: totalIndex - 1 });
321
+ this.setState({
322
+ selectedIndex: totalIndex - 1
323
+ });
175
324
  } else {
176
- this.setState({ selectedIndex: selectedIndex - 1 });
325
+ this.setState({
326
+ selectedIndex: selectedIndex - 1
327
+ });
177
328
  }
178
329
  break;
179
330
  case 13:
180
- onClick && onClick(e, mergeOptions[selectedIndex]);
181
- togglePopup(e, boxPosition);
182
- break;
331
+ {
332
+ const selectedId = optionsArr[selectedIndex][idName] || '';
333
+ onClick && onClick(selectedId, optionsArr[selectedIndex]);
334
+ if (!preventPopupClose) {
335
+ togglePopup(e, boxPosition);
336
+ } else if (isSearch) {
337
+ this.searchInput.focus({
338
+ preventScroll: true
339
+ });
340
+ } else {
341
+ this.hiddenInput.focus({
342
+ preventScroll: true
343
+ });
344
+ }
345
+ break;
346
+ }
347
+ }
348
+ } else {
349
+ if (keyCode === 13 || keyCode === 40) {
350
+ togglePopup(e, boxPosition);
183
351
  }
184
352
  }
185
- }, {
186
- key: 'searchList',
187
- value: function searchList(value) {
188
- var _props5 = this.props,
189
- options = _props5.options,
190
- keyName = _props5.keyName,
191
- seperatedOptions = _props5.seperatedOptions;
192
-
193
- var foptions = options.filter(function (dept) {
194
- return dept[keyName].toLowerCase().indexOf(value.toLowerCase()) != -1;
195
- });
196
- var fseperatedOptions = seperatedOptions && seperatedOptions.filter(function (dept) {
197
- return dept[keyName].toLowerCase().indexOf(value.toLowerCase()) != -1;
198
- });
199
- var optionsObj = {
200
- foptions: foptions,
201
- fseperatedOptions: fseperatedOptions
202
- };
203
- return optionsObj;
204
- }
205
- }, {
206
- key: 'handleChange',
207
- value: function handleChange(value, e) {
208
- var optionsObj = this.searchList(value);
353
+ }
354
+ getSelectedIndex(optionsArr) {
355
+ const {
356
+ selectedId,
357
+ idName
358
+ } = this.props;
359
+ if (selectedId) {
360
+ for (let i = 0; i < optionsArr.length; i++) {
361
+ const indexId = optionsArr[i][idName];
362
+ if (selectedId === indexId) {
363
+ this.setState({
364
+ selectedIndex: i
365
+ });
366
+ break;
367
+ }
368
+ }
369
+ } else {
209
370
  this.setState({
210
- searchString: value,
211
- selectedIndex: -1,
212
- options: optionsObj.foptions,
213
- seperatedOptions: optionsObj.fseperatedOptions
371
+ selectedIndex: -1
214
372
  });
215
373
  }
216
- }, {
217
- key: 'onSearchClear',
218
- value: function onSearchClear() {
219
- var optionsObj = this.searchList('');
220
- this.setState({
221
- searchString: '',
222
- options: optionsObj.foptions,
223
- seperatedOptions: optionsObj.fseperatedOptions
224
- });
374
+ }
375
+ onSearchAPI() {
376
+ const {
377
+ searchValue
378
+ } = this.state;
379
+ const {
380
+ needSearchFetching,
381
+ onSearch
382
+ } = this.props;
383
+ if (needSearchFetching && onSearch) {
384
+ onSearch(searchValue);
225
385
  }
226
- }, {
227
- key: 'handleMouseEnter',
228
- value: function handleMouseEnter(id, value, index, e) {
386
+ }
387
+ handleChange(value, e) {
388
+ const filteredOptions = this.handleFilterSuggestions(value);
389
+ this.setState({
390
+ searchValue: value,
391
+ selectedIndex: -1,
392
+ options: filteredOptions
393
+ }, () => {
394
+ this.onSearchAPI();
395
+ });
396
+ }
397
+ onSearchClear() {
398
+ const filteredOptions = this.handleFilterSuggestions('');
399
+ this.setState({
400
+ searchValue: '',
401
+ options: filteredOptions
402
+ }, () => {
403
+ this.onSearchAPI();
404
+ });
405
+ }
406
+ handleMouseEnter(id, value, index, e) {
407
+ this.setState({
408
+ selectedIndex: index
409
+ });
410
+ }
411
+ handleScroll(e) {
412
+ let ele = e.target;
413
+ let isScrollReachedBottom = findScrollEnd(ele);
414
+ isScrollReachedBottom && this.handleGetNextOptions();
415
+ }
416
+ handleGetNextOptions() {
417
+ let {
418
+ isNextOptions,
419
+ getNextOptions
420
+ } = this.props;
421
+ let {
422
+ searchValue
423
+ } = this.state;
424
+ isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
425
+ }
426
+ handleFetchOptions(APICall) {
427
+ let searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
428
+ let {
429
+ isFetchingOptions = false
430
+ } = this.state;
431
+ let {
432
+ _isMounted
433
+ } = this;
434
+ if (!isFetchingOptions && APICall) {
229
435
  this.setState({
230
- selectedIndex: index
436
+ isFetchingOptions: true
231
437
  });
232
- }
233
- }, {
234
- key: 'handleScroll',
235
- value: function handleScroll(e) {
236
- var _props6 = this.props,
237
- isNextOptions = _props6.isNextOptions,
238
- getNextOptions = _props6.getNextOptions;
239
-
240
- if (e.target.scrollTop + e.target.offsetHeight > e.target.scrollHeight - 1) {
241
- isNextOptions && getNextOptions && getNextOptions(e);
438
+ try {
439
+ return APICall(searchValue).then(() => {
440
+ _isMounted && this.setState({
441
+ isFetchingOptions: false
442
+ });
443
+ }, () => {
444
+ _isMounted && this.setState({
445
+ isFetchingOptions: false
446
+ });
447
+ });
448
+ } catch (e) {
449
+ _isMounted && this.setState({
450
+ isFetchingOptions: false
451
+ });
242
452
  }
243
453
  }
244
- }, {
245
- key: 'render',
246
- value: function render() {
247
- var _this3 = this;
248
-
249
- var _state3 = this.state,
250
- options = _state3.options,
251
- selectedIndex = _state3.selectedIndex,
252
- seperatedOptions = _state3.seperatedOptions;
253
- var _props7 = this.props,
254
- value = _props7.value,
255
- removeClose = _props7.removeClose,
256
- boxSize = _props7.boxSize,
257
- keyName = _props7.keyName,
258
- idName = _props7.idName,
259
- title = _props7.title,
260
- isSearch = _props7.isSearch,
261
- isArrow = _props7.isArrow,
262
- placeHolderText = _props7.placeHolderText,
263
- className = _props7.className,
264
- right = _props7.right,
265
- left = _props7.left,
266
- top = _props7.top,
267
- bottom = _props7.bottom,
268
- isPopupOpen = _props7.isPopupOpen,
269
- isPopupReady = _props7.isPopupReady,
270
- position = _props7.position,
271
- getTargetRef = _props7.getTargetRef,
272
- getContainerRef = _props7.getContainerRef,
273
- dataId = _props7.dataId,
274
- searchBoxSize = _props7.searchBoxSize,
275
- searchEmptyHint = _props7.searchEmptyHint,
276
- searchErrorText = _props7.searchErrorText,
277
- activeStyle = _props7.activeStyle,
278
- _props7$showOnHover = _props7.showOnHover,
279
- showOnHover = _props7$showOnHover === undefined ? false : _props7$showOnHover,
280
- isDisabled = _props7.isDisabled,
281
- showIconOnHover = _props7.showIconOnHover,
282
- isReadOnly = _props7.isReadOnly,
283
- hoverStyle = _props7.hoverStyle,
284
- isEditable = _props7.isEditable,
285
- iconName = _props7.iconName,
286
- iconSize = _props7.iconSize,
287
- needTick = _props7.needTick,
288
- dataTitle = _props7.dataTitle,
289
- isDataLoaded = _props7.isDataLoaded,
290
- children = _props7.children,
291
- targetAlign = _props7.targetAlign,
292
- needResponsive = _props7.needResponsive;
293
- var searchString = this.state.searchString;
294
-
295
- var containerClass = (className ? className : '') + ' ' + (isPopupReady ? activeStyle ? activeStyle : '' : showIconOnHover ? style.hoverIcon : '') + ' ' + (isDisabled ? commonStyle.disabled : isReadOnly ? style.readOnly : !isEditable ? style.cursorDefault : !showOnHover ? style.cursor + ' ' + (hoverStyle ? hoverStyle : '') : (hoverStyle ? hoverStyle : '') + ' ' + style.cursorDefault);
296
- return React.createElement(
297
- 'div',
298
- {
299
- className: style.posRel,
300
- onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : undefined,
301
- onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : undefined
454
+ }
455
+ responsiveFunc(_ref3) {
456
+ let {
457
+ mediaQueryOR
458
+ } = _ref3;
459
+ return {
460
+ tabletMode: mediaQueryOR([{
461
+ maxWidth: 700
462
+ }])
463
+ };
464
+ }
465
+ render() {
466
+ const {
467
+ options,
468
+ selectedIndex
469
+ } = this.state;
470
+ const {
471
+ value,
472
+ removeClose,
473
+ boxSize,
474
+ keyName,
475
+ idName,
476
+ title,
477
+ isSearch,
478
+ isArrow,
479
+ placeHolderText,
480
+ className,
481
+ right,
482
+ left,
483
+ top,
484
+ bottom,
485
+ isPopupOpen: isOpen,
486
+ isPopupActive,
487
+ needExternalPopupState,
488
+ isPopupReady,
489
+ position,
490
+ getTargetRef,
491
+ getContainerRef,
492
+ dataId,
493
+ dataSelectorId,
494
+ searchBoxSize,
495
+ searchEmptyHint,
496
+ searchErrorText,
497
+ activeStyle,
498
+ showOnHover,
499
+ isDisabled,
500
+ showIconOnHover,
501
+ isReadOnly,
502
+ hoverStyle,
503
+ isEditable,
504
+ iconName,
505
+ iconSize,
506
+ needTick,
507
+ dataTitle,
508
+ isDataLoaded,
509
+ children,
510
+ needResponsive,
511
+ arrowIconPosition,
512
+ isGroupDropDown,
513
+ groupOptionsKey,
514
+ groupNameKey,
515
+ isToggleStateNeeded,
516
+ selectedId,
517
+ isPadding,
518
+ isNeedEffect,
519
+ hoverType,
520
+ palette,
521
+ getFooter,
522
+ customProps,
523
+ needMultiLineText
524
+ } = this.props;
525
+ let {
526
+ ToggleDropDownProps = {},
527
+ DropBoxProps = {},
528
+ TextBoxIconProps = {},
529
+ ListItemWithIconProps = {},
530
+ ListItemProps = {}
531
+ } = customProps;
532
+ const isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
533
+ const Component = isToggleStateNeeded ? children.type : null,
534
+ componentProps = isToggleStateNeeded ? children.props : null;
535
+ const {
536
+ searchValue,
537
+ isFetchingOptions
538
+ } = this.state;
539
+ const commonClass = `${className ? className : ''} ${isPopupReady ? activeStyle ? activeStyle : '' : ''} ${isDisabled ? CssProvider('isDisable') : isReadOnly || !isEditable ? style.cursorDefault : !showOnHover ? `${style.cursor} ${hoverStyle ? hoverStyle : ''}` : `${hoverStyle ? hoverStyle : ''} ${style.cursorDefault}`}`;
540
+ let listIndex = -1;
541
+ const ariaTitleId = this.getAriaId();
542
+ const allyOptionsArr = this.getOptionsArray();
543
+ return /*#__PURE__*/React.createElement("div", _extends({
544
+ className: style.wrapper,
545
+ onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
546
+ onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
547
+ "data-selector-id": dataSelectorId
548
+ }, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
549
+ alignBox: "row",
550
+ onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
551
+ eleRef: getTargetRef,
552
+ align: "vertical",
553
+ isCover: false,
554
+ dataId: dataId
555
+ }, /*#__PURE__*/React.createElement("div", {
556
+ className: style.hiddenInput
557
+ }, /*#__PURE__*/React.createElement("input", {
558
+ type: "text",
559
+ ref: this.inputRef,
560
+ onKeyDown: this.handleKeyDown,
561
+ tabIndex: "-1",
562
+ className: style.hiddenInputElement
563
+ })), children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
564
+ isActive: isPopupOpen
565
+ })) : children : /*#__PURE__*/React.createElement(RippleEffect, {
566
+ hoverType: hoverType,
567
+ isActive: isPopupOpen,
568
+ isNeedEffect: isEditable && isNeedEffect
569
+ }, /*#__PURE__*/React.createElement(Container, {
570
+ className: `${btnStyle.buttonReset} ${commonClass} ${!isPopupOpen && showIconOnHover ? style.hoverIcon : ''}`,
571
+ isCover: false,
572
+ alignBox: "row",
573
+ align: "vertical",
574
+ tagName: "button",
575
+ "aria-labelledby": ariaTitleId,
576
+ "aria-haspopup": true,
577
+ "aria-expanded": isPopupOpen ? true : false
578
+ }, iconName ? /*#__PURE__*/React.createElement(Box, {
579
+ className: value ? style.iconBox : ''
580
+ }, /*#__PURE__*/React.createElement(Icon, {
581
+ name: iconName,
582
+ size: iconSize
583
+ })) : null, value && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
584
+ id: ariaTitleId,
585
+ "aria-hidden": true,
586
+ className: `${style.value} toggleDropText`,
587
+ shrink: true,
588
+ tagName: "span",
589
+ "data-title": dataTitle
590
+ }, value), isEditable ? /*#__PURE__*/React.createElement(Icon, {
591
+ "aria-hidden": true,
592
+ size: "6",
593
+ name: "ZD-down",
594
+ iconClass: `${'toggleDropIcon'} ${style.arrow} ${style[`${arrowIconPosition}_arrow`]}`,
595
+ dataId: "statusdownarrow"
596
+ }) : null)))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
597
+ query: this.responsiveFunc,
598
+ responsiveId: "Helmet"
599
+ }, _ref4 => {
600
+ let {
601
+ tabletMode
602
+ } = _ref4;
603
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
604
+ boxPosition: position,
605
+ isActive: isPopupReady,
606
+ onClick: removeClose,
607
+ size: boxSize,
608
+ right: right,
609
+ left: left,
610
+ top: top,
611
+ bottom: bottom,
612
+ isArrow: isArrow,
613
+ isAnimate: true,
614
+ getRef: getContainerRef,
615
+ customClass: {
616
+ customDropBoxWrap: style.dropBoxContainer
302
617
  },
303
- React.createElement(
304
- Container,
305
- {
306
- alignBox: 'row',
307
- className: containerClass,
308
- onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
309
- eleRef: getTargetRef,
310
- align: targetAlign,
311
- isCover: false,
312
- dataId: dataId
313
- },
314
- React.createElement(
315
- 'div',
316
- { className: style.hiddenInput },
317
- React.createElement(TextBox, {
318
- type: 'text',
319
- inputRef: this.inputRef,
320
- onKeyDown: this.handleKeyDown,
321
- needAppearance: false
322
- })
323
- ),
324
- children ? children : React.createElement(
325
- React.Fragment,
326
- null,
327
- iconName ? React.createElement(
328
- Box,
329
- { className: style.iconBox },
330
- React.createElement(Icon, { name: iconName, size: iconSize })
331
- ) : null,
332
- React.createElement(
333
- Box,
334
- {
335
- className: style.value + ' toggleDropText',
336
- shrink: true,
337
- tagName: 'span',
338
- 'data-title': dataTitle
339
- },
340
- value
341
- ),
342
- isEditable ? React.createElement(
343
- Box,
344
- {
345
- className: style.arrow,
346
- dataId: 'statusdownarrow',
347
- tagName: 'span'
348
- },
349
- React.createElement(Icon, {
350
- size: '6',
351
- name: 'ZD-blockDownArrow',
352
- iconClass: 'toggleDropIcon'
353
- })
354
- ) : null
355
- )
356
- ),
357
- isPopupOpen ? React.createElement(
358
- DropBox,
359
- {
360
- boxPosition: position,
361
- isActive: isPopupReady,
362
- onClick: removeClose,
363
- size: boxSize,
364
- right: right,
365
- left: left,
366
- top: top,
367
- bottom: bottom,
368
- isArrow: isArrow,
369
- isAnimate: true,
370
- getRef: getContainerRef,
371
- className: style.dropBoxContainer,
372
- needResponsive: needResponsive
373
- },
374
- React.createElement(
375
- React.Fragment,
376
- null,
377
- title && React.createElement(
378
- 'div',
379
- { className: style.title },
380
- React.createElement(DropDownHeading, { text: title })
381
- ),
382
- isSearch ? React.createElement(
383
- 'div',
384
- { className: style.search },
385
- React.createElement(
386
- TextBoxIcon,
387
- {
388
- placeHolder: placeHolderText,
389
- onChange: this.handleChange,
390
- value: searchString,
391
- onClear: this.onSearchClear,
392
- size: searchBoxSize,
393
- inputRef: this.searchInputRef,
394
- onKeyDown: this.handleKeyDown
395
- },
396
- React.createElement(Icon, { name: 'ZD-search', size: '13' })
397
- )
398
- ) : null,
399
- React.createElement(
400
- Box,
401
- {
402
- scroll: 'vertical',
403
- dataId: dataId + '_list',
404
- className: style.maxHgt,
405
- eleRef: this.scrollContentRef,
406
- onScroll: this.handleScroll
407
- },
408
- (options.length != 0 || seperatedOptions && seperatedOptions.length != 0) && isDataLoaded ? React.createElement(
409
- React.Fragment,
410
- null,
411
- options.length != 0 && options[0].iconName ? React.createElement(
412
- React.Fragment,
413
- null,
414
- options.map(function (item, i) {
415
- var iconName = item.iconName,
416
- iconSize = item.iconSize;
417
-
418
- return React.createElement(ListItemWithIcon, {
419
- key: i,
420
- dataId: 'dataid_' + i,
421
- value: item[keyName],
422
- id: item[idName],
423
- active: value === item[keyName],
424
- onClick: _this3.onSelect.bind(_this3, item),
425
- index: i,
426
- highlight: selectedIndex === i,
427
- iconName: iconName,
428
- iconSize: iconSize,
429
- needTick: needTick,
430
- needBorder: false,
431
- onMouseEnter: _this3.handleMouseEnter,
432
- getRef: _this3.itemRef
433
- });
434
- })
435
- ) : React.createElement(
436
- React.Fragment,
437
- null,
438
- options.map(function (item, i) {
439
- return React.createElement(ListItem, {
440
- key: i,
441
- dataId: 'dataid_' + i,
442
- value: item[keyName],
443
- id: item[idName],
444
- active: value === item[keyName],
445
- onClick: _this3.onSelect.bind(_this3, item),
446
- index: i,
447
- highlight: selectedIndex === i,
448
- needTick: needTick,
449
- needBorder: false,
450
- onMouseEnter: _this3.handleMouseEnter,
451
- getRef: _this3.itemRef
452
- });
453
- })
454
- ),
455
- seperatedOptions && seperatedOptions.length != 0 && React.createElement(
456
- React.Fragment,
457
- null,
458
- options.length != 0 && React.createElement('div', { className: style.seperatedLine }),
459
- seperatedOptions[0].iconName ? React.createElement(
460
- React.Fragment,
461
- null,
462
- seperatedOptions.map(function (item, i) {
463
- var iconName = item.iconName,
464
- iconSize = item.iconSize;
465
-
466
- return React.createElement(ListItemWithIcon, {
467
- key: i,
468
- dataId: 'dataid_' + (i + options.length),
469
- value: item[keyName],
470
- id: item[idName],
471
- active: value === item[keyName],
472
- onClick: _this3.onSelect.bind(_this3, item),
473
- index: i + options.length,
474
- highlight: selectedIndex === i + options.length,
475
- iconName: iconName,
476
- iconSize: iconSize,
477
- needTick: needTick,
478
- isTick: value === item[keyName],
479
- onMouseEnter: _this3.handleMouseEnter,
480
- getRef: _this3.itemRef
481
- });
482
- })
483
- ) : React.createElement(
484
- React.Fragment,
485
- null,
486
- seperatedOptions.map(function (item, i) {
487
- return React.createElement(ListItem, {
488
- key: i,
489
- dataId: 'dataid_' + (i + options.length),
490
- value: item[keyName],
491
- id: item[idName],
492
- active: value === item[keyName],
493
- onClick: _this3.onSelect.bind(_this3, item),
494
- index: i + options.length,
495
- highlight: selectedIndex == i + options.length,
496
- needTick: needTick,
497
- isTick: value === item[keyName],
498
- onMouseEnter: _this3.handleMouseEnter,
499
- getRef: _this3.itemRef
500
- });
501
- })
502
- )
503
- )
504
- ) : isDataLoaded ? React.createElement(
505
- CommonEmptyState,
506
- {
507
- className: style.svgWrapper,
508
- title: searchErrorText || 'oops !',
509
- description: searchEmptyHint
510
- },
511
- React.createElement(EmptySearch, { size: 'small' })
512
- ) : React.createElement(
513
- 'div',
514
- { className: style.loader },
515
- React.createElement(Loader, null)
516
- )
517
- )
518
- )
519
- ) : null
520
- );
521
- }
522
- }]);
523
-
524
- return ToggleDropDown;
525
- }(React.Component);
526
- if (false) {
527
- ToggleDropDown.docs = {
528
- componentGroup: 'Molecule'
529
- };
618
+ needResponsive: needResponsive,
619
+ isPadding: isPadding,
620
+ tabindex: "0",
621
+ a11y: {
622
+ role: !isSearch ? 'menu' : undefined,
623
+ ariaLabelledby: !isSearch ? ariaTitleId : undefined
624
+ },
625
+ palette: palette,
626
+ isResponsivePadding: true
627
+ }, DropBoxProps), /*#__PURE__*/React.createElement(Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
628
+ className: style.search
629
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
630
+ placeHolder: placeHolderText,
631
+ onChange: this.handleChange,
632
+ value: searchValue,
633
+ onClear: this.onSearchClear,
634
+ size: searchBoxSize,
635
+ inputRef: this.searchInputRef,
636
+ onKeyDown: this.handleKeyDown,
637
+ a11y: {
638
+ role: 'combobox',
639
+ ariaOwns: ariaTitleId,
640
+ ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
641
+ ariaAutocomplete: 'list',
642
+ ariaHaspopup: true,
643
+ ariaExpanded: true
644
+ }
645
+ }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
646
+ className: style.title
647
+ }, /*#__PURE__*/React.createElement(DropDownHeading, {
648
+ text: title,
649
+ htmlId: ariaTitleId,
650
+ palette: palette,
651
+ a11y: {
652
+ role: 'heading'
653
+ },
654
+ customClass: style.dropdown
655
+ })), /*#__PURE__*/React.createElement(Box, {
656
+ id: ariaTitleId,
657
+ flexible: true,
658
+ shrink: true,
659
+ scroll: "vertical",
660
+ preventParentScroll: "vertical",
661
+ dataId: `${dataId}_list`,
662
+ className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
663
+ eleRef: this.scrollContentRef,
664
+ onScroll: this.handleScroll,
665
+ role: isSearch ? 'listbox' : undefined,
666
+ "aria-labelledby": isSearch ? ariaTitleId : undefined
667
+ }, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(Fragment, null, options.map(group => {
668
+ const groupName = group[groupNameKey];
669
+ const groupOptions = group[groupOptionsKey];
670
+ const {
671
+ needDivider
672
+ } = group;
673
+ return /*#__PURE__*/React.createElement(Fragment, {
674
+ key: `index${groupName}`
675
+ }, needDivider && /*#__PURE__*/React.createElement("div", {
676
+ className: style.seperatedLine
677
+ }), groupName && /*#__PURE__*/React.createElement("div", {
678
+ className: style.groupName
679
+ }, /*#__PURE__*/React.createElement(DropDownHeading, {
680
+ text: groupName,
681
+ palette: palette,
682
+ a11y: {
683
+ role: 'heading'
684
+ }
685
+ })), groupOptions && groupOptions.map(item => {
686
+ const {
687
+ iconName,
688
+ iconSize,
689
+ iconClass,
690
+ title,
691
+ disableTitle = '',
692
+ isDisabled = false
693
+ } = item;
694
+ listIndex += 1;
695
+ return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
696
+ key: listIndex,
697
+ dataId: item[keyName],
698
+ value: item[keyName],
699
+ id: item[idName],
700
+ active: selectedId === item[idName],
701
+ onClick: this.onSelect.bind(this, item),
702
+ index: listIndex,
703
+ highlight: selectedIndex === listIndex,
704
+ disableTitle: disableTitle,
705
+ isDisabled: isDisabled,
706
+ iconName: iconName,
707
+ iconClass: iconClass,
708
+ iconSize: iconSize,
709
+ needTick: needTick,
710
+ needBorder: false,
711
+ onMouseEnter: this.handleMouseEnter,
712
+ getRef: this.itemRef,
713
+ title: title ? title : item[keyName],
714
+ palette: palette,
715
+ needMultiLineText: needMultiLineText,
716
+ a11y: {
717
+ role: isSearch ? 'option' : 'menuitem',
718
+ ariaSelected: selectedId === item[idName],
719
+ ariaLabel: item[keyName]
720
+ }
721
+ }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
722
+ key: listIndex,
723
+ dataId: item[keyName],
724
+ value: item[keyName],
725
+ id: item[idName],
726
+ active: selectedId === item[idName],
727
+ onClick: this.onSelect.bind(this, item),
728
+ isDisabled: isDisabled,
729
+ disableTitle: disableTitle,
730
+ index: listIndex,
731
+ highlight: selectedIndex === listIndex,
732
+ needTick: needTick,
733
+ needBorder: false,
734
+ onMouseEnter: this.handleMouseEnter,
735
+ getRef: this.itemRef,
736
+ title: title ? title : item[keyName],
737
+ palette: palette,
738
+ needMultiLineText: needMultiLineText,
739
+ a11y: {
740
+ role: isSearch ? 'option' : 'menuitem',
741
+ ariaSelected: selectedId === item[idName],
742
+ ariaLabel: item[keyName]
743
+ }
744
+ }, ListItemProps));
745
+ }));
746
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
747
+ isCover: false,
748
+ align: "both"
749
+ }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(Fragment, null, options.map((item, i) => {
750
+ const {
751
+ iconName,
752
+ iconSize,
753
+ iconClass,
754
+ title,
755
+ needDivider,
756
+ isDisabled = false,
757
+ disableTitle = ''
758
+ } = item;
759
+ if (!needDivider) {
760
+ listIndex += 1;
761
+ }
762
+ return /*#__PURE__*/React.createElement(Fragment, {
763
+ key: i
764
+ }, needDivider ? /*#__PURE__*/React.createElement("div", {
765
+ className: style.seperatedLine
766
+ }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
767
+ dataId: item[keyName],
768
+ value: item[keyName],
769
+ id: item[idName],
770
+ active: selectedId === item[idName],
771
+ onClick: this.onSelect.bind(this, item),
772
+ index: listIndex,
773
+ disableTitle: disableTitle,
774
+ isDisabled: isDisabled,
775
+ highlight: selectedIndex === listIndex,
776
+ iconName: iconName,
777
+ iconClass: iconClass,
778
+ iconSize: iconSize,
779
+ needTick: needTick,
780
+ needBorder: false,
781
+ onMouseEnter: this.handleMouseEnter,
782
+ getRef: this.itemRef,
783
+ title: title ? title : item[keyName],
784
+ key: listIndex,
785
+ palette: palette,
786
+ needMultiLineText: needMultiLineText,
787
+ a11y: {
788
+ role: isSearch ? 'option' : 'menuitem',
789
+ ariaSelected: selectedId === item[idName],
790
+ ariaLabel: item[keyName]
791
+ }
792
+ }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
793
+ key: listIndex,
794
+ dataId: item[keyName],
795
+ value: item[keyName],
796
+ id: item[idName],
797
+ disableTitle: disableTitle,
798
+ isDisabled: isDisabled,
799
+ active: selectedId === item[idName],
800
+ onClick: this.onSelect.bind(this, item),
801
+ index: listIndex,
802
+ highlight: selectedIndex === listIndex,
803
+ needTick: needTick,
804
+ needBorder: false,
805
+ onMouseEnter: this.handleMouseEnter,
806
+ getRef: this.itemRef,
807
+ title: title ? title : item[keyName],
808
+ palette: palette,
809
+ needMultiLineText: needMultiLineText,
810
+ a11y: {
811
+ role: isSearch ? 'option' : 'menuitem',
812
+ ariaSelected: selectedId === item[idName],
813
+ ariaLabel: item[keyName]
814
+ }
815
+ }, ListItemProps)));
816
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
817
+ isCover: false,
818
+ align: "both"
819
+ }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(CommonEmptyState, {
820
+ className: style.svgWrapper,
821
+ description: searchEmptyHint,
822
+ title: searchErrorText || 'No results',
823
+ size: "small",
824
+ getEmptyState: this.emptySearchSVG
825
+ }) : /*#__PURE__*/React.createElement("div", {
826
+ className: style.loader
827
+ }, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(Box, null, getFooter()) : null));
828
+ }) : null);
829
+ }
530
830
  }
831
+ ToggleDropDown.defaultProps = defaultProps;
832
+ ToggleDropDown.propTypes = propTypes;
531
833
 
532
- ToggleDropDown.defaultProps = {
533
- keyName: 'value',
534
- idName: 'id',
535
- isArrow: true,
536
- searchBoxSize: 'small',
537
- isDisabled: false,
538
- showIconOnHover: false,
539
- isReadOnly: false,
540
- isEditable: true,
541
- isDataLoaded: true,
542
- needTick: true,
543
- targetAlign: 'vertical',
544
- needResponsive: true
545
- };
546
-
547
- ToggleDropDown.propTypes = (_ToggleDropDown$propT = {
548
- activeStyle: PropTypes.string,
549
- bottom: PropTypes.number,
550
- boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
551
- boxSize: PropTypes.oneOf(['small', 'medium', 'mlarge', 'large']),
552
- className: PropTypes.string,
553
- dataId: PropTypes.string,
554
- dataTitle: PropTypes.string,
555
- getContainerRef: PropTypes.func,
556
- getTargetRef: PropTypes.func,
557
- hoverStyle: PropTypes.string,
558
- iconName: PropTypes.string,
559
- iconSize: PropTypes.string,
560
- idName: PropTypes.string,
561
- isArrow: PropTypes.bool,
562
- isDataLoaded: PropTypes.bool,
563
- isDisabled: PropTypes.bool,
564
- isEditable: PropTypes.bool,
565
- isPopupOpen: PropTypes.bool,
566
- isPopupReady: PropTypes.bool,
567
- isReadOnly: PropTypes.bool,
568
- isSearch: PropTypes.bool,
569
- keyName: PropTypes.string,
570
- left: PropTypes.number,
571
- needTick: PropTypes.bool,
572
- onClick: PropTypes.func,
573
- options: PropTypes.array.isRequired,
574
- placeHolderText: PropTypes.string,
575
- position: PropTypes.string,
576
- removeClose: PropTypes.func,
577
- right: PropTypes.number,
578
- searchBoxSize: PropTypes.oneOf(['small', 'medium', 'xmedium']),
579
- searchEmptyHint: PropTypes.string,
580
- searchErrorText: PropTypes.string,
581
- showIconOnHover: PropTypes.bool,
582
- showOnHover: PropTypes.bool,
583
- title: PropTypes.string,
584
- togglePopup: PropTypes.func,
585
- value: PropTypes.node
586
- }, _defineProperty(_ToggleDropDown$propT, 'isDataLoaded', PropTypes.bool), _defineProperty(_ToggleDropDown$propT, 'children', PropTypes.node), _defineProperty(_ToggleDropDown$propT, 'seperatedOptions', PropTypes.array), _defineProperty(_ToggleDropDown$propT, 'targetAlign', PropTypes.oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_ToggleDropDown$propT, 'isNextOptions', PropTypes.bool), _defineProperty(_ToggleDropDown$propT, 'getNextOptions', PropTypes.func), _defineProperty(_ToggleDropDown$propT, 'needResponsive', PropTypes.bool), _ToggleDropDown$propT);
587
-
834
+ // if (__DOCS__) {
835
+ // ToggleDropDown.docs = {
836
+ // componentGroup: 'Molecule'
837
+ // };
838
+ // }
588
839
  export default Popup(ToggleDropDown);