@zohodesk/dot 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +9 -0
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/Image/Image.js.html +1 -1
  11. package/coverage/Image/Image.module.css.html +1 -1
  12. package/coverage/Image/index.html +1 -1
  13. package/coverage/Image/props/defaultProps.js.html +1 -1
  14. package/coverage/Image/props/index.html +1 -1
  15. package/coverage/Image/props/propTypes.js.html +1 -1
  16. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  17. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  22. package/coverage/coverage-final.json +12 -12
  23. package/coverage/coverage-summary.json +12 -12
  24. package/coverage/index.html +1 -1
  25. package/es/Drawer/Drawer.js +10 -10
  26. package/es/TagWithIcon/props/propTypes.js +1 -1
  27. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -2
  28. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
  29. package/es/layout/SubtabLayout/props/propTypes.js +1 -1
  30. package/es/list/status/StatusDropdown/StatusDropdown.js +4 -1
  31. package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
  32. package/es/lookup/Lookup/Lookup.js +10 -10
  33. package/es/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
  34. package/es/setup/helptips/ListGroup/ListGroup.js +1 -1
  35. package/es/v1/Attachment/Attachment.js +88 -0
  36. package/es/v1/AttachmentViewer/AttachmentImage.js +79 -0
  37. package/es/v1/AttachmentViewer/AttachmentViewer.js +541 -0
  38. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  39. package/es/v1/Drawer/Drawer.js +11 -11
  40. package/es/v1/FlipCard/FlipCard.js +3 -3
  41. package/es/v1/FreezeLayer/FreezeLayer.js +74 -0
  42. package/es/v1/Image/Image.js +39 -0
  43. package/es/v1/Link/Link.js +2 -1
  44. package/es/v1/Loader/Loader.js +21 -0
  45. package/es/v1/Message/Message.js +118 -0
  46. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  47. package/es/v1/PlusIcon/PlusIcon.js +44 -0
  48. package/es/v1/Separator/Separator.js +60 -0
  49. package/es/v1/ToastMessage/ToastMessage.js +203 -0
  50. package/es/v1/Upload/Upload.js +76 -0
  51. package/es/v1/actions/AutoClose.js +43 -0
  52. package/es/v1/alert/index.js +2 -0
  53. package/es/v1/avatar/AvatarClose/AvatarClose.js +53 -0
  54. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +62 -0
  55. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +54 -0
  56. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +72 -0
  57. package/es/v1/avatar/AvatarThread/AvatarThread.js +79 -0
  58. package/es/v1/avatar/AvatarUser/AvatarUser.js +116 -0
  59. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +98 -0
  60. package/es/v1/avatar/index.js +7 -0
  61. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +861 -0
  62. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  63. package/es/v1/errorstate/Inconvenience/Inconvenience.js +86 -0
  64. package/es/v1/errorstate/LinkText/LinkText.js +29 -0
  65. package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +84 -0
  66. package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +83 -0
  67. package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +84 -0
  68. package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +86 -0
  69. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +84 -0
  70. package/es/v1/errorstate/WillBack/WillBack.js +75 -0
  71. package/es/v1/errorstate/index.js +8 -0
  72. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +141 -0
  73. package/es/v1/form/fields/CurrencyField/CurrencyField.js +183 -0
  74. package/es/v1/form/fields/DateField/DateField.js +195 -0
  75. package/es/v1/form/fields/FieldContainer/FieldContainer.js +71 -0
  76. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +213 -0
  77. package/es/v1/form/fields/PhoneField/PhoneField.js +189 -0
  78. package/es/v1/form/fields/RadioField/RadioField.js +116 -0
  79. package/es/v1/form/fields/SelectField/SelectField.js +183 -0
  80. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +292 -0
  81. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
  82. package/es/v1/form/fields/TextBoxField/TextBoxField.js +164 -0
  83. package/es/v1/form/fields/TextEditor/TextEditor.js +418 -0
  84. package/es/v1/form/fields/TextEditorField/TextEditorField.js +178 -0
  85. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +203 -0
  86. package/es/v1/form/fields/TextareaField/TextareaField.js +161 -0
  87. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +58 -0
  88. package/es/v1/form/fields/index.js +16 -0
  89. package/es/v1/form/layout/Field/Field.js +33 -0
  90. package/es/v1/form/layout/Section/Section.js +37 -0
  91. package/es/v1/form/layout/index.js +2 -0
  92. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +217 -0
  93. package/es/v1/layout/SetupDetailLayout/index.js +4 -0
  94. package/es/v1/layout/SubtabLayout/SubtabLayout.js +144 -0
  95. package/es/v1/layout/SubtabLayout/index.js +4 -0
  96. package/es/v1/list/AvatarFlip/AvatarFlip.js +76 -0
  97. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +28 -0
  98. package/es/v1/list/Comment/Comment.js +45 -0
  99. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +100 -0
  100. package/es/v1/list/Dot/Dot.js +22 -0
  101. package/es/v1/list/DotNew/DotNew.js +29 -0
  102. package/es/v1/list/GridStencils/GridStencils.js +34 -0
  103. package/es/v1/list/Icons/AddNewIcon.js +28 -0
  104. package/es/v1/list/Icons/CompleteIcon.js +30 -0
  105. package/es/v1/list/Icons/DeleteIcon.js +31 -0
  106. package/es/v1/list/Icons/EditIcon.js +31 -0
  107. package/es/v1/list/Icons/FloatingIcons.js +30 -0
  108. package/es/v1/list/Icons/ReadUnreadIcon.js +35 -0
  109. package/es/v1/list/Icons/SmartIcon.js +28 -0
  110. package/es/v1/list/Icons/index.js +7 -0
  111. package/es/v1/list/ListLayout/ListLayout.js +83 -0
  112. package/es/v1/list/ListStencils/ListStencils.js +47 -0
  113. package/es/v1/list/SecondaryText/AccountName.js +85 -0
  114. package/es/v1/list/SecondaryText/ContactName.js +85 -0
  115. package/es/v1/list/SecondaryText/DepartmentText.js +30 -0
  116. package/es/v1/list/SecondaryText/Email.js +55 -0
  117. package/es/v1/list/SecondaryText/HappinessRating.js +31 -0
  118. package/es/v1/list/SecondaryText/PhoneNumber.js +59 -0
  119. package/es/v1/list/SecondaryText/PriorityText.js +33 -0
  120. package/es/v1/list/SecondaryText/SecondaryText.js +40 -0
  121. package/es/v1/list/SecondaryText/StatusText.js +34 -0
  122. package/es/v1/list/SecondaryText/TicketId.js +53 -0
  123. package/es/v1/list/SecondaryText/Website.js +43 -0
  124. package/es/v1/list/SecondaryText/index.js +11 -0
  125. package/es/v1/list/SecondryPanel/SecondryPanel.js +105 -0
  126. package/es/v1/list/SentimentStatus/SentimentStatus.js +34 -0
  127. package/es/v1/list/Subject/Subject.js +57 -0
  128. package/es/v1/list/TagNew/TagNew.js +33 -0
  129. package/es/v1/list/Thread/Thread.js +43 -0
  130. package/es/v1/list/UserTime/UserTime.js +83 -0
  131. package/es/v1/list/index.js +17 -0
  132. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +465 -0
  133. package/es/v1/list/status/StatusListItem/StatusListItem.js +122 -0
  134. package/es/v1/list/status/index.js +2 -0
  135. package/es/v1/lookup/EmptyPage/EmptyPage.js +65 -0
  136. package/es/v1/lookup/Lookup/Lookup.js +12 -10
  137. package/es/v1/lookup/Section/Section.js +25 -0
  138. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +176 -0
  139. package/es/v1/lookup/header/index.js +5 -0
  140. package/es/v1/setup/header/Button/Button.js +36 -0
  141. package/es/v1/setup/header/Link/Link.js +44 -0
  142. package/es/v1/setup/header/Search/Search.js +81 -0
  143. package/es/v1/setup/header/Views/Views.js +46 -0
  144. package/es/v1/setup/header/index.js +4 -0
  145. package/es/v1/setup/helptips/Description/Description.js +24 -0
  146. package/es/v1/setup/helptips/Link/Link.js +41 -0
  147. package/es/v1/setup/helptips/ListGroup/ListGroup.js +39 -0
  148. package/es/v1/setup/helptips/Title/Title.js +24 -0
  149. package/es/v1/setup/helptips/index.js +4 -0
  150. package/es/v1/setup/index.js +6 -0
  151. package/es/v1/setup/table/index.js +5 -0
  152. package/es/v1/svg/PlusIcon.js +32 -0
  153. package/es/v1/svg/SnippetIcon.js +34 -0
  154. package/es/v1/svg/TemplateIcon.js +35 -0
  155. package/es/v1/svg/index.js +3 -0
  156. package/es/v1/version2/alertIcons/index.js +8 -0
  157. package/es/v1/version2/index.js +12 -0
  158. package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +79 -0
  159. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
  160. package/es/v1/version2/notification/DesktopNotification/DesktopNotification.js +164 -0
  161. package/lib/Drawer/Drawer.js +15 -15
  162. package/lib/TagWithIcon/props/propTypes.js +1 -1
  163. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -3
  164. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  165. package/lib/layout/SubtabLayout/props/propTypes.js +1 -1
  166. package/lib/list/status/StatusDropdown/StatusDropdown.js +4 -3
  167. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  168. package/lib/lookup/Lookup/Lookup.js +15 -15
  169. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
  170. package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
  171. package/lib/v1/Attachment/Attachment.js +140 -0
  172. package/lib/v1/AttachmentViewer/AttachmentImage.js +124 -0
  173. package/lib/v1/AttachmentViewer/AttachmentViewer.js +625 -0
  174. package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
  175. package/lib/v1/Drawer/Drawer.js +16 -16
  176. package/lib/v1/FlipCard/FlipCard.js +3 -3
  177. package/lib/v1/FreezeLayer/FreezeLayer.js +94 -0
  178. package/lib/v1/Image/Image.js +89 -0
  179. package/lib/v1/Link/Link.js +2 -1
  180. package/lib/v1/Loader/Loader.js +70 -0
  181. package/lib/v1/Message/Message.js +170 -0
  182. package/lib/v1/MessageBanner/MessageBanner.js +1 -1
  183. package/lib/v1/PlusIcon/PlusIcon.js +91 -0
  184. package/lib/v1/Separator/Separator.js +107 -0
  185. package/lib/v1/ToastMessage/ToastMessage.js +246 -0
  186. package/lib/v1/Upload/Upload.js +128 -0
  187. package/lib/v1/actions/AutoClose.js +75 -0
  188. package/lib/v1/alert/index.js +23 -0
  189. package/lib/v1/avatar/AvatarClose/AvatarClose.js +101 -0
  190. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +110 -0
  191. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +106 -0
  192. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +119 -0
  193. package/lib/v1/avatar/AvatarThread/AvatarThread.js +130 -0
  194. package/lib/v1/avatar/AvatarUser/AvatarUser.js +167 -0
  195. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +154 -0
  196. package/lib/v1/avatar/index.js +63 -0
  197. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +932 -0
  198. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  199. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +137 -0
  200. package/lib/v1/errorstate/LinkText/LinkText.js +80 -0
  201. package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +135 -0
  202. package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +134 -0
  203. package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +135 -0
  204. package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +137 -0
  205. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +135 -0
  206. package/lib/v1/errorstate/WillBack/WillBack.js +125 -0
  207. package/lib/v1/errorstate/index.js +71 -0
  208. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +197 -0
  209. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +234 -0
  210. package/lib/v1/form/fields/DateField/DateField.js +249 -0
  211. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +118 -0
  212. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +268 -0
  213. package/lib/v1/form/fields/PhoneField/PhoneField.js +236 -0
  214. package/lib/v1/form/fields/RadioField/RadioField.js +169 -0
  215. package/lib/v1/form/fields/SelectField/SelectField.js +236 -0
  216. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +346 -0
  217. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +299 -0
  218. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +219 -0
  219. package/lib/v1/form/fields/TextEditor/TextEditor.js +463 -0
  220. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +230 -0
  221. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +256 -0
  222. package/lib/v1/form/fields/TextareaField/TextareaField.js +215 -0
  223. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +110 -0
  224. package/lib/{docs/formDocs.js → v1/form/fields/index.js} +33 -25
  225. package/lib/v1/form/layout/Field/Field.js +87 -0
  226. package/lib/v1/form/layout/Section/Section.js +86 -0
  227. package/lib/v1/form/layout/index.js +23 -0
  228. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +305 -0
  229. package/lib/v1/layout/SetupDetailLayout/index.js +37 -0
  230. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +245 -0
  231. package/lib/v1/layout/SubtabLayout/index.js +37 -0
  232. package/lib/v1/list/AvatarFlip/AvatarFlip.js +131 -0
  233. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +73 -0
  234. package/lib/v1/list/Comment/Comment.js +98 -0
  235. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +157 -0
  236. package/lib/v1/list/Dot/Dot.js +72 -0
  237. package/lib/v1/list/DotNew/DotNew.js +79 -0
  238. package/lib/v1/list/GridStencils/GridStencils.js +83 -0
  239. package/lib/v1/list/Icons/AddNewIcon.js +79 -0
  240. package/lib/v1/list/Icons/CompleteIcon.js +81 -0
  241. package/lib/v1/list/Icons/DeleteIcon.js +82 -0
  242. package/lib/v1/list/Icons/EditIcon.js +82 -0
  243. package/lib/v1/list/Icons/FloatingIcons.js +87 -0
  244. package/lib/v1/list/Icons/ReadUnreadIcon.js +87 -0
  245. package/lib/v1/list/Icons/SmartIcon.js +83 -0
  246. package/lib/v1/list/Icons/index.js +63 -0
  247. package/lib/v1/list/ListLayout/ListLayout.js +145 -0
  248. package/lib/v1/list/ListStencils/ListStencils.js +96 -0
  249. package/lib/v1/list/SecondaryText/AccountName.js +136 -0
  250. package/lib/v1/list/SecondaryText/ContactName.js +144 -0
  251. package/lib/v1/list/SecondaryText/DepartmentText.js +79 -0
  252. package/lib/v1/list/SecondaryText/Email.js +103 -0
  253. package/lib/v1/list/SecondaryText/HappinessRating.js +81 -0
  254. package/lib/v1/list/SecondaryText/PhoneNumber.js +107 -0
  255. package/lib/v1/list/SecondaryText/PriorityText.js +83 -0
  256. package/lib/v1/list/SecondaryText/SecondaryText.js +88 -0
  257. package/lib/v1/list/SecondaryText/StatusText.js +84 -0
  258. package/lib/v1/list/SecondaryText/TicketId.js +104 -0
  259. package/lib/v1/list/SecondaryText/Website.js +91 -0
  260. package/lib/v1/list/SecondaryText/index.js +95 -0
  261. package/lib/v1/list/SecondryPanel/SecondryPanel.js +205 -0
  262. package/lib/v1/list/SentimentStatus/SentimentStatus.js +80 -0
  263. package/lib/v1/list/Subject/Subject.js +108 -0
  264. package/lib/v1/list/TagNew/TagNew.js +83 -0
  265. package/lib/v1/list/Thread/Thread.js +95 -0
  266. package/lib/v1/list/UserTime/UserTime.js +136 -0
  267. package/lib/v1/list/index.js +173 -0
  268. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +541 -0
  269. package/lib/v1/list/status/StatusListItem/StatusListItem.js +168 -0
  270. package/lib/v1/list/status/index.js +23 -0
  271. package/lib/v1/lookup/EmptyPage/EmptyPage.js +120 -0
  272. package/lib/v1/lookup/Lookup/Lookup.js +17 -15
  273. package/lib/v1/lookup/Section/Section.js +75 -0
  274. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +221 -0
  275. package/lib/v1/lookup/header/index.js +47 -0
  276. package/lib/v1/setup/header/Button/Button.js +83 -0
  277. package/lib/v1/setup/header/Link/Link.js +93 -0
  278. package/lib/v1/setup/header/Search/Search.js +126 -0
  279. package/lib/v1/setup/header/Views/Views.js +93 -0
  280. package/lib/v1/setup/header/index.js +39 -0
  281. package/lib/v1/setup/helptips/Description/Description.js +68 -0
  282. package/lib/v1/setup/helptips/Link/Link.js +88 -0
  283. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +88 -0
  284. package/lib/v1/setup/helptips/Title/Title.js +68 -0
  285. package/lib/v1/setup/helptips/index.js +39 -0
  286. package/lib/v1/setup/index.js +24 -0
  287. package/lib/v1/setup/table/index.js +47 -0
  288. package/lib/v1/svg/PlusIcon.js +82 -0
  289. package/lib/v1/svg/SnippetIcon.js +84 -0
  290. package/lib/v1/svg/TemplateIcon.js +85 -0
  291. package/lib/v1/svg/index.js +31 -0
  292. package/lib/v1/version2/alertIcons/index.js +71 -0
  293. package/lib/v1/version2/index.js +58 -0
  294. package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +104 -0
  295. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
  296. package/lib/v1/version2/notification/DesktopNotification/DesktopNotification.js +193 -0
  297. package/package.json +9 -9
  298. package/result.json +1 -1
  299. package/es/docs/formDocs.js +0 -15
  300. package/es/docs/generalDocs.js +0 -63
  301. package/es/docs/lookupDocs.js +0 -17
  302. package/es/docs/setupDocs.js +0 -11
  303. package/lib/docs/generalDocs.js +0 -479
  304. package/lib/docs/lookupDocs.js +0 -135
  305. package/lib/docs/setupDocs.js +0 -95
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import { Icon } from '@zohodesk/icons';
3
3
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
4
- import AvatarIcon from '../../avatar/AvatarIcon/AvatarIcon';
4
+ import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
5
5
  import { defaultProps } from '../../ChannelIcon/props/defaultProps';
6
6
  import { propTypes } from '../../ChannelIcon/props/propTypes';
7
7
  import { getChannelMappingObj } from '../../utils/ChannelIconMapping';
@@ -9,7 +9,7 @@ import { Icon } from '@zohodesk/icons';
9
9
  import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
10
10
  import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
11
11
  import Heading from '@zohodesk/components/lib/Heading/Heading';
12
- import FreezeLayer from '../../FreezeLayer/FreezeLayer';
12
+ import FreezeLayer from '../FreezeLayer/FreezeLayer';
13
13
  import FormAction from '../FormAction/FormAction';
14
14
  import IconButton from '../IconButton/IconButton';
15
15
  import style from '../../Drawer/Drawer.module.css';
@@ -143,11 +143,11 @@ export default function Drawer(props) {
143
143
  focusScopeProps = {}
144
144
  } = customProps;
145
145
  const {
146
- autoFocus = true,
147
- restoreFocus = true,
148
- needArrowLoop = false,
149
- needTabLoop = true,
150
- enableEnterAction = false
146
+ needAutoFocus = true,
147
+ needRestoreFocus = true,
148
+ needListNavigation = false,
149
+ needFocusLoop = true,
150
+ needEnterAction = false
151
151
  } = focusScopeProps;
152
152
  let childrenWithProps = React.Children.map(children, child => {
153
153
  if (child.type === Header || child.type === Footer || child.type === Content) {
@@ -186,12 +186,12 @@ export default function Drawer(props) {
186
186
  flexible: true
187
187
  }, subDrawerChildren))))) : null, needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
188
188
  elementRef: contentRef,
189
- autoFocus: autoFocus,
190
- needTabLoop: needTabLoop,
191
- restoreFocus: restoreFocus,
192
- needArrowLoop: needArrowLoop,
189
+ needAutoFocus: needAutoFocus,
190
+ needFocusLoop: needFocusLoop,
191
+ needRestoreFocus: needRestoreFocus,
192
+ needListNavigation: needListNavigation,
193
193
  onClose: onClose,
194
- enableEnterAction: enableEnterAction
194
+ needEnterAction: needEnterAction
195
195
  }, content) : content);
196
196
  }
197
197
 
@@ -6,9 +6,9 @@ import { propTypes } from '../../FlipCard/props/propTypes';
6
6
  import CheckBox from '@zohodesk/components/lib/CheckBox/CheckBox';
7
7
  import { Container } from '@zohodesk/components/lib/Layout';
8
8
  import AvatarSize from '@zohodesk/components/lib/Provider/AvatarSize';
9
- import ChannelIcon from '../../ChannelIcon/ChannelIcon';
10
- import AvatarIcon from '../../avatar/AvatarIcon/AvatarIcon';
11
- import AvatarUser from '../../avatar/AvatarUser/AvatarUser';
9
+ import ChannelIcon from '../ChannelIcon/ChannelIcon';
10
+ import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
11
+ import AvatarUser from '../avatar/AvatarUser/AvatarUser';
12
12
  import { stopBubbling } from '../../utils/General';
13
13
  import style from '../../FlipCard/FlipCard.module.css';
14
14
  export default function FlipCard(props) {
@@ -0,0 +1,74 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../FreezeLayer/props/defaultProps';
3
+ import { propTypes } from '../../FreezeLayer/props/propTypes';
4
+ import { Container } from '@zohodesk/components/lib/Layout';
5
+ import { mergeStyle } from '@zohodesk/utils';
6
+ import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
7
+ import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
8
+ import cssJSLogic from '../../FreezeLayer/css/cssJSLogic';
9
+ import useFreezeLayer from '../../FreezeLayer/useFreezeLayer';
10
+ import style from '../../FreezeLayer/css/FreezeLayer.module.css';
11
+ export default function FreezeLayer(props) {
12
+ let {
13
+ isActive: propsActive,
14
+ children,
15
+ align,
16
+ childAnimationName,
17
+ palette,
18
+ onClick,
19
+ animationName,
20
+ runOnMount,
21
+ forwardRef,
22
+ isSvgMask,
23
+ needAutoZindex,
24
+ customStyle
25
+ } = props;
26
+ const finalStyle = mergeStyle(style, customStyle);
27
+ const {
28
+ freezeClass
29
+ } = cssJSLogic({
30
+ props,
31
+ style: finalStyle
32
+ });
33
+ const getNextIndex = useZIndex();
34
+ const {
35
+ isActive,
36
+ isChildActive,
37
+ handleClick
38
+ } = useFreezeLayer({
39
+ isActive: propsActive,
40
+ onClick
41
+ });
42
+ return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
43
+ name: animationName && animationName,
44
+ isActive: isActive,
45
+ runOnMount: runOnMount
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ style: isActive && needAutoZindex ? {
48
+ zIndex: `${getNextIndex()}`
49
+ } : {},
50
+ className: freezeClass,
51
+ onClick: handleClick,
52
+ "data-drag-parent": true,
53
+ ref: forwardRef
54
+ }, children && /*#__PURE__*/React.createElement(React.Fragment, null, childAnimationName ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
55
+ name: childAnimationName,
56
+ isActive: isChildActive,
57
+ enterDelay: palette === 'plain' ? 0 : 300,
58
+ component: Container,
59
+ alignBox: "row",
60
+ align: align,
61
+ dataId: "reactFreezeLayer"
62
+ }, children) : isSvgMask ? /*#__PURE__*/React.createElement(React.Fragment, null, children) : /*#__PURE__*/React.createElement(Container, {
63
+ alignBox: "row",
64
+ align: align,
65
+ dataId: "reactFreezeLayer"
66
+ }, children))));
67
+ }
68
+ FreezeLayer.propTypes = propTypes;
69
+ FreezeLayer.defaultProps = defaultProps; // if (__DOCS__) {
70
+ // FreezeLayer.docs = {
71
+ // componentGroup: 'Atom',
72
+ // folderName: 'General'
73
+ // };
74
+ // }
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../Image/props/defaultProps';
3
+ import { propTypes } from '../../Image/props/propTypes';
4
+ import style from '../../Image/Image.module.css';
5
+ export default class Image extends React.Component {
6
+ render() {
7
+ let {
8
+ alt,
9
+ src,
10
+ className,
11
+ isCover,
12
+ title,
13
+ onClick,
14
+ dataId,
15
+ htmlId,
16
+ eleRef,
17
+ original
18
+ } = this.props;
19
+ return /*#__PURE__*/React.createElement("img", {
20
+ src: src,
21
+ alt: alt,
22
+ "data-title": title,
23
+ "data-id": dataId,
24
+ "data-test-id": dataId,
25
+ className: ` ${className} ${isCover ? style.imgFullSize : style.imgMaxFullSize} `,
26
+ onClick: onClick,
27
+ id: htmlId,
28
+ ref: eleRef,
29
+ "data-original": original
30
+ });
31
+ }
32
+
33
+ }
34
+ Image.propTypes = propTypes;
35
+ Image.defaultProps = defaultProps; // if (__DOCS__) {
36
+ // Image.docs = {
37
+ // componentGroup: 'Atom'
38
+ // };
39
+ // }
@@ -84,7 +84,8 @@ export default function Link(props) {
84
84
  }, others, {
85
85
  onClick: callBack
86
86
  }, customProps, {
87
- "aria-label": ariaLabel
87
+ "aria-label": ariaLabel,
88
+ tabIndex: "0"
88
89
  }), children);
89
90
  }
90
91
  Link.defaultProps = defaultProps;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { getZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
3
+ import style from '../../Loader/Loader.module.css';
4
+ export default class Loader extends React.Component {
5
+ constructor(props) {
6
+ super(props);
7
+ this.getNextIndex = getZIndex(this);
8
+ }
9
+
10
+ render() {
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: style.ajaxLoader,
13
+ style: {
14
+ zIndex: `${this.getNextIndex()}`
15
+ }
16
+ }, /*#__PURE__*/React.createElement("div", {
17
+ className: style.loader
18
+ }));
19
+ }
20
+
21
+ }
@@ -0,0 +1,118 @@
1
+ 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); }
2
+
3
+ import React from 'react';
4
+ import { defaultProps } from '../../Message/props/defaultProps';
5
+ import { propTypes, MessageUI_propTypes, MessageNew_propTypes } from '../../Message/props/propTypes';
6
+ import { Icon } from '@zohodesk/icons';
7
+ import AutoClose from '../actions/AutoClose';
8
+ import style from '../../Message/Message.module.css';
9
+ export default class Message extends React.Component {
10
+ constructor(props) {
11
+ super(props);
12
+ this.state = {
13
+ hideMessage: false
14
+ };
15
+ }
16
+
17
+ UNSAFE_componentWillReceiveProps(nextProps) {
18
+ let {
19
+ showMessage,
20
+ hideMessage
21
+ } = this.props;
22
+
23
+ if (showMessage !== nextProps.showMessage) {
24
+ if (nextProps.type != 'alert') {
25
+ setTimeout(() => {
26
+ hideMessage();
27
+ }, 3000);
28
+ }
29
+ }
30
+ }
31
+
32
+ componentDidMount() {
33
+ let {
34
+ type,
35
+ hideMessage
36
+ } = this.props;
37
+
38
+ if (type != 'alert') {
39
+ setTimeout(() => {
40
+ hideMessage();
41
+ }, 3000);
42
+ }
43
+ }
44
+
45
+ render() {
46
+ return /*#__PURE__*/React.createElement(MessageUI, this.props);
47
+ }
48
+
49
+ }
50
+ Message.propTypes = propTypes;
51
+ Message.defaultProps = defaultProps; // if (__DOCS__) {
52
+ // Message.docs = {
53
+ // componentGroup: 'Atom'
54
+ // };
55
+ // }
56
+
57
+ export function MessageUI(props) {
58
+ function onClose(e) {
59
+ let {
60
+ hideMessage,
61
+ onClose
62
+ } = props;
63
+ hideMessage && hideMessage(e);
64
+ onClose && onClose(e);
65
+ }
66
+
67
+ let {
68
+ type,
69
+ message,
70
+ onClick,
71
+ i18nKeys,
72
+ dataSelectorId
73
+ } = props;
74
+ let {
75
+ closeTitle = 'Close'
76
+ } = i18nKeys;
77
+ return /*#__PURE__*/React.createElement("div", {
78
+ className: style.message,
79
+ "data-id": `show_${type}_message`,
80
+ "data-test-id": `show_${type}_message`,
81
+ "data-selector-id": dataSelectorId
82
+ }, /*#__PURE__*/React.createElement("div", {
83
+ className: style.container
84
+ }, /*#__PURE__*/React.createElement("div", {
85
+ className: style[type]
86
+ }, /*#__PURE__*/React.createElement("span", {
87
+ className: style.tickIcn
88
+ }, /*#__PURE__*/React.createElement(Icon, {
89
+ name: type == 'alert' ? 'ZD-notifiExclamation' : type == 'info' ? 'ZD-info31' : 'ZD-check',
90
+ isBold: true,
91
+ size: "10"
92
+ }))), /*#__PURE__*/React.createElement("span", {
93
+ className: style.text,
94
+ onClick: onClick,
95
+ "data-id": "infoMessage",
96
+ "data-test-id": "infoMessage",
97
+ dangerouslySetInnerHTML: {
98
+ __html: message
99
+ }
100
+ }), /*#__PURE__*/React.createElement("span", {
101
+ className: style.close,
102
+ "data-title": closeTitle,
103
+ onClick: onClose,
104
+ "data-id": `close_${type}_message`,
105
+ "data-test-id": `close_${type}_message`
106
+ }, /*#__PURE__*/React.createElement(Icon, {
107
+ name: "ZD-closee",
108
+ isBold: true,
109
+ size: "10"
110
+ }))));
111
+ }
112
+ MessageUI.propTypes = MessageUI_propTypes;
113
+ export function MessageNew(props) {
114
+ return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
115
+ Element: MessageUI
116
+ }));
117
+ }
118
+ MessageNew.propTypes = MessageNew_propTypes;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { defaultProps } from '../../MessageBanner/props/defaultProps';
3
3
  import { propTypes } from '../../MessageBanner/props/propTypes';
4
- import Link from '../../Link/Link';
4
+ import Link from '../Link/Link';
5
5
  import { Icon } from '@zohodesk/icons';
6
6
  import { Container, Box } from '@zohodesk/components/lib/Layout';
7
7
  import style from '../../MessageBanner/MessageBanner.module.css';
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { defaultProps } from '../../PlusIcon/props/defaultProps';
3
+ import { propTypes } from '../../PlusIcon/props/propTypes';
4
+ import style from '../../PlusIcon/PlusIcon.module.css';
5
+ import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
6
+ export default class PlusIcon extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ }
10
+
11
+ render() {
12
+ let {
13
+ dataId,
14
+ iconName,
15
+ iconClass,
16
+ iconSize,
17
+ size,
18
+ onClick,
19
+ title,
20
+ customClass
21
+ } = this.props;
22
+ return /*#__PURE__*/React.createElement("span", {
23
+ className: style.container,
24
+ onClick: onClick,
25
+ "data-id": dataId,
26
+ "data-test-id": dataId,
27
+ "data-title": title
28
+ }, /*#__PURE__*/React.createElement(AvatarIcon, {
29
+ name: iconName,
30
+ iconClass: `${iconClass} ${style.icon}`,
31
+ iconSize: iconSize,
32
+ size: size,
33
+ className: `${customClass} ${style.plusIcon}`
34
+ }));
35
+ }
36
+
37
+ }
38
+ PlusIcon.defaultProps = defaultProps;
39
+ PlusIcon.propTypes = propTypes; // if (__DOCS__) {
40
+ // PlusIcon.docs = {
41
+ // componentGroup: 'Common',
42
+ // folderName: 'Ticket DetailView'
43
+ // };
44
+ // }
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { Container, Box } from '@zohodesk/components/lib/Layout';
3
+ import { defaultProps } from '../../Separator/props/defaultProps';
4
+ import { propTypes } from '../../Separator/props/propTypes';
5
+ import style from '../../Separator/Separator.module.css';
6
+ export default class Separator extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ }
10
+
11
+ render() {
12
+ const {
13
+ children,
14
+ type,
15
+ customSeparatorType,
16
+ palette,
17
+ wrap,
18
+ shrink,
19
+ aligndirection,
20
+ customClass
21
+ } = this.props;
22
+ const {
23
+ customWrapper,
24
+ customSeparator,
25
+ customChildren
26
+ } = customClass;
27
+ const data = children.filter(el => el !== null && el !== undefined && el !== false);
28
+ return /*#__PURE__*/React.createElement(Container, {
29
+ alignBox: aligndirection,
30
+ align: aligndirection === 'row' ? 'vertical' : '',
31
+ wrap: wrap,
32
+ isCover: false,
33
+ className: `${style.varClass} ${customWrapper}`
34
+ }, data.map((child, i) => {
35
+ if (child) {
36
+ if (data.length - 1 == i || aligndirection == 'column') {
37
+ return child && /*#__PURE__*/React.createElement(Box, {
38
+ shrink: shrink,
39
+ key: i,
40
+ className: customChildren
41
+ }, child);
42
+ }
43
+
44
+ return child && /*#__PURE__*/React.createElement(React.Fragment, {
45
+ key: i
46
+ }, /*#__PURE__*/React.createElement(Box, {
47
+ shrink: shrink,
48
+ key: i,
49
+ className: customChildren
50
+ }, child), /*#__PURE__*/React.createElement(Box, {
51
+ className: `${style.separator} ${style[palette]} ${customSeparatorType ? '' : style[type]} ${customSeparator} `,
52
+ key: i
53
+ }, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : '\u2022'));
54
+ }
55
+ }));
56
+ }
57
+
58
+ }
59
+ Separator.defaultProps = defaultProps;
60
+ Separator.propTypes = propTypes;
@@ -0,0 +1,203 @@
1
+ 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); }
2
+
3
+ import React, { useState } from 'react';
4
+ import { defaultProps } from '../../ToastMessage/props/defaultProps';
5
+ import { propTypes } from '../../ToastMessage/props/propTypes'; //components
6
+
7
+ import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
8
+ import { Icon } from '@zohodesk/icons';
9
+ import { Container, Box } from '@zohodesk/components/lib/Layout';
10
+ import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
11
+ import { useUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
12
+ import AutoClose from '../actions/AutoClose';
13
+ import a11yStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css'; //style
14
+
15
+ import style from '../../ToastMessage/ToastMessage.module.css';
16
+
17
+ function ToastMessageUI(props) {
18
+ let [messageState, setMessageState] = useState(props.messageState);
19
+ let {
20
+ type,
21
+ subject,
22
+ info,
23
+ submitText,
24
+ cancelText,
25
+ iconName,
26
+ iconSize,
27
+ submitType,
28
+ isIconMid,
29
+ needClose,
30
+ iconPalette,
31
+ isMore,
32
+ message,
33
+ isAnimate,
34
+ getLeftContainer,
35
+ getInnerBottomContainer,
36
+ getBottomContainer,
37
+ getSubmitContainer,
38
+ onSubmit,
39
+ onCancel,
40
+ dataId,
41
+ dataSelectorId,
42
+ isClose,
43
+ onClose,
44
+ needAutoZindex,
45
+ a11y
46
+ } = props;
47
+
48
+ function onClickSubmit(e) {
49
+ onSubmit && onSubmit();
50
+ onClose && onClose();
51
+ }
52
+
53
+ function onClickCancel(e) {
54
+ onCancel && onCancel();
55
+ onClose && onClose();
56
+ }
57
+
58
+ function changeMessageState(e) {
59
+ cancelBubblingEffect(e);
60
+ setMessageState(!messageState);
61
+ }
62
+
63
+ let animateClass = isClose ? style.rightanimate : style.leftanimate;
64
+ let animateRemoveClass = isClose ? style.rightanimate : style.leftnoanimate;
65
+ let channelIcon = /*#__PURE__*/React.createElement(Icon, {
66
+ iconClass: style[iconPalette],
67
+ name: iconName,
68
+ size: iconSize
69
+ });
70
+ let getNextIndex = useZIndex();
71
+ let Zindex = isAnimate ? getNextIndex() : null,
72
+ getNextId = useUniqueId(),
73
+ titleId = getNextId(),
74
+ infoId = getNextId();
75
+ let {
76
+ role = 'alert',
77
+ ariaLive = 'assertive',
78
+ ariaAtomic = true,
79
+ ariaDescribedby = infoId,
80
+ ariaLabelledby = titleId
81
+ } = a11y;
82
+ return /*#__PURE__*/React.createElement(Container, {
83
+ className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`alert${type}`] ? style[`alert${type}`] : ''}`,
84
+ isCover: false,
85
+ dataId: dataId,
86
+ style: needAutoZindex && isAnimate ? {
87
+ zIndex: `${Zindex}`
88
+ } : {},
89
+ role: role,
90
+ "aria-live": ariaLive,
91
+ "aria-atomic": ariaAtomic,
92
+ "aria-describedby": ariaDescribedby,
93
+ "aria-labelledby": ariaLabelledby,
94
+ dataSelectorId: dataSelectorId
95
+ }, type !== 'custom' ? /*#__PURE__*/React.createElement(Box, {
96
+ className: style.alertifychild,
97
+ flexible: true
98
+ }, /*#__PURE__*/React.createElement(Container, {
99
+ alignBox: "row",
100
+ className: style.alertifybanner
101
+ }, /*#__PURE__*/React.createElement(Box, {
102
+ className: style.alertleft,
103
+ flexible: true
104
+ }, /*#__PURE__*/React.createElement(Container, {
105
+ align: isIconMid ? 'vertical' : '',
106
+ alignBox: "row"
107
+ }, type != 'success' && !getLeftContainer ? /*#__PURE__*/React.createElement(Box, {
108
+ className: `${style.alertico}`
109
+ }, /*#__PURE__*/React.createElement("span", null, channelIcon)) : getLeftContainer ? /*#__PURE__*/React.createElement(Box, {
110
+ className: `${style.alertico}`
111
+ }, getLeftContainer()) : null, /*#__PURE__*/React.createElement(Box, {
112
+ flexible: true
113
+ }, /*#__PURE__*/React.createElement(Container, {
114
+ align: "vertical",
115
+ alignBox: "row",
116
+ isCover: false
117
+ }, type == 'success' ? /*#__PURE__*/React.createElement(Box, {
118
+ className: style.alertTitleLeft
119
+ }, channelIcon) : null, /*#__PURE__*/React.createElement(Box, {
120
+ className: style.alertTitle,
121
+ flexible: true,
122
+ "data-title": subject,
123
+ id: titleId
124
+ }, subject)), info ? /*#__PURE__*/React.createElement("p", {
125
+ className: style.alertMessage,
126
+ "data-title": info,
127
+ id: infoId
128
+ }, info) : null, getInnerBottomContainer ? /*#__PURE__*/React.createElement("div", null, getInnerBottomContainer()) : null), type == 'information' && needClose ? /*#__PURE__*/React.createElement(Box, {
129
+ className: `${a11yStyle.buttonReset} ${style.closeIconPrimary}`,
130
+ onClick: onClose,
131
+ dataId: `${dataId}_close`,
132
+ tagName: "button"
133
+ }, /*#__PURE__*/React.createElement(Icon, {
134
+ isBold: true,
135
+ name: "ZD-close",
136
+ size: "18"
137
+ })) : null)), type != 'information' ? /*#__PURE__*/React.createElement(Box, {
138
+ className: style.alertright
139
+ }, /*#__PURE__*/React.createElement(Container, {
140
+ className: style.alerttab
141
+ }, needClose ? /*#__PURE__*/React.createElement("button", {
142
+ className: `${a11yStyle.buttonReset} ${style.closeIcon}`,
143
+ onClick: onClose,
144
+ "data-id": `${dataId}_closeRight`,
145
+ "data-test-id": `${dataId}_closeRight`
146
+ }, /*#__PURE__*/React.createElement(Icon, {
147
+ name: "ZD-close",
148
+ size: "18"
149
+ })) : null, submitText ? /*#__PURE__*/React.createElement(Box, {
150
+ className: `${getSubmitContainer ? style.sumbitBorder : cancelText ? style.notSolo : style.mainbutton} ${getSubmitContainer ? '' : style[submitType]} `,
151
+ flexible: true,
152
+ onClick: onClickSubmit,
153
+ dataId: `${dataId}_submitButton`
154
+ }, /*#__PURE__*/React.createElement(Container, {
155
+ align: "vertical",
156
+ alignBox: "row"
157
+ }, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
158
+ flexible: true
159
+ }, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
160
+ className: `${a11yStyle.buttonReset} ${style.buttonText}`,
161
+ flexible: true,
162
+ tagName: "button"
163
+ }, submitText))) : null, cancelText ? /*#__PURE__*/React.createElement(Box, {
164
+ className: `${style.cancelButton}`,
165
+ flexible: true,
166
+ onClick: onClose,
167
+ dataId: `${dataId}_cancelButton`
168
+ }, /*#__PURE__*/React.createElement(Container, {
169
+ align: "vertical",
170
+ alignBox: "row"
171
+ }, /*#__PURE__*/React.createElement(Box, {
172
+ className: `${a11yStyle.buttonReset} ${style.buttonText}`,
173
+ flexible: true,
174
+ onClick: onClickCancel,
175
+ dataId: `${dataId}_cancelButtonInner`,
176
+ tagName: "button"
177
+ }, cancelText), isMore ? /*#__PURE__*/React.createElement(Box, {
178
+ className: `${a11yStyle.buttonReset} ${style.dropdown}`,
179
+ onClick: changeMessageState,
180
+ dataId: `${dataId}_moreIcon`,
181
+ tagName: "button",
182
+ "aria-expanded": messageState ? true : false,
183
+ "aria-haspopup": true
184
+ }, /*#__PURE__*/React.createElement(Icon, {
185
+ name: "ZD-down",
186
+ size: "7"
187
+ })) : null)) : null)) : null)) : null, isMore ? /*#__PURE__*/React.createElement(Box, {
188
+ className: `${style.message} ${messageState ? '' : style.messageOff}`,
189
+ tagName: "p"
190
+ }, message) : null, getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null);
191
+ }
192
+
193
+ export default function ToastMessage(props) {
194
+ return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
195
+ Element: ToastMessageUI
196
+ }));
197
+ }
198
+ ToastMessage.propTypes = propTypes;
199
+ ToastMessage.defaultProps = defaultProps; // if (__DOCS__) {
200
+ // ToastMessage.docs = {
201
+ // componentGroup: 'Atom'
202
+ // };
203
+ // }