@zohodesk/dot 1.0.0-beta.23 → 1.0.0-beta.232

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