@zohodesk/dot 1.9.2 → 1.9.3

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 (885) hide show
  1. package/README.md +15 -0
  2. package/_react-cli.config.js +27 -0
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
  4. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
  5. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
  6. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
  7. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
  8. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
  9. package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
  15. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
  16. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
  17. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
  18. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
  19. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
  21. package/cbt.config.js +41 -0
  22. package/es/AlphabeticList/AlphabeticList.module.css +0 -0
  23. package/es/AttachmentViewer/AttachmentViewer.js +20 -24
  24. package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +1 -2
  25. package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +39 -38
  26. package/es/ChannelIcon/ChannelIcon.js +11 -13
  27. package/es/DotProvider/DotProvider.js +4 -2
  28. package/es/Drawer/Drawer.js +5 -4
  29. package/es/ExternalLink/ExternalLink.js +5 -4
  30. package/es/ExternalLink/ExternalLink.module.css +0 -0
  31. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  32. package/es/FlipCard/FlipCard.js +12 -14
  33. package/es/IconButton/IconButton.js +5 -4
  34. package/es/Link/Link.js +10 -8
  35. package/es/Message/Message.js +5 -4
  36. package/es/Onboarding/Onboarding.js +25 -33
  37. package/es/PlusIcon/PlusIcon.js +0 -0
  38. package/es/Separator/Separator.module.css +5 -5
  39. package/es/TagWithIcon/TagWithIcon.module.css +2 -2
  40. package/es/ToastMessage/ToastMessage.js +4 -2
  41. package/es/ToastMessage/ToastMessage.module.css +0 -0
  42. package/es/actions/AutoClose.js +1 -2
  43. package/es/alert/AlertLookup/AlertLookup.js +12 -14
  44. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  45. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  46. package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
  47. package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
  48. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  49. package/es/avatar/AvatarUser/AvatarUser.js +9 -10
  50. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
  51. package/es/dot_layer.module.css +1 -1
  52. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
  53. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  54. package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
  55. package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  56. package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
  57. package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
  58. package/es/form/fields/DateField/DateField.js +13 -14
  59. package/es/form/fields/Fields.module.css +4 -1
  60. package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
  61. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  62. package/es/form/fields/RadioField/RadioField.js +17 -19
  63. package/es/form/fields/SelectField/SelectField.js +13 -14
  64. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -20
  65. package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  66. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  67. package/es/form/fields/TextBoxField/TextBoxField.js +13 -14
  68. package/es/form/fields/TextEditor/TextEditor.module.css +0 -0
  69. package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
  70. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
  71. package/es/form/fields/TextareaField/TextareaField.js +14 -15
  72. package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
  73. package/es/form/layout/Field/Field.js +0 -0
  74. package/es/form/layout/Section/Section.js +0 -0
  75. package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
  76. package/es/list/DepartmentDropDown/DepartmentDropDown.js +17 -10
  77. package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
  78. package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
  79. package/es/list/GridStencils/GridStencils.module.css +14 -5
  80. package/es/list/ListLayout/ListLayout.js +5 -4
  81. package/es/list/SecondaryText/AccountName.js +6 -4
  82. package/es/list/SecondaryText/ContactName.js +6 -4
  83. package/es/list/SecondaryText/Email.js +5 -4
  84. package/es/list/SecondaryText/PhoneNumber.js +5 -4
  85. package/es/list/SecondaryText/TicketId.js +7 -7
  86. package/es/list/SecondaryText/Website.js +0 -0
  87. package/es/list/SecondryPanel/SecondryPanel.js +0 -0
  88. package/es/list/Subject/Subject.js +5 -4
  89. package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
  90. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  91. package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
  92. package/es/list/status/StatusListItem/StatusListItem.js +11 -7
  93. package/es/list/status/StatusListItem/StatusListItem.module.css +38 -17
  94. package/es/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
  95. package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
  96. package/es/list/status/StatusListItem/props/propTypes.js +2 -1
  97. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  98. package/es/lookup/Lookup/Lookup.js +5 -4
  99. package/es/lookup/Lookup/Lookup.module.css +0 -0
  100. package/es/lookup/header/Search/Search.js +3 -5
  101. package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
  102. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
  103. package/es/setup/helptips/Link/Link.js +0 -0
  104. package/es/setup/helptips/Title/Title.js +0 -0
  105. package/es/setup/table/Text/TableText.module.css +0 -0
  106. package/es/setup/table/Text/Text.js +0 -0
  107. package/es/version2/GlobalNotification/GlobalNotification.js +9 -8
  108. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  109. package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
  110. package/lib/AlphabeticList/AlphabeticList.module.css +0 -0
  111. package/lib/Drawer/Drawer.js +0 -0
  112. package/lib/ExternalLink/ExternalLink.js +0 -0
  113. package/lib/ExternalLink/ExternalLink.module.css +0 -0
  114. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  115. package/lib/Link/Link.js +0 -0
  116. package/lib/PlusIcon/PlusIcon.js +0 -0
  117. package/lib/Separator/Separator.module.css +5 -5
  118. package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
  119. package/lib/ToastMessage/ToastMessage.js +0 -0
  120. package/lib/ToastMessage/ToastMessage.module.css +0 -0
  121. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  122. package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
  123. package/lib/dot_layer.module.css +1 -1
  124. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  125. package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
  126. package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  127. package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  128. package/lib/form/fields/Fields.module.css +4 -1
  129. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
  130. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  131. package/lib/form/fields/TextEditor/TextEditor.module.css +0 -0
  132. package/lib/form/layout/Field/Field.js +0 -0
  133. package/lib/form/layout/Section/Section.js +0 -0
  134. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +16 -10
  135. package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
  136. package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
  137. package/lib/list/GridStencils/GridStencils.module.css +14 -5
  138. package/lib/list/SecondaryText/Website.js +0 -0
  139. package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
  140. package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
  141. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  142. package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
  143. package/lib/list/status/StatusListItem/StatusListItem.js +7 -3
  144. package/lib/list/status/StatusListItem/StatusListItem.module.css +38 -17
  145. package/lib/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
  146. package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
  147. package/lib/list/status/StatusListItem/props/propTypes.js +2 -1
  148. package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
  149. package/lib/lookup/Lookup/Lookup.js +0 -0
  150. package/lib/lookup/Lookup/Lookup.module.css +0 -0
  151. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
  152. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
  153. package/lib/setup/helptips/Link/Link.js +0 -0
  154. package/lib/setup/helptips/Title/Title.js +0 -0
  155. package/lib/setup/table/Text/TableText.module.css +0 -0
  156. package/lib/setup/table/Text/Text.js +0 -0
  157. package/package.json +16 -20
  158. package/es/v1/ActionButton/ActionButton.js +0 -155
  159. package/es/v1/ActionButton/props/defaultProps.js +0 -19
  160. package/es/v1/ActionButton/props/propTypes.js +0 -37
  161. package/es/v1/AlphabeticList/AlphabeticList.js +0 -94
  162. package/es/v1/AlphabeticList/props/defaultProps.js +0 -12
  163. package/es/v1/AlphabeticList/props/propTypes.js +0 -23
  164. package/es/v1/Attachment/Attachment.js +0 -96
  165. package/es/v1/Attachment/props/defaultProps.js +0 -8
  166. package/es/v1/Attachment/props/propTypes.js +0 -18
  167. package/es/v1/AttachmentViewer/AttachmentImage.js +0 -81
  168. package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -626
  169. package/es/v1/AttachmentViewer/props/defaultProps.js +0 -11
  170. package/es/v1/AttachmentViewer/props/propTypes.js +0 -36
  171. package/es/v1/ChannelIcon/ChannelIcon.js +0 -93
  172. package/es/v1/ChannelIcon/props/defaultProps.js +0 -7
  173. package/es/v1/ChannelIcon/props/propTypes.js +0 -25
  174. package/es/v1/Drawer/Drawer.js +0 -270
  175. package/es/v1/Drawer/props/defaultProps.js +0 -23
  176. package/es/v1/Drawer/props/propTypes.js +0 -53
  177. package/es/v1/ExternalLink/ExternalLink.js +0 -48
  178. package/es/v1/ExternalLink/props/defaultProps.js +0 -5
  179. package/es/v1/ExternalLink/props/propTypes.js +0 -12
  180. package/es/v1/FlipCard/FlipCard.js +0 -132
  181. package/es/v1/FlipCard/props/defaultProps.js +0 -5
  182. package/es/v1/FlipCard/props/propTypes.js +0 -37
  183. package/es/v1/FormAction/FormAction.js +0 -75
  184. package/es/v1/FormAction/props/defaultProps.js +0 -5
  185. package/es/v1/FormAction/props/propTypes.js +0 -8
  186. package/es/v1/FreezeLayer/FreezeLayer.js +0 -74
  187. package/es/v1/FreezeLayer/props/defaultProps.js +0 -9
  188. package/es/v1/FreezeLayer/props/propTypes.js +0 -19
  189. package/es/v1/GlobalNotification/GlobalNotification.js +0 -144
  190. package/es/v1/GlobalNotification/props/defaultProps.js +0 -6
  191. package/es/v1/GlobalNotification/props/propTypes.js +0 -42
  192. package/es/v1/IconButton/IconButton.js +0 -112
  193. package/es/v1/IconButton/props/defaultProps.js +0 -17
  194. package/es/v1/IconButton/props/propTypes.js +0 -33
  195. package/es/v1/Image/Image.js +0 -36
  196. package/es/v1/Image/props/defaultProps.js +0 -4
  197. package/es/v1/Image/props/propTypes.js +0 -15
  198. package/es/v1/ImportantNotes/ImportantNotes.js +0 -41
  199. package/es/v1/ImportantNotes/props/defaultProps.js +0 -6
  200. package/es/v1/ImportantNotes/props/propTypes.js +0 -10
  201. package/es/v1/Link/Link.js +0 -93
  202. package/es/v1/Link/props/defaultProps.js +0 -5
  203. package/es/v1/Link/props/propTypes.js +0 -18
  204. package/es/v1/Loader/Loader.js +0 -15
  205. package/es/v1/Message/Message.js +0 -91
  206. package/es/v1/Message/props/defaultProps.js +0 -4
  207. package/es/v1/Message/props/propTypes.js +0 -20
  208. package/es/v1/MessageBanner/MessageBanner.js +0 -60
  209. package/es/v1/MessageBanner/props/defaultProps.js +0 -7
  210. package/es/v1/MessageBanner/props/propTypes.js +0 -13
  211. package/es/v1/NewStar/NewStar.js +0 -61
  212. package/es/v1/NewStar/props/defaultProps.js +0 -4
  213. package/es/v1/NewStar/props/propTypes.js +0 -6
  214. package/es/v1/PlusIcon/PlusIcon.js +0 -32
  215. package/es/v1/PlusIcon/props/defaultProps.js +0 -8
  216. package/es/v1/PlusIcon/props/propTypes.js +0 -11
  217. package/es/v1/Separator/Separator.js +0 -53
  218. package/es/v1/Separator/props/defaultProps.js +0 -12
  219. package/es/v1/Separator/props/propTypes.js +0 -11
  220. package/es/v1/TagWithIcon/TagWithIcon.js +0 -39
  221. package/es/v1/TagWithIcon/props/defaultProps.js +0 -8
  222. package/es/v1/TagWithIcon/props/propTypes.js +0 -13
  223. package/es/v1/ToastMessage/ToastMessage.js +0 -201
  224. package/es/v1/ToastMessage/props/defaultProps.js +0 -18
  225. package/es/v1/ToastMessage/props/propTypes.js +0 -40
  226. package/es/v1/Upload/Upload.js +0 -69
  227. package/es/v1/Upload/props/defaultProps.js +0 -7
  228. package/es/v1/Upload/props/propTypes.js +0 -17
  229. package/es/v1/actions/AutoClose.js +0 -44
  230. package/es/v1/actions/props/defaultProps.js +0 -3
  231. package/es/v1/actions/props/propTypes.js +0 -8
  232. package/es/v1/alert/AlertClose/AlertClose.js +0 -43
  233. package/es/v1/alert/AlertClose/props/propTypes.js +0 -8
  234. package/es/v1/alert/AlertHeader/AlertHeader.js +0 -82
  235. package/es/v1/alert/AlertHeader/props/defaultProps.js +0 -12
  236. package/es/v1/alert/AlertHeader/props/propTypes.js +0 -20
  237. package/es/v1/alert/AlertLookup/AlertLookup.js +0 -166
  238. package/es/v1/alert/AlertLookup/props/defaultProps.js +0 -13
  239. package/es/v1/alert/AlertLookup/props/propTypes.js +0 -36
  240. package/es/v1/alert/alertIcons/AlarmAlertIcon.js +0 -65
  241. package/es/v1/alert/alertIcons/AlertIcons.js +0 -57
  242. package/es/v1/alert/alertIcons/DangerAlertIcon.js +0 -65
  243. package/es/v1/alert/alertIcons/ErrorAlertIcon.js +0 -70
  244. package/es/v1/alert/alertIcons/InfoAlertIcon.js +0 -74
  245. package/es/v1/alert/alertIcons/NotificationAlertIcon.js +0 -70
  246. package/es/v1/alert/alertIcons/SuccessAlertIcon.js +0 -65
  247. package/es/v1/alert/alertIcons/WarningAlertIcon.js +0 -65
  248. package/es/v1/alert/alertIcons/index.js +0 -8
  249. package/es/v1/alert/alertIcons/props/defaultProps.js +0 -27
  250. package/es/v1/alert/alertIcons/props/propTypes.js +0 -34
  251. package/es/v1/alert/index.js +0 -2
  252. package/es/v1/avatar/AvatarClose/AvatarClose.js +0 -47
  253. package/es/v1/avatar/AvatarClose/props/defaultProps.js +0 -7
  254. package/es/v1/avatar/AvatarClose/props/propTypes.js +0 -15
  255. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +0 -51
  256. package/es/v1/avatar/AvatarCollision/props/defaultProps.js +0 -8
  257. package/es/v1/avatar/AvatarCollision/props/propTypes.js +0 -17
  258. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +0 -48
  259. package/es/v1/avatar/AvatarIcon/props/defaultProps.js +0 -14
  260. package/es/v1/avatar/AvatarIcon/props/propTypes.js +0 -20
  261. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -59
  262. package/es/v1/avatar/AvatarStatus/props/defaultProps.js +0 -12
  263. package/es/v1/avatar/AvatarStatus/props/propTypes.js +0 -26
  264. package/es/v1/avatar/AvatarThread/AvatarThread.js +0 -72
  265. package/es/v1/avatar/AvatarThread/props/defaultProps.js +0 -9
  266. package/es/v1/avatar/AvatarThread/props/propTypes.js +0 -30
  267. package/es/v1/avatar/AvatarUser/AvatarUser.js +0 -110
  268. package/es/v1/avatar/AvatarUser/props/defaultProps.js +0 -8
  269. package/es/v1/avatar/AvatarUser/props/propTypes.js +0 -35
  270. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -94
  271. package/es/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -9
  272. package/es/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -25
  273. package/es/v1/avatar/index.js +0 -7
  274. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -880
  275. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -29
  276. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -83
  277. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -64
  278. package/es/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -10
  279. package/es/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -21
  280. package/es/v1/emptystate/EditionPage/EditionPage.js +0 -51
  281. package/es/v1/emptystate/EditionPage/props/defaultProps.js +0 -5
  282. package/es/v1/emptystate/EditionPage/props/propTypes.js +0 -11
  283. package/es/v1/errorstate/Inconvenience/Inconvenience.js +0 -60
  284. package/es/v1/errorstate/Inconvenience/props/defaultProps.js +0 -8
  285. package/es/v1/errorstate/Inconvenience/props/propTypes.js +0 -16
  286. package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -64
  287. package/es/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -8
  288. package/es/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -16
  289. package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -64
  290. package/es/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -8
  291. package/es/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -16
  292. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
  293. package/es/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -9
  294. package/es/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -17
  295. package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -64
  296. package/es/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -8
  297. package/es/v1/errorstate/UrlNotFound/props/propTypes.js +0 -16
  298. package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -64
  299. package/es/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -8
  300. package/es/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -16
  301. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -130
  302. package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -12
  303. package/es/v1/form/fields/CheckBoxField/props/propTypes.js +0 -29
  304. package/es/v1/form/fields/CurrencyField/CurrencyField.js +0 -160
  305. package/es/v1/form/fields/CurrencyField/props/defaultProps.js +0 -17
  306. package/es/v1/form/fields/CurrencyField/props/propTypes.js +0 -39
  307. package/es/v1/form/fields/DateField/DateField.js +0 -164
  308. package/es/v1/form/fields/DateField/props/defaultProps.js +0 -19
  309. package/es/v1/form/fields/DateField/props/propTypes.js +0 -39
  310. package/es/v1/form/fields/FieldContainer/FieldContainer.js +0 -66
  311. package/es/v1/form/fields/FieldContainer/props/defaultProps.js +0 -6
  312. package/es/v1/form/fields/FieldContainer/props/propTypes.js +0 -24
  313. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -190
  314. package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -17
  315. package/es/v1/form/fields/MultiSelectField/props/propTypes.js +0 -50
  316. package/es/v1/form/fields/PhoneField/PhoneField.js +0 -161
  317. package/es/v1/form/fields/PhoneField/props/defaultProps.js +0 -16
  318. package/es/v1/form/fields/PhoneField/props/propTypes.js +0 -47
  319. package/es/v1/form/fields/RadioField/RadioField.js +0 -144
  320. package/es/v1/form/fields/RadioField/props/defaultProps.js +0 -13
  321. package/es/v1/form/fields/RadioField/props/propTypes.js +0 -33
  322. package/es/v1/form/fields/RadioField/useRadio.js +0 -44
  323. package/es/v1/form/fields/SelectField/SelectField.js +0 -160
  324. package/es/v1/form/fields/SelectField/props/defaultProps.js +0 -18
  325. package/es/v1/form/fields/SelectField/props/propTypes.js +0 -50
  326. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -333
  327. package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -16
  328. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -57
  329. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -276
  330. package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -23
  331. package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -71
  332. package/es/v1/form/fields/TextBoxField/TextBoxField.js +0 -144
  333. package/es/v1/form/fields/TextBoxField/props/defaultProps.js +0 -17
  334. package/es/v1/form/fields/TextBoxField/props/propTypes.js +0 -44
  335. package/es/v1/form/fields/TextEditor/TextEditor.js +0 -418
  336. package/es/v1/form/fields/TextEditor/props/defaultProps.js +0 -16
  337. package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -53
  338. package/es/v1/form/fields/TextEditorField/TextEditorField.js +0 -159
  339. package/es/v1/form/fields/TextEditorField/props/defaultProps.js +0 -15
  340. package/es/v1/form/fields/TextEditorField/props/propTypes.js +0 -59
  341. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -163
  342. package/es/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -9
  343. package/es/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -40
  344. package/es/v1/form/fields/TextareaField/TextareaField.js +0 -140
  345. package/es/v1/form/fields/TextareaField/props/defaultProps.js +0 -15
  346. package/es/v1/form/fields/TextareaField/props/propTypes.js +0 -35
  347. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -58
  348. package/es/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -7
  349. package/es/v1/form/fields/ValidationMessage/props/propTypes.js +0 -16
  350. package/es/v1/form/fields/index.js +0 -16
  351. package/es/v1/form/fields/props/FieldCommonDefaultProps.js +0 -10
  352. package/es/v1/form/fields/props/FieldCommonPropTypes.js +0 -17
  353. package/es/v1/form/layout/Field/Field.js +0 -29
  354. package/es/v1/form/layout/Field/props/defaultProps.js +0 -4
  355. package/es/v1/form/layout/Field/props/propTypes.js +0 -10
  356. package/es/v1/form/layout/Section/Section.js +0 -30
  357. package/es/v1/form/layout/Section/props/propTypes.js +0 -11
  358. package/es/v1/form/layout/index.js +0 -2
  359. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -174
  360. package/es/v1/layout/SetupDetailLayout/index.js +0 -4
  361. package/es/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -20
  362. package/es/v1/layout/SetupDetailLayout/props/propTypes.js +0 -40
  363. package/es/v1/layout/SubtabLayout/SubtabLayout.js +0 -126
  364. package/es/v1/layout/SubtabLayout/index.js +0 -4
  365. package/es/v1/layout/SubtabLayout/props/defaultProps.js +0 -25
  366. package/es/v1/layout/SubtabLayout/props/propTypes.js +0 -40
  367. package/es/v1/list/AvatarFlip/AvatarFlip.js +0 -73
  368. package/es/v1/list/AvatarFlip/props/defaultProps.js +0 -6
  369. package/es/v1/list/AvatarFlip/props/propTypes.js +0 -29
  370. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +0 -21
  371. package/es/v1/list/BluePrintStatus/props/propTypes.js +0 -4
  372. package/es/v1/list/Comment/Comment.js +0 -35
  373. package/es/v1/list/Comment/props/defaultProps.js +0 -4
  374. package/es/v1/list/Comment/props/propTypes.js +0 -7
  375. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -85
  376. package/es/v1/list/DepartmentDropDown/props/defaultProps.js +0 -7
  377. package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -24
  378. package/es/v1/list/Dot/Dot.js +0 -15
  379. package/es/v1/list/Dot/props/defaultProps.js +0 -4
  380. package/es/v1/list/Dot/props/propTypes.js +0 -5
  381. package/es/v1/list/DotNew/DotNew.js +0 -22
  382. package/es/v1/list/DotNew/props/defaultProps.js +0 -3
  383. package/es/v1/list/DotNew/props/propTypes.js +0 -6
  384. package/es/v1/list/GridStencils/GridStencils.js +0 -31
  385. package/es/v1/list/GridStencils/props/propTypes.js +0 -8
  386. package/es/v1/list/Icons/AddNewIcon.js +0 -25
  387. package/es/v1/list/Icons/CompleteIcon.js +0 -27
  388. package/es/v1/list/Icons/DeleteIcon.js +0 -28
  389. package/es/v1/list/Icons/EditIcon.js +0 -28
  390. package/es/v1/list/Icons/FloatingIcons.js +0 -23
  391. package/es/v1/list/Icons/ReadUnreadIcon.js +0 -32
  392. package/es/v1/list/Icons/SmartIcon.js +0 -25
  393. package/es/v1/list/Icons/index.js +0 -7
  394. package/es/v1/list/Icons/props/defaultProps.js +0 -6
  395. package/es/v1/list/Icons/props/propTypes.js +0 -53
  396. package/es/v1/list/ListLayout/ListLayout.js +0 -68
  397. package/es/v1/list/ListLayout/props/defaultProps.js +0 -11
  398. package/es/v1/list/ListLayout/props/propTypes.js +0 -27
  399. package/es/v1/list/ListStencils/ListStencils.js +0 -44
  400. package/es/v1/list/ListStencils/props/defaultProps.js +0 -3
  401. package/es/v1/list/ListStencils/props/propTypes.js +0 -4
  402. package/es/v1/list/SecondaryText/AccountName.js +0 -77
  403. package/es/v1/list/SecondaryText/ContactName.js +0 -76
  404. package/es/v1/list/SecondaryText/DepartmentText.js +0 -18
  405. package/es/v1/list/SecondaryText/Email.js +0 -47
  406. package/es/v1/list/SecondaryText/HappinessRating.js +0 -23
  407. package/es/v1/list/SecondaryText/PhoneNumber.js +0 -51
  408. package/es/v1/list/SecondaryText/PriorityText.js +0 -21
  409. package/es/v1/list/SecondaryText/SecondaryText.js +0 -27
  410. package/es/v1/list/SecondaryText/StatusText.js +0 -22
  411. package/es/v1/list/SecondaryText/TicketId.js +0 -41
  412. package/es/v1/list/SecondaryText/Website.js +0 -35
  413. package/es/v1/list/SecondaryText/index.js +0 -11
  414. package/es/v1/list/SecondaryText/props/defaultProps.js +0 -44
  415. package/es/v1/list/SecondaryText/props/propTypes.js +0 -142
  416. package/es/v1/list/SecondryPanel/SecondryPanel.js +0 -87
  417. package/es/v1/list/SecondryPanel/props/defaultProps.js +0 -18
  418. package/es/v1/list/SecondryPanel/props/propTypes.js +0 -27
  419. package/es/v1/list/SentimentStatus/SentimentStatus.js +0 -23
  420. package/es/v1/list/SentimentStatus/props/propTypes.js +0 -5
  421. package/es/v1/list/Subject/Subject.js +0 -52
  422. package/es/v1/list/Subject/props/defaultProps.js +0 -8
  423. package/es/v1/list/Subject/props/propTypes.js +0 -20
  424. package/es/v1/list/TagNew/TagNew.js +0 -24
  425. package/es/v1/list/TagNew/props/defaultProps.js +0 -4
  426. package/es/v1/list/TagNew/props/propTypes.js +0 -8
  427. package/es/v1/list/Thread/Thread.js +0 -33
  428. package/es/v1/list/Thread/props/defaultProps.js +0 -4
  429. package/es/v1/list/Thread/props/propTypes.js +0 -8
  430. package/es/v1/list/index.js +0 -16
  431. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +0 -307
  432. package/es/v1/list/status/StatusDropdown/props/defaultProps.js +0 -22
  433. package/es/v1/list/status/StatusDropdown/props/propTypes.js +0 -60
  434. package/es/v1/list/status/StatusListItem/StatusListItem.js +0 -108
  435. package/es/v1/list/status/StatusListItem/props/defaultProps.js +0 -16
  436. package/es/v1/list/status/StatusListItem/props/propTypes.js +0 -31
  437. package/es/v1/list/status/index.js +0 -2
  438. package/es/v1/lookup/EmptyPage/EmptyPage.js +0 -54
  439. package/es/v1/lookup/EmptyPage/props/defaultProps.js +0 -4
  440. package/es/v1/lookup/EmptyPage/props/propTypes.js +0 -5
  441. package/es/v1/lookup/Lookup/Lookup.js +0 -116
  442. package/es/v1/lookup/Lookup/props/defaultProps.js +0 -9
  443. package/es/v1/lookup/Lookup/props/propTypes.js +0 -24
  444. package/es/v1/lookup/Section/Section.js +0 -18
  445. package/es/v1/lookup/Section/props/propTypes.js +0 -6
  446. package/es/v1/lookup/header/Close/Close.js +0 -30
  447. package/es/v1/lookup/header/Close/props/defaultProps.js +0 -3
  448. package/es/v1/lookup/header/Close/props/propTypes.js +0 -6
  449. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
  450. package/es/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -9
  451. package/es/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -20
  452. package/es/v1/lookup/header/Search/Search.js +0 -179
  453. package/es/v1/lookup/header/Search/props/defaultProps.js +0 -5
  454. package/es/v1/lookup/header/Search/props/propTypes.js +0 -28
  455. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +0 -108
  456. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -10
  457. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +0 -21
  458. package/es/v1/lookup/header/Title/Title.js +0 -27
  459. package/es/v1/lookup/header/Title/props/defaultProps.js +0 -3
  460. package/es/v1/lookup/header/Title/props/propTypes.js +0 -6
  461. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -194
  462. package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -10
  463. package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -27
  464. package/es/v1/lookup/header/index.js +0 -5
  465. package/es/v1/notification/DesktopNotification/DesktopNotification.js +0 -190
  466. package/es/v1/notification/DesktopNotification/props/defaultProps.js +0 -17
  467. package/es/v1/notification/DesktopNotification/props/propTypes.js +0 -43
  468. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -91
  469. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -7
  470. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -13
  471. package/es/v1/setup/header/Button/Button.js +0 -24
  472. package/es/v1/setup/header/Button/props/defaultProps.js +0 -4
  473. package/es/v1/setup/header/Button/props/propTypes.js +0 -7
  474. package/es/v1/setup/header/Link/Link.js +0 -32
  475. package/es/v1/setup/header/Link/props/defaultProps.js +0 -4
  476. package/es/v1/setup/header/Link/props/propTypes.js +0 -8
  477. package/es/v1/setup/header/Search/Search.js +0 -60
  478. package/es/v1/setup/header/Search/props/defaultProps.js +0 -6
  479. package/es/v1/setup/header/Search/props/propTypes.js +0 -12
  480. package/es/v1/setup/header/Views/Views.js +0 -34
  481. package/es/v1/setup/header/Views/props/defaultProps.js +0 -6
  482. package/es/v1/setup/header/Views/props/propTypes.js +0 -9
  483. package/es/v1/setup/header/index.js +0 -4
  484. package/es/v1/setup/helptips/Description/Description.js +0 -12
  485. package/es/v1/setup/helptips/Description/props/propTypes.js +0 -4
  486. package/es/v1/setup/helptips/Link/Link.js +0 -29
  487. package/es/v1/setup/helptips/Link/props/propTypes.js +0 -7
  488. package/es/v1/setup/helptips/ListGroup/ListGroup.js +0 -27
  489. package/es/v1/setup/helptips/ListGroup/props/propTypes.js +0 -5
  490. package/es/v1/setup/helptips/Title/Title.js +0 -12
  491. package/es/v1/setup/helptips/Title/props/propTypes.js +0 -4
  492. package/es/v1/setup/helptips/index.js +0 -4
  493. package/es/v1/setup/index.js +0 -6
  494. package/es/v1/setup/table/Table/Table.js +0 -22
  495. package/es/v1/setup/table/Table/props/defaultProps.js +0 -4
  496. package/es/v1/setup/table/Table/props/propTypes.js +0 -6
  497. package/es/v1/setup/table/TableBody/TableBody.js +0 -26
  498. package/es/v1/setup/table/TableBody/props/defaultProps.js +0 -3
  499. package/es/v1/setup/table/TableBody/props/propTypes.js +0 -7
  500. package/es/v1/setup/table/TableData/TableData.js +0 -31
  501. package/es/v1/setup/table/TableData/props/defaultProps.js +0 -5
  502. package/es/v1/setup/table/TableData/props/propTypes.js +0 -11
  503. package/es/v1/setup/table/TableHead/TableHead.js +0 -31
  504. package/es/v1/setup/table/TableHead/props/defaultProps.js +0 -4
  505. package/es/v1/setup/table/TableHead/props/propTypes.js +0 -8
  506. package/es/v1/setup/table/TableRow/TableRow.js +0 -36
  507. package/es/v1/setup/table/TableRow/props/defaultProps.js +0 -4
  508. package/es/v1/setup/table/TableRow/props/propTypes.js +0 -11
  509. package/es/v1/setup/table/Text/Text.js +0 -50
  510. package/es/v1/setup/table/Text/props/defaultProps.js +0 -7
  511. package/es/v1/setup/table/Text/props/propTypes.js +0 -13
  512. package/es/v1/setup/table/index.js +0 -5
  513. package/es/v1/svg/PlusIcon.js +0 -25
  514. package/es/v1/svg/SnippetIcon.js +0 -27
  515. package/es/v1/svg/TemplateIcon.js +0 -28
  516. package/es/v1/svg/index.js +0 -3
  517. package/es/v1/svg/props/defaultProps.js +0 -15
  518. package/es/v1/svg/props/propTypes.js +0 -16
  519. package/es/v1/utils/ChannelIconMapping.js +0 -129
  520. package/es/v1/utils/General.js +0 -45
  521. package/es/v1/utils/editorUtils.js +0 -193
  522. package/lib/v1/ActionButton/ActionButton.js +0 -173
  523. package/lib/v1/ActionButton/props/defaultProps.js +0 -26
  524. package/lib/v1/ActionButton/props/propTypes.js +0 -48
  525. package/lib/v1/AlphabeticList/AlphabeticList.js +0 -113
  526. package/lib/v1/AlphabeticList/props/defaultProps.js +0 -20
  527. package/lib/v1/AlphabeticList/props/propTypes.js +0 -50
  528. package/lib/v1/Attachment/Attachment.js +0 -110
  529. package/lib/v1/Attachment/props/defaultProps.js +0 -15
  530. package/lib/v1/Attachment/props/propTypes.js +0 -29
  531. package/lib/v1/AttachmentViewer/AttachmentImage.js +0 -117
  532. package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -713
  533. package/lib/v1/AttachmentViewer/props/defaultProps.js +0 -19
  534. package/lib/v1/AttachmentViewer/props/propTypes.js +0 -48
  535. package/lib/v1/ChannelIcon/ChannelIcon.js +0 -114
  536. package/lib/v1/ChannelIcon/props/defaultProps.js +0 -14
  537. package/lib/v1/ChannelIcon/props/propTypes.js +0 -36
  538. package/lib/v1/Drawer/Drawer.js +0 -302
  539. package/lib/v1/Drawer/props/defaultProps.js +0 -32
  540. package/lib/v1/Drawer/props/propTypes.js +0 -67
  541. package/lib/v1/ExternalLink/ExternalLink.js +0 -57
  542. package/lib/v1/ExternalLink/props/defaultProps.js +0 -12
  543. package/lib/v1/ExternalLink/props/propTypes.js +0 -23
  544. package/lib/v1/FlipCard/FlipCard.js +0 -149
  545. package/lib/v1/FlipCard/props/defaultProps.js +0 -12
  546. package/lib/v1/FlipCard/props/propTypes.js +0 -48
  547. package/lib/v1/FormAction/FormAction.js +0 -102
  548. package/lib/v1/FormAction/props/defaultProps.js +0 -12
  549. package/lib/v1/FormAction/props/propTypes.js +0 -19
  550. package/lib/v1/FreezeLayer/FreezeLayer.js +0 -94
  551. package/lib/v1/FreezeLayer/props/defaultProps.js +0 -16
  552. package/lib/v1/FreezeLayer/props/propTypes.js +0 -31
  553. package/lib/v1/GlobalNotification/GlobalNotification.js +0 -187
  554. package/lib/v1/GlobalNotification/props/defaultProps.js +0 -13
  555. package/lib/v1/GlobalNotification/props/propTypes.js +0 -58
  556. package/lib/v1/IconButton/IconButton.js +0 -149
  557. package/lib/v1/IconButton/props/defaultProps.js +0 -24
  558. package/lib/v1/IconButton/props/propTypes.js +0 -43
  559. package/lib/v1/Image/Image.js +0 -48
  560. package/lib/v1/Image/props/defaultProps.js +0 -11
  561. package/lib/v1/Image/props/propTypes.js +0 -26
  562. package/lib/v1/ImportantNotes/ImportantNotes.js +0 -55
  563. package/lib/v1/ImportantNotes/props/defaultProps.js +0 -13
  564. package/lib/v1/ImportantNotes/props/propTypes.js +0 -21
  565. package/lib/v1/Link/Link.js +0 -116
  566. package/lib/v1/Link/props/defaultProps.js +0 -12
  567. package/lib/v1/Link/props/propTypes.js +0 -29
  568. package/lib/v1/Loader/Loader.js +0 -27
  569. package/lib/v1/Message/Message.js +0 -113
  570. package/lib/v1/Message/props/defaultProps.js +0 -11
  571. package/lib/v1/Message/props/propTypes.js +0 -41
  572. package/lib/v1/MessageBanner/MessageBanner.js +0 -75
  573. package/lib/v1/MessageBanner/props/defaultProps.js +0 -14
  574. package/lib/v1/MessageBanner/props/propTypes.js +0 -24
  575. package/lib/v1/NewStar/NewStar.js +0 -74
  576. package/lib/v1/NewStar/props/defaultProps.js +0 -11
  577. package/lib/v1/NewStar/props/propTypes.js +0 -17
  578. package/lib/v1/PlusIcon/PlusIcon.js +0 -45
  579. package/lib/v1/PlusIcon/props/defaultProps.js +0 -15
  580. package/lib/v1/PlusIcon/props/propTypes.js +0 -22
  581. package/lib/v1/Separator/Separator.js +0 -66
  582. package/lib/v1/Separator/props/defaultProps.js +0 -19
  583. package/lib/v1/Separator/props/propTypes.js +0 -22
  584. package/lib/v1/TagWithIcon/TagWithIcon.js +0 -53
  585. package/lib/v1/TagWithIcon/props/defaultProps.js +0 -15
  586. package/lib/v1/TagWithIcon/props/propTypes.js +0 -24
  587. package/lib/v1/ToastMessage/ToastMessage.js +0 -246
  588. package/lib/v1/ToastMessage/props/defaultProps.js +0 -25
  589. package/lib/v1/ToastMessage/props/propTypes.js +0 -51
  590. package/lib/v1/Upload/Upload.js +0 -83
  591. package/lib/v1/Upload/props/defaultProps.js +0 -14
  592. package/lib/v1/Upload/props/propTypes.js +0 -28
  593. package/lib/v1/actions/AutoClose.js +0 -75
  594. package/lib/v1/actions/props/defaultProps.js +0 -10
  595. package/lib/v1/actions/props/propTypes.js +0 -19
  596. package/lib/v1/alert/AlertClose/AlertClose.js +0 -62
  597. package/lib/v1/alert/AlertClose/props/propTypes.js +0 -19
  598. package/lib/v1/alert/AlertHeader/AlertHeader.js +0 -107
  599. package/lib/v1/alert/AlertHeader/props/defaultProps.js +0 -19
  600. package/lib/v1/alert/AlertHeader/props/propTypes.js +0 -31
  601. package/lib/v1/alert/AlertLookup/AlertLookup.js +0 -187
  602. package/lib/v1/alert/AlertLookup/props/defaultProps.js +0 -20
  603. package/lib/v1/alert/AlertLookup/props/propTypes.js +0 -47
  604. package/lib/v1/alert/alertIcons/AlarmAlertIcon.js +0 -77
  605. package/lib/v1/alert/alertIcons/AlertIcons.js +0 -78
  606. package/lib/v1/alert/alertIcons/DangerAlertIcon.js +0 -77
  607. package/lib/v1/alert/alertIcons/ErrorAlertIcon.js +0 -82
  608. package/lib/v1/alert/alertIcons/InfoAlertIcon.js +0 -86
  609. package/lib/v1/alert/alertIcons/NotificationAlertIcon.js +0 -82
  610. package/lib/v1/alert/alertIcons/SuccessAlertIcon.js +0 -77
  611. package/lib/v1/alert/alertIcons/WarningAlertIcon.js +0 -77
  612. package/lib/v1/alert/alertIcons/index.js +0 -71
  613. package/lib/v1/alert/alertIcons/props/defaultProps.js +0 -41
  614. package/lib/v1/alert/alertIcons/props/propTypes.js +0 -52
  615. package/lib/v1/alert/index.js +0 -23
  616. package/lib/v1/avatar/AvatarClose/AvatarClose.js +0 -61
  617. package/lib/v1/avatar/AvatarClose/props/defaultProps.js +0 -14
  618. package/lib/v1/avatar/AvatarClose/props/propTypes.js +0 -26
  619. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +0 -65
  620. package/lib/v1/avatar/AvatarCollision/props/defaultProps.js +0 -15
  621. package/lib/v1/avatar/AvatarCollision/props/propTypes.js +0 -28
  622. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +0 -63
  623. package/lib/v1/avatar/AvatarIcon/props/defaultProps.js +0 -21
  624. package/lib/v1/avatar/AvatarIcon/props/propTypes.js +0 -31
  625. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -73
  626. package/lib/v1/avatar/AvatarStatus/props/defaultProps.js +0 -19
  627. package/lib/v1/avatar/AvatarStatus/props/propTypes.js +0 -35
  628. package/lib/v1/avatar/AvatarThread/AvatarThread.js +0 -85
  629. package/lib/v1/avatar/AvatarThread/props/defaultProps.js +0 -16
  630. package/lib/v1/avatar/AvatarThread/props/propTypes.js +0 -41
  631. package/lib/v1/avatar/AvatarUser/AvatarUser.js +0 -122
  632. package/lib/v1/avatar/AvatarUser/props/defaultProps.js +0 -15
  633. package/lib/v1/avatar/AvatarUser/props/propTypes.js +0 -46
  634. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -109
  635. package/lib/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -16
  636. package/lib/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -36
  637. package/lib/v1/avatar/index.js +0 -63
  638. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -946
  639. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -36
  640. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -94
  641. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -77
  642. package/lib/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -17
  643. package/lib/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -32
  644. package/lib/v1/emptystate/EditionPage/EditionPage.js +0 -64
  645. package/lib/v1/emptystate/EditionPage/props/defaultProps.js +0 -12
  646. package/lib/v1/emptystate/EditionPage/props/propTypes.js +0 -22
  647. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +0 -76
  648. package/lib/v1/errorstate/Inconvenience/props/defaultProps.js +0 -15
  649. package/lib/v1/errorstate/Inconvenience/props/propTypes.js +0 -27
  650. package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -80
  651. package/lib/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -15
  652. package/lib/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -27
  653. package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -80
  654. package/lib/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -15
  655. package/lib/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -27
  656. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
  657. package/lib/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -16
  658. package/lib/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -28
  659. package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -80
  660. package/lib/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -15
  661. package/lib/v1/errorstate/UrlNotFound/props/propTypes.js +0 -27
  662. package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -80
  663. package/lib/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -15
  664. package/lib/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -27
  665. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -148
  666. package/lib/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -27
  667. package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +0 -47
  668. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +0 -194
  669. package/lib/v1/form/fields/CurrencyField/props/defaultProps.js +0 -32
  670. package/lib/v1/form/fields/CurrencyField/props/propTypes.js +0 -57
  671. package/lib/v1/form/fields/DateField/DateField.js +0 -183
  672. package/lib/v1/form/fields/DateField/props/defaultProps.js +0 -34
  673. package/lib/v1/form/fields/DateField/props/propTypes.js +0 -57
  674. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +0 -87
  675. package/lib/v1/form/fields/FieldContainer/props/defaultProps.js +0 -22
  676. package/lib/v1/form/fields/FieldContainer/props/propTypes.js +0 -35
  677. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -208
  678. package/lib/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -32
  679. package/lib/v1/form/fields/MultiSelectField/props/propTypes.js +0 -68
  680. package/lib/v1/form/fields/PhoneField/PhoneField.js +0 -193
  681. package/lib/v1/form/fields/PhoneField/props/defaultProps.js +0 -23
  682. package/lib/v1/form/fields/PhoneField/props/propTypes.js +0 -58
  683. package/lib/v1/form/fields/RadioField/RadioField.js +0 -164
  684. package/lib/v1/form/fields/RadioField/props/defaultProps.js +0 -20
  685. package/lib/v1/form/fields/RadioField/props/propTypes.js +0 -44
  686. package/lib/v1/form/fields/RadioField/useRadio.js +0 -50
  687. package/lib/v1/form/fields/SelectField/SelectField.js +0 -179
  688. package/lib/v1/form/fields/SelectField/props/defaultProps.js +0 -33
  689. package/lib/v1/form/fields/SelectField/props/propTypes.js +0 -68
  690. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -387
  691. package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -23
  692. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -68
  693. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -317
  694. package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -38
  695. package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -83
  696. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +0 -163
  697. package/lib/v1/form/fields/TextBoxField/props/defaultProps.js +0 -32
  698. package/lib/v1/form/fields/TextBoxField/props/propTypes.js +0 -62
  699. package/lib/v1/form/fields/TextEditor/TextEditor.js +0 -462
  700. package/lib/v1/form/fields/TextEditor/props/defaultProps.js +0 -23
  701. package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -64
  702. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +0 -175
  703. package/lib/v1/form/fields/TextEditorField/props/defaultProps.js +0 -30
  704. package/lib/v1/form/fields/TextEditorField/props/propTypes.js +0 -67
  705. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -204
  706. package/lib/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -16
  707. package/lib/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -51
  708. package/lib/v1/form/fields/TextareaField/TextareaField.js +0 -157
  709. package/lib/v1/form/fields/TextareaField/props/defaultProps.js +0 -30
  710. package/lib/v1/form/fields/TextareaField/props/propTypes.js +0 -53
  711. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -71
  712. package/lib/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -14
  713. package/lib/v1/form/fields/ValidationMessage/props/propTypes.js +0 -27
  714. package/lib/v1/form/fields/index.js +0 -135
  715. package/lib/v1/form/fields/props/FieldCommonDefaultProps.js +0 -19
  716. package/lib/v1/form/fields/props/FieldCommonPropTypes.js +0 -28
  717. package/lib/v1/form/layout/Field/Field.js +0 -40
  718. package/lib/v1/form/layout/Field/props/defaultProps.js +0 -11
  719. package/lib/v1/form/layout/Field/props/propTypes.js +0 -21
  720. package/lib/v1/form/layout/Section/Section.js +0 -40
  721. package/lib/v1/form/layout/Section/props/propTypes.js +0 -22
  722. package/lib/v1/form/layout/index.js +0 -23
  723. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -212
  724. package/lib/v1/layout/SetupDetailLayout/index.js +0 -37
  725. package/lib/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -30
  726. package/lib/v1/layout/SetupDetailLayout/props/propTypes.js +0 -54
  727. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +0 -146
  728. package/lib/v1/layout/SubtabLayout/index.js +0 -37
  729. package/lib/v1/layout/SubtabLayout/props/defaultProps.js +0 -35
  730. package/lib/v1/layout/SubtabLayout/props/propTypes.js +0 -54
  731. package/lib/v1/list/AvatarFlip/AvatarFlip.js +0 -86
  732. package/lib/v1/list/AvatarFlip/props/defaultProps.js +0 -13
  733. package/lib/v1/list/AvatarFlip/props/propTypes.js +0 -40
  734. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +0 -33
  735. package/lib/v1/list/BluePrintStatus/props/propTypes.js +0 -15
  736. package/lib/v1/list/Comment/Comment.js +0 -49
  737. package/lib/v1/list/Comment/props/defaultProps.js +0 -11
  738. package/lib/v1/list/Comment/props/propTypes.js +0 -18
  739. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -102
  740. package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +0 -14
  741. package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -35
  742. package/lib/v1/list/Dot/Dot.js +0 -27
  743. package/lib/v1/list/Dot/props/defaultProps.js +0 -11
  744. package/lib/v1/list/Dot/props/propTypes.js +0 -16
  745. package/lib/v1/list/DotNew/DotNew.js +0 -34
  746. package/lib/v1/list/DotNew/props/defaultProps.js +0 -10
  747. package/lib/v1/list/DotNew/props/propTypes.js +0 -17
  748. package/lib/v1/list/GridStencils/GridStencils.js +0 -42
  749. package/lib/v1/list/GridStencils/props/propTypes.js +0 -19
  750. package/lib/v1/list/Icons/AddNewIcon.js +0 -38
  751. package/lib/v1/list/Icons/CompleteIcon.js +0 -40
  752. package/lib/v1/list/Icons/DeleteIcon.js +0 -41
  753. package/lib/v1/list/Icons/EditIcon.js +0 -41
  754. package/lib/v1/list/Icons/FloatingIcons.js +0 -42
  755. package/lib/v1/list/Icons/ReadUnreadIcon.js +0 -46
  756. package/lib/v1/list/Icons/SmartIcon.js +0 -38
  757. package/lib/v1/list/Icons/index.js +0 -63
  758. package/lib/v1/list/Icons/props/defaultProps.js +0 -14
  759. package/lib/v1/list/Icons/props/propTypes.js +0 -70
  760. package/lib/v1/list/ListLayout/ListLayout.js +0 -82
  761. package/lib/v1/list/ListLayout/props/defaultProps.js +0 -18
  762. package/lib/v1/list/ListLayout/props/propTypes.js +0 -39
  763. package/lib/v1/list/ListStencils/ListStencils.js +0 -57
  764. package/lib/v1/list/ListStencils/props/defaultProps.js +0 -10
  765. package/lib/v1/list/ListStencils/props/propTypes.js +0 -15
  766. package/lib/v1/list/SecondaryText/AccountName.js +0 -86
  767. package/lib/v1/list/SecondaryText/ContactName.js +0 -94
  768. package/lib/v1/list/SecondaryText/DepartmentText.js +0 -29
  769. package/lib/v1/list/SecondaryText/Email.js +0 -53
  770. package/lib/v1/list/SecondaryText/HappinessRating.js +0 -34
  771. package/lib/v1/list/SecondaryText/PhoneNumber.js +0 -57
  772. package/lib/v1/list/SecondaryText/PriorityText.js +0 -33
  773. package/lib/v1/list/SecondaryText/SecondaryText.js +0 -38
  774. package/lib/v1/list/SecondaryText/StatusText.js +0 -34
  775. package/lib/v1/list/SecondaryText/TicketId.js +0 -54
  776. package/lib/v1/list/SecondaryText/Website.js +0 -48
  777. package/lib/v1/list/SecondaryText/index.js +0 -95
  778. package/lib/v1/list/SecondaryText/props/defaultProps.js +0 -59
  779. package/lib/v1/list/SecondaryText/props/propTypes.js +0 -163
  780. package/lib/v1/list/SecondryPanel/SecondryPanel.js +0 -104
  781. package/lib/v1/list/SecondryPanel/props/defaultProps.js +0 -28
  782. package/lib/v1/list/SecondryPanel/props/propTypes.js +0 -41
  783. package/lib/v1/list/SentimentStatus/SentimentStatus.js +0 -35
  784. package/lib/v1/list/SentimentStatus/props/propTypes.js +0 -16
  785. package/lib/v1/list/Subject/Subject.js +0 -65
  786. package/lib/v1/list/Subject/props/defaultProps.js +0 -15
  787. package/lib/v1/list/Subject/props/propTypes.js +0 -31
  788. package/lib/v1/list/TagNew/TagNew.js +0 -35
  789. package/lib/v1/list/TagNew/props/defaultProps.js +0 -11
  790. package/lib/v1/list/TagNew/props/propTypes.js +0 -19
  791. package/lib/v1/list/Thread/Thread.js +0 -46
  792. package/lib/v1/list/Thread/props/defaultProps.js +0 -11
  793. package/lib/v1/list/Thread/props/propTypes.js +0 -19
  794. package/lib/v1/list/index.js +0 -165
  795. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +0 -363
  796. package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +0 -29
  797. package/lib/v1/list/status/StatusDropdown/props/propTypes.js +0 -34
  798. package/lib/v1/list/status/StatusListItem/StatusListItem.js +0 -124
  799. package/lib/v1/list/status/StatusListItem/props/defaultProps.js +0 -23
  800. package/lib/v1/list/status/StatusListItem/props/propTypes.js +0 -42
  801. package/lib/v1/list/status/index.js +0 -23
  802. package/lib/v1/lookup/EmptyPage/EmptyPage.js +0 -70
  803. package/lib/v1/lookup/EmptyPage/props/defaultProps.js +0 -11
  804. package/lib/v1/lookup/EmptyPage/props/propTypes.js +0 -16
  805. package/lib/v1/lookup/Lookup/Lookup.js +0 -145
  806. package/lib/v1/lookup/Lookup/props/defaultProps.js +0 -16
  807. package/lib/v1/lookup/Lookup/props/propTypes.js +0 -35
  808. package/lib/v1/lookup/Section/Section.js +0 -30
  809. package/lib/v1/lookup/Section/props/propTypes.js +0 -17
  810. package/lib/v1/lookup/header/Close/Close.js +0 -47
  811. package/lib/v1/lookup/header/Close/props/defaultProps.js +0 -10
  812. package/lib/v1/lookup/header/Close/props/propTypes.js +0 -17
  813. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -116
  814. package/lib/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -16
  815. package/lib/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -31
  816. package/lib/v1/lookup/header/Search/Search.js +0 -208
  817. package/lib/v1/lookup/header/Search/props/defaultProps.js +0 -12
  818. package/lib/v1/lookup/header/Search/props/propTypes.js +0 -40
  819. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +0 -133
  820. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -17
  821. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +0 -32
  822. package/lib/v1/lookup/header/Title/Title.js +0 -44
  823. package/lib/v1/lookup/header/Title/props/defaultProps.js +0 -10
  824. package/lib/v1/lookup/header/Title/props/propTypes.js +0 -17
  825. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -239
  826. package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -17
  827. package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -38
  828. package/lib/v1/lookup/header/index.js +0 -47
  829. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +0 -209
  830. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +0 -26
  831. package/lib/v1/notification/DesktopNotification/props/propTypes.js +0 -55
  832. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -105
  833. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -16
  834. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -24
  835. package/lib/v1/setup/header/Button/Button.js +0 -37
  836. package/lib/v1/setup/header/Button/props/defaultProps.js +0 -11
  837. package/lib/v1/setup/header/Button/props/propTypes.js +0 -18
  838. package/lib/v1/setup/header/Link/Link.js +0 -47
  839. package/lib/v1/setup/header/Link/props/defaultProps.js +0 -11
  840. package/lib/v1/setup/header/Link/props/propTypes.js +0 -19
  841. package/lib/v1/setup/header/Search/Search.js +0 -99
  842. package/lib/v1/setup/header/Search/props/defaultProps.js +0 -13
  843. package/lib/v1/setup/header/Search/props/propTypes.js +0 -23
  844. package/lib/v1/setup/header/Views/Views.js +0 -47
  845. package/lib/v1/setup/header/Views/props/defaultProps.js +0 -13
  846. package/lib/v1/setup/header/Views/props/propTypes.js +0 -20
  847. package/lib/v1/setup/header/index.js +0 -39
  848. package/lib/v1/setup/helptips/Description/Description.js +0 -23
  849. package/lib/v1/setup/helptips/Description/props/propTypes.js +0 -15
  850. package/lib/v1/setup/helptips/Link/Link.js +0 -42
  851. package/lib/v1/setup/helptips/Link/props/propTypes.js +0 -18
  852. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +0 -42
  853. package/lib/v1/setup/helptips/ListGroup/props/propTypes.js +0 -16
  854. package/lib/v1/setup/helptips/Title/Title.js +0 -23
  855. package/lib/v1/setup/helptips/Title/props/propTypes.js +0 -15
  856. package/lib/v1/setup/helptips/index.js +0 -39
  857. package/lib/v1/setup/index.js +0 -24
  858. package/lib/v1/setup/table/Table/Table.js +0 -34
  859. package/lib/v1/setup/table/Table/props/defaultProps.js +0 -11
  860. package/lib/v1/setup/table/Table/props/propTypes.js +0 -17
  861. package/lib/v1/setup/table/TableBody/TableBody.js +0 -39
  862. package/lib/v1/setup/table/TableBody/props/defaultProps.js +0 -10
  863. package/lib/v1/setup/table/TableBody/props/propTypes.js +0 -18
  864. package/lib/v1/setup/table/TableData/TableData.js +0 -44
  865. package/lib/v1/setup/table/TableData/props/defaultProps.js +0 -12
  866. package/lib/v1/setup/table/TableData/props/propTypes.js +0 -22
  867. package/lib/v1/setup/table/TableHead/TableHead.js +0 -44
  868. package/lib/v1/setup/table/TableHead/props/defaultProps.js +0 -11
  869. package/lib/v1/setup/table/TableHead/props/propTypes.js +0 -19
  870. package/lib/v1/setup/table/TableRow/TableRow.js +0 -49
  871. package/lib/v1/setup/table/TableRow/props/defaultProps.js +0 -11
  872. package/lib/v1/setup/table/TableRow/props/propTypes.js +0 -22
  873. package/lib/v1/setup/table/Text/Text.js +0 -64
  874. package/lib/v1/setup/table/Text/props/defaultProps.js +0 -14
  875. package/lib/v1/setup/table/Text/props/propTypes.js +0 -24
  876. package/lib/v1/setup/table/index.js +0 -47
  877. package/lib/v1/svg/PlusIcon.js +0 -37
  878. package/lib/v1/svg/SnippetIcon.js +0 -39
  879. package/lib/v1/svg/TemplateIcon.js +0 -40
  880. package/lib/v1/svg/index.js +0 -31
  881. package/lib/v1/svg/props/defaultProps.js +0 -24
  882. package/lib/v1/svg/props/propTypes.js +0 -29
  883. package/lib/v1/utils/ChannelIconMapping.js +0 -138
  884. package/lib/v1/utils/General.js +0 -58
  885. package/lib/v1/utils/editorUtils.js +0 -224
@@ -1,713 +0,0 @@
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
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _defaultProps = require("./props/defaultProps");
13
-
14
- var _propTypes = require("./props/propTypes");
15
-
16
- var _Layout = require("@zohodesk/components/es/v1/Layout");
17
-
18
- var _icons = require("@zohodesk/icons");
19
-
20
- var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
21
-
22
- var _CustomResponsive = require("@zohodesk/components/es/Responsive/CustomResponsive");
23
-
24
- var _IdProvider = require("@zohodesk/components/es/Provider/IdProvider");
25
-
26
- var _AttachmentImage = _interopRequireDefault(require("./AttachmentImage"));
27
-
28
- var _Link = _interopRequireDefault(require("../Link/Link"));
29
-
30
- var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
31
-
32
- var _FreezeLayer = _interopRequireDefault(require("../FreezeLayer/FreezeLayer"));
33
-
34
- var _Attachment = require("../../AttachmentViewer/Attachment");
35
-
36
- var _utils = require("../../AttachmentViewer/utils");
37
-
38
- var _audio_thumbnail = _interopRequireDefault(require("../../../images/audio_thumbnail.png"));
39
-
40
- var _General = require("../../utils/General");
41
-
42
- var _AttachmentViewerModule = _interopRequireDefault(require("../../AttachmentViewer/AttachmentViewer.module.css"));
43
-
44
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
-
46
- 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); }
47
-
48
- 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; }
49
-
50
- 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); }
51
-
52
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
53
-
54
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
55
-
56
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
57
-
58
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
59
-
60
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
61
-
62
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
63
-
64
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
65
-
66
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
67
-
68
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
69
-
70
- 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); }
71
-
72
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
73
-
74
- 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); }; }
75
-
76
- 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); }
77
-
78
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
79
-
80
- 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; } }
81
-
82
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
83
-
84
- var AttachmentViewer = /*#__PURE__*/function (_Component) {
85
- _inherits(AttachmentViewer, _Component);
86
-
87
- var _super = _createSuper(AttachmentViewer);
88
-
89
- function AttachmentViewer(props) {
90
- var _this;
91
-
92
- _classCallCheck(this, AttachmentViewer);
93
-
94
- _this = _super.call(this, props);
95
- _this.state = {
96
- isPViewListOpen: !!(_this.props.previewObj && _this.props.previewObj.previewData),
97
- selectedIndex: _this.props.previewObj.selectedIndex,
98
- isZoomed: false,
99
- data: _this.props.previewObj ? _this.props.previewObj.previewData : [],
100
- dataList: _this.getUpdateDataList({
101
- index: _this.props.previewObj.selectedIndex,
102
- data: _this.props.previewObj ? _this.props.previewObj.previewData : [],
103
- dataList: []
104
- }),
105
- canOpenInNewTab: false,
106
- canZoom: false,
107
- isPreviewAttachmentValid: false
108
- };
109
- _this.togglePViewList = _this.togglePViewList.bind(_assertThisInitialized(_this));
110
- _this.changeSelectedIndex = _this.changeSelectedIndex.bind(_assertThisInitialized(_this));
111
- _this.closeAttachmentViewer = _this.closeAttachmentViewer.bind(_assertThisInitialized(_this));
112
- _this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
113
- _this.zoomIn = _this.zoomIn.bind(_assertThisInitialized(_this));
114
- _this.zoomOut = _this.zoomOut.bind(_assertThisInitialized(_this));
115
- _this.imgPreviewView = _this.imgPreviewView.bind(_assertThisInitialized(_this));
116
- _this.getNextId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
117
- _this.getUpdateDataList = _this.getUpdateDataList.bind(_assertThisInitialized(_this));
118
- _this.zoomMaintain = _this.zoomMaintain.bind(_assertThisInitialized(_this));
119
- _this.handleMenuValidation = _this.handleMenuValidation.bind(_assertThisInitialized(_this));
120
- return _this;
121
- }
122
-
123
- _createClass(AttachmentViewer, [{
124
- key: "componentDidMount",
125
- value: function componentDidMount() {
126
- this.handleMenuValidation();
127
- }
128
- }, {
129
- key: "componentDidUpdate",
130
- value: function componentDidUpdate(prevProps, prevState) {
131
- var previewObj = this.props.previewObj;
132
- var selectedIndex = this.state.selectedIndex;
133
- var indexChanged = previewObj.selectedIndex != prevProps.previewObj.selectedIndex;
134
-
135
- if (previewObj.previewData.length != prevProps.previewObj.previewData.length || indexChanged) {
136
- var objChanged = previewObj.previewData.some(function (value, index) {
137
- return (0, _General.shallowDiff)(value, prevProps.previewObj[index]);
138
- });
139
-
140
- if (objChanged || indexChanged) {
141
- this.setState({
142
- selectedIndex: previewObj.selectedIndex,
143
- data: previewObj ? previewObj.previewData : [],
144
- dataList: this.getUpdateDataList({
145
- index: previewObj.selectedIndex,
146
- data: previewObj ? previewObj.previewData : [],
147
- dataList: []
148
- }),
149
- isPViewListOpen: !!(this.props.previewObj && this.props.previewObj.previewData)
150
- });
151
- }
152
- }
153
-
154
- if (prevState.selectedIndex != selectedIndex) {
155
- this.handleMenuValidation();
156
- }
157
- }
158
- }, {
159
- key: "handleMenuValidation",
160
- value: function handleMenuValidation() {
161
- var _this2 = this;
162
-
163
- var _this$state = this.state,
164
- data = _this$state.data,
165
- selectedIndex = _this$state.selectedIndex;
166
- var selectedAttachment = data[selectedIndex] || {};
167
- var selectedAttachmentViewUrl = selectedAttachment.viewUrl;
168
- var selectedAttachmentDownloadUrl = selectedAttachment.downloadUrl;
169
- var selectedAttachmentName = selectedAttachment.name;
170
- (0, _utils.checkFileSourcesValidation)({
171
- fileName: selectedAttachmentName,
172
- viewURL: selectedAttachmentViewUrl
173
- }).then(function (fileSourceValidation) {
174
- var isViewURLValid = fileSourceValidation.isViewURLValid,
175
- canZoom = fileSourceValidation.canZoom;
176
-
177
- _this2.setState({
178
- isPreviewAttachmentValid: isViewURLValid,
179
- canZoom: canZoom,
180
- canOpenInNewTab: isViewURLValid
181
- });
182
- });
183
- }
184
- }, {
185
- key: "togglePViewList",
186
- value: function togglePViewList() {
187
- var _this3 = this;
188
-
189
- this.setState(function (prevState) {
190
- return {
191
- isPViewListOpen: !prevState.isPViewListOpen
192
- };
193
- }, function () {
194
- _this3.focusSelectedImg(_this3.state.selectedIndex);
195
- });
196
- }
197
- }, {
198
- key: "zoomOut",
199
- value: function zoomOut(ele) {
200
- this.setState({
201
- isZoomed: false
202
- }); // const img = document.getElementById(`img${ele}`);
203
- // if (img) {
204
- // img.classList.remove(style.zoomedImg);
205
- // img.classList.add(style.normalImg);
206
- // }
207
- }
208
- }, {
209
- key: "zoomIn",
210
- value: function zoomIn(event, ele) {
211
- var moveToPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
212
- this.setState({
213
- isZoomed: true
214
- });
215
- var img = document.getElementById("img".concat(ele));
216
- var ratio = 95;
217
- var imgContainer, imgUnits, imgSize, imgRatio, imgContainerUnits, imgContainerPosition;
218
-
219
- if (moveToPosition) {
220
- imgContainer = document.getElementById("imgBox".concat(ele));
221
- imgUnits = img.getBoundingClientRect();
222
- imgSize = {
223
- height: img.naturalHeight,
224
- width: img.naturalWidth
225
- };
226
- imgRatio = {
227
- height: Math.floor(imgSize.height / imgUnits.height / 100 * ratio),
228
- width: Math.floor(imgSize.width / imgUnits.width / 100 * ratio)
229
- };
230
- imgContainerUnits = imgContainer.getBoundingClientRect();
231
- imgContainerPosition = imgContainer ? {
232
- top: imgContainerUnits.top,
233
- left: imgContainerUnits.left
234
- } : {
235
- top: 0,
236
- left: 0
237
- };
238
- } // if (img) {
239
- // img.classList.remove(style.normalImg);
240
- // img.classList.add(style.zoomedImg);
241
- // }
242
-
243
-
244
- if (moveToPosition) {
245
- imgContainer.scrollLeft = (event.pageX - imgContainerPosition.left - imgUnits.left) * imgRatio.width;
246
- imgContainer.scrollTop = (event.pageY - imgContainerPosition.top - imgUnits.top) * imgRatio.height;
247
- }
248
- }
249
- }, {
250
- key: "zoomMaintain",
251
- value: function zoomMaintain(selectedIndex) {
252
- var isZoomed = this.state.isZoomed;
253
- isZoomed ? this.zoomIn({}, selectedIndex) : this.zoomOut(selectedIndex);
254
- }
255
- }, {
256
- key: "getUpdateDataList",
257
- value: function getUpdateDataList(_ref) {
258
- var index = _ref.index,
259
- data = _ref.data,
260
- dataList = _ref.dataList;
261
- data = data || this.state.data;
262
- dataList = dataList || this.state.dataList;
263
-
264
- var finalDataList = _toConsumableArray(dataList);
265
-
266
- if (index >= finalDataList.length) {
267
- for (var i = dataList.length; i <= index; i++) {
268
- finalDataList.push(data.slice(i)[0]);
269
- }
270
- } else if (index + 1 === finalDataList.length && index + 1 < data.length) {
271
- finalDataList.push(data.slice(index + 1)[0]);
272
- }
273
-
274
- return finalDataList;
275
- }
276
- }, {
277
- key: "updateDataList",
278
- value: function updateDataList(index) {
279
- this.setState({
280
- dataList: this.getUpdateDataList({
281
- index: index
282
- })
283
- });
284
- }
285
- }, {
286
- key: "changeSelectedIndex",
287
- value: function changeSelectedIndex(index) {
288
- var _this4 = this;
289
-
290
- var _this$state2 = this.state,
291
- data = _this$state2.data,
292
- selectedIndex = _this$state2.selectedIndex;
293
- var maintainZoom = this.props.maintainZoom;
294
- maintainZoom ? this.zoomMaintain(index) : this.zoomOut(selectedIndex);
295
-
296
- if (index <= data.length - 1) {
297
- this.updateDataList(index);
298
- }
299
-
300
- this.setState({
301
- selectedIndex: index
302
- }, function () {
303
- _this4.focusSelectedImg(index);
304
- });
305
- }
306
- }, {
307
- key: "focusSelectedImg",
308
- value: function focusSelectedImg(index) {
309
- var ele = this["img_".concat(index)];
310
-
311
- if (ele) {
312
- var cont = this.imgListCont;
313
- cont.scrollLeft = ele.offsetLeft;
314
- }
315
- }
316
- }, {
317
- key: "closeAttachmentViewer",
318
- value: function closeAttachmentViewer() {
319
- this.setState({
320
- isPViewListOpen: false,
321
- isZoomed: false
322
- });
323
- this.props.hideAttachmentViewer();
324
- }
325
- }, {
326
- key: "responsiveFunc",
327
- value: function responsiveFunc(_ref2) {
328
- var mediaQueryOR = _ref2.mediaQueryOR;
329
- return {
330
- uptoTablet: mediaQueryOR([{
331
- maxWidth: 768
332
- }])
333
- };
334
- }
335
- }, {
336
- key: "imgPreviewView",
337
- value: function imgPreviewView() {
338
- var _this5 = this;
339
-
340
- var _this$state3 = this.state,
341
- dataList = _this$state3.dataList,
342
- selectedIndex = _this$state3.selectedIndex,
343
- isZoomed = _this$state3.isZoomed,
344
- canZoom = _this$state3.canZoom,
345
- isPreviewAttachmentValid = _this$state3.isPreviewAttachmentValid;
346
- var _this$props = this.props,
347
- maintainZoom = _this$props.maintainZoom,
348
- dataId = _this$props.dataId;
349
-
350
- var getImgStyle = function getImgStyle(i) {
351
- var position;
352
-
353
- if (selectedIndex < i) {
354
- position = (i - selectedIndex) * 100;
355
- return {
356
- transform: "translateX(".concat(parseInt(position), "%)"),
357
- opacity: '0'
358
- };
359
- }
360
-
361
- if (i === selectedIndex) {
362
- return {
363
- transform: 'translateX(0%)',
364
- opacity: '1'
365
- };
366
- }
367
-
368
- position = (selectedIndex - i) * 100 * -1;
369
- return {
370
- transform: "translateX(".concat(parseInt(position), "%)"),
371
- opacity: '0'
372
- };
373
- };
374
-
375
- return dataList.length && dataList.map(function () {
376
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
377
- var i = arguments.length > 1 ? arguments[1] : undefined;
378
- var viewUrl = data.viewUrl,
379
- name = data.name,
380
- children = data.children,
381
- _data$dataId = data.dataId,
382
- dataId = _data$dataId === void 0 ? 'attachViewer' : _data$dataId,
383
- _data$customClass = data.customClass,
384
- customClass = _data$customClass === void 0 ? {} : _data$customClass,
385
- _data$customProps = data.customProps,
386
- customProps = _data$customProps === void 0 ? {} : _data$customProps;
387
- var _customProps$audioPro = customProps.audioProps,
388
- audioProps = _customProps$audioPro === void 0 ? {} : _customProps$audioPro,
389
- _customProps$imagePro = customProps.imageProps,
390
- imageProps = _customProps$imagePro === void 0 ? {} : _customProps$imagePro;
391
- var _customClass$customIm = customClass.customImageClass,
392
- customImageClass = _customClass$customIm === void 0 ? '' : _customClass$customIm,
393
- _customClass$customCh = customClass.customChildrenClass,
394
- customChildrenClass = _customClass$customCh === void 0 ? '' : _customClass$customCh;
395
- var retainZoom = canZoom && selectedIndex == i && maintainZoom;
396
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
397
- className: _AttachmentViewerModule["default"].imgBox,
398
- id: "imgBox".concat(i),
399
- key: i,
400
- alignBox: "row",
401
- align: "both",
402
- style: getImgStyle(i)
403
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
404
- className: _AttachmentViewerModule["default"].imgRef,
405
- id: "imgPreviewRef".concat(i)
406
- }, (0, _Attachment.isAudioFile)(name) ? selectedIndex == i ? /*#__PURE__*/_react["default"].createElement("video", _extends({
407
- autoPlay: true,
408
- controls: true,
409
- className: _AttachmentViewerModule["default"].zoomIn,
410
- "data-id": "".concat(dataId, "_videoPreview"),
411
- "data-test-id": "".concat(dataId, "_videoPreview")
412
- }, audioProps), /*#__PURE__*/_react["default"].createElement("source", {
413
- src: viewUrl,
414
- type: "audio/".concat((0, _Attachment.getExtensionFromFileName)(name))
415
- })) : null : /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
416
- customClass: {
417
- customImageClass: "".concat(_AttachmentViewerModule["default"].img, " ").concat(_AttachmentViewerModule["default"].altText, "\n ").concat(canZoom || retainZoom ? isZoomed ? "".concat(_AttachmentViewerModule["default"].zoomedImg, " ").concat(_AttachmentViewerModule["default"].zoomOutCursor) : "".concat(_AttachmentViewerModule["default"].normalImg, " ").concat(_AttachmentViewerModule["default"].zoomInCursor) : '', " ").concat(customImageClass),
418
- customChildrenClass: customChildrenClass
419
- },
420
- src: viewUrl,
421
- onClick: isPreviewAttachmentValid ? isZoomed ? _this5.zoomOut.bind(_this5, i) : function (e) {
422
- _this5.zoomIn(e, i, true);
423
- } : undefined,
424
- alt: name,
425
- dataId: dataId,
426
- id: "img".concat(i),
427
- isCover: false
428
- }, imageProps), children)));
429
- });
430
- }
431
- }, {
432
- key: "render",
433
- value: function render() {
434
- var _this6 = this;
435
-
436
- var _this$state4 = this.state,
437
- isPViewListOpen = _this$state4.isPViewListOpen,
438
- selectedIndex = _this$state4.selectedIndex,
439
- data = _this$state4.data,
440
- isZoomed = _this$state4.isZoomed,
441
- canZoom = _this$state4.canZoom,
442
- canOpenInNewTab = _this$state4.canOpenInNewTab;
443
- var _this$props2 = this.props,
444
- responsiveId = _this$props2.responsiveId,
445
- needDownload = _this$props2.needDownload,
446
- i18nKeys = _this$props2.i18nKeys,
447
- isActive = _this$props2.isActive,
448
- dataId = _this$props2.dataId;
449
- var totalLen = data.length;
450
- var selectedAttachment = data[selectedIndex] || {};
451
- var selectedImgUrl = selectedAttachment.viewUrl;
452
- var downloadUrl = selectedAttachment.downloadUrl;
453
- var authorHref;
454
- var authorName;
455
-
456
- var _ref3 = data[selectedIndex] ? data[selectedIndex] : {},
457
- author = _ref3.author;
458
-
459
- if (author) {
460
- authorHref = author.href;
461
- authorName = author.name;
462
- }
463
-
464
- var ariaId = this.getNextId();
465
- return /*#__PURE__*/_react["default"].createElement(_FreezeLayer["default"], {
466
- isActive: isActive && totalLen >= 1,
467
- palette: "dark",
468
- animationName: "expand"
469
- }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
470
- responsiveId: responsiveId,
471
- query: this.responsiveFunc
472
- }, function (_ref4) {
473
- var uptoTablet = _ref4.uptoTablet;
474
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
475
- scroll: "none",
476
- "data-scroll-palette": "dark"
477
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
478
- alignBox: "row",
479
- className: _AttachmentViewerModule["default"].header,
480
- align: "between",
481
- tabindex: "0"
482
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
483
- shrink: true,
484
- className: _AttachmentViewerModule["default"].title,
485
- "data-title": selectedAttachment.name,
486
- dataId: "attachName",
487
- id: ariaId
488
- }, selectedAttachment.name), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
489
- flexible: true,
490
- className: _AttachmentViewerModule["default"].count,
491
- dataId: "attachCountContainer"
492
- }, selectedIndex + 1, "/", totalLen), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
493
- className: uptoTablet ? _AttachmentViewerModule["default"].mbleMenuBar : _AttachmentViewerModule["default"].menuBar
494
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
495
- isInline: true,
496
- alignBox: uptoTablet ? 'column-reverse' : 'row',
497
- align: uptoTablet ? 'bottom' : 'center',
498
- wrap: "wrap",
499
- isCover: false
500
- }, canZoom ? isZoomed ? /*#__PURE__*/_react["default"].createElement("div", {
501
- className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
502
- onClick: _this6.zoomOut.bind(_this6, selectedIndex),
503
- "data-id": "zoomOut",
504
- "data-test-id": "zoomOut",
505
- "data-title": i18nKeys.zoomOutText
506
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
507
- iconName: "ZD-GN-zoomOut",
508
- className: _AttachmentViewerModule["default"].menuIcon,
509
- iconSize: "16",
510
- hoverType: "border",
511
- a11y: {
512
- ariaLabel: i18nKeys.zoomOutText
513
- }
514
- })) : /*#__PURE__*/_react["default"].createElement("div", {
515
- className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
516
- onClick: function onClick(e) {
517
- return _this6.zoomIn(e, selectedIndex);
518
- },
519
- "data-id": "zoomIn",
520
- "data-test-id": "zoomIn",
521
- "data-title": i18nKeys.zoomInText
522
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
523
- iconName: "ZD-GN-zoomIn",
524
- className: _AttachmentViewerModule["default"].menuIcon,
525
- iconSize: "16",
526
- hoverType: "border",
527
- a11y: {
528
- ariaLabel: i18nKeys.zoomInText
529
- }
530
- })) : null, canOpenInNewTab ? /*#__PURE__*/_react["default"].createElement("div", {
531
- className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu
532
- }, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
533
- href: selectedImgUrl,
534
- target: "_blank",
535
- dataId: "newTabAttach",
536
- title: i18nKeys.newTabText
537
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
538
- iconName: "ZD-GN-newLink",
539
- className: _AttachmentViewerModule["default"].menuIcon,
540
- iconSize: "16",
541
- hoverType: "border",
542
- needButtonTag: false,
543
- a11y: {
544
- ariaLabel: i18nKeys.newTabText
545
- }
546
- }))) : null, needDownload ? /*#__PURE__*/_react["default"].createElement("div", {
547
- className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu
548
- }, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
549
- href: downloadUrl,
550
- target: "_parent",
551
- hasReload: true,
552
- download: true,
553
- title: i18nKeys.downloadText,
554
- dataId: "".concat(dataId, "_downloadAttach")
555
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
556
- iconName: "ZD-GN-download",
557
- className: _AttachmentViewerModule["default"].menuIcon,
558
- iconSize: "16",
559
- hoverType: "border",
560
- needButtonTag: false,
561
- a11y: {
562
- ariaLabel: i18nKeys.downloadText
563
- }
564
- }))) : null, /*#__PURE__*/_react["default"].createElement("div", {
565
- className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
566
- onClick: _this6.closeAttachmentViewer,
567
- "data-id": "closeAttach",
568
- "data-test-id": "closeAttach",
569
- "data-title": i18nKeys.closeText
570
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
571
- iconName: "ZD-cross",
572
- iconSize: "15",
573
- hoverType: "border",
574
- className: _AttachmentViewerModule["default"].menuIcon,
575
- a11y: {
576
- ariaLabel: i18nKeys.closeText
577
- },
578
- title: i18nKeys.closeText
579
- })))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
580
- flexible: true,
581
- role: "toolbar",
582
- tabindex: "0"
583
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
584
- alignBox: "row"
585
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
586
- className: "".concat(_AttachmentViewerModule["default"].arrowBox, " ").concat(uptoTablet ? _AttachmentViewerModule["default"].mbleArrowBox : _AttachmentViewerModule["default"].nrmlArrowBox, " ").concat(selectedIndex === 0 ? _AttachmentViewerModule["default"].hidden : ''),
587
- onClick: _this6.changeSelectedIndex.bind(_this6, selectedIndex - 1),
588
- "data-title": i18nKeys.previousText,
589
- "data-title-position": "left"
590
- }, /*#__PURE__*/_react["default"].createElement("button", {
591
- className: _AttachmentViewerModule["default"].btn,
592
- "aria-label": i18nKeys.previousText
593
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
594
- name: "ZD-arrowLeft3",
595
- iconClass: _AttachmentViewerModule["default"].arrow,
596
- dataId: "leftAttachNav",
597
- isBold: true
598
- }))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
599
- className: _AttachmentViewerModule["default"].previewBox,
600
- tabindex: "0",
601
- "aria-describedby": ariaId,
602
- isShrink: false,
603
- eleRef: _this6.setImgBoxRef,
604
- scroll: "both",
605
- flexible: true
606
- }, _this6.imgPreviewView()), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
607
- className: "".concat(_AttachmentViewerModule["default"].arrowBox, " ").concat(uptoTablet ? _AttachmentViewerModule["default"].mbleArrowBox : _AttachmentViewerModule["default"].nrmlArrowBox, " ").concat(totalLen === selectedIndex + 1 ? _AttachmentViewerModule["default"].hidden : ''),
608
- onClick: _this6.changeSelectedIndex.bind(_this6, selectedIndex + 1),
609
- "data-title": i18nKeys.nextText,
610
- "data-title-position": "right"
611
- }, /*#__PURE__*/_react["default"].createElement("button", {
612
- className: _AttachmentViewerModule["default"].btn,
613
- "aria-label": i18nKeys.nextText
614
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
615
- name: "ZD-arrowRight3",
616
- iconClass: _AttachmentViewerModule["default"].arrow,
617
- dataId: "rightAttachNav",
618
- isBold: true
619
- }))))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
620
- className: "".concat(_AttachmentViewerModule["default"].footer, " ").concat(isPViewListOpen && totalLen !== 1 ? _AttachmentViewerModule["default"].footerHeight : _AttachmentViewerModule["default"].footerHide, " "),
621
- dataId: "".concat(dataId, "_attachPreviewFooter")
622
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
623
- align: "vertical",
624
- alignBox: "row",
625
- className: _AttachmentViewerModule["default"].footerHeight
626
- }, author && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
627
- className: _AttachmentViewerModule["default"].author,
628
- dataId: "".concat(dataId, "_authorName")
629
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
630
- alignBox: "row",
631
- align: "both"
632
- }, /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
633
- name: authorName,
634
- size: "xmedium",
635
- src: authorHref,
636
- palette: "info"
637
- }), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
638
- flexible: true,
639
- className: _AttachmentViewerModule["default"].authorName,
640
- "data-title": authorName
641
- }, authorName))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
642
- flexible: true
643
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
644
- align: "vertical",
645
- alignBox: "row",
646
- scroll: "horizontal",
647
- eleRef: function eleRef(el) {
648
- return _this6.imgListCont = el;
649
- },
650
- className: _AttachmentViewerModule["default"].listContainer
651
- }, data.map(function (item, index) {
652
- var name = item.name,
653
- viewUrl = item.viewUrl,
654
- children = item.children,
655
- _item$customClass = item.customClass,
656
- customClass = _item$customClass === void 0 ? {} : _item$customClass,
657
- _item$dataId = item.dataId,
658
- dataId = _item$dataId === void 0 ? 'AttachmentImage' : _item$dataId,
659
- _item$customProps = item.customProps,
660
- customProps = _item$customProps === void 0 ? {} : _item$customProps;
661
- var thumbnail = item.thumbnail;
662
- var _customClass$customIm2 = customClass.customImageClass,
663
- customImageClass = _customClass$customIm2 === void 0 ? '' : _customClass$customIm2,
664
- _customClass$customCh2 = customClass.customChildrenClass,
665
- customChildrenClass = _customClass$customCh2 === void 0 ? '' : _customClass$customCh2;
666
- thumbnail = (0, _Attachment.isAudioFile)(name) ? thumbnail || _audio_thumbnail["default"] : thumbnail; //fallback thumbnail for audio
667
-
668
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
669
- className: "".concat(_AttachmentViewerModule["default"].imgItem, " ").concat(index === selectedIndex ? _AttachmentViewerModule["default"].selected : ''),
670
- key: index,
671
- onClick: _this6.changeSelectedIndex.bind(_this6, index),
672
- eleRef: function eleRef(el) {
673
- return _this6["img_".concat(index)] = el;
674
- },
675
- dataId: "attachPreviewList",
676
- "data-title": name
677
- }, /*#__PURE__*/_react["default"].createElement(_AttachmentImage["default"], _extends({
678
- src: thumbnail || viewUrl,
679
- size: "small",
680
- alt: name,
681
- customClass: {
682
- customImageClass: "".concat(_AttachmentViewerModule["default"].image, " ").concat(_AttachmentViewerModule["default"].altText, " ").concat(customImageClass),
683
- customChildrenClass: "".concat(_AttachmentViewerModule["default"].crsrPointer, " ").concat(customChildrenClass)
684
- },
685
- dataId: dataId
686
- }, customProps), children));
687
- }))))), totalLen !== 1 && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
688
- dataId: "attachToggle",
689
- onClick: _this6.togglePViewList,
690
- iconName: "ZD-GN-hideTab",
691
- iconSize: "14",
692
- hoverType: "border",
693
- iconClass: "".concat(_AttachmentViewerModule["default"].thumpIcon, " ").concat(isPViewListOpen ? _AttachmentViewerModule["default"].thumpIconActive : ''),
694
- className: _AttachmentViewerModule["default"].button,
695
- a11y: {
696
- ariaLabel: i18nKeys.hideText
697
- },
698
- title: isPViewListOpen ? i18nKeys.hideText : i18nKeys.showText
699
- }));
700
- }));
701
- }
702
- }]);
703
-
704
- return AttachmentViewer;
705
- }(_react.Component);
706
-
707
- exports["default"] = AttachmentViewer;
708
- AttachmentViewer.propTypes = _propTypes.AttachmentViewer_propTypes;
709
- AttachmentViewer.defaultProps = _defaultProps.AttachmentViewer_defaultProps; // if (__DOCS__) {
710
- // AttachmentViewer.docs = {
711
- // componentGroup: "Molecule"
712
- // };
713
- // }