@zohodesk/dot 1.2.2 → 1.2.4

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 (305) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +9 -0
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/Image/Image.js.html +1 -1
  11. package/coverage/Image/Image.module.css.html +1 -1
  12. package/coverage/Image/index.html +1 -1
  13. package/coverage/Image/props/defaultProps.js.html +1 -1
  14. package/coverage/Image/props/index.html +1 -1
  15. package/coverage/Image/props/propTypes.js.html +1 -1
  16. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  17. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  22. package/coverage/coverage-final.json +12 -12
  23. package/coverage/coverage-summary.json +12 -12
  24. package/coverage/index.html +1 -1
  25. package/es/Drawer/Drawer.js +10 -10
  26. package/es/TagWithIcon/props/propTypes.js +1 -1
  27. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -2
  28. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
  29. package/es/layout/SubtabLayout/props/propTypes.js +1 -1
  30. package/es/list/status/StatusDropdown/StatusDropdown.js +4 -1
  31. package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
  32. package/es/lookup/Lookup/Lookup.js +10 -10
  33. package/es/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
  34. package/es/setup/helptips/ListGroup/ListGroup.js +1 -1
  35. package/es/v1/Attachment/Attachment.js +88 -0
  36. package/es/v1/AttachmentViewer/AttachmentImage.js +79 -0
  37. package/es/v1/AttachmentViewer/AttachmentViewer.js +541 -0
  38. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  39. package/es/v1/Drawer/Drawer.js +11 -11
  40. package/es/v1/FlipCard/FlipCard.js +3 -3
  41. package/es/v1/FreezeLayer/FreezeLayer.js +74 -0
  42. package/es/v1/Image/Image.js +39 -0
  43. package/es/v1/Link/Link.js +2 -1
  44. package/es/v1/Loader/Loader.js +21 -0
  45. package/es/v1/Message/Message.js +118 -0
  46. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  47. package/es/v1/PlusIcon/PlusIcon.js +44 -0
  48. package/es/v1/Separator/Separator.js +60 -0
  49. package/es/v1/ToastMessage/ToastMessage.js +203 -0
  50. package/es/v1/Upload/Upload.js +76 -0
  51. package/es/v1/actions/AutoClose.js +43 -0
  52. package/es/v1/alert/index.js +2 -0
  53. package/es/v1/avatar/AvatarClose/AvatarClose.js +53 -0
  54. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +62 -0
  55. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +54 -0
  56. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +72 -0
  57. package/es/v1/avatar/AvatarThread/AvatarThread.js +79 -0
  58. package/es/v1/avatar/AvatarUser/AvatarUser.js +116 -0
  59. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +98 -0
  60. package/es/v1/avatar/index.js +7 -0
  61. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +861 -0
  62. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  63. package/es/v1/errorstate/Inconvenience/Inconvenience.js +86 -0
  64. package/es/v1/errorstate/LinkText/LinkText.js +29 -0
  65. package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +84 -0
  66. package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +83 -0
  67. package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +84 -0
  68. package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +86 -0
  69. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +84 -0
  70. package/es/v1/errorstate/WillBack/WillBack.js +75 -0
  71. package/es/v1/errorstate/index.js +8 -0
  72. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +141 -0
  73. package/es/v1/form/fields/CurrencyField/CurrencyField.js +183 -0
  74. package/es/v1/form/fields/DateField/DateField.js +195 -0
  75. package/es/v1/form/fields/FieldContainer/FieldContainer.js +71 -0
  76. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +213 -0
  77. package/es/v1/form/fields/PhoneField/PhoneField.js +189 -0
  78. package/es/v1/form/fields/RadioField/RadioField.js +116 -0
  79. package/es/v1/form/fields/SelectField/SelectField.js +183 -0
  80. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +292 -0
  81. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
  82. package/es/v1/form/fields/TextBoxField/TextBoxField.js +164 -0
  83. package/es/v1/form/fields/TextEditor/TextEditor.js +418 -0
  84. package/es/v1/form/fields/TextEditorField/TextEditorField.js +178 -0
  85. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +203 -0
  86. package/es/v1/form/fields/TextareaField/TextareaField.js +161 -0
  87. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +58 -0
  88. package/es/v1/form/fields/index.js +16 -0
  89. package/es/v1/form/layout/Field/Field.js +33 -0
  90. package/es/v1/form/layout/Section/Section.js +37 -0
  91. package/es/v1/form/layout/index.js +2 -0
  92. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +217 -0
  93. package/es/v1/layout/SetupDetailLayout/index.js +4 -0
  94. package/es/v1/layout/SubtabLayout/SubtabLayout.js +144 -0
  95. package/es/v1/layout/SubtabLayout/index.js +4 -0
  96. package/es/v1/list/AvatarFlip/AvatarFlip.js +76 -0
  97. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +28 -0
  98. package/es/v1/list/Comment/Comment.js +45 -0
  99. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +100 -0
  100. package/es/v1/list/Dot/Dot.js +22 -0
  101. package/es/v1/list/DotNew/DotNew.js +29 -0
  102. package/es/v1/list/GridStencils/GridStencils.js +34 -0
  103. package/es/v1/list/Icons/AddNewIcon.js +28 -0
  104. package/es/v1/list/Icons/CompleteIcon.js +30 -0
  105. package/es/v1/list/Icons/DeleteIcon.js +31 -0
  106. package/es/v1/list/Icons/EditIcon.js +31 -0
  107. package/es/v1/list/Icons/FloatingIcons.js +30 -0
  108. package/es/v1/list/Icons/ReadUnreadIcon.js +35 -0
  109. package/es/v1/list/Icons/SmartIcon.js +28 -0
  110. package/es/v1/list/Icons/index.js +7 -0
  111. package/es/v1/list/ListLayout/ListLayout.js +83 -0
  112. package/es/v1/list/ListStencils/ListStencils.js +47 -0
  113. package/es/v1/list/SecondaryText/AccountName.js +85 -0
  114. package/es/v1/list/SecondaryText/ContactName.js +85 -0
  115. package/es/v1/list/SecondaryText/DepartmentText.js +30 -0
  116. package/es/v1/list/SecondaryText/Email.js +55 -0
  117. package/es/v1/list/SecondaryText/HappinessRating.js +31 -0
  118. package/es/v1/list/SecondaryText/PhoneNumber.js +59 -0
  119. package/es/v1/list/SecondaryText/PriorityText.js +33 -0
  120. package/es/v1/list/SecondaryText/SecondaryText.js +40 -0
  121. package/es/v1/list/SecondaryText/StatusText.js +34 -0
  122. package/es/v1/list/SecondaryText/TicketId.js +53 -0
  123. package/es/v1/list/SecondaryText/Website.js +43 -0
  124. package/es/v1/list/SecondaryText/index.js +11 -0
  125. package/es/v1/list/SecondryPanel/SecondryPanel.js +105 -0
  126. package/es/v1/list/SentimentStatus/SentimentStatus.js +34 -0
  127. package/es/v1/list/Subject/Subject.js +57 -0
  128. package/es/v1/list/TagNew/TagNew.js +33 -0
  129. package/es/v1/list/Thread/Thread.js +43 -0
  130. package/es/v1/list/UserTime/UserTime.js +83 -0
  131. package/es/v1/list/index.js +17 -0
  132. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +465 -0
  133. package/es/v1/list/status/StatusListItem/StatusListItem.js +122 -0
  134. package/es/v1/list/status/index.js +2 -0
  135. package/es/v1/lookup/EmptyPage/EmptyPage.js +65 -0
  136. package/es/v1/lookup/Lookup/Lookup.js +12 -10
  137. package/es/v1/lookup/Section/Section.js +25 -0
  138. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +176 -0
  139. package/es/v1/lookup/header/index.js +5 -0
  140. package/es/v1/setup/header/Button/Button.js +36 -0
  141. package/es/v1/setup/header/Link/Link.js +44 -0
  142. package/es/v1/setup/header/Search/Search.js +81 -0
  143. package/es/v1/setup/header/Views/Views.js +46 -0
  144. package/es/v1/setup/header/index.js +4 -0
  145. package/es/v1/setup/helptips/Description/Description.js +24 -0
  146. package/es/v1/setup/helptips/Link/Link.js +41 -0
  147. package/es/v1/setup/helptips/ListGroup/ListGroup.js +39 -0
  148. package/es/v1/setup/helptips/Title/Title.js +24 -0
  149. package/es/v1/setup/helptips/index.js +4 -0
  150. package/es/v1/setup/index.js +6 -0
  151. package/es/v1/setup/table/index.js +5 -0
  152. package/es/v1/svg/PlusIcon.js +32 -0
  153. package/es/v1/svg/SnippetIcon.js +34 -0
  154. package/es/v1/svg/TemplateIcon.js +35 -0
  155. package/es/v1/svg/index.js +3 -0
  156. package/es/v1/version2/alertIcons/index.js +8 -0
  157. package/es/v1/version2/index.js +12 -0
  158. package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +79 -0
  159. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
  160. package/es/v1/version2/notification/DesktopNotification/DesktopNotification.js +164 -0
  161. package/lib/Drawer/Drawer.js +15 -15
  162. package/lib/TagWithIcon/props/propTypes.js +1 -1
  163. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -3
  164. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  165. package/lib/layout/SubtabLayout/props/propTypes.js +1 -1
  166. package/lib/list/status/StatusDropdown/StatusDropdown.js +4 -3
  167. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  168. package/lib/lookup/Lookup/Lookup.js +15 -15
  169. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
  170. package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
  171. package/lib/v1/Attachment/Attachment.js +140 -0
  172. package/lib/v1/AttachmentViewer/AttachmentImage.js +124 -0
  173. package/lib/v1/AttachmentViewer/AttachmentViewer.js +625 -0
  174. package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
  175. package/lib/v1/Drawer/Drawer.js +16 -16
  176. package/lib/v1/FlipCard/FlipCard.js +3 -3
  177. package/lib/v1/FreezeLayer/FreezeLayer.js +94 -0
  178. package/lib/v1/Image/Image.js +89 -0
  179. package/lib/v1/Link/Link.js +2 -1
  180. package/lib/v1/Loader/Loader.js +70 -0
  181. package/lib/v1/Message/Message.js +170 -0
  182. package/lib/v1/MessageBanner/MessageBanner.js +1 -1
  183. package/lib/v1/PlusIcon/PlusIcon.js +91 -0
  184. package/lib/v1/Separator/Separator.js +107 -0
  185. package/lib/v1/ToastMessage/ToastMessage.js +246 -0
  186. package/lib/v1/Upload/Upload.js +128 -0
  187. package/lib/v1/actions/AutoClose.js +75 -0
  188. package/lib/v1/alert/index.js +23 -0
  189. package/lib/v1/avatar/AvatarClose/AvatarClose.js +101 -0
  190. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +110 -0
  191. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +106 -0
  192. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +119 -0
  193. package/lib/v1/avatar/AvatarThread/AvatarThread.js +130 -0
  194. package/lib/v1/avatar/AvatarUser/AvatarUser.js +167 -0
  195. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +154 -0
  196. package/lib/v1/avatar/index.js +63 -0
  197. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +932 -0
  198. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  199. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +137 -0
  200. package/lib/v1/errorstate/LinkText/LinkText.js +80 -0
  201. package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +135 -0
  202. package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +134 -0
  203. package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +135 -0
  204. package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +137 -0
  205. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +135 -0
  206. package/lib/v1/errorstate/WillBack/WillBack.js +125 -0
  207. package/lib/v1/errorstate/index.js +71 -0
  208. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +197 -0
  209. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +234 -0
  210. package/lib/v1/form/fields/DateField/DateField.js +249 -0
  211. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +118 -0
  212. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +268 -0
  213. package/lib/v1/form/fields/PhoneField/PhoneField.js +236 -0
  214. package/lib/v1/form/fields/RadioField/RadioField.js +169 -0
  215. package/lib/v1/form/fields/SelectField/SelectField.js +236 -0
  216. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +346 -0
  217. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +299 -0
  218. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +219 -0
  219. package/lib/v1/form/fields/TextEditor/TextEditor.js +463 -0
  220. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +230 -0
  221. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +256 -0
  222. package/lib/v1/form/fields/TextareaField/TextareaField.js +215 -0
  223. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +110 -0
  224. package/lib/{docs/formDocs.js → v1/form/fields/index.js} +33 -25
  225. package/lib/v1/form/layout/Field/Field.js +87 -0
  226. package/lib/v1/form/layout/Section/Section.js +86 -0
  227. package/lib/v1/form/layout/index.js +23 -0
  228. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +305 -0
  229. package/lib/v1/layout/SetupDetailLayout/index.js +37 -0
  230. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +245 -0
  231. package/lib/v1/layout/SubtabLayout/index.js +37 -0
  232. package/lib/v1/list/AvatarFlip/AvatarFlip.js +131 -0
  233. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +73 -0
  234. package/lib/v1/list/Comment/Comment.js +98 -0
  235. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +157 -0
  236. package/lib/v1/list/Dot/Dot.js +72 -0
  237. package/lib/v1/list/DotNew/DotNew.js +79 -0
  238. package/lib/v1/list/GridStencils/GridStencils.js +83 -0
  239. package/lib/v1/list/Icons/AddNewIcon.js +79 -0
  240. package/lib/v1/list/Icons/CompleteIcon.js +81 -0
  241. package/lib/v1/list/Icons/DeleteIcon.js +82 -0
  242. package/lib/v1/list/Icons/EditIcon.js +82 -0
  243. package/lib/v1/list/Icons/FloatingIcons.js +87 -0
  244. package/lib/v1/list/Icons/ReadUnreadIcon.js +87 -0
  245. package/lib/v1/list/Icons/SmartIcon.js +83 -0
  246. package/lib/v1/list/Icons/index.js +63 -0
  247. package/lib/v1/list/ListLayout/ListLayout.js +145 -0
  248. package/lib/v1/list/ListStencils/ListStencils.js +96 -0
  249. package/lib/v1/list/SecondaryText/AccountName.js +136 -0
  250. package/lib/v1/list/SecondaryText/ContactName.js +144 -0
  251. package/lib/v1/list/SecondaryText/DepartmentText.js +79 -0
  252. package/lib/v1/list/SecondaryText/Email.js +103 -0
  253. package/lib/v1/list/SecondaryText/HappinessRating.js +81 -0
  254. package/lib/v1/list/SecondaryText/PhoneNumber.js +107 -0
  255. package/lib/v1/list/SecondaryText/PriorityText.js +83 -0
  256. package/lib/v1/list/SecondaryText/SecondaryText.js +88 -0
  257. package/lib/v1/list/SecondaryText/StatusText.js +84 -0
  258. package/lib/v1/list/SecondaryText/TicketId.js +104 -0
  259. package/lib/v1/list/SecondaryText/Website.js +91 -0
  260. package/lib/v1/list/SecondaryText/index.js +95 -0
  261. package/lib/v1/list/SecondryPanel/SecondryPanel.js +205 -0
  262. package/lib/v1/list/SentimentStatus/SentimentStatus.js +80 -0
  263. package/lib/v1/list/Subject/Subject.js +108 -0
  264. package/lib/v1/list/TagNew/TagNew.js +83 -0
  265. package/lib/v1/list/Thread/Thread.js +95 -0
  266. package/lib/v1/list/UserTime/UserTime.js +136 -0
  267. package/lib/v1/list/index.js +173 -0
  268. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +541 -0
  269. package/lib/v1/list/status/StatusListItem/StatusListItem.js +168 -0
  270. package/lib/v1/list/status/index.js +23 -0
  271. package/lib/v1/lookup/EmptyPage/EmptyPage.js +120 -0
  272. package/lib/v1/lookup/Lookup/Lookup.js +17 -15
  273. package/lib/v1/lookup/Section/Section.js +75 -0
  274. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +221 -0
  275. package/lib/v1/lookup/header/index.js +47 -0
  276. package/lib/v1/setup/header/Button/Button.js +83 -0
  277. package/lib/v1/setup/header/Link/Link.js +93 -0
  278. package/lib/v1/setup/header/Search/Search.js +126 -0
  279. package/lib/v1/setup/header/Views/Views.js +93 -0
  280. package/lib/v1/setup/header/index.js +39 -0
  281. package/lib/v1/setup/helptips/Description/Description.js +68 -0
  282. package/lib/v1/setup/helptips/Link/Link.js +88 -0
  283. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +88 -0
  284. package/lib/v1/setup/helptips/Title/Title.js +68 -0
  285. package/lib/v1/setup/helptips/index.js +39 -0
  286. package/lib/v1/setup/index.js +24 -0
  287. package/lib/v1/setup/table/index.js +47 -0
  288. package/lib/v1/svg/PlusIcon.js +82 -0
  289. package/lib/v1/svg/SnippetIcon.js +84 -0
  290. package/lib/v1/svg/TemplateIcon.js +85 -0
  291. package/lib/v1/svg/index.js +31 -0
  292. package/lib/v1/version2/alertIcons/index.js +71 -0
  293. package/lib/v1/version2/index.js +58 -0
  294. package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +104 -0
  295. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
  296. package/lib/v1/version2/notification/DesktopNotification/DesktopNotification.js +193 -0
  297. package/package.json +9 -9
  298. package/result.json +1 -1
  299. package/es/docs/formDocs.js +0 -15
  300. package/es/docs/generalDocs.js +0 -63
  301. package/es/docs/lookupDocs.js +0 -17
  302. package/es/docs/setupDocs.js +0 -11
  303. package/lib/docs/generalDocs.js +0 -479
  304. package/lib/docs/lookupDocs.js +0 -135
  305. package/lib/docs/setupDocs.js +0 -95
@@ -33,17 +33,18 @@ export default function Lookup(props) {
33
33
  role = 'dialog',
34
34
  ariaLabelledby,
35
35
  ariaDescribedby,
36
+ ariaLabel,
36
37
  ariaModal = isActive ? true : undefined
37
38
  } = a11y;
38
39
  const {
39
40
  focusScopeProps = {}
40
41
  } = customProps;
41
42
  const {
42
- autoFocus = true,
43
- restoreFocus = true,
44
- needArrowLoop = false,
45
- needTabLoop = true,
46
- enableEnterAction = false
43
+ needAutoFocus = true,
44
+ needRestoreFocus = true,
45
+ needListNavigation = false,
46
+ needFocusLoop = true,
47
+ needEnterAction = false
47
48
  } = focusScopeProps;
48
49
  const createRef = useRef(null);
49
50
  const handleKeyDown = useCallback(e => {
@@ -68,6 +69,7 @@ export default function Lookup(props) {
68
69
  role: role,
69
70
  "aria-labelledby": ariaLabelledby,
70
71
  "aria-describedby": ariaDescribedby,
72
+ "aria-label": ariaLabel,
71
73
  "aria-modal": ariaModal,
72
74
  id: htmlId,
73
75
  className: `${style.box} ${style[`${size}Size`]}`,
@@ -88,13 +90,13 @@ export default function Lookup(props) {
88
90
  className: style.container,
89
91
  dataId: "fldValue"
90
92
  }, needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
91
- needTabLoop: needTabLoop,
92
- needArrowLoop: needArrowLoop,
93
+ needFocusLoop: needFocusLoop,
94
+ needListNavigation: needListNavigation,
93
95
  elementRef: createRef,
94
- autoFocus: autoFocus,
95
- restoreFocus: restoreFocus,
96
+ needAutoFocus: needAutoFocus,
97
+ needRestoreFocus: needRestoreFocus,
96
98
  onClose: onClose,
97
- enableEnterAction: enableEnterAction
99
+ needEnterAction: needEnterAction
98
100
  }, content) : content));
99
101
  }
100
102
  Lookup.propTypes = propTypes;
@@ -0,0 +1,25 @@
1
+ import React, { Component } from 'react';
2
+ import { propTypes } from '../../../lookup/Section/props/propTypes';
3
+ import { Container, Box } from '@zohodesk/components/lib/Layout';
4
+ import style from '../../../lookup/Section/LookupSection.module.css';
5
+ export default class Section extends Component {
6
+ constructor(props) {
7
+ super(props);
8
+ }
9
+
10
+ render() {
11
+ let {
12
+ alignBox,
13
+ className
14
+ } = this.props;
15
+ return /*#__PURE__*/React.createElement(Container, {
16
+ "data-drag-container": "true",
17
+ alignBox: alignBox,
18
+ className: `${style.section} ${className ? className : ''}`
19
+ }, /*#__PURE__*/React.createElement(Box, {
20
+ flexible: true
21
+ }, this.props.children));
22
+ }
23
+
24
+ }
25
+ Section.propTypes = propTypes;
@@ -0,0 +1,176 @@
1
+ /**** Libraries ****/
2
+ import React from 'react';
3
+ import { defaultProps } from '../../../../lookup/header/ViewDropDown/props/defaultProps';
4
+ import { propTypes } from '../../../../lookup/header/ViewDropDown/props/propTypes';
5
+ /**** Components ****/
6
+
7
+ import { SelectComponent } from '@zohodesk/components/lib/Select/Select';
8
+ import Popup from '@zohodesk/components/lib/Popup/Popup';
9
+ import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
10
+ import DropDownSearch from '@zohodesk/components/lib/DropDown/DropDownSearch';
11
+ import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
12
+ import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
13
+ import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
14
+ /**** Icons ****/
15
+
16
+ import { Icon } from '@zohodesk/icons';
17
+ import { Container, Box } from '@zohodesk/components/lib/Layout';
18
+ import Loader from '@zohodesk/svg/lib/Loader/Loader';
19
+ import style from '../../../../lookup/header/ViewDropDown/ViewDropDown.module.css';
20
+ /* eslint-disable react/forbid-component-props */
21
+
22
+ /*eslint-disable react/sort-prop-types*/
23
+
24
+ class DropDown extends SelectComponent {
25
+ constructor(props) {
26
+ super(props);
27
+ this.onSearchKeyDown = this.onSearchKeyDown.bind(this);
28
+ }
29
+
30
+ onSearchKeyDown(e) {
31
+ const {
32
+ closePopupOnly
33
+ } = this.props;
34
+
35
+ if (e.keyCode === 27) {
36
+ closePopupOnly && closePopupOnly(e);
37
+ } else {
38
+ this.handleKeyDown(e);
39
+ }
40
+ }
41
+
42
+ responsiveFunc(_ref) {
43
+ let {
44
+ mediaQueryOR
45
+ } = _ref;
46
+ return {
47
+ tabletMode: mediaQueryOR([{
48
+ maxWidth: 700
49
+ }])
50
+ };
51
+ }
52
+
53
+ render() {
54
+ var _this = this;
55
+
56
+ const {
57
+ needSearch,
58
+ dropBoxSize,
59
+ emptyMessage,
60
+ searchEmptyMessage,
61
+ position,
62
+ defaultDropBoxPosition,
63
+ getTargetRef,
64
+ getContainerRef,
65
+ isPopupOpen,
66
+ removeClose,
67
+ isPopupReady,
68
+ animationStyle,
69
+ searchBoxSize,
70
+ searchBoxVariant,
71
+ searchBoxPlaceHolder,
72
+ maxLength
73
+ } = this.props;
74
+ const {
75
+ hoverIndex,
76
+ selected,
77
+ searchStr,
78
+ isFetchingOptions,
79
+ selectedId
80
+ } = this.state;
81
+ const suggestions = this.handleFilterSuggestions();
82
+ return /*#__PURE__*/React.createElement("div", {
83
+ className: style.container
84
+ }, /*#__PURE__*/React.createElement("div", {
85
+ onClick: this.togglePopup,
86
+ ref: getTargetRef
87
+ }, /*#__PURE__*/React.createElement("div", {
88
+ className: `${style.labelCnt} ${isPopupOpen ? style.focused : ''}`
89
+ }, /*#__PURE__*/React.createElement("span", {
90
+ className: style.labelText,
91
+ "data-title": selected
92
+ }, selected), /*#__PURE__*/React.createElement(Icon, {
93
+ name: "ZD-down",
94
+ size: "7",
95
+ iconClass: style.arrowIcon
96
+ }))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
97
+ query: this.responsiveFunc,
98
+ responsiveId: "Helmet"
99
+ }, _ref2 => {
100
+ let {
101
+ tabletMode
102
+ } = _ref2;
103
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
104
+ isAnimate: true,
105
+ isArrow: false,
106
+ isActive: isPopupReady,
107
+ boxPosition: position || `${defaultDropBoxPosition}Center`,
108
+ getRef: getContainerRef,
109
+ onClick: removeClose,
110
+ animationStyle: animationStyle,
111
+ size: "large",
112
+ alignBox: "row",
113
+ isResponsivePadding: true
114
+ }, /*#__PURE__*/React.createElement(Box, {
115
+ flexible: true
116
+ }, /*#__PURE__*/React.createElement(Card, null, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(DropDownSearch, {
117
+ value: searchStr,
118
+ onChange: this.handleSearch,
119
+ onKeyDown: this.onSearchKeyDown,
120
+ getRef: this.searchInputRef,
121
+ size: searchBoxSize,
122
+ variant: searchBoxVariant,
123
+ placeHolder: searchBoxPlaceHolder,
124
+ maxLength: maxLength
125
+ })) : null, /*#__PURE__*/React.createElement(CardContent, {
126
+ shrink: true,
127
+ eleRef: this.suggestionContainerRef,
128
+ customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
129
+ }, suggestions.length ? /*#__PURE__*/React.createElement("div", {
130
+ className: style.listItemContainer
131
+ }, suggestions.map(function () {
132
+ let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
133
+ let index = arguments.length > 1 ? arguments[1] : undefined;
134
+ const {
135
+ id,
136
+ value
137
+ } = option;
138
+ return /*#__PURE__*/React.createElement(ListItem, {
139
+ active: id === selectedId,
140
+ getRef: _this.suggestionItemRef,
141
+ highlight: hoverIndex === index ? true : false,
142
+ id: id,
143
+ key: `${id}dropDown`,
144
+ onClick: _this.handleChange,
145
+ onMouseEnter: _this.handleMouseEnter,
146
+ size: "medium",
147
+ value: value,
148
+ index: index,
149
+ needTick: true,
150
+ needBorder: false
151
+ });
152
+ })) : isFetchingOptions ? /*#__PURE__*/React.createElement(Container, {
153
+ align: "both",
154
+ className: style.loader
155
+ }, /*#__PURE__*/React.createElement(Loader, null)) : searchStr ? /*#__PURE__*/React.createElement("div", {
156
+ className: style.emptyState
157
+ }, searchEmptyMessage || emptyMessage) : /*#__PURE__*/React.createElement("div", {
158
+ className: style.emptyState
159
+ }, emptyMessage)))));
160
+ }) : null);
161
+ }
162
+
163
+ }
164
+
165
+ DropDown.propTypes = propTypes;
166
+ DropDown.defaultProps = defaultProps;
167
+ const ViewDropDown = Popup(DropDown);
168
+ ViewDropDown.defaultProps = DropDown.defaultProps; // if (__DOCS__) {
169
+ // DropDown.docs = {
170
+ // componentGroup: 'Lookup'
171
+ // };
172
+ // // eslint-disable-next-line react/forbid-foreign-prop-types
173
+ // ViewDropDown.propTypes = DropDown.propTypes;
174
+ // }
175
+
176
+ export default ViewDropDown;
@@ -0,0 +1,5 @@
1
+ export { default as Close } from './Close/Close';
2
+ export { default as ModuleHeader } from './ModuleHeader/ModuleHeader';
3
+ export { default as Search } from './Search/Search';
4
+ export { default as TicketHeader } from './TicketHeader/TicketHeader';
5
+ export { default as ViewDropDown } from './ViewDropDown/ViewDropDown';
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../../../setup/header/Button/props/defaultProps';
3
+ import { propTypes } from '../../../../setup/header/Button/props/propTypes';
4
+ import GenButton from '@zohodesk/components/lib/Button/Button';
5
+ import style from '../../../../setup/header/Button/HeaderButton.module.css';
6
+ export default class Button extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ }
10
+
11
+ render() {
12
+ let {
13
+ palette,
14
+ text,
15
+ onClick,
16
+ id
17
+ } = this.props;
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ className: style.container
20
+ }, /*#__PURE__*/React.createElement(GenButton, {
21
+ id: id,
22
+ onClick: onClick,
23
+ palette: palette,
24
+ size: "medium",
25
+ text: text
26
+ }));
27
+ }
28
+
29
+ }
30
+ Button.defaultProps = defaultProps;
31
+ Button.propTypes = propTypes; // if (__DOCS__) {
32
+ // Button.docs = {
33
+ // componentGroup: 'Header',
34
+ // folderName: 'Setup'
35
+ // };
36
+ // }
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../../../setup/header/Link/props/defaultProps';
3
+ import { propTypes } from '../../../../setup/header/Link/props/propTypes';
4
+ import { Icon } from '@zohodesk/icons';
5
+ import { Box } from '@zohodesk/components/lib/Layout';
6
+ import ExternalLink from '../../../ExternalLink/ExternalLink';
7
+ import style from '../../../../setup/header/Link/HeaderLink.module.css';
8
+ export default class Link extends React.Component {
9
+ constructor(props) {
10
+ super(props);
11
+ }
12
+
13
+ render() {
14
+ let {
15
+ url,
16
+ text,
17
+ iconName,
18
+ iconClass,
19
+ iconSize
20
+ } = this.props;
21
+ return /*#__PURE__*/React.createElement(ExternalLink, {
22
+ className: style.container,
23
+ href: url
24
+ }, /*#__PURE__*/React.createElement(Box, {
25
+ className: style.icon
26
+ }, /*#__PURE__*/React.createElement(Icon, {
27
+ isBold: true,
28
+ name: iconName,
29
+ size: iconSize,
30
+ iconClass: iconClass ? iconClass : ''
31
+ })), /*#__PURE__*/React.createElement(Box, {
32
+ className: style.text,
33
+ flexible: true
34
+ }, text));
35
+ }
36
+
37
+ }
38
+ Link.defaultProps = defaultProps;
39
+ Link.propTypes = propTypes; // if (__DOCS__) {
40
+ // Link.docs = {
41
+ // componentGroup: 'Header',
42
+ // folderName: 'Setup'
43
+ // };
44
+ // }
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../../../setup/header/Search/props/defaultProps';
3
+ import { propTypes } from '../../../../setup/header/Search/props/propTypes';
4
+ import { Icon } from '@zohodesk/icons';
5
+ import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
6
+ import style from '../../../../setup/header/Search/Search.module.css';
7
+ export default class Search extends React.Component {
8
+ constructor(props) {
9
+ super(props);
10
+ let {
11
+ value
12
+ } = this.props;
13
+ this.state = {
14
+ value: value || '',
15
+ isFocus: false
16
+ };
17
+ this.onFocus = this.onFocus.bind(this);
18
+ this.onBlur = this.onBlur.bind(this);
19
+ }
20
+
21
+ onFocus(id, name, value) {
22
+ let {
23
+ onFocus
24
+ } = this.props;
25
+ this.setState({
26
+ isFocus: true
27
+ });
28
+ onFocus && onFocus(id, name, value);
29
+ }
30
+
31
+ onBlur(id, name, value) {
32
+ let {
33
+ onBlur
34
+ } = this.props;
35
+ this.state.value == '' && this.setState({
36
+ isFocus: false
37
+ });
38
+ onBlur && onBlur(id, name, value);
39
+ }
40
+
41
+ render() {
42
+ let {
43
+ placeHolder,
44
+ maxLength,
45
+ value,
46
+ onChange,
47
+ onKeyPress,
48
+ customClass
49
+ } = this.props;
50
+ let {
51
+ isFocus
52
+ } = this.state;
53
+ return /*#__PURE__*/React.createElement("div", {
54
+ className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
55
+ }, /*#__PURE__*/React.createElement(TextBox, {
56
+ placeHolder: placeHolder,
57
+ customClass: style.input,
58
+ maxLength: maxLength,
59
+ value: value,
60
+ onChange: onChange,
61
+ onKeyUp: onKeyPress,
62
+ onFocus: this.onFocus,
63
+ needAppearance: false,
64
+ onBlur: this.onBlur
65
+ }), value != '' && value ? /*#__PURE__*/React.createElement("span", {
66
+ className: style.icon,
67
+ onClick: this.onBlur
68
+ }, /*#__PURE__*/React.createElement(Icon, {
69
+ name: "ZD-close",
70
+ size: "19"
71
+ })) : null);
72
+ }
73
+
74
+ }
75
+ Search.propTypes = propTypes;
76
+ Search.defaultProps = defaultProps; // if (__DOCS__) {
77
+ // Search.docs = {
78
+ // componentGroup: 'Header',
79
+ // folderName: 'Setup'
80
+ // };
81
+ // }
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../../../setup/header/Views/props/defaultProps';
3
+ import { propTypes } from '../../../../setup/header/Views/props/propTypes';
4
+ import style from '../../../../setup/header/Views/Views.module.css';
5
+ import { Icon } from '@zohodesk/icons';
6
+ export default class Views extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ }
10
+
11
+ render() {
12
+ let {
13
+ isGrid,
14
+ isList,
15
+ gridTitle,
16
+ listTitle,
17
+ onListClick,
18
+ onGridClick
19
+ } = this.props;
20
+ return /*#__PURE__*/React.createElement("span", {
21
+ className: style.container
22
+ }, /*#__PURE__*/React.createElement("span", {
23
+ className: `${style.icon} ${style.first} ${isList ? style.active : ''}`,
24
+ "data-title": !isList ? listTitle : null,
25
+ onClick: onListClick
26
+ }, /*#__PURE__*/React.createElement(Icon, {
27
+ name: "ZD-list22",
28
+ size: "10"
29
+ })), /*#__PURE__*/React.createElement("span", {
30
+ className: `${style.icon} ${style.last} ${isGrid ? style.active : ''}`,
31
+ "data-title": !isGrid ? gridTitle : null,
32
+ onClick: onGridClick
33
+ }, /*#__PURE__*/React.createElement(Icon, {
34
+ name: "ZD-grid",
35
+ size: "11"
36
+ })));
37
+ }
38
+
39
+ }
40
+ Views.propTypes = propTypes;
41
+ Views.defaultProps = defaultProps; // if (__DOCS__) {
42
+ // Views.docs = {
43
+ // componentGroup: 'Header',
44
+ // folderName: 'Setup'
45
+ // };
46
+ // }
@@ -0,0 +1,4 @@
1
+ export { default as Button } from './Button/Button';
2
+ export { default as Link } from './Link/Link';
3
+ export { default as Search } from './Search/Search';
4
+ export { default as Views } from './Views/Views';
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { propTypes } from '../../../../setup/helptips/Description/props/propTypes';
3
+ import style from '../../../../setup/helptips/Description/HelpTipsDescription.module.css';
4
+ export default class Description extends React.Component {
5
+ constructor(props) {
6
+ super(props);
7
+ }
8
+
9
+ render() {
10
+ let {
11
+ text
12
+ } = this.props;
13
+ return /*#__PURE__*/React.createElement("p", {
14
+ className: style.text
15
+ }, text);
16
+ }
17
+
18
+ }
19
+ Description.propTypes = propTypes; // if (__DOCS__) {
20
+ // Description.docs = {
21
+ // componentGroup: 'HelpTips',
22
+ // folderName: 'Setup'
23
+ // };
24
+ // }
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { propTypes } from '../../../../setup/helptips/Link/props/propTypes';
3
+ import style from '../../../../setup/helptips/Link/HelpTipsLink.module.css';
4
+ import ExternalLink from '../../../ExternalLink/ExternalLink';
5
+ export default class Link extends React.Component {
6
+ constructor(props) {
7
+ super(props);
8
+ }
9
+
10
+ render() {
11
+ let {
12
+ text,
13
+ url,
14
+ onClick,
15
+ isDangerous = false
16
+ } = this.props;
17
+
18
+ if (isDangerous) {
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ className: style.container,
21
+ onClick: onClick,
22
+ dangerouslySetInnerHTML: {
23
+ __html: text
24
+ }
25
+ });
26
+ }
27
+
28
+ return /*#__PURE__*/React.createElement(ExternalLink, {
29
+ href: url,
30
+ onClick: onClick,
31
+ className: style.text
32
+ }, text);
33
+ }
34
+
35
+ }
36
+ Link.propTypes = propTypes; // if (__DOCS__) {
37
+ // Link.docs = {
38
+ // componentGroup: 'HelpTips',
39
+ // folderName: 'Setup'
40
+ // };
41
+ // }
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { propTypes } from '../../../../setup/helptips/ListGroup/props/propTypes';
3
+ import style from '../../../../setup/helptips/ListGroup/ListGroup.module.css';
4
+ export default class ListGroup extends React.Component {
5
+ constructor(props) {
6
+ super(props);
7
+ }
8
+
9
+ render() {
10
+ let {
11
+ isOrder,
12
+ data
13
+ } = this.props;
14
+
15
+ if (isOrder) {
16
+ return /*#__PURE__*/React.createElement("ol", {
17
+ className: style.container,
18
+ type: "1"
19
+ }, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
20
+ className: style.orderData,
21
+ key: index
22
+ }, text)));
23
+ }
24
+
25
+ return /*#__PURE__*/React.createElement("ul", {
26
+ className: style.container
27
+ }, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
28
+ className: style.unOrderData,
29
+ key: index
30
+ }, data)));
31
+ }
32
+
33
+ }
34
+ ListGroup.propTypes = propTypes; // if (__DOCS__) {
35
+ // ListGroup.docs = {
36
+ // componentGroup: 'HelpTips',
37
+ // folderName: 'Setup'
38
+ // };
39
+ // }
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { propTypes } from '../../../../setup/helptips/Title/props/propTypes';
3
+ import style from '../../../../setup/helptips/Title/HelpTipsTitle.module.css';
4
+ export default class Title extends React.Component {
5
+ constructor(props) {
6
+ super(props);
7
+ }
8
+
9
+ render() {
10
+ let {
11
+ text
12
+ } = this.props;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: style.title
15
+ }, text);
16
+ }
17
+
18
+ }
19
+ Title.propTypes = propTypes; // if (__DOCS__) {
20
+ // Title.docs = {
21
+ // componentGroup: 'HelpTips',
22
+ // folderName: 'Setup'
23
+ // };
24
+ // }
@@ -0,0 +1,4 @@
1
+ export { default as Description } from './Description/Description';
2
+ export { default as Link } from './Link/Link';
3
+ export { default as ListGroup } from './ListGroup/ListGroup';
4
+ export { default as Title } from './Title/Title';
@@ -0,0 +1,6 @@
1
+ import * as _header from './header';
2
+ export { _header as header };
3
+ import * as _helptips from './helptips';
4
+ export { _helptips as helptips };
5
+ import * as _table from './table';
6
+ export { _table as table };
@@ -0,0 +1,5 @@
1
+ export { default as Table } from './Table/Table';
2
+ export { default as TableBody } from './TableBody/TableBody';
3
+ export { default as TableData } from './TableData/TableData';
4
+ export { default as TableHead } from './TableHead/TableHead';
5
+ export { default as TableRow } from './TableRow/TableRow';
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { PlusIcon_defaultProps } from '../../svg/props/defaultProps';
3
+ import { PlusIcon_propTypes } from '../../svg/props/propTypes';
4
+ import SVG from '@zohodesk/svg/lib/SVG/SVG';
5
+ export default class PlusIcon extends React.Component {
6
+ render() {
7
+ let {
8
+ isRender,
9
+ isSymbol,
10
+ className
11
+ } = this.props;
12
+ return /*#__PURE__*/React.createElement(SVG, {
13
+ viewBox: "0 0 32 32",
14
+ name: "PlusIcon",
15
+ isRender: isRender,
16
+ isSymbol: isSymbol,
17
+ className: className
18
+ }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
19
+ style: {
20
+ fill: '#767d89'
21
+ },
22
+ d: "M16,2.7c0.4,0,0.7,0.1,0.9,0.4s0.4,0.6,0.4,0.9v10.7H28c0.4,0,0.7,0.1,0.9,0.4c0.3,0.3,0.4,0.6,0.4,0.9 c0,0.4-0.1,0.7-0.4,0.9c-0.3,0.3-0.6,0.4-0.9,0.4H17.3V28c0,0.4-0.1,0.7-0.4,0.9c-0.3,0.3-0.6,0.4-0.9,0.4c-0.4,0-0.7-0.1-0.9-0.4 c-0.3-0.3-0.4-0.6-0.4-0.9V17.3H4c-0.4,0-0.7-0.1-0.9-0.4S2.7,16.4,2.7,16s0.1-0.7,0.4-0.9c0.3-0.3,0.6-0.4,0.9-0.4h10.7V4 c0-0.4,0.1-0.7,0.4-0.9C15.3,2.8,15.6,2.7,16,2.7z"
23
+ })));
24
+ }
25
+
26
+ }
27
+ PlusIcon.propTypes = PlusIcon_propTypes;
28
+ PlusIcon.defaultProps = PlusIcon_defaultProps; // if (__DOCS__) {
29
+ // PlusIcon.docs = {
30
+ // componentGroup: 'SVG'
31
+ // };
32
+ // }