@zohodesk/dot 1.0.0-beta.24 → 1.0.0-beta.240

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