@zohodesk/dot 1.7.20-exp.1 → 1.7.20-exp.2

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 (304) hide show
  1. package/README.md +28 -0
  2. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +11 -1
  3. package/assets/Appearance/light/mode/Dot_LightMode.module.css +11 -1
  4. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +11 -1
  5. package/es/ActionButton/ActionButton.js +6 -6
  6. package/es/AlphabeticList/AlphabeticList.js +1 -1
  7. package/es/Attachment/Attachment.js +7 -4
  8. package/es/Attachment/__tests__/Attachment.spec.js +24 -0
  9. package/es/Attachment/__tests__/__snapshots__/Attachment.spec.js.snap +105 -0
  10. package/es/AttachmentViewer/AttachmentViewer.js +5 -5
  11. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  12. package/es/AudioPlayer/AudioPlayer.js +580 -0
  13. package/es/AudioPlayer/AudioPlayer.module.css +146 -0
  14. package/es/AudioPlayer/Timer/Timer.js +67 -0
  15. package/es/AudioPlayer/Timer/Timer.module.css +5 -0
  16. package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +20 -0
  17. package/es/AudioPlayer/Timer/__tests__/__snapshots__/Timer.spec.js.snap +14 -0
  18. package/es/AudioPlayer/Timer/propTypes/defaultProps.js +4 -0
  19. package/es/AudioPlayer/Timer/propTypes/propTypes.js +11 -0
  20. package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +192 -0
  21. package/es/AudioPlayer/__tests__/__snapshots__/AudioPlayer.spec.js.snap +1995 -0
  22. package/es/AudioPlayer/propTypes/defaultProps.js +14 -0
  23. package/es/AudioPlayer/propTypes/propTypes.js +33 -0
  24. package/es/AudioPlayer/utils/utils.js +24 -0
  25. package/es/ChannelIcon/ChannelIcon.js +1 -1
  26. package/es/Drawer/Drawer.js +6 -6
  27. package/es/FlipCard/FlipCard.js +3 -3
  28. package/es/FormAction/FormAction.js +1 -1
  29. package/es/FreezeLayer/FreezeLayer.js +3 -3
  30. package/es/Hooks/Dragger/useDragger.js +52 -33
  31. package/es/IconButton/IconButton.js +3 -3
  32. package/es/ImportantNotes/ImportantNotes.js +1 -1
  33. package/es/Loader/Loader.js +1 -1
  34. package/es/MessageBanner/MessageBanner.js +1 -1
  35. package/es/NewStar/NewStar.js +1 -1
  36. package/es/Onboarding/Onboarding.js +3 -3
  37. package/es/Separator/Separator.js +1 -1
  38. package/es/ToastMessage/ToastMessage.js +4 -4
  39. package/es/Upload/Upload.js +1 -1
  40. package/es/VideoLookup/VideoLookup.js +1 -1
  41. package/es/alert/AlertHeader/AlertHeader.js +1 -1
  42. package/es/alert/AlertLookup/AlertLookup.js +1 -1
  43. package/es/avatar/AvatarClose/AvatarClose.js +1 -1
  44. package/es/avatar/AvatarCollision/AvatarCollision.js +1 -1
  45. package/es/avatar/AvatarIcon/AvatarIcon.js +2 -2
  46. package/es/avatar/AvatarStatus/AvatarStatus.js +1 -1
  47. package/es/avatar/AvatarThread/AvatarThread.js +1 -1
  48. package/es/avatar/AvatarUser/AvatarUser.js +1 -1
  49. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  50. package/es/deprecated/FreezeLayer/FreezeLayer.js +3 -3
  51. package/es/deprecated/SelectDropdown/SelectDropdown.js +7 -7
  52. package/es/dot_layer.module.css +1 -0
  53. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +14 -14
  54. package/es/emptystate/EditionPage/EditionPage.js +1 -1
  55. package/es/errorstate/Inconvenience/Inconvenience.js +3 -3
  56. package/es/errorstate/NoRequestFound/NoRequestFound.js +3 -3
  57. package/es/errorstate/PermissionPlay/PermissionPlay.js +3 -3
  58. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
  59. package/es/errorstate/UnableToProcess/UnableToProcess.js +3 -3
  60. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
  61. package/es/errorstate/WillBack/WillBack.js +3 -3
  62. package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -3
  63. package/es/form/fields/CurrencyField/CurrencyField.js +3 -3
  64. package/es/form/fields/DateField/DateField.js +3 -3
  65. package/es/form/fields/FieldContainer/FieldContainer.js +1 -1
  66. package/es/form/fields/Fields.module.css +4 -0
  67. package/es/form/fields/MultiSelectField/MultiSelectField.js +3 -3
  68. package/es/form/fields/PhoneField/PhoneField.js +3 -2
  69. package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
  70. package/es/form/fields/RadioField/RadioField.js +2 -2
  71. package/es/form/fields/SelectField/SelectField.js +3 -3
  72. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +11 -11
  73. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +3 -3
  74. package/es/form/fields/TextBoxField/TextBoxField.js +3 -3
  75. package/es/form/fields/TextEditor/TextEditor.js +1 -1
  76. package/es/form/fields/TextEditorField/TextEditorField.js +1 -1
  77. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
  78. package/es/form/fields/TextareaField/TextareaField.js +3 -3
  79. package/es/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  80. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  81. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  82. package/es/layout/SubtabLayout/SubtabLayout.js +2 -2
  83. package/es/list/Comment/Comment.js +1 -1
  84. package/es/list/Icons/AddNewIcon.js +1 -1
  85. package/es/list/Icons/CompleteIcon.js +1 -1
  86. package/es/list/Icons/DeleteIcon.js +1 -1
  87. package/es/list/Icons/EditIcon.js +1 -1
  88. package/es/list/Icons/ReadUnreadIcon.js +1 -1
  89. package/es/list/Icons/SmartIcon.js +1 -1
  90. package/es/list/ListLayout/ListLayout.js +1 -1
  91. package/es/list/ListStencils/ListStencils.js +1 -1
  92. package/es/list/SecondaryText/AccountName.js +1 -1
  93. package/es/list/SecondaryText/ContactName.js +1 -1
  94. package/es/list/SecondryPanel/SecondryPanel.js +2 -2
  95. package/es/list/Thread/Thread.js +1 -1
  96. package/es/list/status/StatusDropdown/StatusDropdown.js +10 -10
  97. package/es/list/status/StatusListItem/StatusListItem.js +2 -2
  98. package/es/lookup/EmptyPage/EmptyPage.js +4 -4
  99. package/es/lookup/Lookup/Lookup.js +1 -1
  100. package/es/lookup/Section/Section.js +1 -1
  101. package/es/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  102. package/es/lookup/header/Search/Search.js +3 -3
  103. package/es/lookup/header/TicketHeader/TicketHeader.js +1 -1
  104. package/es/lookup/header/ViewDropDown/ViewDropDown.js +9 -9
  105. package/es/setup/header/Button/Button.js +1 -1
  106. package/es/setup/header/Link/Link.js +1 -1
  107. package/es/setup/header/Search/Search.js +1 -1
  108. package/es/setup/table/Table/Table.js +1 -1
  109. package/es/setup/table/TableBody/TableBody.js +1 -1
  110. package/es/setup/table/TableData/TableData.js +1 -1
  111. package/es/setup/table/TableHead/TableHead.js +1 -1
  112. package/es/setup/table/TableRow/TableRow.js +1 -1
  113. package/es/svg/PlusIcon.js +1 -1
  114. package/es/svg/SnippetIcon.js +1 -1
  115. package/es/svg/TemplateIcon.js +1 -1
  116. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
  117. package/es/v1/emptystate/EditionPage/EditionPage.js +1 -1
  118. package/es/v1/errorstate/Inconvenience/Inconvenience.js +1 -1
  119. package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
  120. package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
  121. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  122. package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -1
  123. package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
  124. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -2
  125. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  126. package/es/v1/lookup/EmptyPage/EmptyPage.js +4 -4
  127. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  128. package/es/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  129. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
  130. package/es/v1/svg/PlusIcon.js +1 -1
  131. package/es/v1/svg/SnippetIcon.js +1 -1
  132. package/es/v1/svg/TemplateIcon.js +1 -1
  133. package/es/version2/AlertClose/AlertClose.js +1 -1
  134. package/es/version2/GlobalNotification/GlobalNotification.js +1 -1
  135. package/es/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
  136. package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
  137. package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
  138. package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
  139. package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
  140. package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
  141. package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  142. package/es/version2/lookup/AlertLookup/AlertLookup.js +3 -3
  143. package/es/version2/notification/DesktopNotification/DesktopNotification.js +4 -4
  144. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +2 -2
  145. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +1 -0
  146. package/lib/ActionButton/ActionButton.js +6 -6
  147. package/lib/AlphabeticList/AlphabeticList.js +1 -1
  148. package/lib/Attachment/Attachment.js +7 -4
  149. package/lib/Attachment/__tests__/Attachment.spec.js +24 -0
  150. package/lib/Attachment/__tests__/__snapshots__/Attachment.spec.js.snap +105 -0
  151. package/lib/AttachmentViewer/AttachmentViewer.js +5 -5
  152. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  153. package/lib/AudioPlayer/AudioPlayer.js +662 -0
  154. package/lib/AudioPlayer/AudioPlayer.module.css +146 -0
  155. package/lib/AudioPlayer/Timer/Timer.js +117 -0
  156. package/lib/AudioPlayer/Timer/Timer.module.css +5 -0
  157. package/lib/AudioPlayer/Timer/__tests__/Timer.spec.js +26 -0
  158. package/lib/AudioPlayer/Timer/__tests__/__snapshots__/Timer.spec.js.snap +14 -0
  159. package/lib/AudioPlayer/Timer/propTypes/defaultProps.js +11 -0
  160. package/lib/AudioPlayer/Timer/propTypes/propTypes.js +22 -0
  161. package/lib/AudioPlayer/__tests__/AudioPlayer.spec.js +210 -0
  162. package/lib/AudioPlayer/__tests__/__snapshots__/AudioPlayer.spec.js.snap +1995 -0
  163. package/lib/AudioPlayer/propTypes/defaultProps.js +24 -0
  164. package/lib/AudioPlayer/propTypes/propTypes.js +44 -0
  165. package/lib/AudioPlayer/utils/utils.js +33 -0
  166. package/lib/ChannelIcon/ChannelIcon.js +1 -1
  167. package/lib/Drawer/Drawer.js +6 -6
  168. package/lib/FlipCard/FlipCard.js +3 -3
  169. package/lib/FormAction/FormAction.js +1 -1
  170. package/lib/FreezeLayer/FreezeLayer.js +3 -3
  171. package/lib/Hooks/Dragger/useDragger.js +51 -28
  172. package/lib/IconButton/IconButton.js +3 -3
  173. package/lib/ImportantNotes/ImportantNotes.js +1 -1
  174. package/lib/Loader/Loader.js +1 -1
  175. package/lib/MessageBanner/MessageBanner.js +1 -1
  176. package/lib/NewStar/NewStar.js +1 -1
  177. package/lib/Onboarding/Onboarding.js +3 -3
  178. package/lib/Separator/Separator.js +1 -1
  179. package/lib/ToastMessage/ToastMessage.js +4 -4
  180. package/lib/Upload/Upload.js +1 -1
  181. package/lib/VideoLookup/VideoLookup.js +1 -1
  182. package/lib/alert/AlertHeader/AlertHeader.js +1 -1
  183. package/lib/alert/AlertLookup/AlertLookup.js +1 -1
  184. package/lib/avatar/AvatarClose/AvatarClose.js +1 -1
  185. package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -1
  186. package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
  187. package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -1
  188. package/lib/avatar/AvatarThread/AvatarThread.js +1 -1
  189. package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
  190. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  191. package/lib/deprecated/FreezeLayer/FreezeLayer.js +3 -3
  192. package/lib/deprecated/SelectDropdown/SelectDropdown.js +7 -7
  193. package/lib/dot_layer.module.css +1 -0
  194. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +14 -14
  195. package/lib/emptystate/EditionPage/EditionPage.js +1 -1
  196. package/lib/errorstate/Inconvenience/Inconvenience.js +3 -3
  197. package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -3
  198. package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -3
  199. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
  200. package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -3
  201. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
  202. package/lib/errorstate/WillBack/WillBack.js +3 -3
  203. package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -3
  204. package/lib/form/fields/CurrencyField/CurrencyField.js +3 -3
  205. package/lib/form/fields/DateField/DateField.js +3 -3
  206. package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
  207. package/lib/form/fields/Fields.module.css +4 -0
  208. package/lib/form/fields/MultiSelectField/MultiSelectField.js +3 -3
  209. package/lib/form/fields/PhoneField/PhoneField.js +3 -2
  210. package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
  211. package/lib/form/fields/RadioField/RadioField.js +2 -2
  212. package/lib/form/fields/SelectField/SelectField.js +3 -3
  213. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +11 -11
  214. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +3 -3
  215. package/lib/form/fields/TextBoxField/TextBoxField.js +3 -3
  216. package/lib/form/fields/TextEditor/TextEditor.js +1 -1
  217. package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
  218. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
  219. package/lib/form/fields/TextareaField/TextareaField.js +3 -3
  220. package/lib/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  221. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  222. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  223. package/lib/layout/SubtabLayout/SubtabLayout.js +2 -2
  224. package/lib/list/Comment/Comment.js +1 -1
  225. package/lib/list/Icons/AddNewIcon.js +1 -1
  226. package/lib/list/Icons/CompleteIcon.js +1 -1
  227. package/lib/list/Icons/DeleteIcon.js +1 -1
  228. package/lib/list/Icons/EditIcon.js +1 -1
  229. package/lib/list/Icons/ReadUnreadIcon.js +1 -1
  230. package/lib/list/Icons/SmartIcon.js +1 -1
  231. package/lib/list/ListLayout/ListLayout.js +1 -1
  232. package/lib/list/ListStencils/ListStencils.js +1 -1
  233. package/lib/list/SecondaryText/AccountName.js +1 -1
  234. package/lib/list/SecondaryText/ContactName.js +1 -1
  235. package/lib/list/SecondryPanel/SecondryPanel.js +2 -2
  236. package/lib/list/Thread/Thread.js +1 -1
  237. package/lib/list/status/StatusDropdown/StatusDropdown.js +10 -10
  238. package/lib/list/status/StatusListItem/StatusListItem.js +2 -2
  239. package/lib/lookup/EmptyPage/EmptyPage.js +4 -4
  240. package/lib/lookup/Lookup/Lookup.js +1 -1
  241. package/lib/lookup/Section/Section.js +1 -1
  242. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  243. package/lib/lookup/header/Search/Search.js +3 -3
  244. package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
  245. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +9 -9
  246. package/lib/setup/header/Button/Button.js +1 -1
  247. package/lib/setup/header/Link/Link.js +1 -1
  248. package/lib/setup/header/Search/Search.js +1 -1
  249. package/lib/setup/table/Table/Table.js +1 -1
  250. package/lib/setup/table/TableBody/TableBody.js +1 -1
  251. package/lib/setup/table/TableData/TableData.js +1 -1
  252. package/lib/setup/table/TableHead/TableHead.js +1 -1
  253. package/lib/setup/table/TableRow/TableRow.js +1 -1
  254. package/lib/svg/PlusIcon.js +1 -1
  255. package/lib/svg/SnippetIcon.js +1 -1
  256. package/lib/svg/TemplateIcon.js +1 -1
  257. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
  258. package/lib/v1/emptystate/EditionPage/EditionPage.js +1 -1
  259. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +1 -1
  260. package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
  261. package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
  262. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  263. package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -1
  264. package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
  265. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -2
  266. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  267. package/lib/v1/lookup/EmptyPage/EmptyPage.js +4 -4
  268. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  269. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  270. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
  271. package/lib/v1/svg/PlusIcon.js +1 -1
  272. package/lib/v1/svg/SnippetIcon.js +1 -1
  273. package/lib/v1/svg/TemplateIcon.js +1 -1
  274. package/lib/version2/AlertClose/AlertClose.js +1 -1
  275. package/lib/version2/GlobalNotification/GlobalNotification.js +1 -1
  276. package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
  277. package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
  278. package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
  279. package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
  280. package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
  281. package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
  282. package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  283. package/lib/version2/lookup/AlertLookup/AlertLookup.js +3 -3
  284. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +4 -4
  285. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +2 -2
  286. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +1 -0
  287. package/package.json +23 -14
  288. package/.cli/MissedPropType_Keys.html +0 -101
  289. package/.cli/PropLessFiles.html +0 -101
  290. package/.cli/PropUnificationExcludeFilesArray.js +0 -345
  291. package/.cli/PropValidationExcludeFilesArray.js +0 -8
  292. package/.cli/ThemeValidationExcludeFiles.js +0 -1
  293. package/.cli/UnValidatedFiles.html +0 -101
  294. package/.cli/propValidation_report.html +0 -182
  295. package/.cli/stringContains.js +0 -1
  296. package/css_error.log +0 -1
  297. package/images/audio_thumbnail.png +0 -0
  298. package/install.md +0 -12
  299. package/postPublish.js +0 -8
  300. package/prePublish.js +0 -70
  301. package/propValidationArg.json +0 -12
  302. package/react-cli.config.js +0 -24
  303. package/result.json +0 -1
  304. package/unittest/index.html +0 -37
@@ -15,7 +15,7 @@ var _propTypes = require("./props/propTypes");
15
15
 
16
16
  var _icons = require("@zohodesk/icons");
17
17
 
18
- var _Layout = require("@zohodesk/components/lib/Layout");
18
+ var _Layout = require("@zohodesk/components/es/Layout");
19
19
 
20
20
  var _Link = _interopRequireDefault(require("../Link/Link"));
21
21
 
@@ -97,7 +97,8 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
97
97
  align: "horizontal"
98
98
  }, fileName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
99
99
  className: _AttachmentModule["default"].atatchName,
100
- "data-title": fileName
100
+ "data-title": fileName,
101
+ dataId: "".concat(dataId, "_filename")
101
102
  }, fileName) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
102
103
  className: _AttachmentModule["default"].footer
103
104
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
@@ -108,14 +109,16 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
108
109
  className: _AttachmentModule["default"].attachSize,
109
110
  adjust: true,
110
111
  shrink: true,
111
- "data-title": fileSize
112
+ "data-title": fileSize,
113
+ dataId: "".concat(dataId, "_filesize")
112
114
  }, fileSize) : null, fileInfo ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
113
115
  className: _AttachmentModule["default"].dot
114
116
  }), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
115
117
  className: _AttachmentModule["default"].attachSize,
116
118
  adjust: true,
117
119
  shrink: true,
118
- "data-title": fileInfo
120
+ "data-title": fileInfo,
121
+ dataId: "".concat(dataId, "_fileinfo")
119
122
  }, fileInfo)) : null)))), downloadLink && !isDisabled ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
120
123
  target: "_self",
121
124
  href: downloadLink,
@@ -13,6 +13,30 @@ describe('Attachment', function () {
13
13
  var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Attachment["default"], null)),
14
14
  asFragment = _render.asFragment;
15
15
 
16
+ expect(asFragment()).toMatchSnapshot();
17
+ });
18
+ });
19
+ describe('Attachment with props', function () {
20
+ test('rendering the defult props', function () {
21
+ var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Attachment["default"], {
22
+ onClick: jest.fn(),
23
+ dataId: "test_id",
24
+ size: "medium",
25
+ iconName: "test_icon",
26
+ fileName: "test_file",
27
+ fileSize: "10MB",
28
+ downloadLink: "http://example.com",
29
+ palette: "default",
30
+ tooltip: "test_tooltip",
31
+ fileInfo: "test_info",
32
+ i18nKeys: {
33
+ downloadTitle: 'Download'
34
+ },
35
+ dataSelectorId: "test_selector",
36
+ isDisabled: false
37
+ })),
38
+ asFragment = _render2.asFragment;
39
+
16
40
  expect(asFragment()).toMatchSnapshot();
17
41
  });
18
42
  });
@@ -39,3 +39,108 @@ exports[`Attachment rendering the defult props 1`] = `
39
39
  </div>
40
40
  </DocumentFragment>
41
41
  `;
42
+
43
+ exports[`Attachment with props rendering the defult props 1`] = `
44
+ <DocumentFragment>
45
+ <div
46
+ class="attachment attachmentHover palette_default medium inflex rowdir"
47
+ data-id="test_id"
48
+ data-selector-id="test_selector"
49
+ data-test-id="test_id"
50
+ data-title="test_tooltip"
51
+ tabindex="0"
52
+ >
53
+ <div
54
+ class="attachleft shrinkOff"
55
+ data-id="boxComponent"
56
+ data-selector-id="box"
57
+ data-test-id="boxComponent"
58
+ >
59
+ <div
60
+ class="flex cover coldir both"
61
+ data-id="containerComponent"
62
+ data-selector-id="container"
63
+ data-test-id="containerComponent"
64
+ />
65
+ </div>
66
+ <div
67
+ class="attachright grow basis shrinkOff"
68
+ data-id="boxComponent"
69
+ data-selector-id="box"
70
+ data-test-id="boxComponent"
71
+ >
72
+ <div
73
+ class="flex cover coldir hCenter"
74
+ data-id="containerComponent"
75
+ data-selector-id="container"
76
+ data-test-id="containerComponent"
77
+ >
78
+ <div
79
+ class="atatchName shrinkOff"
80
+ data-id="test_id_filename"
81
+ data-selector-id="box"
82
+ data-test-id="test_id_filename"
83
+ data-title="test_file"
84
+ >
85
+ test_file
86
+ </div>
87
+ <div
88
+ class="footer shrinkOff"
89
+ data-id="boxComponent"
90
+ data-selector-id="box"
91
+ data-test-id="boxComponent"
92
+ >
93
+ <div
94
+ class="flex rowdir baseline"
95
+ data-id="containerComponent"
96
+ data-selector-id="container"
97
+ data-test-id="containerComponent"
98
+ >
99
+ <div
100
+ class="attachSize basisAuto shrinkOn"
101
+ data-id="test_id_filesize"
102
+ data-selector-id="box"
103
+ data-test-id="test_id_filesize"
104
+ data-title="10MB"
105
+ >
106
+ 10MB
107
+ </div>
108
+ <div
109
+ class="dot shrinkOff"
110
+ data-id="boxComponent"
111
+ data-selector-id="box"
112
+ data-test-id="boxComponent"
113
+ />
114
+ <div
115
+ class="attachSize basisAuto shrinkOn"
116
+ data-id="test_id_fileinfo"
117
+ data-selector-id="box"
118
+ data-test-id="test_id_fileinfo"
119
+ data-title="test_info"
120
+ >
121
+ test_info
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <a
128
+ class="container attachDownload"
129
+ data-id="test_id_download"
130
+ data-test-id="test_id_download"
131
+ data-title="Download"
132
+ href="http://example.com"
133
+ rel="noopener noreferrer"
134
+ target="_self"
135
+ >
136
+ <i
137
+ aria-hidden="true"
138
+ class="zd_font_icons basic icon-download-new downIcon "
139
+ data-id="fontIcon"
140
+ data-selector-id="fontIcon"
141
+ data-test-id="fontIcon"
142
+ />
143
+ </a>
144
+ </div>
145
+ </DocumentFragment>
146
+ `;
@@ -13,17 +13,17 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
- var _Layout = require("@zohodesk/components/lib/Layout");
16
+ var _Layout = require("@zohodesk/components/es/Layout");
17
17
 
18
18
  var _icons = require("@zohodesk/icons");
19
19
 
20
- var _Avatar = _interopRequireDefault(require("@zohodesk/components/lib/Avatar/Avatar"));
20
+ var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/Avatar/Avatar"));
21
21
 
22
- var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
22
+ var _CustomResponsive = require("@zohodesk/components/es/Responsive/CustomResponsive");
23
23
 
24
- var _Typography = _interopRequireDefault(require("@zohodesk/components/lib/Typography/Typography"));
24
+ var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
25
25
 
26
- var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
26
+ var _IdProvider = require("@zohodesk/components/es/Provider/IdProvider");
27
27
 
28
28
  var _Button = _interopRequireDefault(require("@zohodesk/components/es/Button/Button"));
29
29
 
@@ -378,7 +378,7 @@
378
378
 
379
379
  .previewIconDiv {
380
380
  width: var(--zd_size60) ;
381
- composes: dflex from '~@zohodesk/components/lib/common/common.module.css';
381
+ composes: dflex from '~@zohodesk/components/es/common/common.module.css';
382
382
  }
383
383
 
384
384
  .prevFooterIcon {