@zohodesk/dot 1.1.0 → 1.2.0

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 (402) hide show
  1. package/README.md +1350 -1344
  2. package/coverage/ExternalLink/ExternalLink.js.html +229 -0
  3. package/coverage/ExternalLink/ExternalLink.module.css.html +94 -0
  4. package/coverage/ExternalLink/index.html +131 -0
  5. package/coverage/ExternalLink/props/defaultProps.js.html +100 -0
  6. package/coverage/ExternalLink/props/index.html +131 -0
  7. package/coverage/ExternalLink/props/propTypes.js.html +124 -0
  8. package/coverage/Image/Image.js.html +184 -0
  9. package/coverage/Image/Image.module.css.html +118 -0
  10. package/coverage/Image/index.html +131 -0
  11. package/coverage/Image/props/defaultProps.js.html +97 -0
  12. package/coverage/Image/props/index.html +131 -0
  13. package/coverage/Image/props/propTypes.js.html +127 -0
  14. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +448 -0
  15. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +133 -0
  16. package/coverage/avatar/AvatarWithTeam/index.html +131 -0
  17. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +112 -0
  18. package/coverage/avatar/AvatarWithTeam/props/index.html +131 -0
  19. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +163 -0
  20. package/coverage/base.css +224 -0
  21. package/coverage/block-navigation.js +87 -0
  22. package/coverage/coverage-final.json +13 -0
  23. package/coverage/coverage-summary.json +14 -0
  24. package/coverage/favicon.png +0 -0
  25. package/coverage/index.html +191 -0
  26. package/coverage/prettify.css +1 -0
  27. package/coverage/prettify.js +2 -0
  28. package/coverage/sort-arrow-sprite.png +0 -0
  29. package/coverage/sorter.js +196 -0
  30. package/es/ActionButton/ActionButton.module.css +139 -139
  31. package/es/AlphabeticList/AlphabeticList.module.css +57 -57
  32. package/es/Attachment/Attachment.module.css +159 -159
  33. package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
  34. package/es/ChannelIcon/ChannelIcon.module.css +217 -217
  35. package/es/Drawer/Drawer.js +0 -0
  36. package/es/Drawer/Drawer.module.css +190 -190
  37. package/es/ExternalLink/ExternalLink.js +0 -0
  38. package/es/ExternalLink/ExternalLink.module.css +3 -3
  39. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  40. package/es/FlipCard/FlipCard.module.css +44 -44
  41. package/es/FormAction/FormAction.module.css +82 -82
  42. package/es/FreezeLayer/FreezeLayer.js +1 -1
  43. package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
  44. package/es/FreezeLayer/css/cssJSLogic.js +1 -1
  45. package/es/Hooks/Dragger/css/Dragger.module.css +2 -2
  46. package/es/IconButton/IconButton.module.css +22 -22
  47. package/es/Image/Image.module.css +11 -11
  48. package/es/Image/__tests__/Image.spec.js +70 -0
  49. package/es/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
  50. package/es/ImportantNotes/ImportantNotes.module.css +20 -20
  51. package/es/Link/Link.js +0 -0
  52. package/es/Link/Link.module.css +3 -3
  53. package/es/Loader/Loader.js +1 -5
  54. package/es/Loader/Loader.module.css +47 -47
  55. package/es/Message/Message.module.css +102 -102
  56. package/es/MessageBanner/MessageBanner.module.css +46 -46
  57. package/es/NewStar/NewStar.module.css +183 -183
  58. package/es/PlusIcon/PlusIcon.js +0 -0
  59. package/es/PlusIcon/PlusIcon.module.css +18 -18
  60. package/es/Separator/Separator.module.css +34 -34
  61. package/es/TagWithIcon/TagWithIcon.module.css +56 -56
  62. package/es/ToastMessage/ToastMessage.js +0 -0
  63. package/es/ToastMessage/ToastMessage.module.css +328 -328
  64. package/es/Upload/Upload.module.css +125 -125
  65. package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
  66. package/es/alert/AlertHeader/props/propTypes.js +1 -1
  67. package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
  68. package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
  69. package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  70. package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  71. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
  72. package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  73. package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
  74. package/es/avatar/AvatarUser/AvatarUser.js +0 -0
  75. package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
  76. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  77. package/es/common/dot_animation.module.css +26 -26
  78. package/es/common/dot_boxShadow.module.css +37 -37
  79. package/es/common/dot_common.module.css +3 -3
  80. package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  81. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  82. package/es/deprecated/utils/KeyboardApi.js +25 -25
  83. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  84. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  85. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  86. package/es/emptystate/EditionPage/EditionPage.css +43 -43
  87. package/es/errorstate/EmptyStates.module.css +87 -87
  88. package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  89. package/es/errorstate/LinkText/LinkText.module.css +6 -6
  90. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  91. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  92. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  93. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  94. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  95. package/es/errorstate/WillBack/WillBack.module.css +34 -34
  96. package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  97. package/es/form/fields/Fields.module.css +183 -183
  98. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  99. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  100. package/es/form/fields/TextEditor/TextEditor.module.css +770 -770
  101. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
  102. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  103. package/es/form/layout/Field/Field.js +0 -0
  104. package/es/form/layout/Field/Field.module.css +22 -22
  105. package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
  106. package/es/form/layout/Section/Section.js +0 -0
  107. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  108. package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  109. package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
  110. package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  111. package/es/list/Comment/Comment.module.css +29 -29
  112. package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  113. package/es/list/Dot/Dot.module.css +15 -15
  114. package/es/list/DotNew/DotNew.module.css +24 -24
  115. package/es/list/GridStencils/GridStencils.module.css +146 -146
  116. package/es/list/Icons/Icons.module.css +16 -16
  117. package/es/list/ListLayout/ListLayout.module.css +57 -57
  118. package/es/list/ListStencils/ListStencils.module.css +67 -67
  119. package/es/list/SecondaryText/SecondaryText.module.css +136 -136
  120. package/es/list/SecondaryText/Website.js +0 -0
  121. package/es/list/SecondryPanel/SecondryPanel.js +0 -0
  122. package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
  123. package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
  124. package/es/list/Subject/Subject.module.css +27 -27
  125. package/es/list/TagNew/TagNew.module.css +116 -116
  126. package/es/list/Thread/Thread.module.css +42 -42
  127. package/es/list/UserTime/UserTime.module.css +58 -58
  128. package/es/list/listCommon.module.css +60 -60
  129. package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  130. package/es/list/status/StatusListItem/StatusListItem.js +0 -0
  131. package/es/list/status/StatusListItem/StatusListItem.module.css +111 -111
  132. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  133. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  134. package/es/lookup/Lookup/Lookup.js +0 -0
  135. package/es/lookup/Lookup/Lookup.module.css +26 -26
  136. package/es/lookup/Section/LookupSection.module.css +7 -7
  137. package/es/lookup/header/Close/LookupClose.module.css +15 -15
  138. package/es/lookup/header/Search/LookupSearch.module.css +57 -57
  139. package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  140. package/es/lookup/header/Title/LookupTitle.module.css +20 -20
  141. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  142. package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
  143. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  144. package/es/setup/header/Button/HeaderButton.module.css +5 -5
  145. package/es/setup/header/Link/HeaderLink.module.css +21 -21
  146. package/es/setup/header/Search/Search.module.css +68 -68
  147. package/es/setup/header/Views/Views.module.css +37 -37
  148. package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  149. package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  150. package/es/setup/helptips/Link/Link.js +0 -0
  151. package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  152. package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  153. package/es/setup/helptips/Title/Title.js +0 -0
  154. package/es/setup/table/TableData/SetupTableData.module.css +44 -44
  155. package/es/setup/table/TableData/Tablehover.module.css +6 -6
  156. package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
  157. package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
  158. package/es/setup/table/Text/TableText.module.css +37 -37
  159. package/es/setup/table/Text/Text.js +0 -0
  160. package/es/svg/PlusIcon.js +1 -1
  161. package/es/svg/SnippetIcon.js +2 -2
  162. package/es/v1/ActionButton/ActionButton.js +137 -0
  163. package/es/v1/AlphabeticList/AlphabeticList.js +90 -0
  164. package/es/v1/Drawer/Drawer.js +271 -0
  165. package/es/v1/FlipCard/FlipCard.js +130 -0
  166. package/es/v1/FormAction/FormAction.js +75 -0
  167. package/es/v1/IconButton/IconButton.js +113 -0
  168. package/es/v1/ImportantNotes/ImportantNotes.js +41 -0
  169. package/es/v1/Link/Link.js +95 -0
  170. package/es/v1/MessageBanner/MessageBanner.js +58 -0
  171. package/es/v1/TagWithIcon/TagWithIcon.js +39 -0
  172. package/es/v1/alert/AlertHeader/AlertHeader.js +70 -0
  173. package/es/v1/alert/AlertLookup/AlertLookup.js +104 -0
  174. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +63 -0
  175. package/es/v1/emptystate/EditionPage/EditionPage.js +51 -0
  176. package/es/v1/lookup/Lookup/Lookup.js +105 -0
  177. package/es/v1/setup/table/Table/Table.js +22 -0
  178. package/es/v1/setup/table/TableBody/TableBody.js +26 -0
  179. package/es/v1/setup/table/TableData/TableData.js +31 -0
  180. package/es/v1/setup/table/TableHead/TableHead.js +31 -0
  181. package/es/v1/setup/table/TableRow/TableRow.js +36 -0
  182. package/es/v1/setup/table/Text/Text.js +50 -0
  183. package/es/v1/version2/AlertClose/AlertClose.js +43 -0
  184. package/es/v1/version2/GlobalNotification/GlobalNotification.js +111 -0
  185. package/es/v1/version2/alertIcons/AlarmAlertIcon.js +65 -0
  186. package/es/v1/version2/alertIcons/AlertIcons.js +57 -0
  187. package/es/v1/version2/alertIcons/DangerAlertIcon.js +65 -0
  188. package/es/v1/version2/alertIcons/ErrorAlertIcon.js +70 -0
  189. package/es/v1/version2/alertIcons/InfoAlertIcon.js +74 -0
  190. package/es/v1/version2/alertIcons/NotificationAlertIcon.js +70 -0
  191. package/es/v1/version2/alertIcons/SuccessAlertIcon.js +65 -0
  192. package/es/v1/version2/alertIcons/WarningAlertIcon.js +65 -0
  193. package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +63 -0
  194. package/es/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +64 -0
  195. package/es/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +63 -0
  196. package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +65 -0
  197. package/es/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +63 -0
  198. package/es/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +63 -0
  199. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +152 -0
  200. package/es/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +54 -0
  201. package/es/version2/AlertClose/AlertClose.module.css +42 -42
  202. package/es/version2/GlobalNotification/GlobalNotification.js +1 -1
  203. package/es/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  204. package/es/version2/alertIcons/AlertIcons.module.css +67 -67
  205. package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
  206. package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  207. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  208. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
  209. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  210. package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
  211. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  212. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  213. package/install.md +12 -12
  214. package/lib/ActionButton/ActionButton.module.css +139 -139
  215. package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
  216. package/lib/Attachment/Attachment.module.css +159 -159
  217. package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
  218. package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
  219. package/lib/Drawer/Drawer.js +0 -0
  220. package/lib/Drawer/Drawer.module.css +190 -190
  221. package/lib/ExternalLink/ExternalLink.js +0 -0
  222. package/lib/ExternalLink/ExternalLink.module.css +3 -3
  223. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  224. package/lib/FlipCard/FlipCard.module.css +44 -44
  225. package/lib/FormAction/FormAction.module.css +82 -82
  226. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  227. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
  228. package/lib/FreezeLayer/css/cssJSLogic.js +1 -1
  229. package/lib/Hooks/Dragger/css/Dragger.module.css +2 -2
  230. package/lib/IconButton/IconButton.module.css +22 -22
  231. package/lib/Image/Image.module.css +11 -11
  232. package/lib/Image/__tests__/Image.spec.js +77 -0
  233. package/lib/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
  234. package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
  235. package/lib/Link/Link.js +0 -0
  236. package/lib/Link/Link.module.css +3 -3
  237. package/lib/Loader/Loader.js +1 -6
  238. package/lib/Loader/Loader.module.css +47 -47
  239. package/lib/Message/Message.module.css +102 -102
  240. package/lib/MessageBanner/MessageBanner.module.css +46 -46
  241. package/lib/NewStar/NewStar.module.css +183 -183
  242. package/lib/PlusIcon/PlusIcon.js +0 -0
  243. package/lib/PlusIcon/PlusIcon.module.css +18 -18
  244. package/lib/Separator/Separator.module.css +34 -34
  245. package/lib/TagWithIcon/TagWithIcon.module.css +56 -56
  246. package/lib/ToastMessage/ToastMessage.js +0 -0
  247. package/lib/ToastMessage/ToastMessage.module.css +328 -328
  248. package/lib/Upload/Upload.module.css +125 -125
  249. package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
  250. package/lib/alert/AlertHeader/props/propTypes.js +1 -1
  251. package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
  252. package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
  253. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  254. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  255. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  256. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  257. package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
  258. package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
  259. package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
  260. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  261. package/lib/common/dot_animation.module.css +26 -26
  262. package/lib/common/dot_boxShadow.module.css +37 -37
  263. package/lib/common/dot_common.module.css +3 -3
  264. package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  265. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  266. package/lib/deprecated/utils/KeyboardApi.js +25 -25
  267. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  268. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  269. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  270. package/lib/emptystate/EditionPage/EditionPage.css +43 -43
  271. package/lib/errorstate/EmptyStates.module.css +87 -87
  272. package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  273. package/lib/errorstate/LinkText/LinkText.module.css +6 -6
  274. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  275. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  276. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  277. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  278. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  279. package/lib/errorstate/WillBack/WillBack.module.css +34 -34
  280. package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  281. package/lib/form/fields/Fields.module.css +183 -183
  282. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  283. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  284. package/lib/form/fields/TextEditor/TextEditor.module.css +770 -770
  285. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
  286. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  287. package/lib/form/layout/Field/Field.js +0 -0
  288. package/lib/form/layout/Field/Field.module.css +22 -22
  289. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
  290. package/lib/form/layout/Section/Section.js +0 -0
  291. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  292. package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  293. package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
  294. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  295. package/lib/list/Comment/Comment.module.css +29 -29
  296. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  297. package/lib/list/Dot/Dot.module.css +15 -15
  298. package/lib/list/DotNew/DotNew.module.css +24 -24
  299. package/lib/list/GridStencils/GridStencils.module.css +146 -146
  300. package/lib/list/Icons/Icons.module.css +16 -16
  301. package/lib/list/ListLayout/ListLayout.module.css +57 -57
  302. package/lib/list/ListStencils/ListStencils.module.css +67 -67
  303. package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
  304. package/lib/list/SecondaryText/Website.js +0 -0
  305. package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
  306. package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
  307. package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
  308. package/lib/list/Subject/Subject.module.css +27 -27
  309. package/lib/list/TagNew/TagNew.module.css +116 -116
  310. package/lib/list/Thread/Thread.module.css +42 -42
  311. package/lib/list/UserTime/UserTime.module.css +58 -58
  312. package/lib/list/listCommon.module.css +60 -60
  313. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  314. package/lib/list/status/StatusListItem/StatusListItem.js +0 -0
  315. package/lib/list/status/StatusListItem/StatusListItem.module.css +111 -111
  316. package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
  317. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  318. package/lib/lookup/Lookup/Lookup.js +0 -0
  319. package/lib/lookup/Lookup/Lookup.module.css +26 -26
  320. package/lib/lookup/Section/LookupSection.module.css +7 -7
  321. package/lib/lookup/header/Close/LookupClose.module.css +15 -15
  322. package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
  323. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  324. package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
  325. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  326. package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
  327. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  328. package/lib/setup/header/Button/HeaderButton.module.css +5 -5
  329. package/lib/setup/header/Link/HeaderLink.module.css +21 -21
  330. package/lib/setup/header/Search/Search.module.css +68 -68
  331. package/lib/setup/header/Views/Views.module.css +37 -37
  332. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  333. package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  334. package/lib/setup/helptips/Link/Link.js +0 -0
  335. package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  336. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  337. package/lib/setup/helptips/Title/Title.js +0 -0
  338. package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
  339. package/lib/setup/table/TableData/Tablehover.module.css +6 -6
  340. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
  341. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
  342. package/lib/setup/table/Text/TableText.module.css +37 -37
  343. package/lib/setup/table/Text/Text.js +0 -0
  344. package/lib/svg/PlusIcon.js +1 -1
  345. package/lib/svg/SnippetIcon.js +2 -2
  346. package/lib/v1/ActionButton/ActionButton.js +156 -0
  347. package/lib/v1/AlphabeticList/AlphabeticList.js +111 -0
  348. package/lib/v1/Drawer/Drawer.js +302 -0
  349. package/lib/v1/FlipCard/FlipCard.js +149 -0
  350. package/lib/v1/FormAction/FormAction.js +102 -0
  351. package/lib/v1/IconButton/IconButton.js +149 -0
  352. package/lib/v1/ImportantNotes/ImportantNotes.js +55 -0
  353. package/lib/v1/Link/Link.js +116 -0
  354. package/lib/v1/MessageBanner/MessageBanner.js +73 -0
  355. package/lib/v1/TagWithIcon/TagWithIcon.js +53 -0
  356. package/lib/v1/alert/AlertHeader/AlertHeader.js +86 -0
  357. package/lib/v1/alert/AlertLookup/AlertLookup.js +118 -0
  358. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +76 -0
  359. package/lib/v1/emptystate/EditionPage/EditionPage.js +64 -0
  360. package/lib/v1/lookup/Lookup/Lookup.js +130 -0
  361. package/lib/v1/setup/table/Table/Table.js +34 -0
  362. package/lib/v1/setup/table/TableBody/TableBody.js +39 -0
  363. package/lib/v1/setup/table/TableData/TableData.js +44 -0
  364. package/lib/v1/setup/table/TableHead/TableHead.js +44 -0
  365. package/lib/v1/setup/table/TableRow/TableRow.js +49 -0
  366. package/lib/v1/setup/table/Text/Text.js +64 -0
  367. package/lib/v1/version2/AlertClose/AlertClose.js +62 -0
  368. package/lib/v1/version2/GlobalNotification/GlobalNotification.js +134 -0
  369. package/lib/v1/version2/alertIcons/AlarmAlertIcon.js +77 -0
  370. package/lib/v1/version2/alertIcons/AlertIcons.js +78 -0
  371. package/lib/v1/version2/alertIcons/DangerAlertIcon.js +77 -0
  372. package/lib/v1/version2/alertIcons/ErrorAlertIcon.js +82 -0
  373. package/lib/v1/version2/alertIcons/InfoAlertIcon.js +86 -0
  374. package/lib/v1/version2/alertIcons/NotificationAlertIcon.js +82 -0
  375. package/lib/v1/version2/alertIcons/SuccessAlertIcon.js +77 -0
  376. package/lib/v1/version2/alertIcons/WarningAlertIcon.js +77 -0
  377. package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +79 -0
  378. package/lib/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +80 -0
  379. package/lib/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +79 -0
  380. package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +81 -0
  381. package/lib/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +79 -0
  382. package/lib/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +79 -0
  383. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +173 -0
  384. package/lib/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +76 -0
  385. package/lib/version2/AlertClose/AlertClose.module.css +42 -42
  386. package/lib/version2/GlobalNotification/GlobalNotification.js +2 -2
  387. package/lib/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  388. package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
  389. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
  390. package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  391. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  392. package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
  393. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  394. package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
  395. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  396. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  397. package/package.json +80 -106
  398. package/postPublish.js +8 -8
  399. package/prePublish.js +70 -70
  400. package/react-cli.config.js +24 -0
  401. package/result.json +1 -0
  402. package/unittest/index.html +37 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = TagWithIcon;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../TagWithIcon/props/defaultProps");
11
+
12
+ var _propTypes = require("../../TagWithIcon/props/propTypes");
13
+
14
+ var _Layout = require("@zohodesk/components/es/Layout");
15
+
16
+ var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
17
+
18
+ var _TagWithIconModule = _interopRequireDefault(require("../../TagWithIcon/TagWithIcon.module.css"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function TagWithIcon(props) {
23
+ var text = props.text,
24
+ iconName = props.iconName,
25
+ iconSize = props.iconSize,
26
+ palette = props.palette,
27
+ iconClass = props.iconClass,
28
+ isBold = props.isBold,
29
+ size = props.size,
30
+ dataId = props.dataId,
31
+ className = props.className,
32
+ title = props.title;
33
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
34
+ isInline: true,
35
+ alignBox: "row",
36
+ align: "vertical",
37
+ isCover: false,
38
+ className: "".concat(_TagWithIconModule["default"].wrapper, " ").concat(_TagWithIconModule["default"][palette], " ").concat(_TagWithIconModule["default"][size], " ").concat(className),
39
+ dataId: dataId,
40
+ title: title
41
+ }, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
42
+ name: iconName,
43
+ size: iconSize,
44
+ iconClass: "".concat(text ? _TagWithIconModule["default"].iconSpace : '', " ").concat(iconClass, " ")
45
+ }) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
46
+ shrink: true,
47
+ "data-title": text,
48
+ className: "".concat(_TagWithIconModule["default"].text, " ").concat(_TagWithIconModule["default"][size], "_text ").concat(isBold ? _TagWithIconModule["default"].bold : '')
49
+ }, text) : null);
50
+ }
51
+
52
+ TagWithIcon.propTypes = _propTypes.propTypes;
53
+ TagWithIcon.defaultProps = _defaultProps.defaultProps;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = AlertHeader;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../alert/AlertHeader/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../alert/AlertHeader/props/propTypes");
13
+
14
+ var _icons = require("@zohodesk/icons");
15
+
16
+ var _Layout = require("@zohodesk/components/lib/Layout");
17
+
18
+ var _Title = _interopRequireDefault(require("../../../lookup/header/Title/Title"));
19
+
20
+ var _Close = _interopRequireDefault(require("../../../lookup/header/Close/Close"));
21
+
22
+ var _AlertHeaderModule = _interopRequireDefault(require("../../../alert/AlertHeader/AlertHeader.module.css"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function AlertHeader(props) {
27
+ var title = props.title,
28
+ palette = props.palette,
29
+ needIcon = props.needIcon,
30
+ iconType = props.iconType,
31
+ onClose = props.onClose,
32
+ iconName = props.iconName,
33
+ iconSize = props.iconSize,
34
+ closeTitle = props.closeTitle,
35
+ children = props.children,
36
+ breakChildren = props.breakChildren,
37
+ dataId = props.dataId,
38
+ iconClass = props.iconClass;
39
+ var iconObj = {
40
+ "delete": 'ZD-socialDelete',
41
+ alert: 'ZD-exclamationThincircle',
42
+ remoteAssist: 'ZD-taskDemo',
43
+ splitTicket: 'ZD-splitNew',
44
+ update: 'ZD-update'
45
+ };
46
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
47
+ align: "vertical",
48
+ alignBox: "row",
49
+ className: "".concat(_AlertHeaderModule["default"].container, " ").concat(_AlertHeaderModule["default"][palette]),
50
+ isCover: false,
51
+ wrap: "wrap"
52
+ }, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
53
+ className: _AlertHeaderModule["default"].iconContainer
54
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
55
+ size: iconSize,
56
+ name: iconName ? iconName : iconObj[iconType] ? iconObj[iconType] : iconName,
57
+ iconClass: "".concat(_AlertHeaderModule["default"].iconStyle, " ").concat(iconObj[iconType] && !iconSize ? _AlertHeaderModule["default"]["icon_".concat(iconType)] : '', " ").concat(_AlertHeaderModule["default"]["text_".concat(palette)], " ").concat(iconClass)
58
+ })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
59
+ flexible: true
60
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
61
+ alignBox: "row",
62
+ align: "vertical",
63
+ wrap: breakChildren ? 'wrap' : null
64
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
65
+ className: _AlertHeaderModule["default"].title,
66
+ shrink: true
67
+ }, /*#__PURE__*/_react["default"].createElement(_Title["default"], {
68
+ text: title,
69
+ palette: palette
70
+ })), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
71
+ adjust: true,
72
+ flexible: true
73
+ }, children) : null)), onClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Close["default"], {
74
+ onClose: onClose,
75
+ title: closeTitle,
76
+ dataId: "".concat(dataId, "_close")
77
+ })) : null);
78
+ }
79
+
80
+ AlertHeader.propTypes = _propTypes.propTypes;
81
+ AlertHeader.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
82
+ // AlertHeader.docs = {
83
+ // componentGroup: 'AlertHeader',
84
+ // folderName: 'Alert'
85
+ // };
86
+ // }
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = AlertLookup;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../alert/AlertLookup/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../alert/AlertLookup/props/propTypes");
13
+
14
+ var _Button = _interopRequireDefault(require("@zohodesk/components/lib/Button/Button"));
15
+
16
+ var _AlertHeader = _interopRequireDefault(require("../AlertHeader/AlertHeader"));
17
+
18
+ var _Lookup = _interopRequireDefault(require("../../../lookup/Lookup/Lookup"));
19
+
20
+ var _Section = _interopRequireDefault(require("../../../lookup/Section/Section"));
21
+
22
+ var _FormAction = _interopRequireDefault(require("../../../FormAction/FormAction"));
23
+
24
+ var _AlertLookupModule = _interopRequireDefault(require("../../../alert/AlertLookup/AlertLookup.module.css"));
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ 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); }
29
+
30
+ function AlertLookup(props) {
31
+ var isActive = props.isActive,
32
+ palette = props.palette,
33
+ size = props.size,
34
+ type = props.type,
35
+ title = props.title,
36
+ message = props.message,
37
+ confirmationMessage = props.confirmationMessage,
38
+ submitText = props.submitText,
39
+ cancelText = props.cancelText,
40
+ onSubmitClick = props.onSubmitClick,
41
+ onCancelClick = props.onCancelClick,
42
+ children = props.children,
43
+ forwardRef = props.forwardRef,
44
+ onClose = props.onClose,
45
+ headerChildren = props.headerChildren,
46
+ wrapHeader = props.wrapHeader,
47
+ sectionClassName = props.sectionClassName,
48
+ dataId = props.dataId,
49
+ onLookupClick = props.onLookupClick,
50
+ customClass = props.customClass,
51
+ needIcon = props.needIcon,
52
+ iconName = props.iconName,
53
+ iconClass = props.iconClass,
54
+ iconSize = props.iconSize,
55
+ customProps = props.customProps,
56
+ isHtmlContent = props.isHtmlContent,
57
+ onEsc = props.onEsc;
58
+ var _customProps$LookupPr = customProps.LookupProps,
59
+ LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
60
+ _customProps$AlertHea = customProps.AlertHeaderProps,
61
+ AlertHeaderProps = _customProps$AlertHea === void 0 ? {} : _customProps$AlertHea,
62
+ _customProps$PrimaryB = customProps.PrimaryButtonProps,
63
+ PrimaryButtonProps = _customProps$PrimaryB === void 0 ? {} : _customProps$PrimaryB,
64
+ _customProps$Secondar = customProps.SecondaryButtonProps,
65
+ SecondaryButtonProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
66
+ return /*#__PURE__*/_react["default"].createElement(_Lookup["default"], _extends({
67
+ needFocusScope: true,
68
+ onClose: onEsc == 'close' ? onClose : onCancelClick,
69
+ isActive: isActive,
70
+ size: size,
71
+ dataId: dataId,
72
+ forwardRef: forwardRef,
73
+ onClick: onLookupClick,
74
+ customClass: customClass
75
+ }, LookupProps), /*#__PURE__*/_react["default"].createElement(_AlertHeader["default"], _extends({
76
+ title: title,
77
+ palette: palette,
78
+ iconType: type,
79
+ needIcon: Boolean(type) || needIcon,
80
+ onClose: onClose,
81
+ breakChildren: wrapHeader,
82
+ iconName: iconName,
83
+ iconClass: iconClass,
84
+ iconSize: iconSize
85
+ }, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/_react["default"].createElement(_Section["default"], {
86
+ alignBox: "row",
87
+ className: _AlertLookupModule["default"].section
88
+ }, /*#__PURE__*/_react["default"].createElement("div", {
89
+ className: "".concat(_AlertLookupModule["default"].innerSection, " ").concat(sectionClassName)
90
+ }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isHtmlContent && message ? /*#__PURE__*/_react["default"].createElement("div", {
91
+ dangerouslySetInnerHTML: {
92
+ __html: message
93
+ }
94
+ }) : /*#__PURE__*/_react["default"].createElement("div", null, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
95
+ className: _AlertLookupModule["default"].text
96
+ }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
97
+ size: "small",
98
+ paddingLeftSize: "xsmall"
99
+ }, /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
100
+ text: submitText,
101
+ dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
102
+ onClick: onSubmitClick,
103
+ palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
104
+ }, PrimaryButtonProps)), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
105
+ dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
106
+ text: cancelText,
107
+ onClick: onCancelClick,
108
+ palette: "secondary"
109
+ }, SecondaryButtonProps))) : null));
110
+ }
111
+
112
+ AlertLookup.propTypes = _propTypes.propTypes;
113
+ AlertLookup.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
114
+ // AlertLookup.docs = {
115
+ // componentGroup: 'AlertLookup',
116
+ // folderName: 'Alert'
117
+ // };
118
+ // }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = CommonEmptyState;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../emptystate/CommonEmptyState/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../emptystate/CommonEmptyState/props/propTypes");
13
+
14
+ var _Link = _interopRequireDefault(require("../../Link/Link"));
15
+
16
+ var _CommonEmptyStateModule = _interopRequireDefault(require("../../../emptystate/CommonEmptyState/CommonEmptyState.module.css"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function CommonEmptyState(props) {
21
+ var title = props.title,
22
+ description = props.description,
23
+ linkDescription = props.linkDescription,
24
+ linkUrl = props.linkUrl,
25
+ linkText = props.linkText,
26
+ linkTarget = props.linkTarget,
27
+ onUrlClick = props.onUrlClick,
28
+ getEmptyState = props.getEmptyState,
29
+ className = props.className,
30
+ dataId = props.dataId,
31
+ isFluid = props.isFluid,
32
+ children = props.children,
33
+ size = props.size,
34
+ palette = props.palette,
35
+ customClass = props.customClass;
36
+ var _customClass$titleCla = customClass.titleClass,
37
+ titleClass = _customClass$titleCla === void 0 ? '' : _customClass$titleCla,
38
+ _customClass$descript = customClass.descriptionClass,
39
+ descriptionClass = _customClass$descript === void 0 ? '' : _customClass$descript;
40
+ return /*#__PURE__*/_react["default"].createElement("div", {
41
+ className: "".concat(_CommonEmptyStateModule["default"].container, " ").concat(_CommonEmptyStateModule["default"][size], " ").concat(className, " ").concat(!isFluid ? _CommonEmptyStateModule["default"].fluid : '', " ").concat(_CommonEmptyStateModule["default"][palette]),
42
+ "data-id": dataId,
43
+ "data-test-id": dataId
44
+ }, getEmptyState ? getEmptyState() : null, title ? /*#__PURE__*/_react["default"].createElement("div", {
45
+ className: "".concat(_CommonEmptyStateModule["default"].title, " ").concat(titleClass)
46
+ }, title) : null, description ? /*#__PURE__*/_react["default"].createElement("div", {
47
+ className: _CommonEmptyStateModule["default"].linkWrapper
48
+ }, /*#__PURE__*/_react["default"].createElement("span", {
49
+ className: "".concat(_CommonEmptyStateModule["default"].desc, " ").concat(descriptionClass)
50
+ }, description), !linkDescription && linkText ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
51
+ href: linkUrl,
52
+ className: _CommonEmptyStateModule["default"].link,
53
+ target: linkTarget,
54
+ onClick: onUrlClick,
55
+ dataId: "".concat(dataId, "_primarylink")
56
+ }, linkText) : null) : null, linkDescription || !description && !linkDescription && linkText ? /*#__PURE__*/_react["default"].createElement("div", {
57
+ className: _CommonEmptyStateModule["default"].linkDescWrapper
58
+ }, linkDescription ? /*#__PURE__*/_react["default"].createElement("span", {
59
+ className: "".concat(_CommonEmptyStateModule["default"].linkDesc)
60
+ }, linkDescription) : null, linkText ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
61
+ href: linkUrl,
62
+ className: _CommonEmptyStateModule["default"].link,
63
+ target: linkTarget,
64
+ onClick: onUrlClick,
65
+ dataId: "".concat(dataId, "_secondarylink")
66
+ }, linkText) : null) : null, children ? /*#__PURE__*/_react["default"].createElement("div", {
67
+ className: _CommonEmptyStateModule["default"].children
68
+ }, children) : null);
69
+ }
70
+
71
+ CommonEmptyState.propTypes = _propTypes.propTypes;
72
+ CommonEmptyState.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
73
+ // CommonEmptyState.docs = {
74
+ // componentGroup: 'EmptyState'
75
+ // };
76
+ // }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = EditionPage;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../emptystate/EditionPage/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../emptystate/EditionPage/props/propTypes");
13
+
14
+ var _EmptyCrmPotential = _interopRequireDefault(require("@zohodesk/svg/lib/v1/emptystate/version3/EmptyCrmPotential"));
15
+
16
+ var _EditionPage = _interopRequireDefault(require("../../../emptystate/EditionPage/EditionPage.css"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function EditionPage(props) {
21
+ var title = props.title,
22
+ subtitle = props.subtitle,
23
+ information = props.information,
24
+ dataId = props.dataId,
25
+ footerText = props.footerText,
26
+ onButtonClick = props.onButtonClick,
27
+ butttonText = props.butttonText,
28
+ children = props.children;
29
+ return /*#__PURE__*/_react["default"].createElement("div", {
30
+ className: _EditionPage["default"].editionContainer,
31
+ "data-id": dataId,
32
+ "data-test-id": dataId
33
+ }, /*#__PURE__*/_react["default"].createElement("div", {
34
+ className: _EditionPage["default"].svg
35
+ }, /*#__PURE__*/_react["default"].createElement(_EmptyCrmPotential["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
36
+ className: _EditionPage["default"].header
37
+ }, title), subtitle ? /*#__PURE__*/_react["default"].createElement("div", {
38
+ className: _EditionPage["default"].description
39
+ }, subtitle) : null, /*#__PURE__*/_react["default"].createElement("div", {
40
+ className: _EditionPage["default"].description
41
+ }, information ? "".concat(information, " ") : null, butttonText ? /*#__PURE__*/_react["default"].createElement("span", {
42
+ className: _EditionPage["default"].button,
43
+ "data-id": "".concat(dataId, "_button"),
44
+ "data-test-id": "".concat(dataId, "_button"),
45
+ onClick: onButtonClick
46
+ }, butttonText) : null), children ? /*#__PURE__*/_react["default"].createElement("div", {
47
+ className: _EditionPage["default"].content
48
+ }, children) : null, footerText ? /*#__PURE__*/_react["default"].createElement("div", {
49
+ "data-id": "".concat(dataId, "_footerText"),
50
+ "data-test-id": "".concat(dataId, "_footerText"),
51
+ className: _EditionPage["default"].footer
52
+ }, /*#__PURE__*/_react["default"].createElement("div", {
53
+ dangerouslySetInnerHTML: {
54
+ __html: footerText
55
+ }
56
+ })) : null);
57
+ }
58
+
59
+ EditionPage.defaultProps = _defaultProps.defaultProps;
60
+ EditionPage.propTypes = _propTypes.propTypes; // if (__DOCS__) {
61
+ // EditionPage.docs = {
62
+ // componentGroup: 'EmptyState'
63
+ // };
64
+ // }
@@ -0,0 +1,130 @@
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"] = Lookup;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _defaultProps = require("../../../lookup/Lookup/props/defaultProps");
13
+
14
+ var _propTypes = require("../../../lookup/Lookup/props/propTypes");
15
+
16
+ var _FreezeLayer = _interopRequireDefault(require("../../../FreezeLayer/FreezeLayer"));
17
+
18
+ var _Layout = require("@zohodesk/components/lib/Layout");
19
+
20
+ var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
21
+
22
+ var _LookupModule = _interopRequireDefault(require("../../../lookup/Lookup/Lookup.module.css"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ 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); }
27
+
28
+ 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; }
29
+
30
+ /*** Libraries ***/
31
+
32
+ /*** Components ***/
33
+
34
+ /*** CSS ***/
35
+
36
+ /*eslint-disable react/forbid-component-props */
37
+ function Lookup(props) {
38
+ var isActive = props.isActive,
39
+ children = props.children,
40
+ size = props.size,
41
+ dataId = props.dataId,
42
+ forwardRef = props.forwardRef,
43
+ onClick = props.onClick,
44
+ customClass = props.customClass,
45
+ htmlId = props.htmlId,
46
+ a11y = props.a11y,
47
+ childAnimationName = props.childAnimationName,
48
+ onClose = props.onClose,
49
+ needFocusScope = props.needFocusScope,
50
+ customProps = props.customProps,
51
+ onKeyDown = props.onKeyDown;
52
+ var _a11y$role = a11y.role,
53
+ role = _a11y$role === void 0 ? 'dialog' : _a11y$role,
54
+ ariaLabelledby = a11y.ariaLabelledby,
55
+ ariaDescribedby = a11y.ariaDescribedby,
56
+ _a11y$ariaModal = a11y.ariaModal,
57
+ ariaModal = _a11y$ariaModal === void 0 ? isActive ? true : undefined : _a11y$ariaModal;
58
+ var _customProps$focusSco = customProps.focusScopeProps,
59
+ focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
60
+ var _focusScopeProps$auto = focusScopeProps.autoFocus,
61
+ autoFocus = _focusScopeProps$auto === void 0 ? true : _focusScopeProps$auto,
62
+ _focusScopeProps$rest = focusScopeProps.restoreFocus,
63
+ restoreFocus = _focusScopeProps$rest === void 0 ? true : _focusScopeProps$rest,
64
+ _focusScopeProps$need = focusScopeProps.needArrowLoop,
65
+ needArrowLoop = _focusScopeProps$need === void 0 ? false : _focusScopeProps$need,
66
+ _focusScopeProps$need2 = focusScopeProps.needTabLoop,
67
+ needTabLoop = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
68
+ _focusScopeProps$enab = focusScopeProps.enableEnterAction,
69
+ enableEnterAction = _focusScopeProps$enab === void 0 ? false : _focusScopeProps$enab;
70
+ var createRef = (0, _react.useRef)(null);
71
+ var handleKeyDown = (0, _react.useCallback)(function (e) {
72
+ onKeyDown && onKeyDown(e);
73
+ }, [onKeyDown]);
74
+ useEffect(function () {
75
+ if (isActive) {
76
+ document.addEventListener('keydown', handleKeyDown);
77
+ } else {
78
+ document.removeEventListener('keydown', handleKeyDown);
79
+ }
80
+ }, [isActive]);
81
+ useEffect(function () {
82
+ return function () {
83
+ document.removeEventListener('keydown', handleKeyDown);
84
+ };
85
+ }, []);
86
+
87
+ var content = /*#__PURE__*/_react["default"].createElement("div", {
88
+ ref: createRef,
89
+ tabIndex: "-1",
90
+ "data-a11y-need-focus-style": "false",
91
+ role: role,
92
+ "aria-labelledby": ariaLabelledby,
93
+ "aria-describedby": ariaDescribedby,
94
+ "aria-modal": ariaModal,
95
+ id: htmlId,
96
+ className: "".concat(_LookupModule["default"].box, " ").concat(_LookupModule["default"]["".concat(size, "Size")]),
97
+ "data-id": dataId,
98
+ "data-test-id": dataId
99
+ }, children);
100
+
101
+ return /*#__PURE__*/_react["default"].createElement(_FreezeLayer["default"], {
102
+ align: "horizontal",
103
+ animationName: "fade",
104
+ childAnimationName: childAnimationName,
105
+ isActive: isActive,
106
+ palette: "snow",
107
+ forwardRef: forwardRef,
108
+ onClick: onClick,
109
+ customClass: customClass
110
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
111
+ alignBox: "row",
112
+ className: _LookupModule["default"].container,
113
+ dataId: "fldValue"
114
+ }, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
115
+ needTabLoop: needTabLoop,
116
+ needArrowLoop: needArrowLoop,
117
+ elementRef: createRef,
118
+ autoFocus: autoFocus,
119
+ restoreFocus: restoreFocus,
120
+ onClose: onClose,
121
+ enableEnterAction: enableEnterAction
122
+ }, content) : content));
123
+ }
124
+
125
+ Lookup.propTypes = _propTypes.propTypes;
126
+ Lookup.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
127
+ // Lookup.docs = {
128
+ // componentGroup: 'Lookup'
129
+ // };
130
+ // }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = Table;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../../setup/table/Table/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../../setup/table/Table/props/propTypes");
13
+
14
+ var _Layout = require("@zohodesk/components/lib/Layout");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function Table(props) {
19
+ var children = props.children,
20
+ dataId = props.dataId,
21
+ customClass = props.customClass;
22
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
23
+ dataId: dataId,
24
+ className: customClass
25
+ }, children);
26
+ }
27
+
28
+ Table.propTypes = _propTypes.propTypes;
29
+ Table.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
30
+ // Table.docs = {
31
+ // componentGroup: 'Table',
32
+ // folderName: 'Setup'
33
+ // };
34
+ // }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = TableBody;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../../setup/table/TableBody/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../../setup/table/TableBody/props/propTypes");
13
+
14
+ var _Layout = require("@zohodesk/components/lib/Layout");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function TableBody(props) {
19
+ var children = props.children,
20
+ eleRef = props.eleRef,
21
+ _props$onScroll = props.onScroll,
22
+ onScroll = _props$onScroll === void 0 ? function () {} : _props$onScroll,
23
+ customClass = props.customClass;
24
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
25
+ eleRef: eleRef,
26
+ flexible: true,
27
+ scroll: "vertical",
28
+ onScroll: onScroll,
29
+ className: customClass
30
+ }, children);
31
+ }
32
+
33
+ TableBody.propTypes = _propTypes.propTypes;
34
+ TableBody.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
35
+ // TableBody.docs = {
36
+ // componentGroup: 'Table',
37
+ // folderName: 'Setup'
38
+ // };
39
+ // }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = TableData;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _defaultProps = require("../../../../setup/table/TableData/props/defaultProps");
11
+
12
+ var _propTypes = require("../../../../setup/table/TableData/props/propTypes");
13
+
14
+ var _Layout = require("@zohodesk/components/lib/Layout");
15
+
16
+ var _SetupTableDataModule = _interopRequireDefault(require("../../../../setup/table/TableData/SetupTableData.module.css"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function TableData(props) {
21
+ var children = props.children,
22
+ flexible = props.flexible,
23
+ shrink = props.shrink,
24
+ align = props.align,
25
+ type = props.type,
26
+ dataId = props.dataId,
27
+ customClass = props.customClass,
28
+ eleRef = props.eleRef;
29
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
30
+ dataId: dataId,
31
+ flexible: flexible,
32
+ shrink: shrink,
33
+ eleRef: eleRef,
34
+ className: "".concat(customClass, " ").concat(_SetupTableDataModule["default"].container, " ").concat(type ? _SetupTableDataModule["default"][type] : '', " ").concat(align ? _SetupTableDataModule["default"][align] ? _SetupTableDataModule["default"][align] : '' : '')
35
+ }, children);
36
+ }
37
+
38
+ TableData.defaultProps = _defaultProps.defaultProps;
39
+ TableData.propTypes = _propTypes.propTypes; // if (__DOCS__) {
40
+ // TableData.docs = {
41
+ // componentGroup: 'Table',
42
+ // folderName: 'Setup'
43
+ // };
44
+ // }