@zohodesk/dot 1.0.0-beta.245 → 1.0.0-beta.247

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 (905) hide show
  1. package/README.md +9 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
  3. package/assets/Appearance/default/mode/dotDefaultMode.module.css +1 -1
  4. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
  5. package/es/ActionButton/ActionButton.js +6 -4
  6. package/es/ActionButton/ActionButton.module.css +28 -10
  7. package/es/ActionButton/props/defaultProps.js +1 -1
  8. package/es/ActionButton/props/propTypes.js +1 -1
  9. package/es/AlphabeticList/AlphabeticList.js +4 -2
  10. package/es/AlphabeticList/AlphabeticList.module.css +7 -4
  11. package/es/AlphabeticList/props/defaultProps.js +2 -1
  12. package/es/AlphabeticList/props/propTypes.js +2 -1
  13. package/es/Attachment/Attachment.js +10 -7
  14. package/es/Attachment/Attachment.module.css +23 -9
  15. package/es/Attachment/props/defaultProps.js +2 -1
  16. package/es/Attachment/props/propTypes.js +1 -0
  17. package/es/AttachmentViewer/AttachmentViewer.js +29 -28
  18. package/es/AttachmentViewer/AttachmentViewer.module.css +89 -27
  19. package/es/ChannelIcon/ChannelIcon.js +9 -7
  20. package/es/ChannelIcon/ChannelIcon.module.css +30 -21
  21. package/es/ChannelIcon/props/defaultProps.js +2 -1
  22. package/es/ChannelIcon/props/propTypes.js +2 -1
  23. package/es/Drawer/Drawer.js +7 -6
  24. package/es/Drawer/Drawer.module.css +59 -11
  25. package/es/ExternalLink/ExternalLink.js +6 -5
  26. package/es/FlipCard/FlipCard.js +5 -5
  27. package/es/FlipCard/FlipCard.module.css +14 -5
  28. package/es/FormAction/FormAction.js +16 -11
  29. package/es/FormAction/FormAction.module.css +34 -9
  30. package/es/FormAction/props/defaultProps.js +2 -1
  31. package/es/FormAction/props/propTypes.js +2 -1
  32. package/es/FreezeLayer/FreezeLayer.js +7 -6
  33. package/es/FreezeLayer/FreezeLayer.module.css +6 -2
  34. package/es/IconButton/IconButton.js +8 -5
  35. package/es/IconButton/IconButton.module.css +1 -1
  36. package/es/IconButton/props/defaultProps.js +2 -1
  37. package/es/IconButton/props/propTypes.js +1 -0
  38. package/es/Image/Image.js +5 -5
  39. package/es/ImportantNotes/ImportantNotes.js +7 -6
  40. package/es/ImportantNotes/ImportantNotes.module.css +7 -2
  41. package/es/Link/Link.js +6 -5
  42. package/es/Loader/Loader.js +6 -5
  43. package/es/Loader/Loader.module.css +25 -4
  44. package/es/Message/Message.js +11 -7
  45. package/es/Message/Message.module.css +42 -9
  46. package/es/Message/props/defaultProps.js +2 -1
  47. package/es/Message/props/propTypes.js +1 -0
  48. package/es/MessageBanner/MessageBanner.js +10 -7
  49. package/es/MessageBanner/MessageBanner.module.css +12 -4
  50. package/es/MessageBanner/props/defaultProps.js +2 -1
  51. package/es/MessageBanner/props/propTypes.js +2 -1
  52. package/es/NewStar/NewStar.js +6 -5
  53. package/es/NewStar/NewStar.module.css +102 -17
  54. package/es/PlusIcon/PlusIcon.js +7 -6
  55. package/es/Separator/Separator.module.css +1 -1
  56. package/es/ToastMessage/ToastMessage.js +9 -6
  57. package/es/ToastMessage/ToastMessage.module.css +96 -25
  58. package/es/ToastMessage/props/defaultProps.js +2 -1
  59. package/es/ToastMessage/props/propTypes.js +1 -0
  60. package/es/Upload/Upload.js +9 -6
  61. package/es/Upload/Upload.module.css +27 -8
  62. package/es/Upload/props/defaultProps.js +2 -1
  63. package/es/Upload/props/propTypes.js +1 -0
  64. package/es/alert/AlertHeader/AlertHeader.js +7 -6
  65. package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
  66. package/es/alert/AlertLookup/AlertLookup.js +7 -6
  67. package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
  68. package/es/avatar/AvatarClose/AvatarClose.js +9 -7
  69. package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
  70. package/es/avatar/AvatarClose/props/defaultProps.js +2 -1
  71. package/es/avatar/AvatarClose/props/propTypes.js +2 -1
  72. package/es/avatar/AvatarCollision/AvatarCollision.js +9 -7
  73. package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
  74. package/es/avatar/AvatarCollision/props/defaultProps.js +2 -1
  75. package/es/avatar/AvatarCollision/props/propTypes.js +1 -0
  76. package/es/avatar/AvatarIcon/AvatarIcon.js +7 -7
  77. package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
  78. package/es/avatar/AvatarIcon/props/defaultProps.js +2 -1
  79. package/es/avatar/AvatarIcon/props/propTypes.js +1 -0
  80. package/es/avatar/AvatarStatus/AvatarStatus.js +10 -7
  81. package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
  82. package/es/avatar/AvatarStatus/props/defaultProps.js +2 -1
  83. package/es/avatar/AvatarStatus/props/propTypes.js +1 -0
  84. package/es/avatar/AvatarThread/AvatarThread.js +10 -7
  85. package/es/avatar/AvatarThread/AvatarThread.module.css +53 -5
  86. package/es/avatar/AvatarThread/props/defaultProps.js +2 -1
  87. package/es/avatar/AvatarThread/props/propTypes.js +1 -0
  88. package/es/avatar/AvatarUser/AvatarUser.js +9 -6
  89. package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
  90. package/es/avatar/AvatarUser/props/defaultProps.js +2 -1
  91. package/es/avatar/AvatarUser/props/propTypes.js +1 -0
  92. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +10 -7
  93. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +11 -4
  94. package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
  95. package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -0
  96. package/es/common/dot_animation.module.css +16 -3
  97. package/es/deprecated/SelectDropdown/SelectDropdown.js +7 -6
  98. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -3
  99. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +9 -6
  100. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +19 -6
  101. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
  102. package/es/dropdown/ToggleDropDown/props/propTypes.js +1 -0
  103. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +6 -5
  104. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
  105. package/es/emptystate/EditionPage/EditionPage.css +9 -3
  106. package/es/emptystate/EditionPage/EditionPage.js +6 -5
  107. package/es/errorstate/EmptyStates.module.css +13 -10
  108. package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
  109. package/es/errorstate/LinkText/LinkText.js +5 -5
  110. package/es/errorstate/LinkText/LinkText.module.css +1 -1
  111. package/es/errorstate/NoRequestFound/NoRequestFound.js +5 -5
  112. package/es/errorstate/PermissionPlay/PermissionPlay.js +5 -5
  113. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
  114. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +5 -5
  115. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +5 -5
  116. package/es/errorstate/WillBack/WillBack.js +5 -5
  117. package/es/errorstate/WillBack/WillBack.module.css +1 -3
  118. package/es/form/fields/CheckBoxField/CheckBoxField.js +10 -7
  119. package/es/form/fields/CheckBoxField/props/defaultProps.js +1 -0
  120. package/es/form/fields/CurrencyField/CurrencyField.js +10 -7
  121. package/es/form/fields/CurrencyField/props/defaultProps.js +1 -0
  122. package/es/form/fields/DateField/DateField.js +10 -7
  123. package/es/form/fields/DateField/props/defaultProps.js +1 -0
  124. package/es/form/fields/FieldContainer/FieldContainer.js +11 -8
  125. package/es/form/fields/FieldContainer/props/defaultProps.js +2 -1
  126. package/es/form/fields/Fields.module.css +49 -14
  127. package/es/form/fields/MultiSelectField/MultiSelectField.js +10 -7
  128. package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -0
  129. package/es/form/fields/PhoneField/PhoneField.js +10 -7
  130. package/es/form/fields/PhoneField/props/defaultProps.js +2 -1
  131. package/es/form/fields/RadioField/RadioField.js +9 -7
  132. package/es/form/fields/RadioField/props/defaultProps.js +2 -1
  133. package/es/form/fields/SelectField/SelectField.js +10 -7
  134. package/es/form/fields/SelectField/props/defaultProps.js +1 -0
  135. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -7
  136. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
  137. package/es/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
  138. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +10 -7
  139. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
  140. package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -0
  141. package/es/form/fields/TextBoxField/TextBoxField.js +10 -7
  142. package/es/form/fields/TextBoxField/props/defaultProps.js +1 -0
  143. package/es/form/fields/TextEditor/TextEditor.js +11 -9
  144. package/es/form/fields/TextEditor/TextEditor.module.css +149 -72
  145. package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
  146. package/es/form/fields/TextEditorField/TextEditorField.js +9 -6
  147. package/es/form/fields/TextEditorField/props/defaultProps.js +1 -0
  148. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -2
  149. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +13 -2
  150. package/es/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
  151. package/es/form/fields/TextareaField/TextareaField.js +10 -7
  152. package/es/form/fields/TextareaField/props/defaultProps.js +1 -0
  153. package/es/form/fields/ValidationMessage/ValidationMessage.js +11 -8
  154. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
  155. package/es/form/fields/ValidationMessage/props/defaultProps.js +2 -1
  156. package/es/form/fields/props/FieldCommonPropTypes.js +2 -1
  157. package/es/form/layout/Field/Field.js +6 -5
  158. package/es/form/layout/Section/Section.js +5 -5
  159. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +7 -5
  160. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
  161. package/es/layout/SubtabLayout/SubtabLayout.js +6 -5
  162. package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
  163. package/es/list/AvatarFlip/AvatarFlip.js +7 -6
  164. package/es/list/BluePrintStatus/BluePrintStatus.js +6 -5
  165. package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
  166. package/es/list/Comment/Comment.js +7 -6
  167. package/es/list/Comment/Comment.module.css +5 -0
  168. package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -6
  169. package/es/list/DotNew/DotNew.js +7 -6
  170. package/es/list/DotNew/DotNew.module.css +3 -3
  171. package/es/list/GridStencils/GridStencils.js +7 -6
  172. package/es/list/GridStencils/GridStencils.module.css +66 -16
  173. package/es/list/Icons/FloatingIcons.js +7 -6
  174. package/es/list/Icons/Icons.module.css +1 -1
  175. package/es/list/ListLayout/ListLayout.js +7 -6
  176. package/es/list/ListLayout/ListLayout.module.css +22 -14
  177. package/es/list/ListStencils/ListStencils.js +7 -6
  178. package/es/list/ListStencils/ListStencils.module.css +11 -6
  179. package/es/list/SecondaryText/AccountName.js +7 -6
  180. package/es/list/SecondaryText/ContactName.js +7 -6
  181. package/es/list/SecondaryText/DepartmentText.js +7 -6
  182. package/es/list/SecondaryText/Email.js +7 -6
  183. package/es/list/SecondaryText/HappinessRating.js +7 -6
  184. package/es/list/SecondaryText/PhoneNumber.js +7 -6
  185. package/es/list/SecondaryText/PriorityText.js +7 -6
  186. package/es/list/SecondaryText/SecondaryText.js +7 -6
  187. package/es/list/SecondaryText/SecondaryText.module.css +13 -3
  188. package/es/list/SecondaryText/StatusText.js +7 -6
  189. package/es/list/SecondaryText/TicketId.js +7 -6
  190. package/es/list/SecondaryText/Website.js +7 -6
  191. package/es/list/SecondryPanel/SecondryPanel.js +7 -6
  192. package/es/list/SentimentStatus/SentimentStatus.js +6 -5
  193. package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
  194. package/es/list/Subject/Subject.js +7 -6
  195. package/es/list/TagNew/TagNew.js +7 -6
  196. package/es/list/TagNew/TagNew.module.css +14 -7
  197. package/es/list/Thread/Thread.js +7 -6
  198. package/es/list/Thread/Thread.module.css +13 -1
  199. package/es/list/UserTime/UserTime.js +7 -6
  200. package/es/list/UserTime/UserTime.module.css +6 -0
  201. package/es/list/listCommon.module.css +9 -1
  202. package/es/list/status/StatusDropdown/StatusDropdown.js +6 -5
  203. package/es/list/status/StatusDropdown/StatusDropdown.module.css +19 -6
  204. package/es/list/status/StatusListItem/StatusListItem.js +7 -6
  205. package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
  206. package/es/lookup/EmptyPage/EmptyPage.js +6 -5
  207. package/es/lookup/Lookup/Lookup.js +6 -5
  208. package/es/lookup/Lookup/Lookup.module.css +2 -2
  209. package/es/lookup/Section/LookupSection.module.css +2 -2
  210. package/es/lookup/header/Close/Close.js +6 -5
  211. package/es/lookup/header/Close/LookupClose.module.css +4 -4
  212. package/es/lookup/header/ModuleHeader/ModuleHeader.js +6 -5
  213. package/es/lookup/header/Search/LookupSearch.module.css +21 -12
  214. package/es/lookup/header/Search/Search.js +6 -5
  215. package/es/lookup/header/TicketHeader/TicketHeader.js +6 -5
  216. package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
  217. package/es/lookup/header/Title/Title.js +6 -5
  218. package/es/lookup/header/ViewDropDown/ViewDropDown.js +8 -7
  219. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -3
  220. package/es/lookup/header/lookupHeaderCommon.module.css +15 -5
  221. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
  222. package/es/setup/header/Button/Button.js +7 -6
  223. package/es/setup/header/Button/HeaderButton.module.css +3 -1
  224. package/es/setup/header/Link/HeaderLink.module.css +7 -1
  225. package/es/setup/header/Link/Link.js +7 -6
  226. package/es/setup/header/Search/Search.js +7 -6
  227. package/es/setup/header/Search/Search.module.css +19 -8
  228. package/es/setup/header/Views/Views.js +7 -6
  229. package/es/setup/header/Views/Views.module.css +15 -5
  230. package/es/setup/helptips/Description/Description.js +7 -6
  231. package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
  232. package/es/setup/helptips/Link/Link.js +7 -6
  233. package/es/setup/helptips/ListGroup/ListGroup.js +7 -6
  234. package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
  235. package/es/setup/helptips/Title/Title.js +7 -6
  236. package/es/setup/table/Table/Table.js +7 -6
  237. package/es/setup/table/TableBody/TableBody.js +7 -6
  238. package/es/setup/table/TableData/SetupTableData.module.css +11 -3
  239. package/es/setup/table/TableData/TableData.js +7 -6
  240. package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
  241. package/es/setup/table/TableHead/TableHead.js +7 -6
  242. package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
  243. package/es/setup/table/TableRow/TableRow.js +7 -6
  244. package/es/setup/table/Text/Text.js +7 -6
  245. package/es/svg/PlusIcon.js +6 -5
  246. package/es/svg/SnippetIcon.js +6 -5
  247. package/es/svg/TemplateIcon.js +6 -5
  248. package/es/version2/AlertClose/AlertClose.js +7 -6
  249. package/es/version2/AlertClose/AlertClose.module.css +1 -1
  250. package/es/version2/GlobalNotification/GlobalNotification.js +16 -10
  251. package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
  252. package/es/version2/GlobalNotification/props/defaultProps.js +2 -1
  253. package/es/version2/GlobalNotification/props/propTypes.js +1 -0
  254. package/es/version2/alertIcons/AlertIcons.js +11 -8
  255. package/es/version2/alertIcons/props/defaultProps.js +2 -1
  256. package/es/version2/alertIcons/props/propTypes.js +2 -1
  257. package/es/version2/errorstate/Inconvenience/Inconvenience.js +6 -5
  258. package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +6 -5
  259. package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +6 -5
  260. package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +6 -5
  261. package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +6 -5
  262. package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +6 -5
  263. package/es/version2/lookup/AlertHeader/AlertHeader.js +7 -6
  264. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
  265. package/es/version2/lookup/AlertLookup/AlertLookup.js +7 -6
  266. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
  267. package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
  268. package/es/version2/notification/DesktopNotification/DesktopNotification.js +10 -7
  269. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +26 -10
  270. package/es/version2/notification/DesktopNotification/props/defaultProps.js +2 -1
  271. package/es/version2/notification/DesktopNotification/props/propTypes.js +1 -0
  272. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +7 -6
  273. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
  274. package/install.md +12 -0
  275. package/lib/ActionButton/ActionButton.js +172 -0
  276. package/lib/ActionButton/ActionButton.module.css +139 -0
  277. package/lib/ActionButton/props/defaultProps.js +24 -0
  278. package/lib/ActionButton/props/propTypes.js +39 -0
  279. package/lib/AlphabeticList/AlphabeticList.js +144 -0
  280. package/lib/AlphabeticList/AlphabeticList.module.css +57 -0
  281. package/lib/AlphabeticList/props/defaultProps.js +20 -0
  282. package/lib/AlphabeticList/props/propTypes.js +41 -0
  283. package/lib/Attachment/Attachment.js +117 -0
  284. package/lib/Attachment/Attachment.module.css +158 -0
  285. package/lib/Attachment/props/defaultProps.js +14 -0
  286. package/lib/Attachment/props/propTypes.js +24 -0
  287. package/lib/AttachmentViewer/Attachment.js +24 -0
  288. package/lib/AttachmentViewer/AttachmentImage.js +97 -0
  289. package/lib/AttachmentViewer/AttachmentViewer.js +559 -0
  290. package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -0
  291. package/lib/AttachmentViewer/props/defaultProps.js +18 -0
  292. package/lib/AttachmentViewer/props/propTypes.js +40 -0
  293. package/lib/AttachmentViewer/utils.js +113 -0
  294. package/lib/ChannelIcon/ChannelIcon.js +126 -0
  295. package/lib/ChannelIcon/ChannelIcon.module.css +217 -0
  296. package/lib/ChannelIcon/props/defaultProps.js +14 -0
  297. package/lib/ChannelIcon/props/propTypes.js +33 -0
  298. package/lib/Drawer/Drawer.js +327 -0
  299. package/lib/Drawer/Drawer.module.css +151 -0
  300. package/lib/Drawer/props/defaultProps.js +30 -0
  301. package/lib/Drawer/props/propTypes.js +61 -0
  302. package/lib/ExternalLink/ExternalLink.js +77 -0
  303. package/lib/ExternalLink/ExternalLink.module.css +4 -0
  304. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +30 -0
  305. package/lib/ExternalLink/props/defaultProps.js +12 -0
  306. package/lib/ExternalLink/props/propTypes.js +20 -0
  307. package/lib/FlipCard/FlipCard.js +169 -0
  308. package/lib/FlipCard/FlipCard.module.css +44 -0
  309. package/lib/FlipCard/props/defaultProps.js +12 -0
  310. package/lib/FlipCard/props/propTypes.js +45 -0
  311. package/lib/FormAction/FormAction.js +114 -0
  312. package/lib/FormAction/FormAction.module.css +82 -0
  313. package/lib/FormAction/props/defaultProps.js +12 -0
  314. package/lib/FormAction/props/propTypes.js +16 -0
  315. package/lib/FreezeLayer/FreezeLayer.js +163 -0
  316. package/lib/FreezeLayer/FreezeLayer.module.css +42 -0
  317. package/lib/FreezeLayer/props/defaultProps.js +15 -0
  318. package/lib/FreezeLayer/props/propTypes.js +25 -0
  319. package/lib/IconButton/IconButton.js +173 -0
  320. package/lib/IconButton/IconButton.module.css +22 -0
  321. package/lib/IconButton/props/defaultProps.js +24 -0
  322. package/lib/IconButton/props/propTypes.js +41 -0
  323. package/lib/Image/Image.js +68 -0
  324. package/lib/Image/Image.module.css +11 -0
  325. package/lib/Image/props/defaultProps.js +11 -0
  326. package/lib/Image/props/propTypes.js +21 -0
  327. package/lib/ImportantNotes/ImportantNotes.js +75 -0
  328. package/lib/ImportantNotes/ImportantNotes.module.css +20 -0
  329. package/lib/ImportantNotes/props/defaultProps.js +13 -0
  330. package/lib/ImportantNotes/props/propTypes.js +18 -0
  331. package/lib/Link/Link.js +126 -0
  332. package/lib/Link/Link.module.css +4 -0
  333. package/lib/Link/LinkContext.js +19 -0
  334. package/lib/Link/props/defaultProps.js +12 -0
  335. package/lib/Link/props/propTypes.js +22 -0
  336. package/lib/Loader/Loader.js +53 -0
  337. package/lib/Loader/Loader.module.css +46 -0
  338. package/lib/Message/Message.js +136 -0
  339. package/lib/Message/Message.module.css +103 -0
  340. package/lib/Message/props/defaultProps.js +11 -0
  341. package/lib/Message/props/propTypes.js +21 -0
  342. package/lib/MessageBanner/MessageBanner.js +92 -0
  343. package/lib/MessageBanner/MessageBanner.module.css +46 -0
  344. package/lib/MessageBanner/props/defaultProps.js +14 -0
  345. package/lib/MessageBanner/props/propTypes.js +21 -0
  346. package/lib/NewStar/NewStar.js +100 -0
  347. package/lib/NewStar/NewStar.module.css +175 -0
  348. package/lib/NewStar/props/defaultProps.js +11 -0
  349. package/lib/NewStar/props/propTypes.js +14 -0
  350. package/lib/PlusIcon/PlusIcon.js +70 -0
  351. package/lib/PlusIcon/PlusIcon.module.css +16 -0
  352. package/lib/PlusIcon/props/defaultProps.js +15 -0
  353. package/lib/PlusIcon/props/propTypes.js +19 -0
  354. package/lib/Provider/Config.js +19 -0
  355. package/lib/Separator/Separator.js +84 -0
  356. package/lib/Separator/Separator.module.css +34 -0
  357. package/lib/Separator/props/defaultProps.js +19 -0
  358. package/lib/Separator/props/propTypes.js +19 -0
  359. package/lib/ToastMessage/ToastMessage.js +218 -0
  360. package/lib/ToastMessage/ToastMessage.module.css +328 -0
  361. package/lib/ToastMessage/props/defaultProps.js +25 -0
  362. package/lib/ToastMessage/props/propTypes.js +47 -0
  363. package/lib/Upload/Upload.js +104 -0
  364. package/lib/Upload/Upload.module.css +125 -0
  365. package/lib/Upload/props/defaultProps.js +14 -0
  366. package/lib/Upload/props/propTypes.js +25 -0
  367. package/lib/actions/AutoClose.js +58 -0
  368. package/lib/actions/index.js +32 -0
  369. package/lib/actions/props/defaultProps.js +10 -0
  370. package/lib/actions/props/propTypes.js +15 -0
  371. package/lib/alert/AlertHeader/AlertHeader.js +106 -0
  372. package/lib/alert/AlertHeader/AlertHeader.module.css +81 -0
  373. package/lib/alert/AlertHeader/props/defaultProps.js +15 -0
  374. package/lib/alert/AlertHeader/props/propTypes.js +23 -0
  375. package/lib/alert/AlertLookup/AlertLookup.js +136 -0
  376. package/lib/alert/AlertLookup/AlertLookup.module.css +27 -0
  377. package/lib/alert/AlertLookup/props/defaultProps.js +21 -0
  378. package/lib/alert/AlertLookup/props/propTypes.js +44 -0
  379. package/lib/avatar/AvatarClose/AvatarClose.js +78 -0
  380. package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -0
  381. package/lib/avatar/AvatarClose/props/defaultProps.js +13 -0
  382. package/lib/avatar/AvatarClose/props/propTypes.js +22 -0
  383. package/lib/avatar/AvatarCollision/AvatarCollision.js +86 -0
  384. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -0
  385. package/lib/avatar/AvatarCollision/props/defaultProps.js +15 -0
  386. package/lib/avatar/AvatarCollision/props/propTypes.js +25 -0
  387. package/lib/avatar/AvatarIcon/AvatarIcon.js +82 -0
  388. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -0
  389. package/lib/avatar/AvatarIcon/props/defaultProps.js +21 -0
  390. package/lib/avatar/AvatarIcon/props/propTypes.js +28 -0
  391. package/lib/avatar/AvatarStatus/AvatarStatus.js +96 -0
  392. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -0
  393. package/lib/avatar/AvatarStatus/props/defaultProps.js +17 -0
  394. package/lib/avatar/AvatarStatus/props/propTypes.js +32 -0
  395. package/lib/avatar/AvatarThread/AvatarThread.js +107 -0
  396. package/lib/avatar/AvatarThread/AvatarThread.module.css +167 -0
  397. package/lib/avatar/AvatarThread/props/defaultProps.js +16 -0
  398. package/lib/avatar/AvatarThread/props/propTypes.js +38 -0
  399. package/lib/avatar/AvatarUser/AvatarUser.js +139 -0
  400. package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -0
  401. package/lib/avatar/AvatarUser/props/defaultProps.js +15 -0
  402. package/lib/avatar/AvatarUser/props/propTypes.js +43 -0
  403. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +129 -0
  404. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -0
  405. package/lib/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +47 -0
  406. package/lib/avatar/AvatarWithTeam/props/defaultProps.js +15 -0
  407. package/lib/avatar/AvatarWithTeam/props/propTypes.js +32 -0
  408. package/lib/common/dot_animation.module.css +27 -0
  409. package/lib/common/dot_common.module.css +4 -0
  410. package/lib/deprecated/SelectDropdown/SelectDropdown.js +175 -0
  411. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -0
  412. package/lib/deprecated/utils/General.js +24 -0
  413. package/lib/deprecated/utils/KeyboardApi.js +258 -0
  414. package/lib/docs/formDocs.js +111 -0
  415. package/lib/docs/generalDocs.js +419 -0
  416. package/lib/docs/lookupDocs.js +118 -0
  417. package/lib/docs/setupDocs.js +83 -0
  418. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +884 -0
  419. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +101 -0
  420. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +32 -0
  421. package/lib/dropdown/ToggleDropDown/props/propTypes.js +79 -0
  422. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +98 -0
  423. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -0
  424. package/lib/emptystate/CommonEmptyState/props/defaultProps.js +17 -0
  425. package/lib/emptystate/CommonEmptyState/props/propTypes.js +29 -0
  426. package/lib/emptystate/EditionPage/EditionPage.css +43 -0
  427. package/lib/emptystate/EditionPage/EditionPage.js +84 -0
  428. package/lib/emptystate/EditionPage/props/defaultProps.js +12 -0
  429. package/lib/emptystate/EditionPage/props/propTypes.js +15 -0
  430. package/lib/errorstate/EmptyStates.module.css +88 -0
  431. package/lib/errorstate/Inconvenience/Inconvenience.js +109 -0
  432. package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -0
  433. package/lib/errorstate/Inconvenience/props/defaultProps.js +11 -0
  434. package/lib/errorstate/Inconvenience/props/propTypes.js +19 -0
  435. package/lib/errorstate/LinkText/LinkText.js +59 -0
  436. package/lib/errorstate/LinkText/LinkText.module.css +6 -0
  437. package/lib/errorstate/LinkText/props/defaultProps.js +11 -0
  438. package/lib/errorstate/LinkText/props/propTypes.js +16 -0
  439. package/lib/errorstate/NoRequestFound/NoRequestFound.js +109 -0
  440. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -0
  441. package/lib/errorstate/NoRequestFound/props/defaultProps.js +11 -0
  442. package/lib/errorstate/NoRequestFound/props/propTypes.js +19 -0
  443. package/lib/errorstate/PermissionPlay/PermissionPlay.js +108 -0
  444. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -0
  445. package/lib/errorstate/PermissionPlay/props/defaultProps.js +11 -0
  446. package/lib/errorstate/PermissionPlay/props/propTypes.js +19 -0
  447. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +109 -0
  448. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -0
  449. package/lib/errorstate/RequestUrlNotFound/props/defaultProps.js +11 -0
  450. package/lib/errorstate/RequestUrlNotFound/props/propTypes.js +19 -0
  451. package/lib/errorstate/UnableToProcess/UnableToProcess.js +109 -0
  452. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -0
  453. package/lib/errorstate/UnableToProcess/props/defaultProps.js +11 -0
  454. package/lib/errorstate/UnableToProcess/props/propTypes.js +19 -0
  455. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +109 -0
  456. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -0
  457. package/lib/errorstate/UnauthorizedLogin/props/defaultProps.js +11 -0
  458. package/lib/errorstate/UnauthorizedLogin/props/propTypes.js +19 -0
  459. package/lib/errorstate/WillBack/WillBack.js +100 -0
  460. package/lib/errorstate/WillBack/WillBack.module.css +34 -0
  461. package/lib/errorstate/WillBack/props/defaultProps.js +11 -0
  462. package/lib/errorstate/WillBack/props/propTypes.js +13 -0
  463. package/lib/form/fields/CheckBoxField/CheckBoxField.js +167 -0
  464. package/lib/form/fields/CheckBoxField/props/defaultProps.js +24 -0
  465. package/lib/form/fields/CheckBoxField/props/propTypes.js +40 -0
  466. package/lib/form/fields/CurrencyField/CurrencyField.js +204 -0
  467. package/lib/form/fields/CurrencyField/props/defaultProps.js +29 -0
  468. package/lib/form/fields/CurrencyField/props/propTypes.js +49 -0
  469. package/lib/form/fields/DateField/DateField.js +216 -0
  470. package/lib/form/fields/DateField/props/defaultProps.js +31 -0
  471. package/lib/form/fields/DateField/props/propTypes.js +52 -0
  472. package/lib/form/fields/FieldContainer/FieldContainer.js +94 -0
  473. package/lib/form/fields/FieldContainer/props/defaultProps.js +19 -0
  474. package/lib/form/fields/FieldContainer/props/propTypes.js +25 -0
  475. package/lib/form/fields/Fields.module.css +183 -0
  476. package/lib/form/fields/MultiSelectField/MultiSelectField.js +242 -0
  477. package/lib/form/fields/MultiSelectField/props/defaultProps.js +29 -0
  478. package/lib/form/fields/MultiSelectField/props/propTypes.js +63 -0
  479. package/lib/form/fields/PhoneField/PhoneField.js +206 -0
  480. package/lib/form/fields/PhoneField/props/defaultProps.js +23 -0
  481. package/lib/form/fields/PhoneField/props/propTypes.js +48 -0
  482. package/lib/form/fields/RadioField/RadioField.js +141 -0
  483. package/lib/form/fields/RadioField/props/defaultProps.js +19 -0
  484. package/lib/form/fields/RadioField/props/propTypes.js +38 -0
  485. package/lib/form/fields/SelectField/SelectField.js +210 -0
  486. package/lib/form/fields/SelectField/props/defaultProps.js +30 -0
  487. package/lib/form/fields/SelectField/props/propTypes.js +63 -0
  488. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +308 -0
  489. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
  490. package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +18 -0
  491. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +51 -0
  492. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
  493. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
  494. package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +31 -0
  495. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +65 -0
  496. package/lib/form/fields/TextBoxField/TextBoxField.js +192 -0
  497. package/lib/form/fields/TextBoxField/props/defaultProps.js +29 -0
  498. package/lib/form/fields/TextBoxField/props/propTypes.js +50 -0
  499. package/lib/form/fields/TextEditor/TextEditor.js +399 -0
  500. package/lib/form/fields/TextEditor/TextEditor.module.css +666 -0
  501. package/lib/form/fields/TextEditor/props/defaultProps.js +20 -0
  502. package/lib/form/fields/TextEditor/props/propTypes.js +48 -0
  503. package/lib/form/fields/TextEditorField/TextEditorField.js +202 -0
  504. package/lib/form/fields/TextEditorField/props/defaultProps.js +27 -0
  505. package/lib/form/fields/TextEditorField/props/propTypes.js +60 -0
  506. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +224 -0
  507. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -0
  508. package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +16 -0
  509. package/lib/form/fields/TextEditorWrapper/props/propTypes.js +47 -0
  510. package/lib/form/fields/TextareaField/TextareaField.js +189 -0
  511. package/lib/form/fields/TextareaField/props/defaultProps.js +27 -0
  512. package/lib/form/fields/TextareaField/props/propTypes.js +47 -0
  513. package/lib/form/fields/ValidationMessage/ValidationMessage.js +87 -0
  514. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
  515. package/lib/form/fields/ValidationMessage/props/defaultProps.js +14 -0
  516. package/lib/form/fields/ValidationMessage/props/propTypes.js +22 -0
  517. package/lib/form/fields/props/FieldCommonDefaultProps.js +17 -0
  518. package/lib/form/fields/props/FieldCommonPropTypes.js +31 -0
  519. package/lib/form/layout/Field/Field.js +65 -0
  520. package/lib/form/layout/Field/Field.module.css +22 -0
  521. package/lib/form/layout/Field/props/defaultProps.js +11 -0
  522. package/lib/form/layout/Field/props/propTypes.js +18 -0
  523. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -0
  524. package/lib/form/layout/Section/Section.js +63 -0
  525. package/lib/form/layout/Section/props/propTypes.js +17 -0
  526. package/lib/index.js +49 -0
  527. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +242 -0
  528. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -0
  529. package/lib/layout/SetupDetailLayout/index.js +33 -0
  530. package/lib/layout/SetupDetailLayout/props/defaultProps.js +28 -0
  531. package/lib/layout/SetupDetailLayout/props/propTypes.js +44 -0
  532. package/lib/layout/SubtabLayout/SubtabLayout.js +201 -0
  533. package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -0
  534. package/lib/layout/SubtabLayout/index.js +33 -0
  535. package/lib/layout/SubtabLayout/props/defaultProps.js +35 -0
  536. package/lib/layout/SubtabLayout/props/propTypes.js +51 -0
  537. package/lib/list/AvatarFlip/AvatarFlip.js +107 -0
  538. package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -0
  539. package/lib/list/AvatarFlip/props/defaultProps.js +12 -0
  540. package/lib/list/AvatarFlip/props/propTypes.js +36 -0
  541. package/lib/list/BluePrintStatus/BluePrintStatus.js +54 -0
  542. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -0
  543. package/lib/list/BluePrintStatus/props/propTypes.js +12 -0
  544. package/lib/list/Comment/Comment.js +74 -0
  545. package/lib/list/Comment/Comment.module.css +29 -0
  546. package/lib/list/Comment/props/defaultProps.js +10 -0
  547. package/lib/list/Comment/props/propTypes.js +17 -0
  548. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +128 -0
  549. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -0
  550. package/lib/list/DepartmentDropDown/props/defaultProps.js +14 -0
  551. package/lib/list/DepartmentDropDown/props/propTypes.js +33 -0
  552. package/lib/list/Dot/Dot.js +49 -0
  553. package/lib/list/Dot/Dot.module.css +15 -0
  554. package/lib/list/Dot/props/defaultProps.js +11 -0
  555. package/lib/list/Dot/props/propTypes.js +13 -0
  556. package/lib/list/DotNew/DotNew.js +58 -0
  557. package/lib/list/DotNew/DotNew.module.css +22 -0
  558. package/lib/list/DotNew/props/defaultProps.js +10 -0
  559. package/lib/list/DotNew/props/propTypes.js +14 -0
  560. package/lib/list/GridStencils/GridStencils.js +65 -0
  561. package/lib/list/GridStencils/GridStencils.module.css +147 -0
  562. package/lib/list/GridStencils/props/propTypes.js +15 -0
  563. package/lib/list/Icons/AddNewIcon.js +55 -0
  564. package/lib/list/Icons/CompleteIcon.js +57 -0
  565. package/lib/list/Icons/DeleteIcon.js +58 -0
  566. package/lib/list/Icons/EditIcon.js +57 -0
  567. package/lib/list/Icons/FloatingIcons.js +64 -0
  568. package/lib/list/Icons/Icons.module.css +16 -0
  569. package/lib/list/Icons/ReadUnreadIcon.js +61 -0
  570. package/lib/list/Icons/SmartIcon.js +57 -0
  571. package/lib/list/Icons/props/defaultProps.js +14 -0
  572. package/lib/list/Icons/props/propTypes.js +69 -0
  573. package/lib/list/ListLayout/ListLayout.js +114 -0
  574. package/lib/list/ListLayout/ListLayout.module.css +58 -0
  575. package/lib/list/ListLayout/props/defaultProps.js +18 -0
  576. package/lib/list/ListLayout/props/propTypes.js +39 -0
  577. package/lib/list/ListStencils/ListStencils.js +74 -0
  578. package/lib/list/ListStencils/ListStencils.module.css +67 -0
  579. package/lib/list/ListStencils/props/defaultProps.js +10 -0
  580. package/lib/list/ListStencils/props/propTypes.js +12 -0
  581. package/lib/list/SecondaryText/AccountName.js +112 -0
  582. package/lib/list/SecondaryText/ContactName.js +118 -0
  583. package/lib/list/SecondaryText/DepartmentText.js +58 -0
  584. package/lib/list/SecondaryText/Email.js +80 -0
  585. package/lib/list/SecondaryText/HappinessRating.js +61 -0
  586. package/lib/list/SecondaryText/PhoneNumber.js +84 -0
  587. package/lib/list/SecondaryText/PriorityText.js +61 -0
  588. package/lib/list/SecondaryText/SecondaryText.js +65 -0
  589. package/lib/list/SecondaryText/SecondaryText.module.css +136 -0
  590. package/lib/list/SecondaryText/StatusText.js +62 -0
  591. package/lib/list/SecondaryText/TicketId.js +80 -0
  592. package/lib/list/SecondaryText/Website.js +69 -0
  593. package/lib/list/SecondaryText/index.js +83 -0
  594. package/lib/list/SecondaryText/props/defaultProps.js +59 -0
  595. package/lib/list/SecondaryText/props/propTypes.js +161 -0
  596. package/lib/list/SecondryPanel/SecondryPanel.js +162 -0
  597. package/lib/list/SecondryPanel/SecondryPanel.module.css +6 -0
  598. package/lib/list/SecondryPanel/props/defaultProps.js +28 -0
  599. package/lib/list/SecondryPanel/props/propTypes.js +38 -0
  600. package/lib/list/SentimentStatus/SentimentStatus.js +61 -0
  601. package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -0
  602. package/lib/list/SentimentStatus/props/propTypes.js +13 -0
  603. package/lib/list/Subject/Subject.js +84 -0
  604. package/lib/list/Subject/Subject.module.css +27 -0
  605. package/lib/list/Subject/props/defaultProps.js +14 -0
  606. package/lib/list/Subject/props/propTypes.js +27 -0
  607. package/lib/list/TagNew/TagNew.js +61 -0
  608. package/lib/list/TagNew/TagNew.module.css +115 -0
  609. package/lib/list/TagNew/props/defaultProps.js +11 -0
  610. package/lib/list/TagNew/props/propTypes.js +16 -0
  611. package/lib/list/Thread/Thread.js +72 -0
  612. package/lib/list/Thread/Thread.module.css +43 -0
  613. package/lib/list/Thread/props/defaultProps.js +11 -0
  614. package/lib/list/Thread/props/propTypes.js +16 -0
  615. package/lib/list/UserTime/UserTime.js +111 -0
  616. package/lib/list/UserTime/UserTime.module.css +58 -0
  617. package/lib/list/UserTime/props/defaultProps.js +10 -0
  618. package/lib/list/UserTime/props/propTypes.js +22 -0
  619. package/lib/list/listCommon.module.css +60 -0
  620. package/lib/list/status/StatusDropdown/StatusDropdown.js +473 -0
  621. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -0
  622. package/lib/list/status/StatusDropdown/props/defaultProps.js +25 -0
  623. package/lib/list/status/StatusDropdown/props/propTypes.js +32 -0
  624. package/lib/list/status/StatusListItem/StatusListItem.js +141 -0
  625. package/lib/list/status/StatusListItem/StatusListItem.module.css +104 -0
  626. package/lib/list/status/StatusListItem/props/defaultProps.js +21 -0
  627. package/lib/list/status/StatusListItem/props/propTypes.js +36 -0
  628. package/lib/lookup/EmptyPage/EmptyPage.js +89 -0
  629. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -0
  630. package/lib/lookup/EmptyPage/props/defaultProps.js +11 -0
  631. package/lib/lookup/EmptyPage/props/propTypes.js +13 -0
  632. package/lib/lookup/Lookup/Lookup.js +127 -0
  633. package/lib/lookup/Lookup/Lookup.module.css +26 -0
  634. package/lib/lookup/Lookup/props/defaultProps.js +14 -0
  635. package/lib/lookup/Lookup/props/propTypes.js +26 -0
  636. package/lib/lookup/Section/LookupSection.module.css +8 -0
  637. package/lib/lookup/Section/Section.js +51 -0
  638. package/lib/lookup/Section/props/propTypes.js +14 -0
  639. package/lib/lookup/header/Close/Close.js +60 -0
  640. package/lib/lookup/header/Close/LookupClose.module.css +15 -0
  641. package/lib/lookup/header/Close/props/defaultProps.js +10 -0
  642. package/lib/lookup/header/Close/props/propTypes.js +14 -0
  643. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +106 -0
  644. package/lib/lookup/header/ModuleHeader/props/defaultProps.js +10 -0
  645. package/lib/lookup/header/ModuleHeader/props/propTypes.js +25 -0
  646. package/lib/lookup/header/Search/LookupSearch.module.css +57 -0
  647. package/lib/lookup/header/Search/Search.js +254 -0
  648. package/lib/lookup/header/Search/props/defaultProps.js +12 -0
  649. package/lib/lookup/header/Search/props/propTypes.js +37 -0
  650. package/lib/lookup/header/TicketHeader/TicketHeader.js +123 -0
  651. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +23 -0
  652. package/lib/lookup/header/TicketHeader/props/defaultProps.js +11 -0
  653. package/lib/lookup/header/TicketHeader/props/propTypes.js +28 -0
  654. package/lib/lookup/header/Title/LookupTitle.module.css +20 -0
  655. package/lib/lookup/header/Title/Title.js +57 -0
  656. package/lib/lookup/header/Title/props/defaultProps.js +10 -0
  657. package/lib/lookup/header/Title/props/propTypes.js +14 -0
  658. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +187 -0
  659. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -0
  660. package/lib/lookup/header/ViewDropDown/props/defaultProps.js +14 -0
  661. package/lib/lookup/header/ViewDropDown/props/propTypes.js +34 -0
  662. package/lib/lookup/header/lookupHeaderCommon.module.css +41 -0
  663. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -0
  664. package/lib/setup/header/Button/Button.js +63 -0
  665. package/lib/setup/header/Button/HeaderButton.module.css +5 -0
  666. package/lib/setup/header/Button/props/defaultProps.js +11 -0
  667. package/lib/setup/header/Button/props/propTypes.js +15 -0
  668. package/lib/setup/header/Link/HeaderLink.module.css +21 -0
  669. package/lib/setup/header/Link/Link.js +71 -0
  670. package/lib/setup/header/Link/props/defaultProps.js +11 -0
  671. package/lib/setup/header/Link/props/propTypes.js +16 -0
  672. package/lib/setup/header/Search/Search.js +104 -0
  673. package/lib/setup/header/Search/Search.module.css +68 -0
  674. package/lib/setup/header/Search/props/defaultProps.js +12 -0
  675. package/lib/setup/header/Search/props/propTypes.js +19 -0
  676. package/lib/setup/header/Views/Views.js +73 -0
  677. package/lib/setup/header/Views/Views.module.css +37 -0
  678. package/lib/setup/header/Views/props/defaultProps.js +13 -0
  679. package/lib/setup/header/Views/props/propTypes.js +17 -0
  680. package/lib/setup/helptips/Description/Description.js +50 -0
  681. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -0
  682. package/lib/setup/helptips/Description/props/propTypes.js +12 -0
  683. package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -0
  684. package/lib/setup/helptips/Link/Link.js +67 -0
  685. package/lib/setup/helptips/Link/props/propTypes.js +15 -0
  686. package/lib/setup/helptips/ListGroup/ListGroup.js +68 -0
  687. package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -0
  688. package/lib/setup/helptips/ListGroup/props/propTypes.js +13 -0
  689. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -0
  690. package/lib/setup/helptips/Title/Title.js +50 -0
  691. package/lib/setup/helptips/Title/props/propTypes.js +12 -0
  692. package/lib/setup/table/Table/Table.js +56 -0
  693. package/lib/setup/table/Table/props/defaultProps.js +11 -0
  694. package/lib/setup/table/Table/props/propTypes.js +14 -0
  695. package/lib/setup/table/TableBody/TableBody.js +61 -0
  696. package/lib/setup/table/TableBody/props/defaultProps.js +10 -0
  697. package/lib/setup/table/TableBody/props/propTypes.js +15 -0
  698. package/lib/setup/table/TableData/SetupTableData.module.css +44 -0
  699. package/lib/setup/table/TableData/TableData.js +63 -0
  700. package/lib/setup/table/TableData/Tablehover.module.css +6 -0
  701. package/lib/setup/table/TableData/props/defaultProps.js +12 -0
  702. package/lib/setup/table/TableData/props/propTypes.js +18 -0
  703. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -0
  704. package/lib/setup/table/TableHead/TableHead.js +65 -0
  705. package/lib/setup/table/TableHead/props/defaultProps.js +11 -0
  706. package/lib/setup/table/TableHead/props/propTypes.js +15 -0
  707. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -0
  708. package/lib/setup/table/TableRow/TableRow.js +70 -0
  709. package/lib/setup/table/TableRow/props/defaultProps.js +11 -0
  710. package/lib/setup/table/TableRow/props/propTypes.js +19 -0
  711. package/lib/setup/table/Text/TableText.module.css +37 -0
  712. package/lib/setup/table/Text/Text.js +82 -0
  713. package/lib/setup/table/Text/props/defaultProps.js +14 -0
  714. package/lib/setup/table/Text/props/propTypes.js +21 -0
  715. package/lib/svg/PlusIcon.js +63 -0
  716. package/lib/svg/SnippetIcon.js +65 -0
  717. package/lib/svg/TemplateIcon.js +66 -0
  718. package/lib/svg/props/defaultProps.js +24 -0
  719. package/lib/svg/props/propTypes.js +26 -0
  720. package/lib/utils/ChannelIconMapping.js +136 -0
  721. package/lib/utils/General.js +47 -0
  722. package/lib/utils/editorUtils.js +188 -0
  723. package/lib/version2/AlertClose/AlertClose.js +71 -0
  724. package/lib/version2/AlertClose/AlertClose.module.css +43 -0
  725. package/lib/version2/AlertClose/props/propTypes.js +16 -0
  726. package/lib/version2/GlobalNotification/GlobalNotification.js +165 -0
  727. package/lib/version2/GlobalNotification/GlobalNotification.module.css +125 -0
  728. package/lib/version2/GlobalNotification/props/defaultProps.js +11 -0
  729. package/lib/version2/GlobalNotification/props/propTypes.js +22 -0
  730. package/lib/version2/alertIcons/AlarmAlertIcon.js +99 -0
  731. package/lib/version2/alertIcons/AlertIcons.js +93 -0
  732. package/lib/version2/alertIcons/AlertIcons.module.css +67 -0
  733. package/lib/version2/alertIcons/DangerAlertIcon.js +99 -0
  734. package/lib/version2/alertIcons/ErrorAlertIcon.js +104 -0
  735. package/lib/version2/alertIcons/InfoAlertIcon.js +108 -0
  736. package/lib/version2/alertIcons/NotificationAlertIcon.js +104 -0
  737. package/lib/version2/alertIcons/SuccessAlertIcon.js +99 -0
  738. package/lib/version2/alertIcons/WarningAlertIcon.js +99 -0
  739. package/lib/version2/alertIcons/props/defaultProps.js +41 -0
  740. package/lib/version2/alertIcons/props/propTypes.js +49 -0
  741. package/lib/version2/errorstate/Inconvenience/Inconvenience.js +101 -0
  742. package/lib/version2/errorstate/Inconvenience/props/defaultProps.js +15 -0
  743. package/lib/version2/errorstate/Inconvenience/props/propTypes.js +24 -0
  744. package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +102 -0
  745. package/lib/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +15 -0
  746. package/lib/version2/errorstate/OopsSomethingMiss/props/propTypes.js +24 -0
  747. package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +101 -0
  748. package/lib/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +15 -0
  749. package/lib/version2/errorstate/UnableToProcessRequest/props/propTypes.js +24 -0
  750. package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +103 -0
  751. package/lib/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +16 -0
  752. package/lib/version2/errorstate/UnauthorizedLogin/props/propTypes.js +25 -0
  753. package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +101 -0
  754. package/lib/version2/errorstate/UrlNotFound/props/defaultProps.js +15 -0
  755. package/lib/version2/errorstate/UrlNotFound/props/propTypes.js +24 -0
  756. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -0
  757. package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +101 -0
  758. package/lib/version2/errorstate/WillBeRightBack/props/defaultProps.js +15 -0
  759. package/lib/version2/errorstate/WillBeRightBack/props/propTypes.js +24 -0
  760. package/lib/version2/lookup/AlertHeader/AlertHeader.js +95 -0
  761. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -0
  762. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +13 -0
  763. package/lib/version2/lookup/AlertHeader/props/propTypes.js +20 -0
  764. package/lib/version2/lookup/AlertLookup/AlertLookup.js +226 -0
  765. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
  766. package/lib/version2/lookup/AlertLookup/props/defaultProps.js +20 -0
  767. package/lib/version2/lookup/AlertLookup/props/propTypes.js +44 -0
  768. package/lib/version2/lookup/alertLookupCommonNew.module.css +33 -0
  769. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +169 -0
  770. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -0
  771. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +22 -0
  772. package/lib/version2/notification/DesktopNotification/props/propTypes.js +45 -0
  773. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +91 -0
  774. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
  775. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +12 -0
  776. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +19 -0
  777. package/package.json +5 -5
  778. package/es/ActionButton/docs/ActionButton__default.docs.js +0 -142
  779. package/es/AlphabeticList/docs/AlphabeticList__default.docs.js +0 -31
  780. package/es/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +0 -39
  781. package/es/Attachment/docs/Attachment__default.docs.js +0 -52
  782. package/es/AttachmentViewer/docs/AttachmentViewer__default.docs.js +0 -68
  783. package/es/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -54
  784. package/es/Drawer/docs/Drawer__default.docs.js +0 -81
  785. package/es/Drawer/docs/Drawer__multiDrawer.docs.js +0 -103
  786. package/es/Drawer/docs/Drawer__noFreeze.docs.js +0 -17
  787. package/es/Drawer/docs/Drawer__withModal.docs.js +0 -68
  788. package/es/ExternalLink/docs/ExternalLink__default.docs.js +0 -17
  789. package/es/FlipCard/docs/FlipCard__default.docs.js +0 -63
  790. package/es/FormAction/docs/FormAction__default.docs.js +0 -70
  791. package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -47
  792. package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -44
  793. package/es/IconButton/docs/IconButton__default.docs.js +0 -217
  794. package/es/Image/docs/Image__default.docs.js +0 -20
  795. package/es/ImportantNotes/docs/ImportantNotes__default.docs.js +0 -19
  796. package/es/Link/docs/Link__default.docs.js +0 -32
  797. package/es/Loader/docs/Loader__default.docs.js +0 -20
  798. package/es/Message/docs/Message__default.docs.js +0 -52
  799. package/es/MessageBanner/docs/MessageBanner__default.docs.js +0 -85
  800. package/es/NewStar/docs/NewStar__default.docs.js +0 -60
  801. package/es/PlusIcon/docs/PlusIcon__default.docs.js +0 -14
  802. package/es/Provider.js +0 -147
  803. package/es/ToastMessage/docs/ToastMessage__custom.docs.js +0 -85
  804. package/es/ToastMessage/docs/ToastMessage__information.docs.js +0 -52
  805. package/es/ToastMessage/docs/ToastMessage__primary.docs.js +0 -122
  806. package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -35
  807. package/es/ToastMessage/docs/ToastMessage__success.docs.js +0 -59
  808. package/es/Upload/docs/Upload__default.docs.js +0 -59
  809. package/es/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -60
  810. package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -126
  811. package/es/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -23
  812. package/es/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -32
  813. package/es/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -37
  814. package/es/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -43
  815. package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -32
  816. package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -49
  817. package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -163
  818. package/es/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -170
  819. package/es/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -21
  820. package/es/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -31
  821. package/es/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -224
  822. package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -105
  823. package/es/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -19
  824. package/es/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -17
  825. package/es/errorstate/LinkText/docs/LinkText__default.docs.js +0 -15
  826. package/es/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -17
  827. package/es/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -18
  828. package/es/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -17
  829. package/es/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -17
  830. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -18
  831. package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -17
  832. package/es/errorstate/WillBack/docs/WillBack__default.docs.js +0 -19
  833. package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +0 -34
  834. package/es/form/fields/CurrencyField/docs/CurrencyField__default.docs.js +0 -33
  835. package/es/form/fields/DateField/docs/DateField__default.docs.js +0 -29
  836. package/es/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +0 -43
  837. package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +0 -51
  838. package/es/form/fields/PhoneField/docs/PhoneField__default.docs.js +0 -23
  839. package/es/form/fields/SelectField/docs/SelectField__default.docs.js +0 -61
  840. package/es/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +0 -72
  841. package/es/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +0 -79
  842. package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +0 -66
  843. package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +0 -46
  844. package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +0 -30
  845. package/es/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +0 -55
  846. package/es/form/layout/Field/docs/Field__default.docs.js +0 -22
  847. package/es/form/layout/Section/docs/Section__default.docs.js +0 -18
  848. package/es/i18n.js +0 -4349
  849. package/es/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -26
  850. package/es/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -63
  851. package/es/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -97
  852. package/es/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -16
  853. package/es/list/Comment/docs/Comment__default.docs.js +0 -23
  854. package/es/list/DotNew/docs/DotNew__default.docs.js +0 -17
  855. package/es/list/GridStencils/docs/GridStencils__default.docs.js +0 -32
  856. package/es/list/Icons/docs/FloatingIcons__default.docs.js +0 -22
  857. package/es/list/ListLayout/docs/ListLayout__default.docs.js +0 -56
  858. package/es/list/ListStencils/docs/ListStencils__default.docs.js +0 -17
  859. package/es/list/SecondaryText/docs/SecondaryText__default.docs.js +0 -111
  860. package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -37
  861. package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -77
  862. package/es/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -16
  863. package/es/list/Subject/docs/Subject__default.docs.js +0 -41
  864. package/es/list/TagNew/docs/TagNew__default.docs.js +0 -20
  865. package/es/list/Thread/docs/Thread__default.docs.js +0 -19
  866. package/es/list/UserTime/docs/UserTime__default.docs.js +0 -144
  867. package/es/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -125
  868. package/es/list/status/StatusListItem/docs/StatusListItem__default.docs.js +0 -26
  869. package/es/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -18
  870. package/es/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -18
  871. package/es/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -15
  872. package/es/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -18
  873. package/es/lookup/Lookup/docs/Lookup__contact.docs.js +0 -186
  874. package/es/lookup/Lookup/docs/Lookup__default.docs.js +0 -62
  875. package/es/lookup/header/Close/docs/Close__default.docs.js +0 -16
  876. package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -47
  877. package/es/lookup/header/Search/docs/Search__default.docs.js +0 -119
  878. package/es/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -78
  879. package/es/lookup/header/Title/docs/Title__default.docs.js +0 -18
  880. package/es/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -71
  881. package/es/setup/header/Button/docs/Button__default.docs.js +0 -19
  882. package/es/setup/header/Link/docs/Link__default.docs.js +0 -20
  883. package/es/setup/header/Search/docs/Search__default.docs.js +0 -38
  884. package/es/setup/header/Views/docs/Views__default.docs.js +0 -21
  885. package/es/setup/helptips/Description/docs/Description__default.docs.js +0 -23
  886. package/es/setup/helptips/Link/docs/Link__default.docs.js +0 -24
  887. package/es/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -27
  888. package/es/setup/helptips/Title/docs/Title__default.docs.js +0 -23
  889. package/es/setup/table/Table/docs/Table__default.docs.js +0 -176
  890. package/es/setup/table/Text/docs/Text__default.docs.js +0 -33
  891. package/es/svg/docs/SVG__default.docs.js +0 -47
  892. package/es/utils/Common.js +0 -24
  893. package/es/version2/AlertClose/docs/AlertClose__default.docs.js +0 -44
  894. package/es/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +0 -92
  895. package/es/version2/alertIcons/docs/AlertIcons__default.docs.js +0 -135
  896. package/es/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -16
  897. package/es/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +0 -18
  898. package/es/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +0 -26
  899. package/es/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +0 -16
  900. package/es/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +0 -18
  901. package/es/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +0 -16
  902. package/es/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +0 -53
  903. package/es/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +0 -150
  904. package/es/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +0 -89
  905. package/es/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +0 -54
@@ -0,0 +1,884 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = exports.ToggleDropDown = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _defaultProps = require("./props/defaultProps");
10
+ var _propTypes = require("./props/propTypes");
11
+ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
12
+ var _Popup = _interopRequireDefault(require("@zohodesk/components/lib/Popup/Popup"));
13
+ var _Layout = require("@zohodesk/components/lib/Layout");
14
+ var _ListItem = _interopRequireDefault(require("@zohodesk/components/lib/ListItem/ListItem"));
15
+ var _ListItemWithIcon = _interopRequireDefault(require("@zohodesk/components/lib/ListItem/ListItemWithIcon"));
16
+ var _DropDownHeading = _interopRequireDefault(require("@zohodesk/components/lib/DropDown/DropDownHeading"));
17
+ var _TextBoxIcon = _interopRequireDefault(require("@zohodesk/components/lib/TextBoxIcon/TextBoxIcon"));
18
+ var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/Loader/Loader"));
19
+ var _CommonEmptyState = _interopRequireDefault(require("../../emptystate/CommonEmptyState/CommonEmptyState"));
20
+ var _EmptySearch = _interopRequireDefault(require("@zohodesk/svg/lib/emptystate/version3/EmptySearch"));
21
+ var _CssProvider = _interopRequireDefault(require("@zohodesk/components/lib/Provider/CssProvider"));
22
+ var _Common = require("@zohodesk/components/lib/utils/Common");
23
+ var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
24
+ var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
25
+ var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
26
+ var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox"));
27
+ var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
28
+ var _ToggleDropDownModule = _interopRequireDefault(require("./ToggleDropDown.module.css"));
29
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
34
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
36
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
38
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
42
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
44
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
46
+ var ToggleDropDown = /*#__PURE__*/function (_Component) {
47
+ _inherits(ToggleDropDown, _Component);
48
+ var _super = _createSuper(ToggleDropDown);
49
+ function ToggleDropDown(props) {
50
+ var _this;
51
+ _classCallCheck(this, ToggleDropDown);
52
+ _this = _super.call(this, props);
53
+ _this.state = {
54
+ searchValue: '',
55
+ selectedIndex: -1,
56
+ options: props.options,
57
+ isFetchingOptions: false
58
+ };
59
+ _this._isMounted = false;
60
+ _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
61
+ _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
62
+ _this.onSelect = _this.onSelect.bind(_assertThisInitialized(_this));
63
+ _this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
64
+ _this.showTogglePopup = _this.showTogglePopup.bind(_assertThisInitialized(_this));
65
+ _this.hideTogglePopup = _this.hideTogglePopup.bind(_assertThisInitialized(_this));
66
+ _this.onSearchAPI = _this.onSearchAPI.bind(_assertThisInitialized(_this));
67
+ _this.onSearchClear = _this.onSearchClear.bind(_assertThisInitialized(_this));
68
+ _this.handleFilterSuggestions = _this.handleFilterSuggestions.bind(_assertThisInitialized(_this));
69
+ _this.scrollContentRef = _this.scrollContentRef.bind(_assertThisInitialized(_this));
70
+ _this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
71
+ _this.searchInputRef = _this.searchInputRef.bind(_assertThisInitialized(_this));
72
+ _this.itemRef = _this.itemRef.bind(_assertThisInitialized(_this));
73
+ _this.inputRef = _this.inputRef.bind(_assertThisInitialized(_this));
74
+ _this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_this));
75
+ _this.getOptionsArray = _this.getOptionsArray.bind(_assertThisInitialized(_this));
76
+ _this.emptySearchSVG = _this.emptySearchSVG.bind(_assertThisInitialized(_this));
77
+ _this.getAriaId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
78
+ _this.getSelectedIndex = _this.getSelectedIndex.bind(_assertThisInitialized(_this));
79
+ _this.handleGetNextOptions = _this.handleGetNextOptions.bind(_assertThisInitialized(_this));
80
+ _this.handleFetchOptions = _this.handleFetchOptions.bind(_assertThisInitialized(_this));
81
+ return _this;
82
+ }
83
+ _createClass(ToggleDropDown, [{
84
+ key: "componentDidMount",
85
+ value: function componentDidMount() {
86
+ this._isMounted = true;
87
+ }
88
+ }, {
89
+ key: "componentWillUnmount",
90
+ value: function componentWillUnmount() {
91
+ this._isMounted = false;
92
+ }
93
+ }, {
94
+ key: "emptySearchSVG",
95
+ value: function emptySearchSVG() {
96
+ return /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
97
+ size: "small"
98
+ });
99
+ }
100
+ }, {
101
+ key: "inputRef",
102
+ value: function inputRef(el) {
103
+ this.hiddenInput = el;
104
+ }
105
+ }, {
106
+ key: "itemRef",
107
+ value: function itemRef(ele, index, id) {
108
+ this["suggestion_".concat(id)] = ele;
109
+ }
110
+ }, {
111
+ key: "searchInputRef",
112
+ value: function searchInputRef(el) {
113
+ this.searchInput = el;
114
+ }
115
+ }, {
116
+ key: "handleTogglePopup",
117
+ value: function handleTogglePopup(e) {
118
+ var _this$props = this.props,
119
+ togglePopup = _this$props.togglePopup,
120
+ boxPosition = _this$props.boxPosition,
121
+ onSelectLabel = _this$props.onSelectLabel,
122
+ isPopupOpen = _this$props.isPopupOpen,
123
+ removeClose = _this$props.removeClose;
124
+ removeClose && removeClose(e);
125
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
126
+ togglePopup(e, boxPosition);
127
+ }
128
+ }, {
129
+ key: "showTogglePopup",
130
+ value: function showTogglePopup(e) {
131
+ var _this$props2 = this.props,
132
+ togglePopup = _this$props2.togglePopup,
133
+ boxPosition = _this$props2.boxPosition,
134
+ onSelectLabel = _this$props2.onSelectLabel,
135
+ isPopupOpen = _this$props2.isPopupOpen;
136
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
137
+ !isPopupOpen && togglePopup(e, boxPosition);
138
+ }
139
+ }, {
140
+ key: "hideTogglePopup",
141
+ value: function hideTogglePopup(e) {
142
+ var _this$props3 = this.props,
143
+ togglePopup = _this$props3.togglePopup,
144
+ boxPosition = _this$props3.boxPosition,
145
+ onSelectLabel = _this$props3.onSelectLabel,
146
+ isPopupOpen = _this$props3.isPopupOpen;
147
+ !isPopupOpen && onSelectLabel && onSelectLabel(e);
148
+ isPopupOpen && togglePopup(e, boxPosition);
149
+ }
150
+ }, {
151
+ key: "scrollContentRef",
152
+ value: function scrollContentRef(el) {
153
+ var isPopupOpen = this.props.isPopupOpen;
154
+ if (isPopupOpen) {
155
+ this.optionsContainer = el;
156
+ }
157
+ }
158
+ }, {
159
+ key: "UNSAFE_componentWillReceiveProps",
160
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
161
+ this.setState({
162
+ options: nextProps.options
163
+ });
164
+ }
165
+ }, {
166
+ key: "onSelect",
167
+ value: function onSelect(element, e) {
168
+ var _this$props4 = this.props,
169
+ onClick = _this$props4.onClick,
170
+ togglePopup = _this$props4.togglePopup,
171
+ preventPopupClose = _this$props4.preventPopupClose;
172
+ onClick && onClick(e, element);
173
+ !preventPopupClose && togglePopup(e);
174
+ }
175
+ }, {
176
+ key: "componentDidUpdate",
177
+ value: function componentDidUpdate(prevProps) {
178
+ var _this2 = this;
179
+ var _this$props5 = this.props,
180
+ isPopupOpen = _this$props5.isPopupOpen,
181
+ isPopupReady = _this$props5.isPopupReady,
182
+ isSearch = _this$props5.isSearch,
183
+ idName = _this$props5.idName,
184
+ options = _this$props5.options,
185
+ onDropDownOpen = _this$props5.onDropDownOpen,
186
+ onDropDownClose = _this$props5.onDropDownClose;
187
+ var _this$state = this.state,
188
+ selectedIndex = _this$state.selectedIndex,
189
+ searchValue = _this$state.searchValue;
190
+ if (prevProps.isPopupReady !== isPopupReady) {
191
+ setTimeout(function () {
192
+ isPopupReady ? isSearch ? _this2.searchInput.focus({
193
+ preventScroll: true
194
+ }) : _this2.hiddenInput.focus({
195
+ preventScroll: true
196
+ }) : _this2.hiddenInput.focus({
197
+ preventScroll: true
198
+ });
199
+ }, 10);
200
+ }
201
+ var optionsArr = this.getOptionsArray();
202
+ var option = optionsArr[selectedIndex];
203
+ var id = option && option[idName] || {};
204
+ var selSuggestion = this["suggestion_".concat(id)];
205
+ if (isPopupOpen) {
206
+ this.optionsContainer && (0, _Common.scrollTo)(this.optionsContainer, selSuggestion);
207
+ }
208
+ if (!prevProps.isPopupOpen && isPopupOpen && searchValue.length) {
209
+ this.onSearchClear();
210
+ }
211
+ if (this.props.from == 'activityFilter') {
212
+ //Temproary
213
+ var results = this.props.options.filter(function (_ref) {
214
+ var id1 = _ref.isDisabled;
215
+ return !prevProps.options.some(function (_ref2) {
216
+ var id2 = _ref2.isDisabled;
217
+ return id2 === id1;
218
+ });
219
+ });
220
+ if (results.length > 0) {
221
+ this.setState({
222
+ options: options
223
+ });
224
+ }
225
+ }
226
+ if (prevProps.isPopupOpen !== isPopupOpen) {
227
+ if (isPopupOpen) {
228
+ onDropDownOpen && onDropDownOpen();
229
+ } else {
230
+ onDropDownClose && onDropDownClose();
231
+ }
232
+ this.getSelectedIndex(optionsArr);
233
+ }
234
+ }
235
+ }, {
236
+ key: "handleFilterSuggestions",
237
+ value: function handleFilterSuggestions(searchValue) {
238
+ var _this$props6 = this.props,
239
+ options = _this$props6.options,
240
+ keyName = _this$props6.keyName,
241
+ isGroupDropDown = _this$props6.isGroupDropDown,
242
+ groupOptionsKey = _this$props6.groupOptionsKey,
243
+ groupNameKey = _this$props6.groupNameKey;
244
+ searchValue = searchValue.trim().toLowerCase();
245
+ var result = [];
246
+ if (isGroupDropDown) {
247
+ var filteredGroups = [];
248
+ options.map(function (group) {
249
+ var needDivider = group.needDivider;
250
+ var name = group[groupNameKey];
251
+ var groupOptions = group[groupOptionsKey];
252
+ var datas = groupOptions.filter(function (list) {
253
+ var value = list[keyName];
254
+ return value.toLowerCase().includes(searchValue);
255
+ });
256
+ if (datas.length) {
257
+ var _filteredGroups$push;
258
+ filteredGroups.push((_filteredGroups$push = {}, _defineProperty(_filteredGroups$push, groupNameKey, name), _defineProperty(_filteredGroups$push, groupOptionsKey, datas), _defineProperty(_filteredGroups$push, "needDivider", needDivider), _filteredGroups$push));
259
+ }
260
+ });
261
+ result = filteredGroups;
262
+ } else {
263
+ var filteredOptions = options.filter(function (item, i) {
264
+ if (item.needDivider) {
265
+ return true;
266
+ }
267
+ return item[keyName].toLowerCase().includes(searchValue);
268
+ });
269
+ if (filteredOptions.length) {
270
+ // to avoid more than one dividers consecutively comes as one by one
271
+ var needDividerCount = 0;
272
+ var orderedOptions = filteredOptions.filter(function (item) {
273
+ if (item.needDivider && needDividerCount === 0) {
274
+ needDividerCount++;
275
+ return true;
276
+ } else if (!item.needDivider) {
277
+ needDividerCount = 0;
278
+ return true;
279
+ }
280
+ });
281
+ // remove divider if it placed in first or last index
282
+ filteredOptions = [];
283
+ filteredOptions = orderedOptions.filter(function (item, i) {
284
+ if (i == 0 || i == orderedOptions.length - 1) {
285
+ if (!item.needDivider) {
286
+ return true;
287
+ }
288
+ } else {
289
+ return true;
290
+ }
291
+ });
292
+ result = filteredOptions;
293
+ }
294
+ }
295
+ return result;
296
+ }
297
+ }, {
298
+ key: "getOptionsArray",
299
+ value: function getOptionsArray() {
300
+ var searchValue = this.state.searchValue;
301
+ var _this$props7 = this.props,
302
+ isGroupDropDown = _this$props7.isGroupDropDown,
303
+ groupOptionsKey = _this$props7.groupOptionsKey;
304
+ var options = searchValue.length ? this.handleFilterSuggestions(searchValue) : this.props.options;
305
+ var optionsArr = [];
306
+ if (isGroupDropDown) {
307
+ for (var i = 0; i < options.length; i++) {
308
+ var groupOptions = options[i][groupOptionsKey];
309
+ Array.prototype.push.apply(optionsArr, groupOptions);
310
+ }
311
+ } else {
312
+ optionsArr = options.filter(function (item) {
313
+ return !item.needDivider;
314
+ });
315
+ }
316
+ return optionsArr;
317
+ }
318
+ }, {
319
+ key: "handleKeyDown",
320
+ value: function handleKeyDown(e) {
321
+ var keyCode = e.keyCode;
322
+ var _this$state2 = this.state,
323
+ selectedIndex = _this$state2.selectedIndex,
324
+ searchValue = _this$state2.searchValue;
325
+ var optionsArr = this.getOptionsArray();
326
+ var totalIndex = optionsArr.length;
327
+ var _this$props8 = this.props,
328
+ togglePopup = _this$props8.togglePopup,
329
+ onClick = _this$props8.onClick,
330
+ boxPosition = _this$props8.boxPosition,
331
+ isPopupReady = _this$props8.isPopupReady,
332
+ value = _this$props8.value,
333
+ keyName = _this$props8.keyName,
334
+ idName = _this$props8.idName,
335
+ preventPopupClose = _this$props8.preventPopupClose,
336
+ isSearch = _this$props8.isSearch;
337
+ if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
338
+ e.preventDefault(); //prevent body scroll
339
+ }
340
+
341
+ if (isPopupReady) {
342
+ switch (keyCode) {
343
+ case 40:
344
+ if (selectedIndex === totalIndex - 1) {
345
+ this.setState({
346
+ selectedIndex: 0
347
+ });
348
+ } else {
349
+ if (selectedIndex === totalIndex - 3) {
350
+ this.handleGetNextOptions();
351
+ }
352
+ this.setState({
353
+ selectedIndex: selectedIndex + 1
354
+ });
355
+ }
356
+ break;
357
+ case 38:
358
+ if (selectedIndex === 0) {
359
+ this.setState({
360
+ selectedIndex: totalIndex - 1
361
+ });
362
+ } else {
363
+ this.setState({
364
+ selectedIndex: selectedIndex - 1
365
+ });
366
+ }
367
+ break;
368
+ case 13:
369
+ {
370
+ var selectedId = optionsArr[selectedIndex][idName] || '';
371
+ onClick && onClick(selectedId, optionsArr[selectedIndex]);
372
+ if (!preventPopupClose) {
373
+ togglePopup(e, boxPosition);
374
+ } else if (isSearch) {
375
+ this.searchInput.focus({
376
+ preventScroll: true
377
+ });
378
+ } else {
379
+ this.hiddenInput.focus({
380
+ preventScroll: true
381
+ });
382
+ }
383
+ break;
384
+ }
385
+ }
386
+ } else {
387
+ if (keyCode === 13 || keyCode === 40) {
388
+ togglePopup(e, boxPosition);
389
+ }
390
+ }
391
+ }
392
+ }, {
393
+ key: "getSelectedIndex",
394
+ value: function getSelectedIndex(optionsArr) {
395
+ var _this$props9 = this.props,
396
+ selectedId = _this$props9.selectedId,
397
+ idName = _this$props9.idName;
398
+ if (selectedId) {
399
+ for (var i = 0; i < optionsArr.length; i++) {
400
+ var indexId = optionsArr[i][idName];
401
+ if (selectedId === indexId) {
402
+ this.setState({
403
+ selectedIndex: i
404
+ });
405
+ break;
406
+ }
407
+ }
408
+ } else {
409
+ this.setState({
410
+ selectedIndex: -1
411
+ });
412
+ }
413
+ }
414
+ }, {
415
+ key: "onSearchAPI",
416
+ value: function onSearchAPI() {
417
+ var searchValue = this.state.searchValue;
418
+ var _this$props10 = this.props,
419
+ needSearchFetching = _this$props10.needSearchFetching,
420
+ onSearch = _this$props10.onSearch;
421
+ if (needSearchFetching && onSearch) {
422
+ onSearch(searchValue);
423
+ }
424
+ }
425
+ }, {
426
+ key: "handleChange",
427
+ value: function handleChange(value, e) {
428
+ var _this3 = this;
429
+ var filteredOptions = this.handleFilterSuggestions(value);
430
+ this.setState({
431
+ searchValue: value,
432
+ selectedIndex: -1,
433
+ options: filteredOptions
434
+ }, function () {
435
+ _this3.onSearchAPI();
436
+ });
437
+ }
438
+ }, {
439
+ key: "onSearchClear",
440
+ value: function onSearchClear() {
441
+ var _this4 = this;
442
+ var filteredOptions = this.handleFilterSuggestions('');
443
+ this.setState({
444
+ searchValue: '',
445
+ options: filteredOptions
446
+ }, function () {
447
+ _this4.onSearchAPI();
448
+ });
449
+ }
450
+ }, {
451
+ key: "handleMouseEnter",
452
+ value: function handleMouseEnter(id, value, index, e) {
453
+ this.setState({
454
+ selectedIndex: index
455
+ });
456
+ }
457
+ }, {
458
+ key: "handleScroll",
459
+ value: function handleScroll(e) {
460
+ var ele = e.target;
461
+ var isScrollReachedBottom = (0, _Common.findScrollEnd)(ele);
462
+ isScrollReachedBottom && this.handleGetNextOptions();
463
+ }
464
+ }, {
465
+ key: "handleGetNextOptions",
466
+ value: function handleGetNextOptions() {
467
+ var _this$props11 = this.props,
468
+ isNextOptions = _this$props11.isNextOptions,
469
+ getNextOptions = _this$props11.getNextOptions;
470
+ var searchValue = this.state.searchValue;
471
+ isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
472
+ }
473
+ }, {
474
+ key: "handleFetchOptions",
475
+ value: function handleFetchOptions(APICall) {
476
+ var _this5 = this;
477
+ var searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
478
+ var _this$state$isFetchin = this.state.isFetchingOptions,
479
+ isFetchingOptions = _this$state$isFetchin === void 0 ? false : _this$state$isFetchin;
480
+ var _isMounted = this._isMounted;
481
+ if (!isFetchingOptions && APICall) {
482
+ this.setState({
483
+ isFetchingOptions: true
484
+ });
485
+ try {
486
+ return APICall(searchValue).then(function () {
487
+ _isMounted && _this5.setState({
488
+ isFetchingOptions: false
489
+ });
490
+ }, function () {
491
+ _isMounted && _this5.setState({
492
+ isFetchingOptions: false
493
+ });
494
+ });
495
+ } catch (e) {
496
+ _isMounted && this.setState({
497
+ isFetchingOptions: false
498
+ });
499
+ }
500
+ }
501
+ }
502
+ }, {
503
+ key: "responsiveFunc",
504
+ value: function responsiveFunc(_ref3) {
505
+ var mediaQueryOR = _ref3.mediaQueryOR;
506
+ return {
507
+ tabletMode: mediaQueryOR([{
508
+ maxWidth: 700
509
+ }])
510
+ };
511
+ }
512
+ }, {
513
+ key: "render",
514
+ value: function render() {
515
+ var _this6 = this;
516
+ var _this$state3 = this.state,
517
+ options = _this$state3.options,
518
+ selectedIndex = _this$state3.selectedIndex;
519
+ var _this$props12 = this.props,
520
+ value = _this$props12.value,
521
+ removeClose = _this$props12.removeClose,
522
+ boxSize = _this$props12.boxSize,
523
+ keyName = _this$props12.keyName,
524
+ idName = _this$props12.idName,
525
+ title = _this$props12.title,
526
+ isSearch = _this$props12.isSearch,
527
+ isArrow = _this$props12.isArrow,
528
+ placeHolderText = _this$props12.placeHolderText,
529
+ className = _this$props12.className,
530
+ right = _this$props12.right,
531
+ left = _this$props12.left,
532
+ top = _this$props12.top,
533
+ bottom = _this$props12.bottom,
534
+ isOpen = _this$props12.isPopupOpen,
535
+ isPopupActive = _this$props12.isPopupActive,
536
+ needExternalPopupState = _this$props12.needExternalPopupState,
537
+ isPopupReady = _this$props12.isPopupReady,
538
+ position = _this$props12.position,
539
+ getTargetRef = _this$props12.getTargetRef,
540
+ getContainerRef = _this$props12.getContainerRef,
541
+ dataId = _this$props12.dataId,
542
+ dataSelectorId = _this$props12.dataSelectorId,
543
+ searchBoxSize = _this$props12.searchBoxSize,
544
+ searchEmptyHint = _this$props12.searchEmptyHint,
545
+ searchErrorText = _this$props12.searchErrorText,
546
+ activeStyle = _this$props12.activeStyle,
547
+ showOnHover = _this$props12.showOnHover,
548
+ isDisabled = _this$props12.isDisabled,
549
+ showIconOnHover = _this$props12.showIconOnHover,
550
+ isReadOnly = _this$props12.isReadOnly,
551
+ hoverStyle = _this$props12.hoverStyle,
552
+ isEditable = _this$props12.isEditable,
553
+ iconName = _this$props12.iconName,
554
+ iconSize = _this$props12.iconSize,
555
+ needTick = _this$props12.needTick,
556
+ dataTitle = _this$props12.dataTitle,
557
+ isDataLoaded = _this$props12.isDataLoaded,
558
+ children = _this$props12.children,
559
+ needResponsive = _this$props12.needResponsive,
560
+ arrowIconPosition = _this$props12.arrowIconPosition,
561
+ isGroupDropDown = _this$props12.isGroupDropDown,
562
+ groupOptionsKey = _this$props12.groupOptionsKey,
563
+ groupNameKey = _this$props12.groupNameKey,
564
+ isToggleStateNeeded = _this$props12.isToggleStateNeeded,
565
+ selectedId = _this$props12.selectedId,
566
+ isPadding = _this$props12.isPadding,
567
+ isNeedEffect = _this$props12.isNeedEffect,
568
+ hoverType = _this$props12.hoverType,
569
+ palette = _this$props12.palette,
570
+ getFooter = _this$props12.getFooter,
571
+ customProps = _this$props12.customProps;
572
+ var _customProps$ToggleDr = customProps.ToggleDropDownProps,
573
+ ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr,
574
+ _customProps$DropBoxP = customProps.DropBoxProps,
575
+ DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP,
576
+ _customProps$TextBoxI = customProps.TextBoxIconProps,
577
+ TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
578
+ _customProps$ListItem = customProps.ListItemWithIconProps,
579
+ ListItemWithIconProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
580
+ _customProps$ListItem2 = customProps.ListItemProps,
581
+ ListItemProps = _customProps$ListItem2 === void 0 ? {} : _customProps$ListItem2;
582
+ var isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
583
+ var Component = isToggleStateNeeded ? children.type : null,
584
+ componentProps = isToggleStateNeeded ? children.props : null;
585
+ var _this$state4 = this.state,
586
+ searchValue = _this$state4.searchValue,
587
+ isFetchingOptions = _this$state4.isFetchingOptions;
588
+ var commonClass = "".concat(className ? className : '', " ").concat(isPopupReady ? activeStyle ? activeStyle : '' : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : isReadOnly || !isEditable ? _ToggleDropDownModule["default"].cursorDefault : !showOnHover ? "".concat(_ToggleDropDownModule["default"].cursor, " ").concat(hoverStyle ? hoverStyle : '') : "".concat(hoverStyle ? hoverStyle : '', " ").concat(_ToggleDropDownModule["default"].cursorDefault));
589
+ var listIndex = -1;
590
+ var ariaTitleId = this.getAriaId();
591
+ var allyOptionsArr = this.getOptionsArray();
592
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
593
+ className: _ToggleDropDownModule["default"].wrapper,
594
+ onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
595
+ onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
596
+ "data-selector-id": dataSelectorId
597
+ }, ToggleDropDownProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
598
+ alignBox: "row",
599
+ onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
600
+ eleRef: getTargetRef,
601
+ align: "vertical",
602
+ isCover: false,
603
+ dataId: dataId
604
+ }, /*#__PURE__*/_react["default"].createElement("div", {
605
+ className: _ToggleDropDownModule["default"].hiddenInput
606
+ }, /*#__PURE__*/_react["default"].createElement("input", {
607
+ type: "text",
608
+ ref: this.inputRef,
609
+ onKeyDown: this.handleKeyDown,
610
+ tabIndex: "-1",
611
+ className: _ToggleDropDownModule["default"].hiddenInputElement
612
+ })), children ? isToggleStateNeeded ? /*#__PURE__*/_react["default"].createElement(Component, _extends({}, componentProps, {
613
+ isActive: isPopupOpen
614
+ })) : children : /*#__PURE__*/_react["default"].createElement(_RippleEffect["default"], {
615
+ hoverType: hoverType,
616
+ isActive: isPopupOpen,
617
+ isNeedEffect: isEditable && isNeedEffect
618
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
619
+ className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(commonClass, " ").concat(!isPopupOpen && showIconOnHover ? _ToggleDropDownModule["default"].hoverIcon : ''),
620
+ isCover: false,
621
+ alignBox: "row",
622
+ align: "vertical",
623
+ tagName: "button",
624
+ "aria-labelledby": ariaTitleId,
625
+ "aria-haspopup": true,
626
+ "aria-expanded": isPopupOpen ? true : false
627
+ }, iconName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
628
+ className: value ? _ToggleDropDownModule["default"].iconBox : ''
629
+ }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
630
+ name: iconName,
631
+ size: iconSize
632
+ })) : null, value && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
633
+ id: ariaTitleId,
634
+ "aria-hidden": true,
635
+ className: "".concat(_ToggleDropDownModule["default"].value, " toggleDropText"),
636
+ shrink: true,
637
+ tagName: "span",
638
+ "data-title": dataTitle
639
+ }, value), isEditable ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
640
+ "aria-hidden": true,
641
+ size: "6",
642
+ name: "ZD-down",
643
+ iconClass: 'toggleDropIcon'.concat(" ", _ToggleDropDownModule["default"].arrow, " ").concat(_ToggleDropDownModule["default"]["".concat(arrowIconPosition, "_arrow")]),
644
+ dataId: "statusdownarrow"
645
+ }) : null)))), isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
646
+ query: this.responsiveFunc,
647
+ responsiveId: "Helmet"
648
+ }, function (_ref4) {
649
+ var tabletMode = _ref4.tabletMode;
650
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], _extends({
651
+ boxPosition: position,
652
+ isActive: isPopupReady,
653
+ onClick: removeClose,
654
+ size: boxSize,
655
+ right: right,
656
+ left: left,
657
+ top: top,
658
+ bottom: bottom,
659
+ isArrow: isArrow,
660
+ isAnimate: true,
661
+ getRef: getContainerRef,
662
+ customClass: {
663
+ customDropBoxWrap: _ToggleDropDownModule["default"].dropBoxContainer
664
+ },
665
+ needResponsive: needResponsive,
666
+ isPadding: isPadding,
667
+ tabindex: "0",
668
+ a11y: {
669
+ role: !isSearch ? 'menu' : undefined,
670
+ ariaLabelledby: !isSearch ? ariaTitleId : undefined
671
+ },
672
+ palette: palette,
673
+ isResponsivePadding: true
674
+ }, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
675
+ className: _ToggleDropDownModule["default"].search
676
+ }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
677
+ placeHolder: placeHolderText,
678
+ onChange: _this6.handleChange,
679
+ value: searchValue,
680
+ onClear: _this6.onSearchClear,
681
+ size: searchBoxSize,
682
+ inputRef: _this6.searchInputRef,
683
+ onKeyDown: _this6.handleKeyDown,
684
+ a11y: {
685
+ role: 'combobox',
686
+ ariaOwns: ariaTitleId,
687
+ ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
688
+ ariaAutocomplete: 'list',
689
+ ariaHaspopup: true,
690
+ ariaExpanded: true
691
+ }
692
+ }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
693
+ className: _ToggleDropDownModule["default"].title
694
+ }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
695
+ text: title,
696
+ htmlId: ariaTitleId,
697
+ palette: palette,
698
+ a11y: {
699
+ role: 'heading'
700
+ },
701
+ customClass: _ToggleDropDownModule["default"].dropdown
702
+ })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
703
+ id: ariaTitleId,
704
+ flexible: true,
705
+ shrink: true,
706
+ scroll: "vertical",
707
+ preventParentScroll: "vertical",
708
+ dataId: "".concat(dataId, "_list"),
709
+ className: "".concat(tabletMode ? _ToggleDropDownModule["default"].responsivemaxHgt : _ToggleDropDownModule["default"].maxHgt),
710
+ eleRef: _this6.scrollContentRef,
711
+ onScroll: _this6.handleScroll,
712
+ role: isSearch ? 'listbox' : undefined,
713
+ "aria-labelledby": isSearch ? ariaTitleId : undefined
714
+ }, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, options.map(function (group) {
715
+ var groupName = group[groupNameKey];
716
+ var groupOptions = group[groupOptionsKey];
717
+ var needDivider = group.needDivider;
718
+ return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
719
+ key: "index".concat(groupName)
720
+ }, needDivider && /*#__PURE__*/_react["default"].createElement("div", {
721
+ className: _ToggleDropDownModule["default"].seperatedLine
722
+ }), groupName && /*#__PURE__*/_react["default"].createElement("div", {
723
+ className: _ToggleDropDownModule["default"].groupName
724
+ }, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
725
+ text: groupName,
726
+ palette: palette,
727
+ a11y: {
728
+ role: 'heading'
729
+ }
730
+ })), groupOptions && groupOptions.map(function (item) {
731
+ var iconName = item.iconName,
732
+ iconSize = item.iconSize,
733
+ iconClass = item.iconClass,
734
+ title = item.title,
735
+ _item$disableTitle = item.disableTitle,
736
+ disableTitle = _item$disableTitle === void 0 ? '' : _item$disableTitle,
737
+ _item$isDisabled = item.isDisabled,
738
+ isDisabled = _item$isDisabled === void 0 ? false : _item$isDisabled;
739
+ listIndex += 1;
740
+ return iconName ? /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
741
+ key: listIndex,
742
+ dataId: item[keyName],
743
+ value: item[keyName],
744
+ id: item[idName],
745
+ active: selectedId === item[idName],
746
+ onClick: _this6.onSelect.bind(_this6, item),
747
+ index: listIndex,
748
+ highlight: selectedIndex === listIndex,
749
+ disableTitle: disableTitle,
750
+ isDisabled: isDisabled,
751
+ iconName: iconName,
752
+ iconClass: iconClass,
753
+ iconSize: iconSize,
754
+ needTick: needTick,
755
+ needBorder: false,
756
+ onMouseEnter: _this6.handleMouseEnter,
757
+ getRef: _this6.itemRef,
758
+ title: title ? title : item[keyName],
759
+ palette: palette,
760
+ a11y: {
761
+ role: isSearch ? 'option' : 'menuitem',
762
+ ariaSelected: selectedId === item[idName],
763
+ ariaLabel: item[keyName]
764
+ }
765
+ }, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
766
+ key: listIndex,
767
+ dataId: item[keyName],
768
+ value: item[keyName],
769
+ id: item[idName],
770
+ active: selectedId === item[idName],
771
+ onClick: _this6.onSelect.bind(_this6, item),
772
+ isDisabled: isDisabled,
773
+ disableTitle: disableTitle,
774
+ index: listIndex,
775
+ highlight: selectedIndex === listIndex,
776
+ needTick: needTick,
777
+ needBorder: false,
778
+ onMouseEnter: _this6.handleMouseEnter,
779
+ getRef: _this6.itemRef,
780
+ title: title ? title : item[keyName],
781
+ palette: palette,
782
+ a11y: {
783
+ role: isSearch ? 'option' : 'menuitem',
784
+ ariaSelected: selectedId === item[idName],
785
+ ariaLabel: item[keyName]
786
+ }
787
+ }, ListItemProps));
788
+ }));
789
+ }), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
790
+ isCover: false,
791
+ align: "both"
792
+ }, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))) : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, options.map(function (item, i) {
793
+ var iconName = item.iconName,
794
+ iconSize = item.iconSize,
795
+ iconClass = item.iconClass,
796
+ title = item.title,
797
+ needDivider = item.needDivider,
798
+ _item$isDisabled2 = item.isDisabled,
799
+ isDisabled = _item$isDisabled2 === void 0 ? false : _item$isDisabled2,
800
+ _item$disableTitle2 = item.disableTitle,
801
+ disableTitle = _item$disableTitle2 === void 0 ? '' : _item$disableTitle2;
802
+ if (!needDivider) {
803
+ listIndex += 1;
804
+ }
805
+ return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
806
+ key: i
807
+ }, needDivider ? /*#__PURE__*/_react["default"].createElement("div", {
808
+ className: _ToggleDropDownModule["default"].seperatedLine
809
+ }) : iconName ? /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
810
+ dataId: item[keyName],
811
+ value: item[keyName],
812
+ id: item[idName],
813
+ active: selectedId === item[idName],
814
+ onClick: _this6.onSelect.bind(_this6, item),
815
+ index: listIndex,
816
+ disableTitle: disableTitle,
817
+ isDisabled: isDisabled,
818
+ highlight: selectedIndex === listIndex,
819
+ iconName: iconName,
820
+ iconClass: iconClass,
821
+ iconSize: iconSize,
822
+ needTick: needTick,
823
+ needBorder: false,
824
+ onMouseEnter: _this6.handleMouseEnter,
825
+ getRef: _this6.itemRef,
826
+ title: title ? title : item[keyName],
827
+ key: listIndex,
828
+ palette: palette,
829
+ a11y: {
830
+ role: isSearch ? 'option' : 'menuitem',
831
+ ariaSelected: selectedId === item[idName],
832
+ ariaLabel: item[keyName]
833
+ }
834
+ }, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
835
+ key: listIndex,
836
+ dataId: item[keyName],
837
+ value: item[keyName],
838
+ id: item[idName],
839
+ disableTitle: disableTitle,
840
+ isDisabled: isDisabled,
841
+ active: selectedId === item[idName],
842
+ onClick: _this6.onSelect.bind(_this6, item),
843
+ index: listIndex,
844
+ highlight: selectedIndex === listIndex,
845
+ needTick: needTick,
846
+ needBorder: false,
847
+ onMouseEnter: _this6.handleMouseEnter,
848
+ getRef: _this6.itemRef,
849
+ title: title ? title : item[keyName],
850
+ palette: palette,
851
+ a11y: {
852
+ role: isSearch ? 'option' : 'menuitem',
853
+ ariaSelected: selectedId === item[idName],
854
+ ariaLabel: item[keyName]
855
+ }
856
+ }, ListItemProps)));
857
+ }), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
858
+ isCover: false,
859
+ align: "both"
860
+ }, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))) : /*#__PURE__*/_react["default"].createElement(_CommonEmptyState["default"], {
861
+ className: _ToggleDropDownModule["default"].svgWrapper,
862
+ description: searchEmptyHint,
863
+ title: searchErrorText || 'No results',
864
+ size: "small",
865
+ getEmptyState: _this6.emptySearchSVG
866
+ }) : /*#__PURE__*/_react["default"].createElement("div", {
867
+ className: _ToggleDropDownModule["default"].loader
868
+ }, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))), getFooter ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getFooter()) : null));
869
+ }) : null);
870
+ }
871
+ }]);
872
+ return ToggleDropDown;
873
+ }(_react.Component);
874
+ exports.ToggleDropDown = ToggleDropDown;
875
+ ToggleDropDown.defaultProps = _defaultProps.defaultProps;
876
+ ToggleDropDown.propTypes = _propTypes.propTypes;
877
+
878
+ // if (__DOCS__) {
879
+ // ToggleDropDown.docs = {
880
+ // componentGroup: 'Molecule'
881
+ // };
882
+ // }
883
+ var _default = (0, _Popup["default"])(ToggleDropDown);
884
+ exports["default"] = _default;