@zohodesk/dot 1.0.0-beta.2 → 1.0.0-beta.202

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